Add documentation for TARGET_OBJECT_OSDATA
[binutils-gdb.git] / gdb / ChangeLog
1 2010-12-29 Joel Brobecker <brobecker@adacore.com>
2
3 * target.h (enum target_object): Expand the documentation of
4 TARGET_OBJECT_OSDATA a bit.
5
6 2010-12-28 Michael Snyder <msnyder@vmware.com>
7
8 * command.h: Comment clean-up.
9 * cli/cli-cmds.c: Ditto.
10 * cli/cli-cmds.h: Ditto.
11 * cli/cli-decode.c: Ditto.
12 * cli/cli-decode.h: Ditto.
13 * cli/cli-dump.c: Ditto.
14 * cli/cli-interp.c: Ditto.
15 * cli/cli-logging.c: Ditto.
16 * cli/cli-script.c: Ditto.
17 * cli/cli-setshow.c: Ditto.
18 * cli/cli-setshow.h: Ditto.
19
20 2010-12-28 Michael Snyder <msnyder@vmware.com>
21
22 * event-loop.c: Comment clean-up.
23 * event-loop.h: Ditto.
24 * event-top.c: Ditto.
25 * gdb.c: Ditto.
26 * gdb.h: Ditto.
27 * main.c: Ditto.
28 * top.c: Ditto.
29 * top.h: Ditto.
30
31 2010-12-28 Pedro Alves <pedro@codesourcery.com>
32
33 * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
34 collect a user register.
35
36 2010-12-28 Hui Zhu <teawater@gmail.com>
37
38 * gdbarch.sh (ax_pseudo_register_collect,
39 ax_pseudo_register_push_stack): new callbacks.
40 (agent_expr): Forward declare.
41 * gdbarch.h, gdbarch.c: Regenerate.
42 * ax-gdb.c (gen_expr): Remove pseudo-register check code.
43 * ax-general.c (user-regs.h): New include.
44 (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
45 (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
46 * mips-tdep.c (ax.h): New include.
47 (mips_ax_pseudo_register_collect,
48 mips_ax_pseudo_register_push_stack): New functions.
49 (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
50 mips_ax_pseudo_register_push_stack.
51
52 2010-12-28 Yao Qi <yao@codesourcery.com>
53
54 * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
55
56 2010-12-28 Joel Brobecker <brobecker@adacore.com>
57
58 * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
59 (inf_child_target): Do not set t->to_acknowledge_created_inferior.
60 * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
61 target_acknowledge_created_inferior.
62 * inf-ttrace.c (inf_ttrace_him): Likewise.
63 * target.h (struct target_ops): Delete to_acknowledge_created_inferior
64 field.
65 (target_acknowledge_created_inferior): Delete.
66 * target.c (update_current_target): Remove setting of
67 to_acknowledge_created_inferior field. Do default value for that
68 field either.
69 (debug_to_acknowledge_created_inferior): Delete.
70 (setup_target_debug): Remove setting of
71 current_target.to_acknowledge_created_inferior.
72
73 2010-12-27 Pedro Alves <pedro@codesourcery.com>
74
75 gdb/
76 * breakpoint.c (breakpoint_restore_shadows): When looking for the
77 location with the lowest address that overlaps the memory range we
78 want to restore shadows for, account for multiple locations at the
79 same address.
80
81 2010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
82
83 Code cleanup - renaming.
84 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
85 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
86 variables.
87
88 2010-12-27 Kevin Buettner <kevinb@redhat.com>
89 Hui Zhu <teawater@gmail.com>
90
91 * mips-tedp.c (mips_register_name): Add comments.
92
93 2010-12-23 Yao Qi <yao@codesourcery.com>
94
95 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
96 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
97 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
98 (arm_analyze_load_stack_chk_guard): New.
99 (arm_skip_stack_protector): New.
100 (arm_skip_prologue): Adjust post_prologue_pc by
101 arm_skip_stack_protector.
102
103
104 2010-12-23 Yao Qi <yao@codesourcery.com>
105
106 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
107 set_gdbarch_deprecated_fp_regnum.
108
109 2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
110
111 * inferior.c (remove_inferior_command): Don't remove an active inferior.
112 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
113
114 2010-12-21 Tom Tromey <tromey@redhat.com>
115
116 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
117
118 2010-12-20 Yao Qi <yao@codesourcery.com>
119
120 * arm-tdep.c (arm_register_reggroup_p): New.
121 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
122 register_reggroup_p.
123
124 2010-12-20 Yao Qi <yao@codesourcery.com>
125
126 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
127 * features/arm-with-iwmmxt.c: Regenerate.
128 * features/arm-with-neon.c: Regenerate.
129 * features/arm-with-vfpv2.c: Regenerate.
130 * features/arm-with-vfpv3.c: Regenerate.
131
132 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
133
134 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
135 (get_other_inferior): New.
136
137 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
138
139 * python/py-progspace.c (py_free_pspace): Obtain arch another
140 way to avoid dereferencing a null pointer.
141
142 2010-12-17 Michael Snyder <msnyder@vmware.com>
143
144 * utils.c (do_my_cleanups): Comment fix-up.
145
146 2010-12-17 Kevin Buettner <kevinb@redhat.com>
147
148 * mips-tdep.c (make_mips16_addr): New function.
149 (mips_elf_make_msymbol_special): Don't set the low bit in the
150 symbol's address.
151 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
152 indicating mips16 address, if present.
153 (mips_write_pc): Set bit indicating mips16 address when in a mips16
154 function.
155 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
156 but for each function pointer argument to inferior function call.
157
158 2010-12-17 Tom Tromey <tromey@redhat.com>
159
160 * psympriv.h (struct partial_symtab) <readin>: Move field
161 earlier.
162
163 2010-12-16 Kevin Buettner <kevinb@redhat.com>
164
165 * mips-tdep.c (mips_convert_register_float_case_p)
166 (mips_convert_register_gpreg_case_p): New functions.
167 (mips_convert_register_p): Invoke new functions above.
168 (mips_register_to_value): Add case for fetching value shorter
169 than 64 bits from a 64-bit register.
170 (mips_value_to_register): Add case for storing value shorter
171 than 64 bits into a 64-bit register.
172
173 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
174
175 * python/py-value.c (value_object_type) <tp_flags>: Add
176 Py_TPFLAGS_BASETYPE.
177
178 2010-12-16 Mike Frysinger <vapier@gentoo.org>
179
180 * NEWS: Mention new sim --map-info flag.
181
182 2010-12-15 Doug Evans <dje@google.com>
183
184 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
185 "save gdb-index" command.
186
187 2010-12-15 Tom Tromey <tromey@redhat.com>
188
189 * infrun.c (save_infcall_control_state): Handle the
190 exception-resume breakpoint.
191 (restore_infcall_control_state): Likewise.
192 (discard_infcall_control_state): Likewise.
193
194 2010-12-15 Kevin Buettner <kevinb@redhat.com>
195
196 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
197 cooked values that are being transferred to 64-bit raw registers.
198 (mips_pseudo_register_read): Revise to preserve symmetry with
199 mips_pseudo_register_write().
200
201 2010-12-15 Greg Watson <g.watson@computer.org>
202
203 * f-exp.y (yylex): Check entire token against keywords.
204
205 2010-12-15 Doug Evans <dje@google.com>
206
207 Rename "maint set python auto-load" to "set auto-load-scripts".
208 * NEWS: Mention it.
209 * python/py-auto-load.c (auto_load_scripts): Renamed from
210 gdbpy_auto_load.
211 (load_auto_scripts_for_objfile): Update.
212 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
213 "set auto-load-scripts".
214
215 2010-12-14 Kevin Buettner <kevinb@redhat.com>
216
217 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
218 than unsigned, values in registers.
219
220 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
221
222 * valops.c (value_one): Use get_array_bounds to compute the number
223 of array elements instead of dividing the length of the array by the
224 length of the element types.
225 * valarith.c (value_complement, value_neg): Likewise.
226
227 2010-12-14 Joel Brobecker <brobecker@adacore.com>
228
229 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
230 and __fp_scr respectively throughout.
231 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
232 Python using GCC on IRIX.
233 * configure: Regenerate.
234
235 2010-12-13 Kevin Buettner <kevinb@redhat.com>
236
237 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
238 when attaching, on the names in bkpt_names: _start, __start, and
239 main.
240
241 2010-12-12 Stan Shebs <stan@codesourcery.com>
242
243 * value.c (value_of_internalvar): Add case for trace state
244 variables.
245
246 2010-12-12 Doug Evans <dje@google.com>
247
248 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
249 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
250 section. Delete members lines full_names. Rename read_lines to
251 no_file_data.
252 (quick_file_names): New struct.
253 (hash_file_name_entry, eq_file_name_entry): New functions.
254 (delete_file_name_entry, create_quick_file_names_table): New functions.
255 (dwarf2_read_index): Initialize quick_file_names_table.
256 (dw2_get_file_names): Renamed from dw2_require_line_header.
257 Return pointer to quick_file_names entry. All callers updated.
258 (dw2_get_real_path): Renamed from dw2_require_full_path.
259 Replace per_cu arg with pointer to quick_file_names entry.
260 All callers updated.
261 (dw2_free_cached_file_names): New function.
262 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
263 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
264 the OBJF_READNOW case.
265 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
266
267 2010-12-12 Mark Kettenis <kettenis@gnu.org>
268
269 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
270 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
271
272 2010-12-12 Mark Kettenis <kettenis@gnu.org>
273
274 * sparc-tdep.c: Fix typo in comment.
275
276 2010-12-10 Doug Evans <dje@google.com>
277
278 * dwarf2read.c: Whitespace cleanup, plus comment additions.
279 No code changes.
280
281 2010-12-10 Tom Tromey <tromey@redhat.com>
282
283 * NEWS: Document exception-handling change.
284
285 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
286
287 * mi/mi-parse.c (mi_parse): Wrong error message.
288
289 2010-12-09 Doug Evans <dje@google.com>
290
291 * symfile.h (quick_symbol_functions): Clarify usage of
292 map_symbol_filenames.
293
294 2010-12-09 Tom Tromey <tromey@redhat.com>
295
296 * mi/mi-parse.h (mi_parse): Update.
297 * mi/mi-parse.c (mi_parse_cleanup): New function.
298 (mi_parse): Add 'token' argument. Throw exception on error.
299 * mi/mi-main.c (mi_print_exception): New function.
300 (mi_execute_command): Use mi_print_exception. Catch exceptions
301 from mi_parse.
302
303 2010-12-09 Tom Tromey <tromey@redhat.com>
304
305 PR c++/9593:
306 * thread.c (clear_thread_inferior_resources): Call
307 delete_longjmp_breakpoint.
308 * infrun.c (handle_inferior_event): Handle exception breakpoints.
309 (handle_inferior_event): Likewise.
310 (insert_exception_resume_breakpoint): New function.
311 (check_exception_resume): Likewise.
312 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
313 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
314 (step_1): Set thread's initiating frame.
315 (until_next_continuation): New function.
316 (until_next_command): Support exception breakpoints.
317 (finish_command_continuation): Delete longjmp breakpoint.
318 (finish_forward): Support exception breakpoints.
319 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
320 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
321 bp_exception_master>: New constants.
322 (struct bpstat_what) <is_longjmp>: New field.
323 (set_longjmp_breakpoint): Update.
324 * breakpoint.c (create_exception_master_breakpoint): New function.
325 (update_breakpoints_after_exec): Handle bp_exception_master. Call
326 create_exception_master_breakpoint.
327 (print_it_typical): Handle bp_exception_master, bp_exception.
328 (bpstat_stop_status): Handle bp_exception_master.
329 (bpstat_what): Handle bp_exception_master, bp_exception,
330 bp_exception_resume.
331 (bptype_string): Likewise.
332 (print_one_breakpoint_location): Likewise.
333 (allocate_bp_location): Likewise.
334 (set_longjmp_breakpoint): Handle exception breakpoints. Change
335 interface.
336 (delete_longjmp_breakpoint): Handle exception breakpoints.
337 (mention): Likewise.
338 (struct until_break_command_continuation_args) <thread_num>: New
339 field.
340 (until_break_command_continuation): Call
341 delete_longjmp_breakpoint.
342 (until_break_command): Support exception breakpoints.
343 (delete_command): Likewise.
344 (breakpoint_re_set_one): Likewise.
345 (breakpoint_re_set): Likewise.
346
347 2010-12-08 Doug Evans <dje@google.com>
348
349 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
350
351 * gdbtypes.c (check_typedef): Tweak comment.
352
353 PR symtab/12302
354 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
355 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
356 (struct addrmap_index_data): New struct.
357 (add_address_entry): Remove arg `pst', new args `start', `end'.
358 (add_address_entry_worker, write_address_map): New functions.
359 (write_psymtabs_to_index): Address table generation moved to
360 write_address_map. Build a table mapping psymtab to CU index
361 to pass to it.
362
363 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
364 name to perror.
365
366 * symfile.h (quick_symbol_functions): Clarify usage of
367 expand_symtabs_with_filename.
368 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
369 comp units, ignore type units.
370
371 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
372
373 2010-12-07 Doug Evans <dje@google.com>
374
375 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
376 gdb_realpath.
377
378 PR python/12227
379 * NEWS: Mention -data-directory.
380 * main.c (captured_main): Recognize -data-directory.
381
382 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
383
384 * mi/mi-parse.c (mi_parse): Missing else.
385
386 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
387
388 * configure.tgt: Accept microblaze*-*-linux* for linux target
389 and microblaze*-*-* for as target.
390
391 2010-12-02 Keith Seitz <keiths@redhat.com>
392
393 * linespec.c (find_method): Move name canonicalization outside
394 the loop.
395 Be paranoid and use a cleanup.
396
397 2010-12-01 Doug Evans <dje@google.com>
398
399 * dwarf2read.c (save_gdb_index_command): Add comment.
400
401 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
402
403 * valops.c (value_assign): Returned value is never lazy. If a
404 C++ class type is returned, fix incorrect enclosing type / embedded
405 offset. If internal variable is returned, allocate new internalvar
406 value using value_of_internalvar.
407
408 * NEWS: Document changes in behavior of "print x = 0" and similar
409 expressions.
410
411 2010-11-29 Doug Evans <dje@google.com>
412
413 * python/lib/gdb/printing.py (register_pretty_printer): Change
414 printer-name:subprinter-name to printer-name;subprinter-name.
415 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
416 Ditto.
417 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
418
419 2010-11-29 Tom Tromey <tromey@redhat.com>
420
421 * opencl-lang.c (lval_func_check_synthetic_pointer): New
422 function.
423 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
424 New fields.
425 (value_bits_synthetic_pointer): Declare.
426 * value.c (value_bits_synthetic_pointer): New function.
427 * valprint.c (valprint_check_validity): Handle synthetic
428 pointers.
429 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
430 * valarith.c (value_ptradd): Use set_value_component_location.
431 * p-valprint.c (pascal_object_print_value_fields): Handle
432 synthetic pointers.
433 * jv-valprint.c (java_print_value_fields): Handle synthetic
434 pointers.
435 * dwarf2read.c (dwarf_stack_op_name): Add
436 DW_OP_GNU_implicit_pointer.
437 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
438 arguments. Handle location lists.
439 (fill_in_loclist_baton): New function.
440 (dwarf2_symbol_mark_computed): Use it.
441 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
442 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
443 arguments.
444 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
445 find_location_expression. No longer static. Update all callers.
446 (dwarf_expr_frame_pc): New function.
447 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
448 all callers.
449 (struct piece_closure) <per_cu>: New field.
450 (allocate_piece_closure): Add per_cu argument.
451 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
452 (check_pieced_value_bits): Remove validity argument, add check_for
453 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
454 (check_pieced_value_validity, check_pieced_value_invalid):
455 Update.
456 (check_pieced_synthetic_pointer): New function.
457 (get_frame_address_in_block_wrapper): New function.
458 (indirect_pieced_value): New function.
459 (pieced_value_funcs): Update.
460 (invalid_synthetic_pointer): New function.
461 (dwarf2_evaluate_loc_desc_full): Rename from
462 dwarf2_evaluate_loc_desc. Add byte_offset argument.
463 (dwarf2_evaluate_loc_desc): Rewrite.
464 (dwarf2_loc_desc_needs_frame): Set new field on context.
465 (get_ax_pc): New function.
466 (disassemble_dwarf_expression): Handle
467 DW_OP_GNU_implicit_pointer.
468 * dwarf2expr.h (enum dwarf_value_location)
469 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
470 (struct dwarf_expr_context) <get_frame_pc>: New field.
471 (struct dwarf_expr_piece) <v.ptr>: New field.
472 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
473 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
474 * dwarf2-frame.c (no_get_frame_pc): New function.
475 (execute_stack_op): Set new field on context.
476 * cp-valprint.c (cp_print_value_fields): Handle synthetic
477 pointers.
478
479 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
480
481 PR python/12199
482
483 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
484
485 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
486
487 Fix step_resume_breakpoint unsaved during an infcall.
488 * gdbthread.h (struct thread_control_state): Move here field
489 step_resume_breakpoint ...
490 (struct thread_info): ... from here.
491 * infrun.c (save_infcall_control_state): Reset
492 control.step_resume_breakpoint to NULL.
493 (restore_infcall_control_state, discard_infcall_control_state): Delete
494 control.step_resume_breakpoint.
495 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
496 the moved field.
497
498 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
499
500 Rename and move inferior_thread_state and inferior_status.
501 * gdbthread.h (struct thread_control_state): New struct, move fields
502 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
503 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
504 stop_step and stop_bpstat here from struct thread_info.
505 (struct thread_suspend_state): New struct, move field stop_signal here
506 from struct thread_info.
507 (struct thread_info): Move the fields above from this struct.
508 * inferior.h: Move the inferior_thread_state and inferior_status
509 declarations comment to their definitions at infrun.c.
510 (struct inferior_control_state): New struct, move field stop_soon from
511 struct inferior here.
512 (struct inferior_suspend_state): New empty struct.
513 (struct inferior): New fields control and suspend. Move out field
514 stop_soon.
515 * infrun.c (struct inferior_thread_state): Rename to ...
516 (infcall_suspend_state): ... here. Replace field stop_signal by
517 fields thread_suspend and inferior_suspend.
518 (save_inferior_thread_state): Rename to ...
519 (save_infcall_suspend_state): ... here. New variable inf. Update the
520 code for new fields.
521 (restore_inferior_thread_state): Rename to ...
522 (restore_infcall_suspend_state): ... here. New variable inf. Update
523 the code for new fields.
524 (do_restore_inferior_thread_state_cleanup): Rename to ...
525 (do_restore_infcall_suspend_state_cleanup): ... here.
526 (make_cleanup_restore_inferior_thread_state): Rename to ...
527 (make_cleanup_restore_infcall_suspend_state): ... here.
528 (discard_inferior_thread_state): Rename to ...
529 (discard_infcall_suspend_state): ... here.
530 (get_inferior_thread_state_regcache): Rename to ...
531 (get_infcall_suspend_state_regcache): ... here.
532 (struct inferior_status): Rename to ...
533 (struct infcall_control_state): ... here. Replace fields
534 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
535 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
536 stop_step, stop_bpstat and stop_soon by fields thread_control and
537 inferior_control.
538 (save_inferior_status): Rename to ...
539 (save_infcall_control_state): ... here. Update the code for new
540 fields.
541 (restore_inferior_status): Rename to ...
542 (restore_infcall_control_state): ... here. Update the code for new
543 fields.
544 (do_restore_inferior_status_cleanup): Rename to ...
545 (do_restore_infcall_control_state_cleanup): ... here.
546 (make_cleanup_restore_inferior_status): Rename to ...
547 (make_cleanup_restore_infcall_control_state): ... here.
548 (discard_inferior_status): Rename to ...
549 (discard_infcall_control_state): ... here.
550 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
551 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
552 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
553 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
554 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
555 references to the moved fields and renamed functions.
556
557 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
558
559 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
560 the comment.
561 (save_inferior_thread_state): Reset tp->stop_signal.
562
563 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
564
565 * infcall.c (call_function_by_hand): Remove variable
566 caller_state_cleanup.
567
568 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
569
570 PR breakpoints/12217
571
572 * breakpoint.c (is_marker_spec): Check for NULL.
573
574 2010-11-25 Pedro Alves <pedro@codesourcery.com>
575
576 * breakpoint.h: No longer include python.h or python-internal.h.
577 (struct breakpoint_object): Forward declare.
578 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
579 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
580 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
581 PyObject pointer.
582 (gdbpy_breakpoint_created): Remove casts around py_bp_object
583 accesses.
584
585 2010-11-24 Joel Brobecker <brobecker@adacore.com>
586
587 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
588 only if HAVE_ELF is defined.
589
590 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
591
592 Code cleanup.
593 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
594 (save_inferior_status) <stepping_over_breakpoint>
595 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
596 trap_expected.
597 (struct inferior_status) <step_resume_break_address>: Remove.
598
599 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
600
601 Code cleanup.
602 * infrun.c (struct inferior_status, save_inferior_status)
603 (restore_inferior_status): Group and reorder the fields, comment their
604 groups.
605
606 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
607
608 Code cleanup.
609 * dictionary.c
610 (struct dict_vector) <iter_match_first, iter_match_next>
611 (iter_match_first_hashed, iter_match_next_hashed)
612 (iter_match_first_linear, iter_match_next_linear)
613 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
614 (iter_match_next_hashed, iter_match_first_linear)
615 (iter_match_next_linear): Use symbol_compare_ftype.
616 * dictionary.h: Include symfile.h.
617 (dict_iter_match_first, dict_iter_match_next): Use
618 symbol_compare_ftype.
619 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
620 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
621 (map_matching_symbols_psymtab): Likewise.
622 * symfile.h (symbol_compare_ftype): New typedef.
623 (struct quick_symbol_functions) <map_matching_symbols): Use
624 symbol_compare_ftype.
625
626 2010-11-23 Tom Tromey <tromey@redhat.com>
627
628 * configure: Rebuild.
629 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
630
631 2010-11-19 Tom Tromey <tromey@redhat.com>
632
633 * Makefile.in (SUBDIRS): Add doc.
634 * configure: Rebuild.
635 * configure.ac: Don't configure in doc. Create doc/Makefile.
636
637 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
638
639 PR python/12212
640
641 * python/py-inferior.c (find_thread_object): Check if PIDGET
642 returns 0.
643
644 010-11-22 Joel Brobecker <brobecker@adacore.com>
645
646 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
647
648 2010-11-22 Joel Brobecker <brobecker@adacore.com>
649
650 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
651 Return the original type if the main type portions match rather
652 than when the type themselves match.
653
654 2010-11-22 Joel Brobecker <brobecker@adacore.com>
655
656 * ada-lang.c (ada_template_to_fixed_record_type_1):
657 For dynamic fields, check the field size against the maximum
658 object size.
659
660 2010-11-22 Joel Brobecker <brobecker@adacore.com>
661
662 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
663 function.
664 (mips_irix_n32_stack_tramp_frame): New static global.
665 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
666 list of unwinder.
667
668 2010-11-22 Jerome Guitton <guitton@adacore.com>
669
670 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
671 ATCB symbols.
672
673 2010-11-22 Joel Brobecker <brobecker@adacore.com>
674
675 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
676 if type1 is a typedef.
677
678 2010-11-22 Joel Brobecker <brobecker@adacore.com>
679
680 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
681 "_finalizer" to the list.
682
683 2010-11-22 Joel Brobecker <brobecker@adacore.com>
684
685 * symfile.c: Remove all "#if 0"/"#endif" blocks.
686
687 2010-11-22 Joel Brobecker <brobecker@adacore.com>
688
689 * symfile.c: Add missing second space after period in various comments.
690
691 2010-11-22 Joel Brobecker <brobecker@adacore.com>
692
693 * ada-typeprint.c (print_array_type): Fix formatting in comment.
694 (print_selected_record_field_types): Fix formatting in function
695 documentation.
696
697 2010-11-22 Joel Brobecker <brobecker@adacore.com>
698
699 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
700 in name of "show ravenscar" prefix command name.
701
702 2010-11-22 Joel Brobecker <brobecker@adacore.com>
703
704 * ravenscar-thread.c (show_ravenscar_task_switching_command):
705 Add missing '\n' in output.
706
707 2010-11-22 Joel Brobecker <brobecker@adacore.com>
708
709 * ravenscar-thread.c (running_thread_name): Change value.
710 (read_thread_id): Remove advance declaration.
711 (get_running_thread_msymbol): New function.
712 (has_ravenscar_runtime): Use get_running_thread_msymbol to
713 compute msym_running_thread.
714 (get_running_thread_id): Renames read_thread_id. Slight modifications
715 to not take any argument anymore, using get_running_thread_msymbol
716 to determine which symbol to use instead.
717 (ravenscar_running_thread): Use get_running_thread_id instead of
718 read_thread_id.
719
720 2010-11-22 Joel Brobecker <brobecker@adacore.com>
721
722 * ravenscar-sparc-thread.c (supply_register_at_address):
723 Fix passing of buf in call to regcache_raw_supply.
724
725 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
726
727 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
728
729 2010-11-22 Tom Tromey <tromey@redhat.com>
730
731 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
732
733 2010-11-19 Keith Seitz <keiths@redhat.com>
734
735 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
736 Remove extraneous '/' after $(DESTDIR).
737 (PYTHON_INSTALL_DIR): Likewise.
738
739 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
740
741 Fix stale memory references.
742 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
743 xfree, new comment.
744
745 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
746 Tom Tromey <tromey@redhat.com>
747
748 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
749 (.PHONY): Remove for .y outputs.
750
751 2010-11-19 Will Drewry <wad@google.com>
752 Tavis Ormandy <taviso@google.com>
753 Jan Kratochvil <jan.kratochvil@redhat.com>
754
755 * dwarf2read.c (decode_locdesc): Enforce location description stack
756 boundaries.
757
758 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
759
760 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
761 instruction is found.
762
763 2010-11-17 Tom Tromey <tromey@redhat.com>
764
765 * value.c (value_entirely_optimized_out): Check the
766 'check_any_valid' field.
767
768 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
769
770 * ada-lang.c (modify_general_field): Remove.
771 (make_array_descriptor): Replace all modify_general_field calls by
772 modify_field.
773 * value.c (modify_field): Update comment. New variable bytesize.
774 Normalize BITPOS. Initialize BYTESIZE, use it.
775
776 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
777
778 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
779 elements after xfree.
780
781 2010-11-16 Tom Tromey <tromey@redhat.com>
782
783 * gdb-add-index.sh: Really remove.
784
785 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
786
787 Code cleanup.
788 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
789 (init_one_comp_unit): ... this one.
790 (prepare_one_comp_unit): New prototype.
791 (dw2_require_line_header, process_psymtab_comp_unit): Use
792 init_one_comp_unit.
793 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
794 (load_partial_comp_unit): Remove variable attr. Use
795 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
796 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
797 prepare_one_comp_unit.
798 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
799 Use prepare_one_comp_unit.
800 (alloc_one_comp_unit): Rename to ...
801 (init_one_comp_unit): ... here and remove there calloc, new parameter
802 cu.
803 (prepare_one_comp_unit): New function.
804
805 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
806
807 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
808 possible used of uninitialized variable.
809
810 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
811
812 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
813 (rs6000_gdbarch_init): Call it.
814
815 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
816
817 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
818 instructions if debugging an E500 binary.
819
820 2010-11-12 Tom Tromey <tromey@redhat.com>
821
822 * varobj.c (value_get_print_value): Rearrange. Pass stream to
823 apply_varobj_pretty_printer.
824 * c-lang.c: Include exceptions.h.
825 (c_get_string): Throw MEMORY_ERROR when appropriate.
826 * python/py-prettyprint.c (enum string_repr_result): New.
827 (print_stack_unless_memory_error): New function.
828 (print_string_repr): Change return type. Use
829 print_stack_unless_memory_error.
830 (print_children): Use print_stack_unless_memory_error.
831 (apply_val_pretty_printer): Update. Don't print children if
832 string representation threw an exception.
833 (apply_varobj_pretty_printer): Add 'stream' argument. Use
834 print_stack_unless_memory_error.
835 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
836 globals.
837 (_initialize_python): Initialize them.
838 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
839 gdbpy_convert_exception.
840 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
841 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
842 (gdbpy_convert_exception): Declare.
843 (apply_varobj_pretty_printer): Update.
844 * python/py-utils.c (gdbpy_convert_exception): New function.
845
846 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
847
848 * mi/mi-main.c (mi_cmd_target_detach): Accept new
849 thread-group id format.
850
851 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
852
853 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
854
855 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
856
857 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
858 NULL.
859 (BPPY_SET_REQUIRE_VALID): Ditto.
860 (bpnum_is_valid): Delete function.
861 (bppy_get_visibility): New function.
862 (bppy_new): Parse for, and validate internal keyword. Pass
863 internal keyword to breakpoint or watchpoint functions.
864 (build_bp_list): New function.
865 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
866 iterate_over_breakpoints.
867 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
868 look-aside vector.
869 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
870 to internal breakpoint chain.
871
872 * breakpoint.c (set_breakpoint_number): New function.
873 (breakpoint_1): Check if breakpoint number is more than zero.
874 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
875 (create_breakpoint_sal): Take a new parameter called internal.
876 Call set_breakpoint_number with internal parameter. Do not
877 mention internal breakpoints. All callers updated.
878 (create_breakpoint): Ditto.
879 (create_breakpoints_sal): Ditto.
880 (watch_command_1): Ditto.
881 (watch_command_wrapper): Take a new parameter called internal.
882 All callers updated.
883 (rwatch_command_wrapper): Ditto.
884 (awatch_command_wrapper): Ditto.
885 (save_breakpoints): Update breakpoint save condition check.
886 (iterate_over_breakpoints): New function.
887 * breakpoint.h: Add conditional python includes. Add py_bp_object
888 and comment to struct breakpoint. Update all callers.
889 * defs.h: Add PyObject definition for GDB builds without Python.
890
891 2010-11-10 Doug Evans <dje@google.com>
892
893 * python/lib/gdb/command/pretty_printers.py
894 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
895
896 * value.c (set_value_enclosing_type): Renamed from
897 value_change_enclosing_type. All callers updated.
898 * value.h (set_value_enclosing_type): Update.
899 * valops.c (value_full_object): Always return a copy if we need to
900 make changes to the input value.
901
902 2010-11-09 Pedro Alves <pedro@codesourcery.com>
903
904 * breakpoint.c (watch_command_1): Get a pointer of the lazy
905 version of the expression's value, even if reading the value from
906 memory fails. When creating a -location watchpoint, get the
907 value's address from the lazy value pointer.
908
909 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
910
911 * infrun.c (restore_inferior_thread_state): Use
912 discard_inferior_thread_state to free the data.
913 (discard_inferior_thread_state): xfree also siginfo_data.
914
915 2010-11-05 Doug Evans <dje@google.com>
916
917 Make gdb.parameter("directories") work.
918 New command "set directories".
919 * NEWS: Document them.
920 * source.c (set_directories_command): New function.
921 (show_directories_1): Renamed from show_directories.
922 All callers updated.
923 (show_directories_command): New function.
924 (_initialize_source): Install "directories" as a set/show
925 variable instead of just a show command.
926
927 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
928
929 * NEWS: Mention OpenCL C language support.
930 * Makefile.in (SFILES): Add opencl-lang.c.
931 (COMMON_OBS): Add opencl-lang.o.
932 * opencl-lang.c: New File
933 * defs.h (enum language): Add language_opencl.
934 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
935 IBM XL C OpenCL compiler.
936 * c-lang.h: Include "parser-defs.h".
937 (evaluate_subexp_c): Declare.
938 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
939 (c_op_print_tab): Add declaration.
940 * eval.c (binop_promote): Handle language_opencl.
941 * c-exp.y: Lookup the primitive types instead of referring to the
942 builtins.
943
944 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
945
946 Fix configure --enable-plugins --without-python.
947 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
948 * configure: Regenerate.
949
950 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
951
952 * solib.c (solib_read_symbols): Call exception_fprintf even without
953 FROM_TTY. Print also so->so_name.
954
955 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
956
957 * gdbtypes.h (struct rank): Created subrank.
958 * gdbtypes.c: Initialized subrank for all
959 'BADNESS' constants.
960 (distance_to_ancestor): New function.
961 (is_ancestor): Use distance_to_ancestor.
962 (is_public_ancestor): Ditto.
963 (sum_ranks): Handle subrank.
964 (compare_ranks): Ditto.
965 (rank_one_type): Subrank base conversions.
966
967 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
968
969 * gdbtypes.h: Create struct rank.
970 Convert all 'BADNESS' macros to const struct rank declarations.
971 (sum_ranks): New function.
972 (compare_ranks): New function.
973 * valops.c (find_oload_champ): Updated.
974 (classify_oload_match): Use compare_ranks.
975 Improved comments.
976 (compare_parameters): Use compare_ranks.
977 * gdbtypes.c: Initialize 'BADNESS' constants.
978 (sum_ranks): New function.
979 (compare_ranks): New function.
980 (compare_badness): Use compare_ranks.
981 (rank_function): Use global constants instead of literals.
982 (rank_one_type): Ditto.
983 Return struct rank.
984 Use sum_ranks.
985
986 2010-11-04 Doug Evans <dje@google.com>
987
988 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
989 (find_pretty_printer): Fix comments.
990
991 2010-11-04 Hui Zhu <teawater@gmail.com>
992
993 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
994
995 2010-11-03 Joel Brobecker <brobecker@adacore.com>
996
997 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
998 and `len' declaration and computation inside block where they
999 are being used.
1000
1001 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1002
1003 * valprint.c (val_print_array_elements): Put back handling of
1004 empty arrays.
1005
1006 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1007
1008 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
1009 DIE and set the length of the type.
1010 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
1011 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
1012 return 0 if the corresponding bounds of the type are undefined.
1013 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
1014 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
1015 (val_print_array_elements): Use get_array_bounds to compute the number
1016 of array elements instead of dividing the length of the array by the
1017 length of the element types.
1018 * valarith.c (vector_binop): Likewise.
1019 * valops.c (value_cast): Likewise.
1020 * c-valprint.c (c_val_print): Likewise.
1021 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1022
1023 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1024
1025 * valarith.c (value_pos, value_neg, value_complement): Handle
1026 vector types.
1027 * valops.c (value_one): Likewise.
1028
1029 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1030
1031 * value.h (value_non_lval): Declare.
1032 * value.c (value_non_lval): New function.
1033 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
1034 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
1035 non-lvalue.
1036
1037 2010-11-02 Doug Evans <dje@google.com>
1038
1039 New python module gdb.printing, and new commands info pretty-printer,
1040 enable pretty-printer, disable pretty-printer.
1041 * NEWS: Mention them.
1042 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
1043 gdb/command/__init__.py, gdb/command/pretty_printers.py.
1044 * python/lib/gdb/__init__.py: Install pretty-printer commands.
1045 * python/lib/gdb/printing.py: New file.
1046 * python/lib/gdb/command/__init__.py: New file.
1047 * python/lib/gdb/command/pretty_printers.py: New file.
1048
1049 2010-11-02 Tom Tromey <tromey@redhat.com>
1050
1051 * NEWS: Mention Guile removal.
1052 * defs.h (enum language) <language_scm>: Remove.
1053 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
1054 scm-valprint.c.
1055 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
1056 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
1057 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
1058 Remove.
1059
1060 2010-11-02 Doug Evans <dje@google.com>
1061
1062 * top.c: #include "python/python.h".
1063 (gdb_init): Add a comment regarding initialize_all_files.
1064 Call finish_python_initialization at the end.
1065 * python/python.h (finish_python_initialization): Declare.
1066 * python/python.c (finish_python_initialization): New function.
1067 (_initialize_python): Move python-implemented initialization there
1068 and call it.
1069 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
1070
1071 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1072
1073 Revert:
1074 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1075 Pedro Alves <pedro@codesourcery.com>
1076 * gdbthread.h (currently_stepping): New declaration.
1077 * infrun.c (currently_stepping): Remove the forward declaration.
1078 (currently_stepping): Make it global.
1079 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1080 variables tp and step, initialized them. Pass STEP to to_resume.
1081 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1082 * remote.c (currently_stepping_callback): New.
1083 (remote_vcont_resume)
1084 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1085 New variable tp. Call currently_stepping_callback and step such
1086 thread.
1087
1088 2010-11-01 Hui Zhu <teawater@gmail.com>
1089
1090 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1091
1092 2010-10-28 Hui Zhu <teawater@gmail.com>
1093
1094 * tracepoint.c (trace_save): Change utp->actions to
1095 utp->step_actions.
1096
1097 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1098
1099 * (_FILE_OFFSET_BITS): Fix typo in comment.
1100
1101 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1102
1103 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1104 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1105 (PyEval_ReleaseLock): Define as nothing.
1106
1107 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1108
1109 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1110 by call to FILENAME_CMP.
1111
1112 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1113
1114 * dictionary.c (dict_hash): Move assignment out of if condition.
1115
1116 2010-10-22 Jie Zhang <jie@codesourcery.com>
1117
1118 * Makefile.in (install): Remove dependency of install-only and
1119 recursively invoke make for install-only.
1120 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1121 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1122
1123 2010-10-20 Hui Zhu <teawater@gmail.com>
1124
1125 * tracepoint.c (tfile_get_traceframe_address): Call
1126 extract_signed_integer.
1127 (tfile_trace_find): Call extract_signed_integer and
1128 extract_unsigned_integer. Change data_size to unsigned int.
1129 (tfile_fetch_registers): Call extract_unsigned_integer.
1130 (tfile_xfer_partial): Ditto.
1131 (tfile_get_trace_state_variable_value): Call
1132 extract_signed_integer and extract_unsigned_integer.
1133
1134 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1135
1136 * remote.c (remote_get_threadlist): If we got empty
1137 response, bail out immediately, and don't emit any
1138 warnings.
1139
1140 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1141
1142 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1143 for "mov pc, REG" as well.
1144 (thumb_instruction_changes_pc): Likewise.
1145
1146 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1147
1148 PR C++/11500:
1149 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1150 * eval.c (evaluate_subexp_standard): Check for overload of
1151 'operator->'.
1152 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1153 (value_x_unop): Ditto.
1154 * valops.c: Include "exceptions.h".
1155 (find_overload_match): Throw NOT_FOUND_ERROR.
1156 (value_struct_elt): Ditto.
1157
1158 2010-10-19 Tom Tromey <tromey@redhat.com>
1159
1160 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1161
1162 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1163
1164 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1165 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1166 for conversion.
1167 Make all other conversions illegal.
1168
1169 2010-10-18 Doug Evans <dje@google.com>
1170
1171 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1172 assumptions of when this case happens. Print "<unnamed typedef>".
1173
1174 2010-10-18 Tom Tromey <tromey@redhat.com>
1175
1176 * valprint.c (val_print_string): Pass 'encoding' to
1177 LA_PRINT_STRING.
1178
1179 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1180
1181 Fix the `stopped language detection' testcase for gcc-4.5.
1182 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1183 * symfile.c (set_initial_language): Move variable filename to a more
1184 inner block. Prefer LANGUAGE_OF_MAIN.
1185 * symtab.c (language_of_main): New variable.
1186 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1187 * symtab.h (language_of_main): New declaration.
1188
1189 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1190 Pedro Alves <pedro@codesourcery.com>
1191
1192 * gdbthread.h (currently_stepping): New declaration.
1193 * infrun.c (currently_stepping): Remove the forward declaration.
1194 (currently_stepping): Make it global.
1195 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1196 variables tp and step, initialized them. Pass STEP to to_resume.
1197 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1198 * remote.c (currently_stepping_callback): New.
1199 (remote_vcont_resume)
1200 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1201 New variable tp. Call currently_stepping_callback and step such
1202 thread.
1203
1204 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1205
1206 * infrun.c (follow_exec): Replace symbol_file_add_main by
1207 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1208 breakpoint_re_set.
1209 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1210 clear_symtab_users.
1211 * objfiles.c (free_all_objfiles): Likewise.
1212 * remote-m32r-sdi.c (m32r_load): Likewise.
1213 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1214 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1215 clear_symtab_users with ADD_FLAGS.
1216 (reread_symbols): Use parameter 0 for clear_symtab_users.
1217 (clear_symtab_users): New parameter add_flags. Do not call
1218 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1219 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1220 * symtab.h (clear_symtab_users): New parameter add_flags.
1221
1222 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1223
1224 Fix GCC false warning.
1225 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1226
1227 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1228
1229 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1230 display of type of method arguments.
1231
1232 2010-10-15 Tom Tromey <tromey@redhat.com>
1233
1234 PR python/11948:
1235 * varobj.c (value_get_print_value): Use val_print_string to print
1236 lazy strings.
1237 * python/py-prettyprint.c (print_string_repr): Use
1238 val_print_string to print lazy strings. Fix cleanup logic.
1239 (print_children): Likewise.
1240 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1241 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1242 Change return type to 'void', add 'addr' argument.
1243 * value.h (val_print_string): Update.
1244 * valprint.c (val_print_string): Add 'encoding' argument.
1245 * printcmd.c (print_formatted): Update.
1246 * p-valprint.c (pascal_val_print): Update.
1247 * m2-valprint.c (print_unpacked_pointer): Update.
1248 (m2_print_array_contents): Likewise.
1249 * jv-valprint.c (java_value_print): Update.
1250 * f-valprint.c (f_val_print): Update.
1251 * c-valprint.c (c_val_print): Update.
1252 * auxv.c (fprint_target_auxv): Update.
1253
1254 2010-10-15 Doug Evans <dje@google.com>
1255 Jan Kratochvil <jan.kratochvil@redhat.com>
1256
1257 PR exp/12117
1258 * gdbtypes.c (check_typedef): Clean up function comment.
1259 Keep track of instance flags as we strip typedefs and create a new
1260 type to preserve them if necessary.
1261 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1262
1263 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1264
1265 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1266
1267 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1268
1269 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1270 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1271 to...
1272 (types_equal): ...here. And changed it as follows:
1273 Outside of typedefs type must be of the same TYPE_CODE.
1274 When compairing two pointers or references they are equal if their
1275 targets are equal.
1276 Correct pointer conversions.
1277
1278 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1279
1280 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1281 having fields without names.
1282
1283 2010-10-13 Tom Tromey <tromey@redhat.com>
1284
1285 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1286
1287 2010-10-13 Doug Evans <dje@google.com>
1288
1289 New python module gdb.types.
1290 * NEWS: Document it.
1291 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1292 * python/lib/gdb/types.py: New file.
1293
1294 * c-typeprint.c: Whitespace cleanup.
1295 (cp_type_print_method_args): Remove unnecessary forward decl.
1296 (cp_type_print_derivation_info): Ditto.
1297 (c_type_print_varspec_prefix): Mark as static at definition.
1298 (c_type_print_modifier): Fix arg descriptions.
1299
1300 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1301
1302 * python/py-breakpoint.c (bppy_set_condition): New comment.
1303 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1304 failed PyUnicode_Decode.
1305 (cmdpy_completer): Skip element for failed
1306 python_string_to_host_string.
1307 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1308 * python/py-frame.c (frapy_read_var): Extend the function comment.
1309 * python/py-function.c (fnpy_init): Return -1 on failed
1310 python_string_to_host_string.
1311 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1312 the function comment.
1313 (infpy_search_memory): Extend the function comment. Remove the
1314 PyErr_SetString call on already set error state.
1315 * python/py-param.c (set_parameter_value): Extend the function
1316 comment. Return -1 on failed python_string_to_host_string, twice.
1317 (set_attr): Extend the function comment.
1318 (compute_enum_values): Extend the function comment. New variable
1319 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1320 failed python_string_to_host_string.
1321 (get_doc_string): Call gdbpy_print_stack on failed
1322 python_string_to_host_string.
1323 (parmpy_init): Extend the function comment.
1324 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1325 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1326 failed python_string_to_host_string.
1327 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1328 (valpy_binop, valpy_richcompare): Extend the function comment.
1329 * python/python.c
1330 (struct python_env) <error_type, error_value, error_traceback>: New
1331 fields.
1332 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1333 (ensure_python_env): Call PyErr_Fetch.
1334 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1335 failed convert_value_from_python.
1336 (value_get_print_value): Call gdbpy_print_stack on failed
1337 python_string_to_target_python_string.
1338
1339 2010-10-12 Tom Tromey <tromey@redhat.com>
1340
1341 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1342
1343 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1344
1345 * gdbtypes.c (do_is_ancestor): New function.
1346 (is_ancestor): Use do_is_ancestor.
1347 (is_public_ancestor): Use do_is_ancestor.
1348
1349 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1350
1351 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1352
1353 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1354
1355 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1356
1357 2010-10-11 Doug Evans <dje@google.com>
1358
1359 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1360 the address space id too.
1361
1362 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1363
1364 Fix attaching to re-prelinked executables on ppc64.
1365 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1366 initialize it, try to adjust FILESZ field by it.
1367
1368 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1369
1370 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1371 messages if info_verbose.
1372
1373 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1374
1375 * valops.c (value_cast): Handle vector types.
1376 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1377
1378 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1379
1380 * arm-tdep.c (thumb_expand_immediate): New function.
1381 (thumb_instruction_changes_pc): Likewise.
1382 (thumb2_instruction_changes_pc): Likewise.
1383 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1384 prologue parsing. Improved support for optimized code.
1385 (thumb_scan_prologue): Do not reply on line-number information,
1386 use same heuristics as arm_scan_prologue insead.
1387 (skip_prologue_function): Accept functions
1388 "__tls_get_addr" and "__aeabi_read_tp".
1389
1390 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1391 Daniel Jacobowitz <dan@codesourcery.com>
1392
1393 * arm-tdep.c (thumb_in_function_epilogue_p)
1394 (arm_in_function_epilogue_p): New.
1395 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1396 gdbarch_in_function_epilogue_p callback.
1397
1398 2010-10-07 Doug Evans <dje@google.com>
1399
1400 * cc-with-index.sh (output_file): Default to a.out.
1401
1402 * dwarf2read.c (mapped_index): Rename member index_table to
1403 symbol_table and index_table_slots to symbol_table_slots.
1404 All uses updated.
1405 (create_symbol_hash_table): Renamed from create_index_table.
1406 All callers updated.
1407 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1408 (write_hash_table): Rename local index_table to symbol_hash_table.
1409
1410 * addrmap.h (addrmap_foreach_fn): New typedef.
1411 (addrmap_foreach): Declare.
1412 * addrmap.c (struct addrmap_funcs): New member foreach.
1413 (addrmap_foreach): New function.
1414 (addrmap_fixed_foreach): New function.
1415 (addrmap_fixed_funcs): Update.
1416 (struct mutable_foreach_data): New struct.
1417 (addrmap_mutable_foreach_worker): New function.
1418 (addrmap_mutable_foreach): New function.
1419 (addrmap_mutable_funcs): Update.
1420
1421 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1422
1423 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1424 more cases.
1425
1426 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1427
1428 * ada-lang.c (full_match): Declare.
1429 (ada_match_name): Rename to match_name (we should avoid prefixing static
1430 symbols with "ada_").
1431 (match_name): New name for ada_match_name.
1432 (struct ada_psym_data): Remove and replace with...
1433 (struct match_data): User data for map_matching_symbols.
1434 (ada_add_psyms): Remove.
1435 (aux_add_nonlocal_symbols): New function, used as callback for
1436 map_matching_symbols.
1437 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1438 symbols.
1439 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1440 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1441 Rework to use map_matching_symbols instead of map_ada_symtabs.
1442 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1443 * psymtab.c: Include dependency on dictionary.h.
1444 (match_partial_symbol): New function.
1445 (ada_lookup_partial_symbol): Remove.
1446 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1447 (map_matching_symbols_psymtab): New function.
1448 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1449 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1450
1451 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1452
1453 * ada-lang.c (ada_match_name): Use new API for wild_match.
1454 (wild_match): Change API to be consistent with that of strcmp_iw;
1455 return 0 for a match, and switch operand order.
1456 (full_match): New function.
1457 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1458 matching to allow use of hashing.
1459 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1460 iter_name_next ot iter_match_first, iter_match_next.
1461 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1462 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1463 (iter_name_first_linear): Replace with iter_match_first_linear.
1464 (iter_name_next_linear): Replace with iter_match_next_linear.
1465 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1466 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1467 (dict_iter_match_first): New function.
1468 (dict_iter_match_next): New function.
1469 (dict_hash): New function.
1470 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1471 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1472
1473 2010-10-06 Doug Evans <dje@google.com>
1474
1475 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1476
1477 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1478
1479 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1480
1481 2010-10-06 Doug Evans <dje@google.com>
1482
1483 * Makefile.in (REQUIRED_SUBDIRS): New var.
1484 (subdir_do): Verify required subdir Makefiles exist.
1485
1486 Create subdir data-directory.
1487 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1488 data-directory/Makefile.in.
1489 (SUBDIRS): Add data-directory.
1490 (all): Remove xml-syscall-copy dependency.
1491 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1492 stamp-syscalls.
1493 (xml-syscall-install): Moved to data-directory/Makefile.in as
1494 install-syscalls.
1495 (install-only): Remove xml-syscall-install dependency.
1496 (all-data-directory): New rule.
1497 (data-directory/Makefile): New rule.
1498 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1499 * configure: Regenerate.
1500 * data-directory/Makefile.in: New file.
1501 * python/lib/gdb/__init__.py: New file.
1502
1503 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1504
1505 Fix ARI warnings in advance_wild_match.
1506 * ada-lang.c (advance_wild_match): Delete local variable t2.
1507 Adjust code accordingly. Minor reformatting.
1508
1509 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1510
1511 * gdbtypes.h (struct main_type): Remove flag_nottext.
1512 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1513 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1514 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1515 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1516 of TYPE_FLAG_NOTTEXT.
1517 (init_type): Remove the initialization of the flag_nottext field.
1518 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1519 TYPE_FLAG_NOTTEXT.
1520 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1521
1522 2010-10-04 Doug Evans <dje@google.com>
1523
1524 * cc-with-index.sh: New file.
1525
1526 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1527 function comment.
1528 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1529 (create_cus_from_index, create_addrmap_from_index): Ditto.
1530 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1531 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1532 (dw2_do_expand_symtabs_matching): Ditto.
1533 (eq_strtab_entry, create_strtab, add_string): Ditto.
1534 (hash_strtab_entry): Ditto.
1535 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1536 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1537 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1538 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1539 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1540 (write_psymtabs_to_index): Ditto.
1541
1542 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1543
1544 * ada-lang.c: #include "value.h".
1545 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1546 arguments. Implement using value_allocate_space_in_inferior
1547 instead of allocating memory from the stack.
1548 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1549 calls to ensure_lval.
1550 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1551 calls to make_array_descriptor and ensure_lval.
1552 * ada-lang.h (ada_convert_actual): Update declaration.
1553 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1554
1555 2010-10-04 Doug Evans <dje@google.com>
1556
1557 * python/python.c (_initialize_python): Define new function
1558 GdbSetPythonDirectory in python. Use it to update sys.path and
1559 gdb.__path__.
1560
1561 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1562
1563 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1564 incorporating and generalizing print_record_field_types.
1565 (print_record_field_types): Change return value and update comment.
1566 Re-implement using print_selected_record_field_types.
1567 (print_choices): Print "=>" here.
1568 Handle case of unencoded variant branch.
1569 (print_variant_clauses): Reformat comment.
1570 Special-case unencoded variant branch.
1571
1572 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1573
1574 * ada-lang.c (wild_match): Reimplement.
1575 Change API to eliminate unused length argument, reverse arguments and
1576 make 0 the 'true' return value.
1577 (advance_wild_match): New auxiliary function for wild_match to improve
1578 readability.
1579 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1580 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1581 API for wild_match.
1582 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1583 wild_match.
1584 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1585
1586 2010-10-01 Doug Evans <dje@google.com>
1587
1588 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1589 for `save gdb-index' command.
1590
1591 2010-10-01 Tom Tromey <tromey@redhat.com>
1592
1593 * symfile.h (allocate_symtab): Update.
1594 * symfile.c (allocate_symtab): Make 'filename' const.
1595 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1596 (add_psymbol_to_list): Likewise.
1597 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1598 const.
1599 (add_psymbol_to_list): Update.
1600 * mdebugread.c (new_symtab): Make 'name' const.
1601 (psymtab_to_symtab_1): Make 'filename' const.
1602 * elfread.c (elfstab_offset_sections): Update.
1603 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1604 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1605 (psymtab_include_file_name): Update.
1606 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1607 * buildsym.h (start_subfile): Update.
1608 * buildsym.c (start_subfile): Make arguments const.
1609
1610 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1611
1612 * fork-child.c (breakup_args): Fix crash if shell forking is
1613 disabled at compile time.
1614
1615 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1616
1617 * ada-lang.c (desc_bounds): Add handling of the case where
1618 the P_BOUNDS field is a pointer to a stub.
1619 (desc_data_target_type): Same for P_ARRAY field.
1620 (ada_check_typedef): Strip the typedef layers from the type
1621 found by ada_find_any_type.
1622
1623 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1624
1625 * sparc-tdep.c (sparc32_frame_align): New function.
1626 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1627 * sparc64-tdep.c (sparc64_frame_align): New function.
1628 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1629
1630 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1631
1632 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1633
1634 2010-09-30 Tom Tromey <tromey@redhat.com>
1635
1636 * symfile.h (struct sym_fns) <next>: Remove.
1637 (add_symtab_fns): Update.
1638 * symfile.c (sym_fns_ptr): New typedef.
1639 (symtab_fns): Now a VEC.
1640 (add_symtab_fns): Update. Change argument type.
1641 (find_sym_fns): Update. Change return type.
1642 (get_symfile_segment_data): Update.
1643 * objfiles.h (struct objfile) <sf>: Now const.
1644 * somread.c (som_sym_fns): Now const. Update.
1645 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1646 * mipsread.c (ecoff_sym_fns): Now const. Update.
1647 * machoread.c (macho_sym_fns): Now const. Update.
1648 * elfread.c (elf_sym_fns): Now const. Update.
1649 (elf_sym_fns_gdb_index): Likewise.
1650 * dbxread.c (aout_sym_fns): Now const. Update.
1651 * coffread.c (coff_sym_fns): Now const. Update.
1652
1653 2010-09-30 Tom Tromey <tromey@redhat.com>
1654
1655 * value.c (value_primitive_field): Take 'offset' into account for
1656 packed field.
1657
1658 2010-09-30 Tom Tromey <tromey@redhat.com>
1659
1660 * completer.c (count_struct_fields): Handle anonymous structs and
1661 unions.
1662 (add_struct_fields): Likewise.
1663
1664 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1665
1666 Fix printing parameters of inlined functions.
1667 * ada-lang.c (is_known_support_routine)
1668 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1669 for find_frame_funname.
1670 * python/py-frame.c (frapy_name): Likewise.
1671 * stack.c (find_frame_funname): New parameter funcp. Update the
1672 function comment. Fill it in.
1673 (print_frame): New variable func. Initialize it by
1674 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1675 FUNC as the parameter of print_args_stub.
1676 * stack.h (find_frame_funname): New parameter funcp. Remove the
1677 function declaration comment.
1678
1679 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1680
1681 PR corefiles/12071.
1682 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1683 tp. Iterate INFERIOR_LIST and call target_has_execution.
1684
1685 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1686
1687 Fix GDB crash on inferior calls with self-referencing classes.
1688 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1689 member fields.
1690
1691 2010-09-29 Doug Evans <dje@google.com>
1692
1693 Workaround for gcc/45682.
1694 * dwarf2read.c (partial_die_info): New fields fixup_called,
1695 linkage_name.
1696 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1697 Move definition next to use. Use linkage_name to determine if class
1698 is in a namespace. All callers updated.
1699 (fixup_partial_die): Return early if already called.
1700 Set fixup_called when done.
1701 (guess_full_die_structure_name): New function.
1702 (determine_prefix): Call it for class/struct/union dies if c++ and
1703 .debug_types section is present and parent is DW_TAG_compile_unit.
1704
1705 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1706
1707 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1708 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1709
1710 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1711
1712 * NEWS: Announce Ravenscar Profile support.
1713
1714 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1715 Jerome Guitton <guitton@adacore.com>
1716
1717 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1718 New files.
1719 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1720 ravenscar-sparc-thread.o to gdb_target_obs.
1721
1722 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1723
1724 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1725 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1726
1727 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1728
1729 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1730 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1731 skip_main_prologue method.
1732
1733 2010-09-27 Tom Tromey <tromey@redhat.com>
1734
1735 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1736 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1737 Only emit a given psymbol once.
1738 (struct signatured_type_index_data) <psyms_seen>: New field.
1739 (write_one_signatured_type): Update.
1740 (cleanup_htab): New function.
1741 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1742 version to 3.
1743 (save_gdb_index_command): Update index documentation.
1744
1745 2010-09-27 Tom Tromey <tromey@redhat.com>
1746
1747 * bcache.c (expand_hash_table): Use hash_function, not hash.
1748
1749 2010-09-27 Tom Tromey <tromey@redhat.com>
1750
1751 * gdb_wchar.h: Change minimum libiconv to 0x108.
1752
1753 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1754
1755 Fix lost siginfo_t for inferior calls.
1756 * infrun.c
1757 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1758 (save_inferior_thread_state): New variables regcache, gdbarch and
1759 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1760 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1761 using REGCACHE.
1762 (restore_inferior_thread_state): New variables regcache and gdbarch.
1763 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1764 REGCACHE. Free also SIGINFO_DATA.
1765
1766 2010-09-24 Tom Tromey <tromey@redhat.com>
1767
1768 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1769 MAYBE_SWAPs.
1770 (dw2_map_symbol_names): Likewise.
1771
1772 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1773
1774 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1775 discard_cleanups do_cleanups.
1776
1777 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1778
1779 PR gdb/11842
1780
1781 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1782 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1783 si_code is < 0. Check for si_code == SI_TIMER before checking for
1784 si_code < 0.
1785
1786 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1787
1788 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1789
1790 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1791
1792 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1793 debugging a core file.
1794
1795 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1796
1797 Code cleanup.
1798 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1799 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1800 xfree.
1801 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1802 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1803 Remove.
1804 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1805 Remove the conditional.
1806 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1807
1808 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1809
1810 * main.c: Include objfiles.h.
1811 (captured_main): New variable objfile. Call
1812 load_auto_scripts_for_objfile for ALL_OBJFILES.
1813
1814 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1815
1816 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1817 DW_TAG_constant.
1818
1819 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1820
1821 * dwarf2read.c (scan_partial_symbols): Add handling of
1822 DW_TAG_constant DIEs.
1823 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1824
1825 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1826
1827 * configure.ac: Add support for --enable-gdbserver.
1828 * configure: Regenerate.
1829
1830 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1831
1832 PR C++/12028
1833 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1834 'old_cleanups' reassignment.
1835
1836 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1837
1838 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1839 characters.
1840
1841 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1842
1843 PR mi/11407
1844 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1845 read_var_value and common_val_print and print a warning.
1846
1847 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1848
1849 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1850 keep the list in alphabetical order. Use longer e-mail address.
1851
1852 2010-09-15 Tom Tromey <tromey@redhat.com>
1853
1854 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1855
1856 2010-09-15 Tom Tromey <tromey@redhat.com>
1857
1858 * charset.c (iconv_open): New define.
1859 (iconv): Likewise.
1860 (iconv_close): Likewise.
1861 (phony_iconv_open): Add "phony_" prefix.
1862 (phony_iconv_close): Likewise.
1863 (phony_iconv): Likewise.
1864 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1865 Change how INTERMEDIATE_ENCODING is defined.
1866
1867 2010-09-15 Doug Evans <dje@google.com>
1868
1869 * dwarf2read.c (struct die_info): Fix comment.
1870
1871 2010-09-15 Alan Modra <amodra@gmail.com>
1872
1873 PR 4606
1874 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1875 than setting SEC_NEVER_LOAD on sections that need not be copied.
1876
1877 2010-09-14 Tom Tromey <tromey@redhat.com>
1878
1879 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1880 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1881 Declare.
1882 * symfile.h (extend_psymbol_list): Remove.
1883 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1884 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1885 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1886
1887 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1888
1889 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1890 Update the comment.
1891
1892 2010-09-14 Tom Tromey <tromey@redhat.com>
1893
1894 PR symtab/8399:
1895 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1896 for unrecognized frame base expression.
1897
1898 2010-09-14 Tom Tromey <tromey@redhat.com>
1899
1900 PR exp/11803:
1901 * value.c (value_static_field): Use value_of_variable.
1902
1903 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1904
1905 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1906 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1907
1908 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1909
1910 PR symtab/11992:
1911 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1912 UNKNOWN_CPP_NAME.
1913
1914 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1915
1916 * NEWS: Add x86-lynxos to the list of platforms supported by
1917 gdbserver.
1918
1919 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1920
1921 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1922
1923 2010-09-13 Tom Tromey <tromey@redhat.com>
1924
1925 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1926
1927 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1928
1929 * i386-tdep.c (i386_ymm_type): Set type name to
1930 builtin_type_vec256i.
1931
1932 2010-09-12 Michael Snyder <msnyder@vmware.com>
1933
1934 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1935
1936 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1937
1938 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1939
1940 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1941
1942 * amd64-tdep.c (amd64_register_name): Removed.
1943 (amd64_init_abi): Don't call set_gdbarch_register_name.
1944
1945 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1946
1947 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1948
1949 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1950 Paul Bolle <pebolle@tiscali.nl>
1951
1952 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1953 * cli-logging.c (struct saved_output_files) <targerr>: New.
1954 (set_logging_redirect, pop_output_files, handle_redirections):
1955 Redirect also gdb_stdtargerr.
1956 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1957 declarations.
1958 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1959 also gdb_stdtargerr.
1960 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1961 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1962 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1963 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1964 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1965 New functions.
1966
1967 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1968
1969 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1970 to display a host address.
1971 * monitor.c (monitor_read_memory): Likewise.
1972 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1973
1974 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1975
1976 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1977 `CORE_ADDRESS' as it might contain target addresses.
1978
1979 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1980
1981 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1982 before cast to pointer to avoid warning.
1983
1984 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1985
1986 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1987 type to be signed.
1988
1989 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1990
1991 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1992 anonymous class partial DIEs.
1993
1994 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1995
1996 * dwarf2read.c (dwarf2_compute_name): Check that the first
1997 argument is a pointer.
1998
1999 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2000
2001 * dwarf2read.c (read_func_scope, read_structure_type)
2002 (read_common_block): Check for a NULL return from new_symbol.
2003
2004 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2005
2006 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
2007
2008 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2009
2010 * dwarf2read.c (read_structure_type): Move processing of
2011 fields and member functions from here...
2012 (process_structure_scope): ... to here.
2013
2014 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2015
2016 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
2017 the domain type.
2018 (gnuv3_make_method_ptr): Likewise.
2019
2020 2010-09-08 Tom Tromey <tromey@redhat.com>
2021
2022 * breakpoint.c (create_breakpoint): Add missing _().
2023
2024 2010-09-08 Doug Evans <dje@google.com>
2025
2026 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
2027
2028 2010-09-08 Tom Tromey <tromey@redhat.com>
2029
2030 Revert:
2031 2010-09-01 Tom Tromey <tromey@redhat.com>
2032 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
2033 symtab.h: Revert earlier change.
2034
2035 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
2036
2037 * psymtab.c (add_psymbol_to_bcache): Initialize
2038 obj_section.
2039 memset psymbol.ginfo.value to 0.
2040
2041 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2042
2043 * infrun.c (resume): Extend comment on ignoring single-step
2044 requests on vfork parents waiting for a vfork-done.
2045
2046 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2047 Pedro Alves <pedro@codesourcery.com>
2048
2049 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
2050 is NULL.
2051 * fork-child.c (startup_inferior) <resume_signal>: Use enum
2052 target_signal type.
2053 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
2054 calling strsignal. Use enum target_signal type for saved_signo.
2055 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
2056 (linux_nat_wait_1): Use enum target_signal type for signo. Use
2057 target_signal_to_host before calling strsignal.
2058 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
2059 TARGET_SIGNAL_0.
2060
2061 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2062 Jan Kratochvil <jan.kratochvil@redhat.com>
2063
2064 * common/signals.c (ANY): Remove.
2065 (SET): No longer use ANY.
2066
2067 2010-09-06 Yao Qi <yao@codesourcery.com>
2068
2069 * infrunc(resume): When inferior is waiting_for_vfork_done,
2070 clear step and don't use displaced stepping.
2071
2072 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2073
2074 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2075 value specially.
2076
2077 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2078
2079 Code cleanup - split print_stop_reason.
2080 * infrun.c (enum inferior_stop_reason): Remove.
2081 (print_stop_reason): Remove by splitting into ...
2082 (print_exited_reason, print_signal_exited_reason)
2083 (print_no_history_reason, print_signal_received_reason)
2084 (print_end_stepping_range_reason): ... these new functions. Update
2085 the preceding comment.
2086 (handle_inferior_event): Change the calls to print_exited_reason,
2087 print_signal_exited_reason, print_no_history_reason,
2088 print_signal_received_reason, print_end_stepping_range_reason.
2089 (handle_step_into_function, handle_step_into_function_backward):
2090 Change the calls to print_end_stepping_range_reason.
2091
2092 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2093
2094 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2095 * cli-out.c: Include vec.h.
2096 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2097 variable stream, initialize it, use it.
2098 (cli_redirect): New function comment. Replace the stream and
2099 original_stream fields by the new streams field. Remove the
2100 original_stream != NULL conditional, assert error on NULL instead.
2101 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2102 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2103 original_stream fields by the new streams field.
2104 (cli_out_set_stream): Replace the stream field by the new streams
2105 field.
2106 * cli-out.h: Include vec.h.
2107 (ui_filep): New typedef, call DEF_VEC_P for it.
2108 (struct cli_ui_out_data): Replace the stream and original_stream
2109 fields by the new streams field.
2110 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2111 NULL first. Extend the comment.
2112 (handle_redirections): Call ui_out_redirect with output.
2113 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2114 calls outside of the TRY_CATCH block.
2115
2116 2010-09-03 Joel Brobecker <brobecker@adacore.com>
2117
2118 GDB 7.2 released.
2119
2120 2010-09-02 Joel Brobecker <brobecker@adacore.com>
2121
2122 Back out the following change:
2123 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2124 | * record.c (set_record_pic_cmdlist,
2125 | show_record_pic_cmdlist): New variables.
2126 | (set_record_pic_command,
2127 | show_record_pic_command): New functions.
2128 | (record_pic_function, record_pic_line, record_pic_enum,
2129 | set_record_pic_type, record_pic_hide_nofunction,
2130 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2131 | (record_pic_fputs): New function.
2132 | (function_list, node_list, edge_list): New struct.
2133 | (function_list, node_list, edge_list): New variables.
2134 | (record_pic_cleanups, record_pic_node,
2135 | record_pic_edge, cmd_record_pic): New functions.
2136 | (_initialize_record): Add new commands for record pic.
2137
2138 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2139
2140 * config.in, configure: Regenerated.
2141 * configure.ac: Check for waitpid.
2142 * ser-pipe.c (pipe_close): Wait for the program to exit.
2143
2144 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2145
2146 * cli/cli-logging.c: Include gdb_assert.h.
2147 (set_logging_overwrite): New function.
2148 (logging_redirect): New comment.
2149 (logging_no_redirect_file, set_logging_redirect)
2150 (pop_output_files) <logging_no_redirect_file>: New.
2151 (handle_redirections) <!logging_redirect>: New variable
2152 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2153 discard cleanup for the close of former OUTPUT. Set
2154 LOGGING_NO_REDIRECT_FILE.
2155 (handle_redirections) <logging_redirect>: gdb_assert
2156 LOGGING_NO_REDIRECT_FILE.
2157 (show_logging_command) <logging_redirect handling>: Adjust messages
2158 for SAVED_FILENAME not NULL.
2159 (_initialize_cli_logging): Install set_logging_overwrite and
2160 set_logging_redirect.
2161
2162 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2163
2164 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2165
2166 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2167
2168 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2169 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2170 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2171 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2172
2173 2010-09-02 Yao Qi <yao@codesourcery.com>
2174
2175 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2176 number from a WIFSIGNALED status.
2177
2178 2010-09-01 Tom Tromey <tromey@redhat.com>
2179
2180 * symtab.h (lookup_type_symbol): Declare.
2181 * symtab.c (lookup_symbol_in_language_full): Rename from
2182 lookup_symbol_in_language. Add 'for_type' argument.
2183 (lookup_symbol_in_language): New function.
2184 (lookup_type_symbol): Likewise.
2185 (lookup_symbol_aux): Add 'for_type' argument.
2186 (match_symbol_aux): New function.
2187 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2188 (match_transparent_type): New function.
2189 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2190 * symfile.h (struct quick_symbol_functions)
2191 <pre_expand_symtabs_matching>: Remove.
2192 <expand_one_symtab_matching>: New field.
2193 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2194 (pre_expand_symtabs_matching_psymtabs): Remove.
2195 (psym_functions): Update.
2196 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2197 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2198 (dw2_pre_expand_symtabs_matching): Remove.
2199 (dw2_expand_one_symtab_matching): New function.
2200 (dwarf2_gdb_index_functions): Update.
2201
2202 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2203
2204 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2205
2206 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2207
2208 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2209 as a feature reported by -list-target-features.
2210
2211 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2212
2213 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2214 (powerpc-32.o, powerpc-32.c): New rules.
2215 (clean): Also remove powerpc-32.c.
2216 * regformats/rs6000/powerpc-32.dat: Generate.
2217
2218 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2219
2220 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2221 psymbol_bcache_init.
2222 * psymtab.h (psymbol_bcache_init): New function prototype.
2223 (psymbol_bcache_free): New function prototype.
2224 (psymbol_bcache_get_bcache): New function prototype.
2225 * psymtab.c (psymbol_bcache_init): New function.
2226 (psymbol_bcache_free): New function.
2227 (psymbol_bcache_full): New function.
2228 (psymbol_bcache_get_bcache): New function.
2229 (add_psymbol_to_bcache): use psymbol_bcache_full.
2230 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2231 psymbol_bcache.
2232 * symmisc.c (print_symbol_bcache_statistics): Updated.
2233 (print_objfile_statistics): Updated.
2234 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2235 psymbol_cache.
2236 (free_objfile): Use psymbol_bcache_free.
2237
2238 2010-08-31 Tom Tromey <tromey@redhat.com>
2239
2240 PR c++/11961:
2241 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2242 Don't set TYPE_NAME on the type.
2243
2244 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2245
2246 * infrun.c (set_exec_direction_func): Error out if target does not
2247 support reverse execution.
2248
2249 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2250
2251 Make linux_get_siginfo_type `type *' unique.
2252 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2253 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2254 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2255 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2256 (_initialize_linux_tdep): New.
2257
2258 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2259
2260 Code cleanup.
2261 * defs.h (find_memory_region_ftype): New typedef.
2262 (exec_set_find_memory_regions): Use it.
2263 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2264 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2265 * gcore.c (objfile_find_memory_regions): Likewise.
2266 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2267 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2268 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2269 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2270 find_memory_region_ftype.
2271 (insert_dbx_link_bpt_in_region): Likewise.
2272 (iterate_over_mappings): Likewise. Drop the comment part about the
2273 function prototype.
2274 (find_memory_regions_callback): Use find_memory_region_ftype.
2275 (proc_find_memory_regions): Likewise.
2276 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2277 find_memory_region_ftype.
2278 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2279 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2280
2281 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2282
2283 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2284 'static partial_symbol psymbol'.
2285 (psymbol_hash): New function.
2286 (psymbol_compare): New function.
2287 * bcache.c (hash_continue): New.
2288 (hash): Use hash_continue.
2289 * bcache.c: Add hash_function and compare_function
2290 pointers to bcache struct.
2291 (bcache_full): Use bcache->hash_function, and
2292 bcache->compare_function.
2293 (bcache_compare): New function.
2294 (bcache_xmalloc): Take hash_function and
2295 compare_function arguments and initialize the
2296 bcach's pointers.
2297 Updated comment.
2298 * objfiles.c (allocate_objfile): Updated.
2299 * symfile.c (reread_symbols): Updated.
2300 * python/py-type.c (typy_richcompare): Updated.
2301
2302 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2303 Tom Tromey <tromey@redhat.com>
2304
2305 PR python/11792:
2306 * python/py-value.c (valpy_get_dynamic_type): New function.
2307 (value_object_getset): Add "dynamic_type".
2308 (valpy_get_type): Fail on error.
2309
2310 2010-08-30 Yao Qi <yao@codesourcery.com>
2311
2312 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2313 (arm_linux_syscall_next_pc): New.
2314 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2315 (arm_linux_init_abi): Initialize syscall_next_pc.
2316 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2317 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2318 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2319 Declare arm_frame_is_thumb.
2320
2321 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2322
2323 Code cleanup.
2324 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2325 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2326 code.
2327 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2328 calls of bpstat_alloc. Remove explicit bs chain termination.
2329
2330 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2331
2332 Code cleanup.
2333 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2334 (my_waitpid): Likewise.
2335
2336 2010-08-27 Doug Evans <dje@google.com>
2337
2338 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2339 as appropriate.
2340
2341 2010-08-27 Tom Tromey <tromey@redhat.com>
2342
2343 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2344 TYPE_FIELD_IGNORE_BITS.
2345
2346 2010-08-27 Doug Evans <dje@google.com>
2347
2348 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2349 the order they're defined in. munmap .debug_types buffer.
2350
2351 2010-08-26 Doug Evans <dje@google.com>
2352
2353 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2354 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2355 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2356 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2357 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2358 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2359 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2360 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2361 (write_psymtabs_to_index): Ditto.
2362
2363 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2364
2365 * NEWS: Mention libthread_db debugging with core files.
2366
2367 2010-08-26 Doug Evans <dje@google.com>
2368
2369 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2370 forward decl. Pass pst->dirname to dwarf_decode_lines.
2371 (psymtab_include_file_name): New function.
2372 (dwarf_decode_lines): Call it. Update comments.
2373
2374 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2375
2376 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2377 compilation unit being different from target die's.
2378
2379 2010-08-24 Doug Evans <dje@google.com>
2380
2381 PR symtab/11942
2382 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2383 debug_types_type_hash.
2384 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2385 All uses updated.
2386 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2387 appropriate type_hash table. All callers updated.
2388 (allocate_signatured_type_table): Renamed from
2389 allocate_signatured_type_hash_table. All callers updated.
2390 (create_signatured_type_table_from_index): Renamed from
2391 create_signatured_type_hash_from_index. All callers updated.
2392 (read_die_type): Add comment. Move actual reading to ...
2393 (read_die_type_1): ... here. New function.
2394 (follow_die_ref_or_sig): Tweak comment.
2395 (set_die_type): Rewrite to use appropriate choice of
2396 debug_info_type_hash or debug_types_type_hash.
2397 (get_die_type_at_offset): New function.
2398 (get_die_type): Call it.
2399
2400 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2401
2402 * python/py-type.c (typy_richcompare): Initialize worklist.
2403
2404 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2405 Kazu Hirata <kazu@codesourcery.com>
2406 Jonathan Larmour <jifl@eCosCentric.com>
2407
2408 * arm-tdep.c: Include features/arm-with-m.c.
2409 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2410 call this function.
2411 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2412 Check is_m after force-mode.
2413 (arm_gdbarch_init): Check the binary before the target description.
2414 Add check for M profile attribute. If we have an M-profile device,
2415 but no target register description, use arm-with-m. Recognize the
2416 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2417 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2418 * arm-tdep.h (XPSR_T): Define.
2419 (struct gdbarch_tdep): Add is_m member.
2420 * features/arm-m-profile.xml, features/arm-with-m.c,
2421 features/arm-with-m.xml: New files.
2422
2423 2010-08-23 Doug Evans <dje@google.com>
2424
2425 * dwarf2read.c (read_structure_type): Add comment.
2426 (read_enumeration_type): Add comment.
2427 (process_enumeration_scope): Move definition of some locals
2428 closer to their use.
2429 (read_namespace_type): Add comment.
2430 (set_die_type): Fix typo in comment.
2431
2432 2010-08-23 Tom Tromey <tromey@redhat.com>
2433
2434 PR python/11145:
2435 * python/py-value.c: Include expression.h.
2436 (valpy_do_cast): New function.
2437 (valpy_cast): Use it.
2438 (valpy_dynamic_cast): New function.
2439 (valpy_reinterpret_cast): Likewise.
2440 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2441
2442 2010-08-23 Tom Tromey <tromey@redhat.com>
2443
2444 PR python/11391:
2445 * python/py-value.c (valpy_nonzero): Don't throw error for other
2446 Value types.
2447
2448 2010-08-23 Tom Tromey <tromey@redhat.com>
2449
2450 PR python/10676:
2451 * python/py-type.c: Include bcache.h, vec.h.
2452 (struct type_equality_entry): New.
2453 (compare_strings): New function.
2454 (check_types_equal): Likewise.
2455 (check_types_worklist): Likewise.
2456 (typy_richcompare): Likewise.
2457 (type_object_type): Set tp_richcompare field.
2458
2459 2010-08-23 Tom Tromey <tromey@redhat.com>
2460
2461 PR python/10953:
2462 * python/py-type.c (typy_fields): Call check_typedef.
2463 (typy_template_argument): Add TRY_CATCH.
2464
2465 2010-08-23 Tom Tromey <tromey@redhat.com>
2466
2467 PR python/11915:
2468 * python/py-type.c (typy_array): New function.
2469 (type_object_methods): Add "array".
2470
2471 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2472
2473 * python/python.c: Include "serial.h".
2474 (gdbpy_event_fds): Change type to `struct serial *' a array from
2475 int array.
2476 (gdbpy_run_events): Change parameters. Use serial_readchar in
2477 place of read.
2478 (gdbpy_post_event): Use serial_write in place of write.
2479 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2480 serial_async in place of add_file_handler.
2481
2482 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2483
2484 * serial.h (gdb_pipe, serial_pipe): Declare.
2485 * serial.c (serial_interface_lookup): Take a const char pointer.
2486 (serial_fdopen): Rename to ...
2487 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2488 Call the OPS' fdopen function if there is one.
2489 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2490 (serial_pipe): New.
2491 (struct serial_ops) <fdopen>: New field.
2492
2493 * ser-mingw.c (free_pipe_state):
2494 (free_pipe_state): Close output on non-pex pipes.
2495 (pipe_windows_fdopen): New.
2496 (gdb_pipe): New.
2497 (_initialize_ser_windows): Register pipe_windows_fdopen.
2498 * ser-go32.c (gdb_pipe): New.
2499 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2500 no state pointer.
2501 (pipe_ops): Delete.
2502 (gdb_pipe): New.
2503
2504 2010-08-20 Keith Seitz <keiths@redhat.com>
2505
2506 PR symtab/11465:
2507 * dwarf2read.c (struct delayed_method_info): New struct.
2508 (struct dwarf2_cu): Add vector method_list.
2509 (scan_partial_symbols): Count methods for union, class, structure,
2510 and interface types.
2511 (add_to_method_list): New function.
2512 (free_delayed_list): New function.
2513 (compute_delayed_physnames): New function.
2514 (process_full_comp_unit): Make a cleanup for the CU's delayed
2515 physname list, compute the delayed physnames, and free the
2516 the list.
2517 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2518 of the physname until after the CU is read.
2519
2520 * dwarf2read.c (read_structure_type): Check if the current
2521 DIE's type was already completed after dwarf2_full_name
2522 was called.
2523
2524 2010-08-19 Stan Shebs <stan@codesourcery.com>
2525
2526 * NEWS: Mention some additional changes.
2527
2528 2010-08-19 Tom Tromey <tromey@redhat.com>
2529
2530 * Makefile.in (install-python): Add DESTDIR.
2531
2532 2010-08-19 Doug Evans <dje@google.com>
2533
2534 PR exp/11926
2535 * parser-defs.h (parse_float, parse_c_float): Declare.
2536 * parse.c (parse_float, parse_c_float): New function.
2537 * c-exp.y (parse_number): Call parse_c_float.
2538 * objc-exp.y (parse_number): Ditto.
2539 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2540 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2541
2542 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2543
2544 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2545 the arguments in the correct order.
2546 * symtab.c (maybe_add_partial_symtab_filename): Declare
2547 the arguments in the correct order.
2548
2549 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2550
2551 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2552 initialize it by null_frame_id, wrap its usage by get_frame_id,
2553 frame_id_p and frame_find_by_id.
2554
2555 2010-08-18 Tom Tromey <tromey@redhat.com>
2556
2557 PR python/11900:
2558 * configure: Rebuild.
2559 * configure.ac: Add install-python to CONFIG_INSTALL.
2560 * Makefile.in (install-python): New.
2561
2562 2010-08-18 Doug Evans <dje@google.com>
2563
2564 * gdb_assert.h (gdb_assert_not_reached): New macro.
2565 (gdb_assert_fail): Fix typo in comment.
2566 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2567 gdb_assert (0).
2568 * darwin-nat.c (darwin_check_new_threads): Ditto.
2569 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2570 (munmap_section_buffer): Ditto.
2571 * m32c-tdep.c (make_types): Ditto.
2572 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2573 * macroexp.c (get_character_constant): Ditto.
2574 (get_string_literal): Ditto.
2575 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2576 (mep_pseudo_cr_index, mep_register_type): Ditto.
2577 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2578 (mep_get_insn, mep_analyze_prologue): Ditto.
2579 * objfiles.c (qsort_cmp): Ditto.
2580 * prologue-value.c (pv_is_identical): Ditto.
2581 * record.c (record_get_loc): Ditto.
2582 * value.c (value_static_field): Ditto.
2583 * xtensa-tdep.c (call0_track_op): Ditto.
2584
2585 2010-08-18 Tom Tromey <tromey@redhat.com>
2586
2587 PR symtab/11919:
2588 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2589 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2590 name-copying lower. Document exception behavior.
2591 * completer.c (expression_completer): Catch exceptions from
2592 parse_field_expression.
2593
2594 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2595
2596 PR corefile/8210
2597
2598 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2599 workaround on core files.
2600 (try_thread_db_load_1): Don't try enabling thread event reporting
2601 on core files.
2602 (thread_db_load): Allow thread_db on core files.
2603 (attach_thread): Don't check thread signals on core files, nor try
2604 really attaching to the thread, nor enabling thread event event
2605 reporting.
2606 (thread_db_detach): Don't try disabing thread event reporting or
2607 removing thread event breakpoints when debugging a core file.
2608 (find_new_threads_callback): Don't try enabling thread event
2609 reporting on core files.
2610 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2611 debugging a core file.
2612 (thread_db_find_new_threads): Don't update thread
2613 cores (processors) when debugging a core (dump).
2614
2615 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2616
2617 PR corefile/8210
2618
2619 * corelow.c (add_to_thread_list): Don't use
2620 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2621 (get_core_register_section): Don't use
2622 gdbarch_core_reg_section_encodes_pid.
2623
2624 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2625 * gdbarch.h, gdbarch.c: Regenerate.
2626 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2627 gdbarch_core_reg_section_encodes_pid.
2628 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2629 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2630 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2631
2632 2010-08-18 Yao Qi <yao@codesourcery.com>
2633
2634 * MAINTAINERS : Add myself under Write After Approval.
2635
2636 2010-08-17 Tom Tromey <tromey@redhat.com>
2637
2638 * NEWS: Mention template parameter support.
2639
2640 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2641
2642 PR breakpoints/11371
2643
2644 * breakpoint.c (decref_bp_location): Assert the reference count is
2645 sane.
2646
2647 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2648
2649 PR breakpoints/11371
2650
2651 * breakpoint.c (breakpoint_init_inferior): Decrement the
2652 location's reference count instead of deleting right away.
2653 (bpstat_free): Decrement the location's reference count. Make
2654 static.
2655 (bpstat_copy): Increment the location's reference count.
2656 (bpstat_find_breakpoint): Adjust.
2657 (bpstat_num): Adjust.
2658 (print_it_typical): Adjust. Use the breakpoint pointer in the
2659 bpstat instead of the location's owner.
2660 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2661 Adjust to record the location's owner in the bpstat.
2662 (watchpoint_check): Use the breakpoint pointer in the bpstat
2663 instead of the location's owner.
2664 (bpstat_check_breakpoint_conditions): Don't handle
2665 bp_watchpoint_scope here. Use the breakpoint pointer in the
2666 bpstat instead of the location's owner.
2667 (bpstat_stop_status): Defer inferior function calls to after
2668 building the bpstat list. Handle bp_watchpoint_scope here. Use
2669 the breakpoint pointer in the bpstat instead of the location's
2670 owner.
2671 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2672 the location's owner.
2673 (free_bp_location): Don't walk bpstats clearing locations.
2674 (incref_bp_location): New.
2675 (decref_bp_location): New.
2676 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2677 instead of the location's owner.
2678 (update_global_location_list): Clear the location's owner, and
2679 decrement the location's reference count instead of deleting it
2680 right away.
2681 (breakpoint_retire_moribund): Decrement the location's reference
2682 count instead of deleting it right away.
2683 (bpstat_remove_bp_location): Delete.
2684 (bpstat_remove_breakpoint): New.
2685 (bpstat_remove_bp_location_callback): Delete.
2686 (bpstat_remove_breakpoint_callback): New.
2687 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2688 clearing references to the breakpoint that is being deleted.
2689
2690 * breakpoint.h (struct bp_location) <refc>: New field.
2691 <owner>: Update comments.
2692 (bpstat_free): Delete declaration.
2693 (struct bpstats): Change the type of the breakpoint_at field to
2694 struct breakpoint point, from struct bp_location pointer. Add new
2695 field bp_location_at.
2696
2697 2010-08-16 Tom Tromey <tromey@redhat.com>
2698
2699 * NEWS: Fix typo.
2700
2701 2010-08-16 Tom Tromey <tromey@redhat.com>
2702
2703 * NEWS: Mention watch -location.
2704
2705 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2706
2707 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2708 EXP_STRING_REPARSE to EXP_STRING.
2709 (watch_command_1): Set also EXP_STRING_REPARSE.
2710 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2711 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2712 Update comment for exp_string.
2713
2714 2010-08-16 Tom Tromey <tromey@redhat.com>
2715
2716 * value.c (release_value): Clear 'next' pointer.
2717 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2718 (watch_command_wrapper): Update.
2719 (watch_maybe_just_location): New function.
2720 (watch_command): Update.
2721 (rwatch_command_wrapper): Update.
2722 (rwatch_command): Update.
2723 (awatch_command_wrapper): Update.
2724 (awatch_command): Update.
2725 (check_for_argument): New function.
2726 (_initialize_breakpoint): Update help text.
2727
2728 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2729
2730 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2731 typedef'ed function types correctly.
2732
2733 2010-08-13 Tom Tromey <tromey@redhat.com>
2734
2735 * python/python-internal.h (gdbpy_get_hook_function): Don't
2736 declare.
2737
2738 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2739
2740 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2741 static.
2742
2743 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2744
2745 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2746 the format strings to be compatible with Python 2.4.
2747
2748 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2749
2750 Easier and more stubborn MI memory read commands.
2751
2752 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2753 and data-write-memory-bytes.
2754 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2755 (mi_cmd_data_write_memory_bytes): New.
2756 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2757 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2758 New.
2759 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2760 * target.c (target_read_until_error): Remove.
2761 (read_whatever_is_readable, free_memory_read_result_vector)
2762 (read_memory_robust): New.
2763 * target.h (target_read_until_error): Remove.
2764 (struct memory_read_result, free_memory_read_result_vector)
2765 (read_memory_robust): New.
2766
2767 2010-08-13 Hui Zhu <teawater@gmail.com>
2768
2769 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2770 (read_comp_unit): Initialize back_to.
2771
2772 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2773 Pedro Alves <pedro@codesourcery.com>
2774
2775 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2776 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2777 (struct partial_die_info) <has_template_arguments>: New field.
2778 <num_attrs>: Change type to unsigned char.
2779 <building_fullname>: New field.
2780 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2781 allocate a CU if we don't have one already. Add a cleanup for the
2782 CU.
2783 (partial_die_full_name): Handle template arguments not in
2784 DW_AT_name.
2785 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2786 (load_full_comp_unit): Only allocate a CU if we don't have one
2787 already.
2788 (do_ui_file_peek_last): New.
2789 (dwarf2_compute_name): Handle template parameters not in
2790 DW_AT_name.
2791 (read_comp_unit): Read and free abbrevs if not read yet.
2792 (load_partial_dies): Handle template arguments not in DW_AT_name.
2793 (find_partial_die): If we have a CU, but no a partial dies yet,
2794 also read in the CU.
2795 (dwarf2_const_value_attr): New, abstracted out from
2796 dwarf2_const_value.
2797 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2798 dwarf2_const_value_attr.
2799 (determine_prefix): Detect and break loops created by RCVT's debug
2800 info.
2801 (maybe_queue_comp_unit): Bail out early if reading partial
2802 symbols.
2803 (follow_die_offset): Load full CU if we have no dies.
2804 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2805 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2806
2807 2010-08-11 Tom Tromey <tromey@redhat.com>
2808 Phil Muldoon <pmuldoon@redhat.com>
2809
2810 * python/python.c (gdbpy_run_events): New function.
2811 (gdbpy_post_event): Likewise.
2812 (gdbpy_initialize_events): Likewise.
2813 (_initialize_python): Call gdbpy_initialize_events.
2814
2815 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2816
2817 * gdb/valarith.c (vector_binop): New function.
2818 (scalar_binop): Likewise.
2819 (value_binop): Call scalar_binop or vector_binop depending on the types.
2820 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2821 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2822 to pointers.
2823 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2824
2825 2010-08-11 Brad Roberts <braddr@puremagic.com>
2826
2827 * d-lang.c (extract_identifiers): Handle multiple digits.
2828
2829 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2830
2831 Code cleanup.
2832 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2833 Rename to dummy_frame_unwind.
2834 (dummy_frame_unwind): Remove.
2835 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2836 * frame-unwind.c (frame_unwind_init): Use address of
2837 dummy_frame_unwind and inline_frame_unwind.
2838 * frame.c (create_sentinel_frame): Use address of
2839 sentinel_frame_unwind.
2840 * inline-frame.c (inline_frame_unwinder): Rename to
2841 inline_frame_unwind.
2842 (inline_frame_unwind): Remove.
2843 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2844 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2845 sentinel_frame_unwind.
2846 (sentinel_frame_unwind): Remove.
2847 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2848 struct.
2849
2850 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2851
2852 Code cleanup.
2853 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2854 and returned value. New comment from frame-unwind.h.
2855 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2856 Extend the comment.
2857 * frame.c (get_frame_id, frame_unwind_register_value)
2858 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2859 (get_frame_type, frame_unwind_arch): Do not use the return value of
2860 frame_unwind_find_by_frame.
2861
2862 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2863 Thiago Jung Bauermann <bauerman@br.ibm.com>
2864 Tom Tromey <tromey@redhat.com>
2865
2866 * python/python.c (gdbpy_solib_address): New function.
2867 (gdbpy_decode_line): Likewise.
2868
2869 2010-08-10 Tom Tromey <tromey@redhat.com>
2870
2871 Revert gdb-add-index addition:
2872 * Makefile.in (install-only): Don't install gdb-add-index.
2873 * gdb-add-index.sh: Remove.
2874
2875 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2876
2877 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2878 `target_has_execution' check with `to_has_memory' check.
2879 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2880 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2881 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2882
2883 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2884
2885 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2886 (resume_siggnal, resume_step): Move these static globals...
2887 (struct sim_inferior_data): ...into this new struct.
2888 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2889 New static globals.
2890 (gdb_callback, callbacks_initialized): Move these globals to
2891 a point earlier in the file.
2892 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2893 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2894 (gdbsim_close_inferior, gdbsim_resume_inferior)
2895 (gdbsim_stop_inferior): New functions.
2896 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2897 New constants.
2898 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2899 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2900 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2901 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2902 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2903 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2904 new local variable `sim_data' in each of these functions. Use
2905 `sim_data' to reference former globals `program_loaded',
2906 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2907 `resume_step'.
2908 (gdbsim_open): Remove local variable `argv'. Put results of call
2909 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2910 make a cleanup for it. Free it though when a sim instance cannot
2911 be obtained.
2912 (gdbsim_close): Free sim_argv and null it out as appropriate.
2913 Close sim instances in all inferiors.
2914 (gdbsim_cntrl_c): Stop all inferiors.
2915 (gdbsim_wait):
2916 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2917
2918 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2919
2920 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2921 function after symbol construction is complete.
2922 Do the same for template symbol addition to template_symbols list.
2923
2924 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2925
2926 * symtab.c (symbol_get_demangled_name): Remove assertion and
2927 return NULL when language_specific.cplus_specific is not initialized.
2928 * stabsread.c (define_symbol): Set the name before calling
2929 cp_scan_for_anonymous_namespaces.
2930
2931 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2932
2933 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2934 SYMBOL_SET_LANGUAGE.
2935 (symbol_init_language_specific): Renamed to symbol_set_language.
2936 * symtab.c (symbol_init_language_specific): Removed redundant check
2937 for language_cplus.
2938 Renamed to symbol_set_language.
2939 * stabsread.c (define_symbol): Updated.
2940 (read_enum_type): Updated
2941 * psymtab.c (add_psymbol_to_bcache): Updated.
2942 * minsyms.c (install_minimal_symbols): Updated.
2943 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2944 SYMBOL_LANGUAGE to set the language.
2945 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2946 * mdebugread.c (new_symbol): Ditto.
2947 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2948 * dwarf2read.c (new_symbol_full): Ditto.
2949 * jv-lang.c (add_class_symbol): Ditto.
2950
2951 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2952
2953 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2954 (make_cleanup_restore_page_info)
2955 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2956 * gdbcmd.h (execute_command_to_string): New declaration.
2957 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2958 (make_cleanup_restore_ui_file): Move to utils.c
2959 (execute_gdb_command) <to_string>: Move ...
2960 * top.c (execute_command_to_string): ... here. Call
2961 set_batch_flag_and_make_cleanup_restore_page_info.
2962 * utils.c (make_cleanup_restore_integer): New source file blank line.
2963 (make_cleanup_restore_uinteger): New.
2964 (struct restore_ui_file_closure, do_restore_ui_file)
2965 (make_cleanup_restore_ui_file): Move here from python/python.c.
2966 (init_page_info) <batch_flag>
2967 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2968 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2969
2970 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2971
2972 * thread.c (add_thread_silent): Use null_ptid instead of
2973 minus_one_ptid while getting rid of stale inferior_ptid.
2974
2975 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2976
2977 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2978 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2979 (decode_frame_entry_1): Remove redundant setting of
2980 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2981 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2982 on examined frame section. Add comment to explain why.
2983 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2984 comment to explain usage.
2985 * gdbarch.c: Regenerate.
2986 * gdbarch.h: Regenerate.
2987
2988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2989
2990 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2991
2992 Code cleanup.
2993 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2994 a more inner block.
2995
2996 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2997
2998 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2999 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3000 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
3001 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
3002 linux-tdep.o to gdb_target_obs.
3003
3004 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
3005
3006 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
3007 argument.
3008
3009 2010-08-05 Hui Zhu <teawater@gmail.com>
3010
3011 * mips-linux-tdep.c(regset.h): New include.
3012 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
3013 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
3014 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
3015 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
3016 mips_linux_regset_from_core_section): New functions.
3017 (fetch_core_registers, regset_core_fns): Deleted.
3018 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
3019 Deleted regset_core_fns.
3020 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
3021 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
3022 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
3023 and fpregset64.
3024
3025 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3026
3027 * s390-tdep.c: Include linux-tdep.h.
3028 (s390_gdbarch_init): Call linux_init_abi.
3029
3030 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3031
3032 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
3033 instead of printing "Thread" here.
3034 * linux-tdep.c: Include inferior.h.
3035 (linux_core_pid_to_str): New.
3036 (linux_init_abi): New.
3037 * linux-tdep.h (linux_init_abi): Declare.
3038 * alpha-linux-tdep.c: Include linux-tdep.h.
3039 (alpha_linux_init_abi): Call linux_init_abi.
3040 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
3041 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
3042 * frv-linux-tdep.c: Include linux-tdep.h
3043 (frv_linux_init_abi): Call linux_init_abi.
3044 * hppa-linux-tdep.c: Include linux-tdep.h
3045 (hppa_linux_init_abi): Call linux_init_abi.
3046 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
3047 * ia64-linux-tdep.c: Include linux-tdep.h.
3048 (ia64_linux_init_abi): Call linux_init_abi.
3049 * m32r-linux-tdep.c: Include linux-tdep.h.
3050 (m32r_linux_init_abi): Call linux_init_abi.
3051 * m68klinux-tdep.c: Include linux-tdep.h.
3052 (m68k_linux_init_abi): Call linux_init_abi.
3053 * microblaze-linux-tdep.c: Include linux-tdep.h.
3054 (microblaze_linux_init_abi): Call linux_init_abi.
3055 * mips-linux-tdep.c: Include linux-tdep.h.
3056 (mips_linux_init_abi): Call linux_init_abi.
3057 * mn10300-linux-tdep.c: Include linux-tdep.h.
3058 (am33_linux_init_osabi): Call linux_init_abi. Rename the
3059 'gdbinfo' parameter to 'info'.
3060 * ppc-linux-tdep.c: Include linux-tdep.h.
3061 (ppc_linux_init_abi): Call linux_init_abi.
3062 * sh-linux-tdep.c: Include linux-tdep.h.
3063 (sh_linux_init_abi): Call linux_init_abi.
3064 * sparc-linux-tdep.c: Include linux-tdep.h.
3065 (sparc32_linux_init_abi): Call linux_init_abi.
3066 * sparc64-linux-tdep.c: Include linux-tdep.h.
3067 (sparc64_linux_init_abi): Call linux_init_abi.
3068 * xtensa-linux-tdep.c: Include linux-tdep.h.
3069 (xtensa_linux_init_abi): Call linux_init_abi.
3070 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
3071 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
3072 callback.
3073
3074 2010-08-03 Doug Evans <dje@google.com>
3075
3076 * breakpoint.c (bpdisp_text): Constify bpdisps.
3077 * solib-svr4.c (solib_break_names): Constify.
3078 (bkpt_names, main_name_list): Constify.
3079 (match_main): Constify soname arg.
3080 (bfd_lookup_symbol): Remove unnecessary forward decl.
3081 Constify symname arg.
3082 (enable_break): Constify bkpt_namep.
3083 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3084 (symtab_symbol_info): Constify classnames.
3085
3086 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3087
3088 * NEWS: Document Python value inferior function calls.
3089
3090 2010-08-02 Doug Evans <dje@google.com>
3091
3092 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3093
3094 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3095
3096 * linux-thread-db.c (libthread_db_debug): New variable.
3097 (thread_db_find_new_threads_silently): Control verbosity with it.
3098 (try_thread_db_load_1, try_thread_db_load): Likewise.
3099 (find_new_threads_once): Likewise.
3100 (_initialize_thread_db): Set/show it.
3101
3102 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3103
3104 * common/signals.c (signals): Move the content to signals.def.
3105 Include it. Remove the INDENT comments.
3106
3107 2010-07-30 Tom Tromey <tromey@redhat.com>
3108
3109 * Makefile.in (install-only): Install gdb-add-index.
3110 * gdb-add-index.sh: New file.
3111
3112 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3113
3114 * MAINTAINERS: Add myself for write after approval privileges.
3115
3116 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 * symfile.c (addr_section_name): New function.
3119 (addrs_section_compar): Use it.
3120 (addr_info_make_relative): Use it. Move variable sect_name into a more
3121 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3122
3123 2010-07-30 Tom Tromey <tromey@redhat.com>
3124
3125 * configure: Rebuild.
3126 * configure.ac: Add missing case for Python 2.7.
3127
3128 2010-07-29 DJ Delorie <dj@redhat.com>
3129
3130 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3131 conditions.
3132
3133 2010-07-29 Pedro Alves <pedro@codesourcery.com>
3134
3135 * PROBLEMS: Remove mention of all problems.
3136
3137 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3138
3139 PR build/11848
3140 * configure.ac: Check for wresize.
3141 * configure, config.in: Regenerate.
3142 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3143 with HAVE_WRESIZE.
3144
3145 2010-07-28 Tom Tromey <tromey@redhat.com>
3146
3147 PR python/11060:
3148 * python/py-type.c (typy_legacy_template_argument): New function,
3149 extracted from typy_template_argument.
3150 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3151 value when needed.
3152
3153 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3154
3155 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3156
3157 2010-07-27 Tom Tromey <tromey@redhat.com>
3158
3159 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3160
3161 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3162
3163 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3164 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3165
3166 2010-07-28 Tom Tromey <tromey@redhat.com>
3167
3168 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3169
3170 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3171
3172 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3173 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3174
3175 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3176
3177 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3178 down, just before the block that parse the breakpoint addr_string.
3179
3180 2010-07-28 Tom Tromey <tromey@redhat.com>
3181
3182 PR c++/9946:
3183 * symfile.c (reread_symbols): Clear template_symbols.
3184 * symtab.h (struct symbol) <is_cplus_template_function>: New
3185 field.
3186 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3187 (struct template_symbol): New.
3188 * symtab.c (lookup_symbol_aux_local): Use
3189 cp_lookup_symbol_imports_or_template.
3190 * objfiles.h (struct objfile) <template_symbols>: New field.
3191 * objfiles.c (relocate_one_symbol): New function.
3192 (objfile_relocate1): Use it. Relocate isolated symbols.
3193 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3194 template_arguments>: New fields.
3195 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3196 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3197 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3198 (lookup_typename): Update.
3199 * gdbtypes.c (lookup_typename): Constify "block" argument.
3200 * dwarf2read.c: Include vec.h.
3201 (symbolp): New typedef.
3202 (read_func_scope): Read template arguments. Allocate a
3203 template_symbol when needed.
3204 (read_structure_type): Read template arguments.
3205 (new_symbol_full): New function, from new_symbol. Handle
3206 DW_TAG_template_type_param and DW_TAG_template_value_param.
3207 (new_symbol): Rewrite as wrapper.
3208 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3209 * cp-namespace.c: Include language.h.
3210 (search_symbol_list): New function.
3211 (cp_lookup_symbol_imports_or_template): Likewise.
3212
3213 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3214
3215 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3216 the command window to the new size and position.
3217
3218 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3219
3220 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3221 coordinates.
3222
3223 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3224
3225 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3226 after a detecting a resize.
3227 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3228 call.
3229
3230 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3231
3232 * configure.ac: Check for resize_term.
3233 * configure, config.in: Regenerate.
3234
3235 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3236
3237 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3238
3239 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3240
3241 * dwarf2read.c (read_string): Rename to ...
3242 (read_direct_string): ... this.
3243 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3244 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3245
3246 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3247
3248 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3249 (count_events_callback, select_event_lwp_callback)
3250 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3251
3252 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3253
3254 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3255 (_initialize_ia64_linux_nat): Install it.
3256 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3257 (linux_nat_set_status_is_event): New.
3258 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3259 cancel_breakpoints_callback, linux_nat_filter_event)
3260 (linux_nat_wait_1): Use linux_nat_status_is_event.
3261 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3262
3263 2010-07-27 Tom Tromey <tromey@redhat.com>
3264
3265 * NEWS: Mention labels, .gdb_index.
3266
3267 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3268
3269 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3270 "start,+length" form of arguments.
3271 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3272 since GDB 7.1"; and merge two separated paragraphs of disassemble
3273 description in "Changes in GDB 7.0".
3274
3275 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3276
3277 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3278 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3279 (fputs_maybe_filtered): Do not do filtering also on
3280 ! INPUT_FROM_TERMINAL_P.
3281
3282 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3283
3284 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3285 in warning message.
3286
3287 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3288
3289 * python/py-value.c (valpy_call): New Function.
3290
3291 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3292
3293 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3294 types_list_elements variables.
3295
3296 2010-07-26 Tom Tromey <tromey@redhat.com>
3297
3298 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3299 TLS with DW_OP_const4u or DW_OP_const8u.
3300
3301 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3302
3303 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3304 VSX registers contents.
3305
3306 2010-07-26 Jerome Guitton <guitton@adacore.com>
3307
3308 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3309 its adress is null. Add comment to explain why.
3310 (new_symbol): Ditto.
3311
3312 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3313
3314 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3315 the host signal first.
3316
3317 2010-07-23 Tom Tromey <tromey@redhat.com>
3318
3319 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3320 type_comp_units>: New fields.
3321 (dw2_get_cu): New function.
3322 (create_cus_from_index): Remove unused argument.
3323 (create_signatured_type_hash_from_index): New function.
3324 (create_addrmap_from_index): Update.
3325 (dwarf2_read_index): Handle version 2.
3326 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3327 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3328 (dw2_print_stats, dw2_expand_all_symtabs)
3329 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3330 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3331 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3332 (allocate_signatured_type_hash_table): New function.
3333 (add_signatured_type_cu_to_list): Likewise.
3334 (create_debug_types_hash_table): Use them. Set type_comp_units.
3335 (read_signatured_type): Ensure section data is available.
3336 (add_address_entry): Don't record empty ranges.
3337 (struct signatured_type_index_data): New.
3338 (write_one_signatured_type): New function.
3339 (write_psymtabs_to_index): Write type CUs.
3340 (save_gdb_index_command): Update comment.
3341 (process_type_comp_unit): Move inititalization of
3342 from_debug_types...
3343 (create_debug_types_hash_table): ... here.
3344
3345 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3346
3347 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3348 cleanup and generating of gdb script to it.
3349 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3350 and terminal size. Convert $tmpfile to a series of -ex-es.
3351
3352 2010-07-23 Keith Seitz <keiths@redhat.com>
3353
3354 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3355 hook for STATIC_BLOCK types, too.
3356
3357 2010-07-23 Keith Seitz <keiths@redhat.com>
3358
3359 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3360 and vector definition.
3361
3362 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3363
3364 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3365
3366 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3367
3368 * dwarf2read.c: Include completer.h.
3369 (save_gdb_index_command): Use matching usage command name.
3370 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3371 Set filename_completer for it.
3372
3373 2010-07-22 Tom Tromey <tromey@redhat.com>
3374
3375 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3376 type signature's per-CU data.
3377
3378 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3379
3380 * NEWS: Mention target reported shared libraries support by
3381 default.
3382
3383 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3384
3385 PR symtab/11827
3386
3387 Revert:
3388 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3389 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3390 and DW_TAG_volatile_type.
3391 (new_symbol): Likewise.
3392
3393 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3394
3395 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3396 function symbols before overload resolution.
3397
3398 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3399
3400 * breakpoint.c (bptype_string): New, abstracted out from
3401 print_one_breakpoint_location.
3402 (print_one_breakpoint_location): Adjust.
3403 (breakpoint_1): Adjust the type column width dynamically.
3404
3405 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3406
3407 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3408 a gdb_assert call, new comment.
3409
3410 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3411
3412 * linux-nat.c (linux_handle_extended_wait): Handle case when
3413 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3414
3415 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3416
3417 Code cleanup.
3418 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3419 linux_nat_wait_1. Use always LP->STATUS afterwards.
3420
3421 2010-07-20 Hui Zhu <teawater@gmail.com>
3422
3423 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3424 (inf_ptrace_attach): Ditto.
3425
3426 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3427
3428 Make core files the process_stratum.
3429 * corefile.c (core_target): New variable.
3430 (core_file_command): Remove variable t, use core_target.
3431 * corelow.c (core_ops): Make it static.
3432 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3433 * defs.h (make_cleanup_unpush_target): New prototype.
3434 * gdbarch.h: Regenerate.
3435 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3436 * gdbcore.h (core_target): New declaration.
3437 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3438 variables ops_already_pushed and back_to. Use push_target,
3439 make_cleanup_unpush_target and discard_cleanups calls.
3440 * record.c (record_open): Replace core_stratum by a core_bfd check.
3441 * target.c (target_is_pushed): New function.
3442 (find_core_target): Remove.
3443 * target.h (enum strata) <core_stratum>: Remove.
3444 (target_is_pushed): New declaration.
3445 (find_core_target): Remove declaration.
3446 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3447 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3448
3449 2010-07-19 Hui Zhu <teawater@gmail.com>
3450
3451 * breakpoint.c (single_step_breakpoints_inserted): New
3452 function.
3453 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3454 * infrun.c (maybe_software_singlestep): Add check code.
3455 * record.c (record_resume): Add code for software single step.
3456 (record_wait): Ditto.
3457
3458 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3459
3460 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3461 a more inner block. Remove its unused declaration initializer.
3462
3463 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3464
3465 * NEWS: Mention support for the new ptrace interface and hardware
3466 accelerated watchpoint conditions on powerpc-linux.
3467
3468 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3469
3470 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3471 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3472 and host_address_to_string() and %s for pointers.
3473 (debug_to_remove_breakpoint): Likewise.
3474 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3475 (debug_to_can_accel_watchpoint_condition): Likewise.
3476 (debug_to_stopped_data_address): Likewise.
3477 (debug_to_watchpoint_addr_within_range): Likewise.
3478 (debug_to_insert_hw_breakpoint): Likewise.
3479 (debug_to_remove_hw_breakpoint): Likewise.
3480 (debug_to_insert_watchpoint): Likewise.
3481 (debug_to_remove_watchpoint): Likewise.
3482
3483 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3484
3485 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3486 argument.
3487 (cplus_specific): New struct.
3488 * symtab.c (symbol_set_demangled_name): Updated.
3489 Use cplus_specific for cplus symbols.
3490 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3491 struct for cplus symbols.
3492 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3493 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3494 * symtab.c (symbol_init_cplus_specific): New function.
3495
3496 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3497
3498 * symtab.h (symbol_set_demangled_name): New function.
3499 (symbol_get_demangled_name): New function.
3500 * symtab.c (symbol_set_demangled_name): New function.
3501 (symbol_get_demangled_name): New function.
3502 (symbol_init_language_specific): Use demangled_name setter and getter.
3503 (symbol_set_names): Ditto.
3504 (symbol_natural_name): Ditto.
3505 (symbol_demangled_name): Ditto.
3506 * dwarf2read.c (new_symbol): Ditto.
3507
3508 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3509
3510 * symtab.h: Renamed cplus_specific to mangled_lang.
3511 * symtab.c (symbol_init_language_specific): Updated.
3512 (symbol_set_names): Updated.
3513 (symbol_natural_name): Updated.
3514 (symbol_demangled_name): Updated.
3515 * ada-lang.c (ada_decode_symbol): Updated.
3516 * dwarf2read.c (new_symbol): Updated.
3517
3518 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3519
3520 * valops.c (value_assign): Do not call to value_coerce_to_target.
3521 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3522
3523 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3524
3525 * MAINTAINERS: Add myself for write after approval privileges.
3526
3527 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3528
3529 * c-valprint.c (c_val_print): Add embedded_offset to address in
3530 call to val_print_array_elements.
3531
3532 2010-07-13 Tom Tromey <tromey@redhat.com>
3533
3534 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3535
3536 2010-07-13 Tom Tromey <tromey@redhat.com>
3537
3538 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3539 objfile.
3540
3541 2010-07-13 Tom Tromey <tromey@redhat.com>
3542
3543 * symfile.c (set_initial_language): Update.
3544 (deduce_language_from_filename): Argument type now const.
3545 * symtab.h (find_main_filename): Update.
3546 (deduce_language_from_filename): Update.
3547 * symtab.c (find_main_filename): Make result const.
3548 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3549 * psymtab.c (find_symbol_file_from_partial): Change return type.
3550 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3551 Make result const.
3552
3553 2010-07-13 Tom Tromey <tromey@redhat.com>
3554
3555 * breakpoint.c (save_cmdlist): No longer static.
3556 * gdbcmd.h (save_cmdlist): Declare.
3557 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3558 OBJF_READNOW on objfile if readnow_symbol_files.
3559 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3560 (elf_sym_fns_gdb_index): New global.
3561 * dwarf2read.c: Include exceptions.h.
3562 (offset_type): New.
3563 (struct mapped_index): New.
3564 (dwarf2_per_cu_data_ptr): New typedef.
3565 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3566 New fields.
3567 (GDB_INDEX_SECTION): New define.
3568 (struct dwarf2_per_cu_quick_data): New.
3569 (struct dwarf2_per_cu_data) <objfile>: New field.
3570 <psymtab>: Removed.
3571 <v>: New field.
3572 (byte_swap): New function.
3573 (MAYBE_SWAP): New macro.
3574 (INDEX_SUFFIX): New macro.
3575 (dw2_do_instantiate_symtab): New function.
3576 (dw2_instantiate_symtab): Likewise.
3577 (create_cus_from_index): Likewise.
3578 (create_addrmap_from_index): Likewise.
3579 (mapped_index_string_hash): Likewise.
3580 (find_slot_in_mapped_hash): Likewise.
3581 (dwarf2_read_index): Likewise.
3582 (dw2_setup): Likewise.
3583 (dw2_require_line_header): Likewise.
3584 (dw2_require_full_path): Likewise.
3585 (dw2_find_last_source_symtab): Likewise.
3586 (dw2_forget_cached_source_info): Likewise.
3587 (dw2_lookup_symtab): Likewise.
3588 (dw2_lookup_symbol): Likewise.
3589 (dw2_do_expand_symtabs_matching): Likewise.
3590 (dw2_pre_expand_symtabs_matching): Likewise.
3591 (dw2_print_stats): Likewise.
3592 (dw2_dump): Likewise.
3593 (dw2_relocate): Likewise.
3594 (dw2_expand_symtabs_for_function): Likewise.
3595 (dw2_expand_all_symtabs): Likewise.
3596 (dw2_expand_symtabs_with_filename): Likewise.
3597 (dw2_find_symbol_file): Likewise.
3598 (dw2_map_ada_symtabs): Likewise.
3599 (dw2_expand_symtabs_matching): Likewise.
3600 (dw2_find_pc_sect_symtab): Likewise.
3601 (dw2_map_symbol_names): Likewise.
3602 (dw2_map_symbol_filenames): Likewise.
3603 (dw2_has_symbols): Likewise.
3604 (dwarf2_gdb_index_functions): New global.
3605 (dwarf2_initialize_objfile): New function.
3606 (process_psymtab_comp_unit): Update.
3607 (add_partial_subprogram): Likewise.
3608 (dwarf2_psymtab_to_symtab): Likewise.
3609 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3610 (process_full_comp_unit): Update.
3611 (find_file_and_directory): New function.
3612 (read_file_scope): Use find_file_and_directory.
3613 (dwarf2_per_cu_objfile): Update.
3614 (dwarf2_per_cu_addr_size): Update.
3615 (dwarf2_per_cu_offset_size): Update.
3616 (dwarf2_free_objfile): Free the index, if needed.
3617 (dwarf2_per_objfile_free): Unmap the index, if needed.
3618 (struct strtab_entry): New.
3619 (hash_strtab_entry): New function.
3620 (eq_strtab_entry): Likewise.
3621 (create_strtab): Likewise.
3622 (add_string): Likewise.
3623 (struct symtab_index_entry): New.
3624 (struct mapped_symtab): New.
3625 (hash_symtab_entry): New function.
3626 (eq_symtab_entry): Likewise.
3627 (delete_symtab_entry): Likewise.
3628 (create_index_table): Likewise.
3629 (create_mapped_symtab): Likewise.
3630 (cleanup_mapped_symtab): Likewise.
3631 (find_slot): Likewise.
3632 (hash_expand): Likewise.
3633 (add_index_entry): Likewise.
3634 (add_indices_to_cpool): Likewise.
3635 (write_hash_table): Likewise.
3636 (add_address_entry): Likewise.
3637 (write_psymbols): Likewise.
3638 (write_obstack): Likewise.
3639 (unlink_if_set): Likewise.
3640 (write_psymtabs_to_index): Likewise.
3641 (save_gdb_index_command): Likewise.
3642 (_initialize_dwarf2_read): Install "save gdb-index"
3643 command.
3644 (create_all_comp_units): Initialize 'objfile' field of CU.
3645 (dwarf2_locate_sections): Check for .gdb_index.
3646 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3647 * symfile.h (dwarf2_initialize_objfile): Declare.
3648
3649 2010-07-13 Tom Tromey <tromey@redhat.com>
3650
3651 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3652 (basic_lookup_transparent_type): Likewise.
3653 * symfile.h (struct quick_symbol_functions)
3654 <pre_expand_symtabs_matching>: New field.
3655 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3656 (psym_functions): Update.
3657
3658 2010-07-13 Tom Tromey <tromey@redhat.com>
3659
3660 PR breakpoints/8357:
3661 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3662 * linespec.c (decode_line_1): Update comment. Call decode_label.
3663 (decode_label): New function.
3664 (symbol_found): Handle LOC_LABEL.
3665 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3666 domain. Call add_symbol_to_list.
3667
3668 2010-07-13 Tom Tromey <tromey@redhat.com>
3669
3670 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3671 * dwarf2loc.c (find_location_expression): Use
3672 dwarf2_per_cu_text_offset.
3673 (dwarf2_evaluate_loc_desc): Likewise.
3674 (dwarf2_loc_desc_needs_frame): Likewise.
3675 (compile_dwarf_to_ax): Likewise.
3676 (loclist_describe_location): Likewise.
3677 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3678 (dwarf2_per_cu_objfile): Update comment.
3679
3680 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3681
3682 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3683 * p-lang.c (pascal_printstr): Likewise.
3684
3685 2010-07-09 Tom Tromey <tromey@redhat.com>
3686
3687 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3688 'hint' if it is NULL.
3689
3690 2010-07-09 Hui Zhu <teawater@gmail.com>
3691
3692 * source.c (print_source_lines_base): Add check for noprint.
3693
3694 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3695
3696 * python/python-config.py: Resync with Python 2.7 version of this
3697 script.
3698
3699 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3700
3701 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3702
3703 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3704
3705 * NEWS: Create a new section for the next release branch.
3706 Rename the section of the current branch, now that it has
3707 been cut.
3708
3709 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3710
3711 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3712 * version.in: Bump version to 7.2.50.20100707-cvs.
3713
3714 2010-07-07 Tom Tromey <tromey@redhat.com>
3715
3716 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3717 LOC_COMPUTED symbol.
3718 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3719 (dwarf2_loc_desc_needs_frame): Likewise.
3720 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3721 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3722 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3723 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3724 'offset' argument.
3725 (struct dwarf2_frame_cache) <text_offset>: New field.
3726 (dwarf2_frame_cache): Set new field.
3727 (dwarf2_frame_prev_register): Update.
3728 (dwarf2_frame_sniffer): Update.
3729 (dwarf2_frame_base_sniffer): Update.
3730 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3731
3732 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3733 Thiago Jung Bauermann <bauerman@br.ibm.com>
3734
3735 Support for hw accelerated condition watchpoints in booke powerpc.
3736
3737 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3738 and move to eval.c. Change callers.
3739 (insert_bp_location): Pass watchpoint condition in
3740 target_insert_watchpoint.
3741 (remove_breakpoint_1) Pass watchpoint condition in
3742 target_remove_watchpoint.
3743 (watchpoint_locations_match): Call
3744 target_can_accel_watchpoint_condition.
3745 * eval.c: Include wrapper.h.
3746 (fetch_subexp_value): Moved from breakpoint.c.
3747 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3748 Formatting fix.
3749 (can_use_watchpoint_cond_accel): New function.
3750 (calculate_dvc): Likewise.
3751 (num_memory_accesses): Likewise.
3752 (check_condition): Likewise.
3753 (ppc_linux_can_accel_watchpoint_condition): Likewise
3754 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3755 check_condition and calculate_dvc.
3756 (ppc_linux_remove_watchpoint): Likewise.
3757 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3758 ppc_linux_can_accel_watchpoint_condition
3759 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3760 condition.
3761 (debug_to_remove_watchpoint): Likewise.
3762 (debug_to_can_accel_watchpoint_condition): New function.
3763 (update_current_target): Set to_can_accel_watchpoint_condition.
3764 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3765 * target.h: Add opaque declaration for struct expression.
3766 (struct target_ops) <to_insert_watchpoint>,
3767 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3768 <to_can_accel_watchpoint_condition>: New member.
3769 condition. Update all callers and implementations.
3770 (target_can_accel_watchpoint_condition): New macro.
3771 * value.c (free_value_chain): New function.
3772 * value.h (fetch_subexp_value): New prototype.
3773 (free_value_chain): Likewise.
3774
3775 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3776
3777 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3778 from gdbarch_core_regset_sections also for .reg if present.
3779
3780 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3781 section size for .reg.
3782 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3783 (ppc_linux_vmx_regset_sections): Likewise.
3784 (ppc_linux_fp_regset_sections): Likewise.
3785 (ppc64_linux_vsx_regset_sections): New variable.
3786 (ppc64_linux_vmx_regset_sections): Likewise.
3787 (ppc64_linux_fp_regset_sections): Likewise.
3788 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3789 for current word size.
3790
3791 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3792
3793 * server.c (myresume): Make static.
3794
3795 2010-07-06 Tom Tromey <tromey@redhat.com>
3796
3797 * configure, config.in: Rebuild.
3798 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3799 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3800
3801 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3802
3803 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3804 "clear".
3805
3806 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3807
3808 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3809 * gdbtypes.c (floatformats_ieee_half): New variable.
3810 * doublest.c (floatformat_from_length): Set format to
3811 gdbarch_half_format if length matches.
3812 * gdbarch.sh (half_bit): New architecture method.
3813 (half_format): Likewise.
3814 * gdbarch.h: Regenerate.
3815 * gdbarch.c: Likewise.
3816
3817 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3818 Joel Brobecker <brobecker@adacore.com>
3819
3820 Fix re-run of PIE executable, PR shlibs/11776.
3821 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3822 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3823
3824 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3825 Joel Brobecker <brobecker@adacore.com>
3826
3827 * auxv.c (memory_xfer_auxv): Update attach comment.
3828 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3829 svr4_relocate_main_executable.
3830 (svr4_solib_create_inferior_hook): Make the call to
3831 svr4_relocate_main_executable unconditional.
3832
3833 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3834 Joel Brobecker <brobecker@adacore.com>
3835
3836 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3837
3838 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3839 Joel Brobecker <brobecker@adacore.com>
3840
3841 Fix attaching to PIEs prelinked on the disk after the process was
3842 started.
3843 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3844 Verify it against bfd_get_arch_size. Try to match arbitrary
3845 displacement for the phdrs comparison.
3846
3847 2010-07-02 Tom Tromey <tromey@redhat.com>
3848
3849 PR exp/11780:
3850 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3851 value as optimized-out.
3852
3853 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3854 Thiago Jung Bauermann <bauerman@br.ibm.com>
3855
3856 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3857 represent?" question in comment. Change comment to a proper sentence.
3858
3859 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3860
3861 * c-valprint.c (c_val_print): Fix printing of character vectors.
3862
3863 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3864
3865 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3866 create_breakpoint prototype.
3867
3868 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3869
3870 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3871 usefulness suggestion of multiple breakpoints at same location.
3872
3873 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3874
3875 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3876
3877 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3878
3879 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3880 (loclist_tracepoint_var_ref): Handle optimized out values.
3881
3882 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3883
3884 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3885 unnecessary space in string.
3886 * filesystem.c (_initialize_filesystem): Ditto.
3887 * frame.c (_initialize_frame): Ditto.
3888 * infcmd.c (step_once): Ditto.
3889 * infrun.c (_initialize_infrun): Ditto.
3890 * linux-nat.c (linux_child_follow_fork): Ditto.
3891 * maint.c (maintenance_deprecate): Ditto.
3892 * memattr.c (_initialize_mem): Ditto.
3893 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3894 * monitor.c (monitor_open): Ditto.
3895 * procfs.c (procfs_xfer_memory): Ditto.
3896 * reverse.c (bookmarks_info): Ditto.
3897 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3898 * stack.c (_initialize_stack): Ditto.
3899 * tracepoint.c (_initialize_tracepoint): Ditto.
3900 * xtensa-tdep.c (xtensa_supply_gregset,
3901 xtensa_regset_from_core_section): Ditto.
3902
3903 2010-07-01 Tom Tromey <tromey@redhat.com>
3904
3905 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3906 check_all_valid.
3907 * value.c (value_entirely_optimized_out): Invert result. Update
3908 for new function name.
3909
3910 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3911
3912 Static tracepoints support.
3913
3914 * NEWS: Mention new support for static tracepoints.
3915 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3916 qXfer:statictrace:read.
3917 (New features in the GDB remote stub, GDBserver): Mention static
3918 tracepoints support using an UST based backend.
3919 (New commands): Mention "info static-tracepoint-markers" and
3920 "strace".
3921 * breakpoint.c (is_marker_spec): New.
3922 (is_tracepoint): Handle static tracepoints.
3923 (validate_commands_for_breakpoint): Static tracepoints can't do
3924 while-stepping.
3925 (static_tracepoints_here): New.
3926 (bpstat_what): Handle static tracepoints.
3927 (print_one_breakpoint_location, allocate_bp_location, mention):
3928 Ditto.
3929 (create_breakpoint_sal): Ditto.
3930 (decode_static_tracepoint_spec): New.
3931 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3932 `type_wanted'. Adjust. Handle static tracepoint marker
3933 locations.
3934 (break_command_1): Adjust.
3935 (update_static_tracepoint): New.
3936 (update_breakpoint_locations): Handle static tracepoints.
3937 (breakpoint_re_set_one): Handle static tracepoint marker
3938 locations.
3939 (disable_command, enable_command): Handle static tracepoints.
3940 (trace_command, ftrace_command): Adjust.
3941 (strace_command): New.
3942 (create_tracepoint_from_upload): Adjust.
3943 (save_breakpoints): Handle static tracepoints.
3944 (_initialize_breakpoint): Install the "strace" command.
3945 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3946 (struct breakpoint): New fields static_trace_marker_id and
3947 static_trace_marker_id_idx.
3948 (breakpoints_here_p): Declare.
3949 (create_breakpoint): Adjust.
3950 (static_tracepoints_here): Declare.
3951 * remote.c (struct remote_state) <static_tracepoints>: New field.
3952 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3953 (remote_static_tracepoint_marker_at): New.
3954 (remote_static_tracepoint_markers_by_strid): New.
3955 (remote_static_tracepoint_feature): New.
3956 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3957 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3958 (remote_supports_static_tracepoints): New.
3959 (remote_download_tracepoint): Download static tracepoints.
3960 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3961 remote_static_tracepoint_markers_by_strid.
3962 (_initialize_remote): Install set|show remote static-tracepoints,
3963 and set|show remote read-sdata-object commands.
3964 * target.c (update_current_target): Inherit and default
3965 to_static_tracepoint_marker_at, and
3966 to_static_tracepoint_markers_by_strid.
3967 * target.h (static_tracepoint_marker): Forward declare.
3968 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3969 (static_tracepoint_marker_p): New typedef.
3970 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3971 (struct target_ops): New fields to_static_tracepoint_marker_at and
3972 to_static_tracepoint_markers_by_strid.
3973 (target_static_tracepoint_marker_at)
3974 (target_static_tracepoint_markers_by_strid): New.
3975 * tracepoint.c: Include source.h.
3976 (validate_actionline): Handle $_sdata.
3977 (struct collection_list): New field strace_data.
3978 (add_static_trace_data): New.
3979 (clear_collection_list): Clear strace_data.
3980 (stringify_collection_list): Account for a possible static trace
3981 data collection.
3982 (encode_actions_1): Encode an $_sdata collection.
3983 (parse_tracepoint_definition): Handle static tracepoints.
3984 (parse_static_tracepoint_marker_definition): New.
3985 (release_static_tracepoint_marker): New.
3986 (print_one_static_tracepoint_marker): New.
3987 (info_static_tracepoint_markers_command): New.
3988 (sdata_make_value): New.
3989 (_initialize_tracepoint): Create the $_sdata convenience variable.
3990 Add the "info static-tracepoint-markers" command.
3991 Mention $_sdata in the "collect" command's help output.
3992 * tracepoint.h (struct static_tracepoint_marker): New.
3993 (parse_static_tracepoint_marker_definition)
3994 (release_static_tracepoint_marker): Declare.
3995 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3996 * python/py-breakpoint.c (bppy_new): Adjust.
3997
3998 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3999
4000 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
4001 including Python.h.
4002
4003 2010-06-29 Doug Evans <dje@google.com>
4004
4005 PR gdb/11702
4006 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
4007 DW_AT_external is present.
4008
4009 PR gdb/11702
4010 * NEWS: Add entry.
4011 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
4012 create a symbol for the field and record the value.
4013 (new_symbol): Handle DW_TAG_member.
4014 * gdbtypes.c (field_is_static): Remove FIXME.
4015 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
4016 only ignore LOC_CONST symbols that are enums.
4017
4018 * dwarf2read.c: Remove trailing whitespace.
4019
4020 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
4021 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
4022 (struct main_type, field loc): Delete dwarf_block.
4023 (FIELD_DWARF_BLOCK): Delete.
4024 (SET_FIELD_DWARF_BLOCK): Delete.
4025 (TYPE_FIELD_DWARF_BLOCK): Delete.
4026 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
4027 Update.
4028
4029 2010-06-29 Hui Zhu <teawater@gmail.com>
4030
4031 * record.c (set_record_pic_cmdlist,
4032 show_record_pic_cmdlist): New variables.
4033 (set_record_pic_command,
4034 show_record_pic_command): New functions.
4035 (record_pic_function, record_pic_line, record_pic_enum,
4036 set_record_pic_type, record_pic_hide_nofunction,
4037 record_pic_hide_nosource, record_pic_hide_same): New variables.
4038 (record_pic_fputs): New function.
4039 (function_list, node_list, edge_list): New struct.
4040 (function_list, node_list, edge_list): New variables.
4041 (record_pic_cleanups, record_pic_node,
4042 record_pic_edge, cmd_record_pic): New functions.
4043 (_initialize_record): Add new commands for record pic.
4044
4045 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4046
4047 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
4048 ALLOCATE_CPLUS_STRUCT_TYPE.
4049
4050 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
4051 Tom Tromey <tromey@redhat.com>
4052 Thiago Jung Bauermann <bauerman@br.ibm.com>
4053
4054 * value.c (pack_unsigned_long): New function.
4055 (value_from_ulongest): New function.
4056 * value.h (value_from_ulongest): Declare.
4057 * python/python.c (_initialize_python): Call
4058 gdbpy_initialize_thread and gdbpy_initialize_inferior.
4059 * python/python-internal.h: Define thread_object.
4060 (gdbpy_inferiors, gdbpy_selected_thread)
4061 (frame_info_to_frame_object, create_thread_object)
4062 (find_thread_object, find_inferior_object)
4063 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
4064 (gdbpy_is_value_object, get_addr_from_python): Declare.
4065 * python/py-value.c (builtin_type_upylong): Define.
4066 (convert_value_from_python): Add logic for ulongest.
4067 (gdbpy_is_value_object): New function.
4068 * python/py-utils.c (get_addr_from_python): New function.
4069 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
4070 (gdbpy_selected_frame): Use PyObject over frame_info.
4071 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
4072 py-infthread.
4073 (SUBDIR_PYTHON_SRCS): Likewise.
4074 (py-inferior.o): New Rule.
4075 (py-infthread.o): New Rule.
4076 * python/py-inferior.c: New File.
4077 * python/py-infthread.c: New File.
4078
4079 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4080
4081 * c-typeprint.c (c_type_print_base): For no fields check include also
4082 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4083 * dwarf2read.c (struct typedef_field_list)
4084 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4085 (dwarf2_add_typedef): New.
4086 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4087 Copy also FI.TYPEDEF_FIELD_LIST.
4088 * gdbtypes.h (struct typedef_field)
4089 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4090 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4091 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4092
4093 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4094
4095 * cp-namespace.c (cp_lookup_nested_type): New variable
4096 concatenated_name. Turn the current return condition into a reverse
4097 one. Call also lookup_static_symbol_aux on the constructed qualified
4098 name.
4099 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4100 other files into a called ...
4101 (lookup_static_symbol_aux): ... new function here.
4102 * symtab.h (lookup_static_symbol_aux): New prototype.
4103 * valops.c (value_maybe_namespace_elt): Call also
4104 lookup_static_symbol_aux if we failed otherwise.
4105
4106 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4107
4108 Fix PR c++/11703 and PR gdb/1448.
4109 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4110 FIRST_ITER check.
4111
4112 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4113
4114 Fix modification of cplus_struct_default.
4115 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4116 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4117 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4118
4119 2010-06-28 Joel Brobecker <brobecker@adacore.com>
4120
4121 * NEWS: Add entry announcing the python directory.
4122
4123 2010-06-28 Tom Tromey <tromey@redhat.com>
4124
4125 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4126
4127 2010-06-28 Doug Evans <dje@google.com>
4128
4129 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4130 All callers updated.
4131
4132 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4133
4134 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4135 obstack_begin after each obstack_free.
4136
4137 2010-06-27 Doug Evans <dje@google.com>
4138
4139 * value.c (value_static_field): Use `switch' instead of `if'.
4140 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4141
4142 * valops.c (search_struct_field): Fix typo in error message.
4143
4144 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4145
4146 * dwarf2expr.c (execute_stack_op): Place preprocessor
4147 directives at the start of the source line.
4148
4149 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4150
4151 * defs.h (make_command_stats_cleanup): Declare.
4152 (set_display_time): Declare.
4153 (set_display_space): Declare.
4154 * event-top.c (command_handler): Use make_command_stats_cleanup.
4155 * main.c (display_time, display_space): Move definitions to utils.c.
4156 (captured_main): Use make_command_stats_cleanup to get start-up
4157 statistics.
4158 Use set_display_time and set_display_space for processing OPT_STATISTICS
4159 case.
4160 * maint.c (maintenance_time_display): Use set_display_time.
4161 (maintenance_space_display): Use set_display_space.
4162 * top.c (execute_command): Remove obsolete 'maint time' code.
4163 (command_loop): Use make_command_stats_cleanup.
4164 * utils.c (struct cmd_stats): Structure for storing initial time
4165 and space usage.
4166 (display_time, display_space): Move definitions here from utils.c.
4167 (set_display_time): New function.
4168 (set_display_space): New function.
4169 (make_command_stats_cleanup): New function.
4170 (report_command_stats): New auxiliary function for
4171 make_command_stats_cleanup.
4172
4173 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4174
4175 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4176 hosts where CORE_ADDR is long long.
4177
4178 2010-06-25 Tom Tromey <tromey@redhat.com>
4179
4180 PR python/10808:
4181 * python/python.c (execute_gdb_command): Add keywords. Accept
4182 "to_string" argument.
4183 (struct restore_ui_file_closure): New.
4184 (restore_ui_file): New function.
4185 (make_cleanup_restore_ui_file): Likewise.
4186 (GdbMethods) <execute>: Update.
4187
4188 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4189
4190 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4191 during inferior call stack frame setup.
4192
4193 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4194
4195 * solib-spu.c: Include "exception.h".
4196 (ocl_program_data_key): New variable.
4197 (append_ocl_sos): New function.
4198 (ocl_enable_break): Likewise.
4199 (spu_current_sos): Call append_ocl_sos.
4200 (spu_solib_loaded): Call ocl_enable_break.
4201 (_initialize_spu_solib): Register ocl_program_data_key.
4202
4203 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4204
4205 * cp-support.c (reset_directive_searched): New function.
4206 (make_symbol_overload_list_using): Prevent recursive calls.
4207
4208 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4209
4210 * printcmd.c (print_variable_and_value): Print error message on
4211 caught exception.
4212
4213 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4214
4215 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4216 of stack values.
4217 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4218 "value" member.
4219 (dwarf_expr_push): Change input type to ULONGEST.
4220 (dwarf_expr_fetch): Change return type to ULONGEST.
4221 (dwarf_expr_fetch_address): Add prototype.
4222 (dwarf2_read_address): Remove prototype.
4223 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4224 Truncate stack values to ctx->addr_size bytes.
4225 (dwarf_expr_fetch): Change return value to ULONGEST.
4226 (dwarf_expr_fetch_address): New function.
4227 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4228 when appropriate. Update for struct dwarf_expr_piece changes.
4229 (dwarf2_read_address): Remove.
4230 (unsigned_address_type): Remove.
4231 (signed_address_type): Remove.
4232 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4233 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4234 values. Perform operations on ULONGEST instead of on GDB values,
4235 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4236 values and DW_OP_deref results as unsigned integers.
4237 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4238 changes.
4239 (write_pieced_value): Likewise.
4240 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4241 dwarf_expr_fetch when appropriate.
4242 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4243 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4244 instead of dwarf_expr_fetch when appropriate.
4245
4246 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4247
4248 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4249
4250 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4251
4252 * python/python.c (_initialize_python): Add new "constant"
4253 PYTHONDIR in gdb module. Insert this path at the head of
4254 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4255 exec its __init__.py script if it exists in that directory.
4256
4257 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4258
4259 * rx-tdep.c (RX_ACC_REGNUM): Define.
4260 (RX_NUM_REGS): Redefine to 26.
4261 (rx_register_name): Add register "acc". Change order of several
4262 registers. Change name of "vct" register to "fintv" to match RX
4263 documentation.
4264 (rx_register_type): Add case for RX_ACC_REGNUM.
4265
4266 2010-06-24 Tom Tromey <tromey@redhat.com>
4267
4268 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4269
4270 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4271 Tom Tromey <tromey@redhat.com>
4272
4273 Fix GDB startup on readonly filesystem.
4274 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4275
4276 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4277 Pedro Alves <pedro@codesourcery.com>
4278
4279 Fix PR 9436.
4280 * breakpoint.c (handle_jit_event): New function.
4281 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4282 jit, err, table and bs_class. New variables shlib_event, jit_event,
4283 this_action and bptype. Change bs_class assignments to this_action
4284 assignments. new unhandled bptype internal error. Move here
4285 shlib_event and jit_event handling from handle_inferior_event.
4286 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4287 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4288 BPSTAT_WHAT_CHECK_JIT.
4289 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4290 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4291 (handle_inferior_event): Reinitialize frame and gdbarch after
4292 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4293 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4294 gdbarch when frame gets reinitialized.
4295
4296 2010-06-24 Hui Zhu <teawater@gmail.com>
4297
4298 * printcmd.c (ui_printf): New function.
4299 (printf_command): Call ui_printf.
4300 (_initialize_printcmd): New command "eval".
4301
4302 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4303
4304 * infrun.c (handle_inferior_event): Handle presence of single-step
4305 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4306 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4307 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4308 * breakpoint.c (detach_single_step_breakpoints): New function.
4309 (detach_breakpoints): Call it.
4310 (cancel_single_step_breakpoints): New function.
4311 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4312
4313 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4314 (spu_gdbarch_init): Install it.
4315
4316 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4317
4318 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4319 * configure: Regenerate.
4320
4321 2010-06-22 Hui Zhu <teawater@gmail.com>
4322
4323 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4324 (i386_process_record): Ditto.
4325 * record.c (record_memory_query): New variable.
4326 (_initialize_record): New command "set record memory-query".
4327 * record.h (record_memory_query): New extern.
4328
4329 2010-06-21 Doug Evans <dje@google.com>
4330
4331 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4332 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4333 (i386_syscall_p): Change type of lengthp to int.
4334 (i386_displaced_step_fixup): Handle kernels that run one past a
4335 syscall insn.
4336 * i386-linux-tdep.c (i386_linux_init_abi): Use
4337 i386_displaced_step_copy_insn instead of
4338 simple_displaced_step_copy_insn.
4339
4340 2010-06-21 Tom Tromey <tromey@redhat.com>
4341
4342 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4343 (dwarf_type_encoding_name): Likewise.
4344
4345 2010-06-21 Tom Tromey <tromey@redhat.com>
4346
4347 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4348 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4349 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4350 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4351 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4352 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4353 * dwarf2read.c (tag_type_to_type): Create a new error type on
4354 failure.
4355 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4356 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4357
4358 2010-06-21 Michael Snyder <msnyder@vmware.com>
4359
4360 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4361 not add_abbrev_prefix_cmd, for "enable breakpoints".
4362
4363 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4364
4365 * dwarf2loc.c (find_location_expression): Add relocation offset
4366 to base-address-selection entry base addresses. Read addresses
4367 (and offsets) as signed/unsigned integers, depending on the
4368 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4369 (loclist_describe_location): Likewise.
4370 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4371 unsigned integer. Do not call dwarf2_read_address.
4372 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4373
4374 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4375
4376 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4377 value instead of hard-coded SPU_LS_SIZE.
4378 (spu_software_single_step): Likewise.
4379 * spu-tdep.h (SPU_LS_SIZE): Remove.
4380
4381 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4382
4383 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4384 limit on local store memory accesses.
4385 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4386 * spu-tdep.c (spu_lslr): Remove.
4387 (spu_pointer_to_address): Do not truncate addresses.
4388 (spu_integer_to_address): Likewise.
4389 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4390 * spu-tdep.h: Add comments.
4391 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4392 (SPU_OVERLAY_LMA): Define.
4393
4394 2010-06-18 Stan Shebs <stan@codesourcery.com>
4395
4396 * osdata.c (get_osdata): Warn separately if target does not report
4397 type list.
4398 (info_osdata_command): Allow empty type, report error if target
4399 does not return available types of OS data.
4400 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4401 types if no annex supplied.
4402
4403 * thread.c (thread_id_make_value): Make a value representing the
4404 current thread.
4405 (_initialize_thread): Create $_thread.
4406
4407 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4408
4409 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4410 last local variable declaration. No real code change.
4411
4412 2010-06-17 Tom Tromey <tromey@redhat.com>
4413
4414 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4415 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4416 temporary obstack.
4417
4418 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4419 Jan Kratochvil <jan.kratochvil@redhat.com>
4420
4421 * breakpoint.c: Include parser-defs.h.
4422 (watchpoint_exp_is_const): New function.
4423 (watch_command_1): Call watchpoint_exp_is_const to check
4424 if the expression is constant.
4425
4426 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4427
4428 * configure.ac: Check for RDYNAMIC also for cross builds.
4429 * configure: Regenerate.
4430
4431 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4432
4433 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4434 (SFILES): Remove solib-null.c, add solib-target.c.
4435 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4436 (ALLDEPFILES): Remove solib-target.c.
4437 * solib-target.c (_initialize_solib_target): Set
4438 current_target_so_ops to solib_target_so_ops if not already set.
4439 * solib-null.c: Delete.
4440
4441 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4442
4443 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4444 bytecode.
4445
4446 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4447
4448 * cp-valprint.c (cp_print_static_field): Members of
4449 dont_print_stat_array_obstack are of type "struct type *".
4450 (_initialize_cp_valprint): Likewise.
4451
4452 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4453
4454 * frame.c (frame_register_unwind): Do not access contents
4455 of "optimized out" unwound register value.
4456
4457 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4458
4459 * ada-lang.h (ada_print_type): Make varstring const.
4460 * ada-typeprint.c (print_func_type): Make name const.
4461 (ada_print_type): Make varstring const.
4462 * c-lang.h (c_print_type): Make varstring const.
4463 * c-typeprint.c (c_print_type): Likewise.
4464 * f-lang.h (f_print_type): Likewise.
4465 * f-typeprint.c (f_print_type): Likewise.
4466 * jv-lang.h (java_print_type): Likewise.
4467 * jv-typeprint.c (java_print_type): Likewise.
4468 * language.c (unk_lang_print_type): Likewise.
4469 * language.h (struct language_defn) <la_print_type>: Likewise.
4470 * m2-lang.h (m2_print_type): Likewise.
4471 * m2-typeprint.c (m2_print_type): Likewise.
4472 * p-lang.h (pascal_print_type): Likewise.
4473 * p-typeprint.c (pascal_print_type): Likewise.
4474
4475 2010-06-11 Stan Shebs <stan@codesourcery.com>
4476
4477 Add per-operation permission flags.
4478
4479 * target.h (struct target_ops): New method to_set_permissions.
4480 (target_set_permissions): New macro.
4481 (target_insert_breakpoint): Change macro to function.
4482 (target_remove_breakpoint): Ditto.
4483 (target_stop): Ditto.
4484 (may_write_registers): Declare.
4485 (may_write_memory): Declare.
4486 (may_insert_breakpoints): Declare.
4487 (may_insert_tracepoints): Declare.
4488 (may_insert_fast_tracepoints): Declare.
4489 (may_stop): Declare.
4490 * target.c (may_write_registers, may_write_registers_1): New globals.
4491 (may_write_memory, may_write_memory_1): New globals.
4492 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4493 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4494 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4495 globals.
4496 (may_stop, may_stop_1): New global.
4497 (target_xfer_partial): Test for write permission.
4498 (target_store_registers): Ditto.
4499 (target_insert_breakpoint): New function.
4500 (target_remove_breakpoint): New function.
4501 (target_stop): New function.
4502 (_initialize_targets): Add new set/show variables.
4503 (set_write_memory_permission): New function.
4504 (update_target_permissions): New function.
4505 (set_target_permissions): New function.
4506 (update_current_target): Default to_set_permissions.
4507 (_initialize_targets): Use new globals and setter function.
4508 * tracepoint.c (start_tracing): Test for permission.
4509 * inferior.h (update_observer_mode): Declare.
4510 * infrun.c (non_stop_1): Define earlier.
4511 (observer_mode, observer_mode_1): New globals.
4512 (set_observer_mode, show_observer_mode): New functions.
4513 (update_observer_mode): New function.
4514 (_initialize_infrun): Define "set observer" command.
4515 * remote.c (PACKET_QAllow): New optional packet.
4516 (remote_protocol_features): Add QAllow.
4517 (remote_set_permissions): New function.
4518 (remote_start_remote): Call it.
4519 (init_remote_ops): Add it to target vector.
4520 (_initialize_remote): Add config command for QAllow.
4521
4522 2010-06-11 Tom Tromey <tromey@redhat.com>
4523
4524 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4525 DW_AT_vtable_elem_location even when GCC extension is seen.
4526
4527 2010-06-11 Tom Tromey <tromey@redhat.com>
4528
4529 PR gdb/9977, PR exp/11636:
4530 * value.h (value_offset): Update.
4531 (struct lval_funcs) <check_validity>: New field.
4532 <copy_closure>: Make argument const.
4533 (value_computed_closure): Update.
4534 (value_contents_for_printing): Declare.
4535 (value_bits_valid): Likewise.
4536 (val_print): Likewise.
4537 (set_value_component_location): Update.
4538 (value_entirely_optimized_out): Declare.
4539 * value.c (value_offset): Argument now const.
4540 (require_not_optimized_out): New function.
4541 (value_contents_for_printing): New function.
4542 (value_contents_all): Call require_not_optimized_out.
4543 (value_contents): Likewise.
4544 (value_bits_valid): New function.
4545 (value_computed_closure): Argument now const.
4546 (set_value_component_location): Make 'whole' argument const.
4547 (value_entirely_optimized_out): New function.
4548 (value_bitsize): Argument now 'const'.
4549 (value_bitpos): Likewise.
4550 (value_type): Likewise.
4551 * valprint.h (val_print_array_elements): Update.
4552 * valprint.c (val_print): Add 'val' argument. Use
4553 valprint_check_validity.
4554 (valprint_check_validity): New function.
4555 (value_check_printable): Use value_entirely_optimized_out.
4556 (common_val_print): Update.
4557 (value_print): Likewise.
4558 (val_print_array_elements): Add 'val' argument.
4559 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4560 value_bits_valid. Reinit frame cache for lval_computed.
4561 * sh64-tdep.c (sh64_do_register): Update.
4562 * scm-valprint.c (scm_val_print): Add 'val' argument.
4563 * scm-lang.h (scm_val_print): Update.
4564 * python/python.h (apply_val_pretty_printer): Update.
4565 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4566 argument. Call set_value_component_location.
4567 * printcmd.c (print_scalar_formatted): Update.
4568 * p-valprint.c (pascal_val_print): Add 'val' argument.
4569 (pascal_object_print_value_fields): Likewise.
4570 (pascal_object_print_value): Likewise.
4571 (pascal_object_print_static_field): Update.
4572 * p-lang.h (pascal_val_print): Update.
4573 (pascal_object_print_value_fields): Update.
4574 * mt-tdep.c (mt_registers_info): Update.
4575 * mi/mi-main.c (get_register): Update.
4576 (mi_cmd_data_evaluate_expression): Use common_val_print.
4577 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4578 (m2_print_unbounded_array): Likewise.
4579 (m2_val_print): Likewise.
4580 * m2-lang.h (m2_val_print): Update.
4581 * language.h (struct language_defn) <la_val_print>: Add 'val'
4582 argument.
4583 (LA_VAL_PRINT): Likewise.
4584 * language.c (unk_lang_val_print): Add 'val' argument.
4585 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4586 (java_val_print): Likewise.
4587 * jv-lang.h (java_val_print): Add 'val' argument.
4588 * infcmd.c (default_print_registers_info): Update.
4589 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4590 (f77_print_array): Likewise.
4591 (f_val_print): Likewise.
4592 * f-lang.h (f_val_print): Add 'val' argument.
4593 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4594 value_bitpos.
4595 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4596 set_value_optimized_out.
4597 (write_pieced_value): Use value_bitsize and value_bitpos.
4598 <default>: Don't exit loop.
4599 (check_pieced_value_validity): New function.
4600 (pieced_value_funcs): Reference check_pieced_value_validity,
4601 check_pieced_value_invalid.
4602 (copy_pieced_value_closure): Update.
4603 (check_pieced_value_bits): New function.
4604 (check_pieced_value_invalid): New function.
4605 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4606 (d_val_print): Likewise.
4607 * d-lang.h (d_val_print): Update.
4608 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4609 (cp_print_value_fields_rtti): Likewise.
4610 (cp_print_value): Likewise.
4611 (cp_print_static_field): Update.
4612 * c-valprint.c (c_val_print): Add 'val' argument.
4613 (c_value_print): Update.
4614 * c-lang.h (c_val_print): Update.
4615 (cp_print_value_fields): Likewise.
4616 (cp_print_value_fields_rtti): Likewise.
4617 * ada-valprint.c (struct ada_val_print_args): Remove.
4618 (val_print_packed_array_elements): Add 'val' argument.
4619 (ada_val_print): Likewise. Rewrite.
4620 (ada_val_print_stub): Remove.
4621 (ada_val_print_array): Add 'val' argument.
4622 (ada_val_print_1): Likewise.
4623 (print_variant_part): Likewise.
4624 (ada_value_print): Update.
4625 (print_record): Add 'val' argument.
4626 (print_field_values): Likewise.
4627 * ada-lang.h (ada_val_print): Update.
4628
4629 2010-06-11 Tom Tromey <tromey@redhat.com>
4630
4631 * vec.h (VEC_cleanup): New macro.
4632 (DEF_VEC_ALLOC_FUNC_I): Update.
4633 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4634 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4635 * dwarf2loc.c (struct axs_var_loc): Remove.
4636 (unimplemented): New function.
4637 (translate_register): Likewise.
4638 (access_memory): Likewise.
4639 (compile_dwarf_to_ax): Likewise.
4640 (dwarf2_tracepoint_var_loc): Remove.
4641 (dwarf2_tracepoint_var_access): Likewise.
4642 (dwarf2_tracepoint_var_ref): Likewise.
4643 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4644 (loclist_tracepoint_var_ref): Likewise.
4645 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4646 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4647 require_composition. No longer static.
4648 (execute_stack_op): Update.
4649 * ax-gdb.h (trace_kludge): Declare.
4650
4651 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4652
4653 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4654 (should_be_inserted): Return zero also on NULL OWNER.
4655 (breakpoint_program_space_exit): New OWNER comment.
4656 (insert_breakpoint_locations): Extend comment for OWNER.
4657 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4658 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4659 New OWNER comment.
4660 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4661 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4662 (bpstat_check_location): New assert on OWNER.
4663 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4664 and B initializations to the code block. New assert on them.
4665 (print_one_breakpoint_location): New OWNER comment.
4666 (watchpoint_locations_match): Assert on OWNER.
4667 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4668 initializations to the code block. New assert on OWNER.
4669 (set_breakpoint_location_function): New assert on OWNER.
4670 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4671 (bp_location_compare, update_global_location_list)
4672 (update_global_location_list): New OWNER comment.
4673
4674 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4675
4676 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4677
4678 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4679
4680 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4681 (lin_thread_get_thread_signals): Remove prototype.
4682 (GET_THREAD_SIGNALS): Remove.
4683 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4684 * linux-thread-db.c (check_thread_signals): Directly call
4685 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4686
4687 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4688
4689 * gregset.h (GDB_FPXREGSET_T): Remove.
4690 (gdb_fpxregset_t): Likewise.
4691 (supply_fpxregset): Remove prototype.
4692 (fill_fpxregset): Likewise.
4693 * i386-linux-nat.c (supply_fpxregset): Remove.
4694 (fill_fpxregset): Likewise.
4695 (fetch_fpxregs): Inline supply_fpxregset call.
4696 (store_fpxregs): Inline fill_fpxregset call.
4697
4698 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4699 * config/i386/nm-linux.h: Remove file.
4700
4701 2010-06-09 Michael Snyder <msnyder@vmware.com>
4702
4703 * target.c (update_current_target): Fix spelling error in comment.
4704 (target_mourn_inferior): Fix spelling error in error message.
4705
4706 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4707
4708 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4709 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4710
4711 2010-06-08 Michael Snyder <msnyder@vmware.com>
4712
4713 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4714
4715 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4716
4717 * configure.ac <"${have_libpython}" != no>: New workaround of
4718 python#4434.
4719 * configure: Regenerate.
4720
4721 2010-06-08 Hui Zhu <teawater@gmail.com>
4722
4723 * record.c (record_wait): Move signal out of replay code.
4724
4725 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4726
4727 Fix PR 10640.
4728 * dwarf2-frame.c (no_dwarf_call): New function.
4729 (execute_stack_op): Set CTX->DWARF_CALL.
4730 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4731 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4732 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4733 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4734 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4735 (needs_frame_dwarf_call): New function.
4736 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4737 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4738 Update the comment. Move variables die, offset and error call to ...
4739 (follow_die_ref): ... a new function.
4740 (dwarf2_fetch_die_location_block): New function.
4741 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4742
4743 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4744
4745 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4746 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4747 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4748 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4749 this change.
4750 (struct needs_frame_baton): New field per_cu.
4751 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4752 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4753
4754 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4755
4756 * cp-support.c (make_symbol_overload_list_namespace): Only search
4757 static and global blocks.
4758 (make_symbol_overload_list_block): New function.
4759 (make_symbol_overload_list): Separate namespace search from block
4760 search.
4761 (make_symbol_overload_list_qualified): Use
4762 make_symbol_overload_list_block.
4763
4764 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4765
4766 * value.h: Created oload_search_type enum.
4767 (find_overload_match): Use oload_search_type enum.
4768 * valops.c (find_overload_match): Support combined member and
4769 non-member search.
4770 * eval.c (evaluate_subexp_standard): Calls to
4771 find_overload_match now use oload_search_type enum.
4772 (oload_method_static): Verify index is a proper value.
4773 * valarith.c (value_user_defined_cpp_op): Search for and handle
4774 both member and non-member operators.
4775 (value_user_defined_cpp_op): New function.
4776 (value_user_defined_op): New function.
4777 (value_x_unop): Use value_user_defined_op.
4778 (value_x_binop): Ditto.
4779 * cp-support.c (make_symbol_overload_list_using): Added block
4780 iteration.
4781 Add check for namespace aliases and imported declarations.
4782
4783 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4784
4785 * breakpoint.h (owner): Extend the comment.
4786
4787 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4788
4789 Clear stale specific bp_location from former whole breakpoint.
4790 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4791 code ...
4792 (free_bp_location): ... here. Rename there the called function to
4793 bpstat_remove_bp_location_callback.
4794 (bpstat_remove_breakpoint_callback): Rename to ...
4795 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4796 to struct bp_location. Change the called function to
4797 bpstat_remove_bp_location. Create new declaration for the function.
4798 (bpstat_remove_breakpoint): Rename to ...
4799 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4800 code for the new parameter type.
4801
4802 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4803
4804 * README: Make version-agnostic.
4805
4806 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4807
4808 Fix duplicate types for single DIE.
4809 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4810 set_die_type.
4811 (read_array_type): Remove type initialization. Recheck get_die_type
4812 after initial die_type. Move set_die_type before set_descriptive_type.
4813 (read_set_type): New variable domain_type. Recheck get_die_type after
4814 initial die_type. Move attr initialization later.
4815 (read_tag_pointer_type, read_tag_reference_type): New variable
4816 target_type. Recheck get_die_type after initial die_type.
4817 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4818 die_type and die_containing_type.
4819 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4820 Recheck get_die_type after initial die_type.
4821 (read_subrange_type): Recheck get_die_type after initial die_type.
4822 Move set_die_type before set_descriptive_type.
4823 (set_die_type): Extend the function comment. Call complaint if DIE has
4824 some type already set.
4825
4826 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4827
4828 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4829 for current naming of thread groups (iN, not N).
4830
4831 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4832
4833 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4834 * parse.c (operator_length): Likewise.
4835 (operator_length_standard): Likewise.
4836 * parser-defs.h (operator_length): Likewise.
4837 (operator_length_standard): Likewise.
4838 (struct exp_descriptor <operator_length>): Likewise.
4839
4840 2010-06-04 Doug Evans <dje@google.com>
4841
4842 Add support for enabling/disabling individual pretty-printers.
4843 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4844 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4845 * python/python.c (gdbpy_enabled_cst): Define.
4846 (_initialize_python): Initialize gdbpy_enabled_cst.
4847 * NEWS: Add entry.
4848
4849 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4850
4851 * breakpoint.c (update_global_location_list): Fix comment typo.
4852
4853 2010-06-04 Hui Zhu <teawater@gmail.com>
4854
4855 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4856
4857 2010-06-03 Doug Evans <dje@google.com>
4858
4859 * configure.ac: Don't fail if python is unusable when
4860 configured with --with-python=auto.
4861 * configure: Regenerate.
4862
4863 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4864
4865 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4866
4867 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4868
4869 * valprint.h (get_array_bounds): Change low and high parameter types
4870 to LONGEST *.
4871 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4872 compute bounds.
4873 (val_print_array_elements): Adapt to change above.
4874 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4875 * p-valprint.c (pascal_val_print): Likewise.
4876
4877 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4878
4879 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4880 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4881 .F08.
4882
4883 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4884
4885 Support DW_TAG_module as separate namespaces.
4886 * dwarf2read.c (typename_concat): New parameter physname.
4887 (read_module_type): New function and declaration.
4888 (scan_partial_symbols): Scan also DW_TAG_module children.
4889 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4890 to typename_concat backward compatible physname value 0.
4891 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4892 backward compatible physname value 0.
4893 (add_partial_module, read_module): Remove FIXME comment.
4894 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4895 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4896 DIEs under DW_TAG_module.
4897 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4898 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4899 && physname and return there instead of just setting NAME. Extend
4900 the main block for language_fortran. Pass physname parameter to the
4901 typename_concat call.
4902 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4903 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4904 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4905 missing from SYMBOL_SET_NAMES in the language_fortran case.
4906 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4907 variables.
4908 (read_type_die) <DW_TAG_module>: New.
4909 (MAX_SEP_LEN): Increase to 7.
4910 (typename_concat): New parameter physname. New variable lead. Support
4911 also language_fortran.
4912 * f-exp.y (yylex): Consider : also as a symbol name character class.
4913 * f-lang.c: Include cp-support.h.
4914 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4915 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4916 f_word_break_characters and f_make_symbol_completion_list.
4917 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4918 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4919 * symtab.c (symbol_init_language_specific): Support language_fortran.
4920 (symbol_find_demangled_name): New comment on language_fortran.
4921 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4922 for language_fortran.
4923 (lookup_symbol_aux_local): Check imports also for language_fortran.
4924 (default_make_symbol_completion_list): Rename to ...
4925 (default_make_symbol_completion_list_break_on): ... this name. New
4926 parameter break_on, use it.
4927 (default_make_symbol_completion_list): New stub.
4928 * symtab.h (default_make_symbol_completion_list_break_on): New
4929 prototype.
4930
4931 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4932
4933 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4934 to error.
4935
4936 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4937
4938 * dwarf2read.c (typename_concat): Add const to the variable sep.
4939
4940 2010-06-02 Tom Tromey <tromey@redhat.com>
4941
4942 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4943 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4944 type is const. Add 'def' argument. Add missing operators, remove
4945 unhandled ones.
4946 (decode_locdesc): Update.
4947 (dwarf2_always_disassemble): New global.
4948 (show_dwarf2_always_disassemble): New function.
4949 (_initialize_dwarf2_read): Add always-disassemble.
4950 (dwarf2_per_cu_offset_size): New function.
4951 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4952 (piece_end_p): New function.
4953 (locexpr_describe_location_piece): Replace 'size' argument with
4954 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4955 some constants. Remove errors.
4956 (disassemble_dwarf_expression): New function.
4957 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4958 Add 'offset_size' argument.
4959 (loclist_describe_location): Change output formatting.
4960 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4961
4962 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4963
4964 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4965 anonymous type case.
4966
4967 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4968
4969 * dwarf2read.c (read_subrange_type): Handle missing base type
4970 according to Dwarf-2 specifications.
4971
4972 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4973
4974 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4975 BINOP_EXCL.
4976 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4977 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4978 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4979 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4980 UNOP_CHMAX, UNOP_CHMIN.
4981 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4982 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4983 UNOP_CHMIN>: Remove opcodes.
4984
4985 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4986
4987 * dwarf2read.c (read_func_scope): Do not complain for
4988 external function if bounds are not found.
4989
4990 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4991
4992 * NEWS: Mention gdbserver fast tracepoints support.
4993
4994 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4995
4996 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4997 New macros.
4998 (windows_set_console_info): New function.
4999 (windows_create_inferior): Call windows_set_console_info
5000 if NEW_CONSOLE is true.
5001 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
5002 (_initialize_loadable): Initialize GetConsoleFontSize and
5003 GetCurrentConsoleFont.
5004
5005 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5006
5007 * Makefile.in (RDYNAMIC): New.
5008 (SFILES): Add proc-service.list.
5009 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
5010 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
5011 * config/arm/linux.mh: Likewise.
5012 * config/i386/linux.mh: Likewise.
5013 * config/i386/linux64.mh: Likewise.
5014 * config/ia64/linux.mh: Likewise.
5015 * config/m32r/linux.mh: Likewise.
5016 * config/m68k/linux.mh: Likewise.
5017 * config/mips/linux.mh: Likewise.
5018 * config/pa/linux.mh: Likewise.
5019 * config/powerpc/linux.mh: Likewise.
5020 * config/powerpc/ppc64-linux.mh: Likewise.
5021 * config/s390/s390.mh: Likewise.
5022 * config/sparc/linux.mh: Likewise.
5023 * config/sparc/linux64.mh: Likewise.
5024 * config/xtensa/linux.mh: Likewise.
5025 * configure.ac: New RDYNAMIC on native host and GCC.
5026 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
5027 * configure: Regenerate.
5028 * proc-service.list: New.
5029
5030 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5031
5032 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
5033 CONTENT.
5034
5035 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5036
5037 * linux-nat.c (linux_nat_wait_1): Do not call
5038 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
5039 TARGET_WAITKIND_SIGNALLED.
5040
5041 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5042
5043 * ada-lang.c (ada_inferior_data): New struct.
5044 (ada_inferior_data): New static global.
5045 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
5046 (ada_get_tsd_type): New functions.
5047 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
5048 to look the tsd type up.
5049 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
5050 event. Set ada_inferior_data.
5051
5052 2010-05-27 Pedro Alves <pedro@codesourcery.com>
5053
5054 * remote.c (unpack_varlen_hex): Remove forward declaration.
5055 (remote_console_output): Make static, and add forward declaration.
5056 * remote.h: Drop FIXME comment.
5057 (unpack_varlen_hex): Declare.
5058 (remote_console_output, remote_cisco_objfile_relocate)
5059 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
5060 Delete declarations.
5061 * tracepoint.c: Include "remote.h".
5062 (unpack_varlen_hex): Delete declaration.
5063
5064 2010-05-27 Tom Tromey <tromey@redhat.com>
5065
5066 * dwarf2loc.c (struct piece_closure) <refc>: New field.
5067 (allocate_piece_closure): Initialize refc.
5068 (copy_pieced_value_closure): Use refc.
5069 (free_pieced_value_closure): Likewise.
5070
5071 2010-05-27 Tom Tromey <tromey@redhat.com>
5072
5073 * arm-tdep.c (push_stack_item): 'contents' now const.
5074 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
5075 value_contents_writeable. Introduce new temporary.
5076
5077 2010-05-27 Tom Tromey <tromey@redhat.com>
5078
5079 * findcmd.c (parse_find_args): Use value_contents, not
5080 value_contents_raw.
5081
5082 2010-05-27 Tom Tromey <tromey@redhat.com>
5083
5084 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5085 const. Use value_contents, not value_contents_writeable.
5086
5087 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5088
5089 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5090 by call to value_contents.
5091
5092 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5093
5094 * MAINTAINERS: Add myself for write after approval privileges.
5095
5096 2010-05-26 Doug Evans <dje@google.com>
5097
5098 Allow python to find its files if moved from original location.
5099 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5100 (GDB_AC_WITH_DIR): Call it.
5101 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5102 python installation directory.
5103 * config.in: Regenerate.
5104 * configure: Regenerate.
5105 * defs.h (python_libdir): Declare.
5106 * main.c (python_libdir): Define.
5107 (captured_main): Initialize python_libdir.
5108 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5109 call Py_SetProgramName to make sure python can find its libraries
5110 and modules.
5111
5112 * configure.ac: Try to use python's distutils to fetch compilation
5113 parameters.
5114 * configure: Regenerate.
5115 * python/python-config.py: New file.
5116
5117 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5118
5119 * ser-tcp.c (net_open): Check error return from socket() call by its
5120 equality to -1 not by it being negative.
5121 (net_close): Likewise.
5122
5123 2010-05-26 Pedro Alves <pedro@codesourcery.com>
5124
5125 * NEWS: Mention the `qRelocInsn' feature.
5126 * gdbarch.sh (relocate_instruction): New.
5127 * amd64-tdep.c (rip_relative_offset): New.
5128 (append_insns): New.
5129 (amd64_relocate_instruction): New.
5130 (amd64_init_abi): Install it.
5131 * i386-tdep.c (append_insns): New.
5132 (i386_relocate_instruction): New.
5133 (i386_gdbarch_init): Install it.
5134 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5135 * gdbarch.h, gdbarch.c: Regenerate.
5136
5137 2010-05-26 Tom Tromey <tromey@redhat.com>
5138
5139 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5140 (struct dwarf2_loclist_baton) <data>: Likewise.
5141 * dwarf2loc.c (find_location_expression): Constify return type.
5142 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5143 (dwarf2_loc_desc_needs_frame): Likewise.
5144 (loclist_read_variable): Constify.
5145 (loclist_describe_location): Likewise.
5146 (loclist_tracepoint_var_ref): Likewise.
5147
5148 2010-05-25 Tom Tromey <tromey@redhat.com>
5149
5150 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5151 (dwarf_expr_frame_base_1): Likewise.
5152 (read_pieced_value): Update.
5153 (needs_frame_frame_base): Constify.
5154 (dwarf2_tracepoint_var_loc): Likewise.
5155 (dwarf2_tracepoint_var_access): Likewise.
5156 (locexpr_describe_location_piece): Likewise.
5157 (locexpr_describe_location_1): Likewise.
5158 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5159 Constify.
5160 (data): Now const.
5161 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5162 (dwarf_expr_eval, read_uleb128, read_sleb128)
5163 (dwarf2_read_address): Update.
5164 * dwarf2expr.c (dwarf_expr_eval): Constify.
5165 (read_uleb128): Likewise.
5166 (read_sleb128): Likewise.
5167 (dwarf2_read_address): Likewise.
5168 (require_composition): Likewise.
5169 (execute_stack_op): Likewise.
5170 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5171 "const gdb_byte *".
5172 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5173 Now const.
5174 (no_get_frame_base): Constify.
5175 (execute_stack_op): Likewise.
5176 (execute_cfa_program): Likewise.
5177 (read_encoded_value): Likewise.
5178
5179 2010-05-25 Doug Evans <dje@google.com>
5180
5181 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5182
5183 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5184 * event-loop.c: ... here.
5185 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5186 `error' for clarity.
5187 (tui_getc): Pass correct value for `error' parameter to
5188 tui_readline_output.
5189
5190 Add python gdb.GdbError and gdb.string_to_argv.
5191 * NEWS: Document them.
5192 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5193 the exception is gdb.GdbError. Print a second traceback if there's
5194 an error computing the error message.
5195 (gdbpy_string_to_argv): New function.
5196 * python/py-utils.c (gdbpy_obj_to_string): New function.
5197 (gdbpy_exception_to_string): New function.
5198 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5199 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5200 (gdbpy_gdberror_exc): Declare.
5201 * python/python.c (gdbpy_gdberror_exc): New global.
5202 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5203 gdb.GdbError.
5204 (GdbMethods): Add string_to_argv.
5205
5206 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5207
5208 * windows-nat.c (display_selector): Call GetLastError to give better
5209 failure explanation.
5210
5211 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5212
5213 * config.in: Regenerate.
5214
5215 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5216
5217 Code cleanup.
5218 * target.c (push_target): Return only void. Remove the return value
5219 comment.
5220 * target.h (push_target): Return only void.
5221
5222 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5223
5224 Update gnulib from latest git.
5225 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5226
5227 * gnulib/memcmp.c: Removed.
5228 * gnulib/memchr.valgrind: New.
5229 * gnulib/stddef.in.h: New.
5230 * gnulib/Makefile.am: Updated.
5231 * gnulib/memchr.c: Updated.
5232 * gnulib/memmem.c: Updated.
5233 * gnulib/stdint.in.h: Updated.
5234 * gnulib/str-two-way.h: Updated.
5235 * gnulib/string.in.h: Updated.
5236 * gnulib/wchar.in.h: Updated.
5237
5238 * gnulib/extra/link-warning.h: Removed.
5239 * gnulib/extra/c++defs.h: New.
5240 * gnulib/extra/warn-on-use.h: New.
5241 * gnulib/extra/arg-nonnull.h: Updated.
5242
5243 * gnulib/m4/extensions.m4: Updated.
5244 * gnulib/m4/gnulib-cache.m4: Updated.
5245 * gnulib/m4/gnulib-common.m4: Updated.
5246 * gnulib/m4/gnulib-comp.m4: Updated.
5247 * gnulib/m4/gnulib-tool.m4: Updated.
5248 * gnulib/m4/include_next.m4: Updated.
5249 * gnulib/m4/longlong.m4: Updated.
5250 * gnulib/m4/memchr.m4: Updated.
5251 * gnulib/m4/memmem.m4: Updated.
5252 * gnulib/m4/stdint.m4: Updated.
5253 * gnulib/m4/string_h.m4: Updated.
5254 * gnulib/m4/memcmp.m4: Removed.
5255 * gnulib/m4/onceonly_2_57.m4: Removed.
5256 * gnulib/m4/00gnulib.m4: New.
5257 * gnulib/m4/mmap-anon.m4: New.
5258 * gnulib/m4/multiarch.m4: New.
5259 * gnulib/m4/onceonly.m4: New.
5260 * gnulib/m4/stddef_h.m4: New.
5261 * gnulib/m4/warn-on-use.m4: New.
5262 * gnulib/m4/wchar.m4: Removed.
5263 * gnulib/m4/wchar_h.m4: New.
5264 * gnulib/m4/wchar_t.m4: New.
5265 * gnulib/m4/wint_t.m4: New.
5266
5267 * aclocal.m4: Regenerate.
5268 * config.in: Likewise.
5269 * configure: Likewise.
5270 * gnulib/Makefile.in: Likewise.
5271
5272 2010-05-21 Tom Tromey <tromey@redhat.com>
5273
5274 * dwarf2loc.c (extract_bits_primitive): New function.
5275 (extract_bits): Likewise.
5276 (insert_bits): Likewise.
5277 (copy_bitwise): Likewise.
5278 (read_pieced_value): Do all operations in bits.
5279 (write_pieced_value): Likewise.
5280 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5281 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5282 Always use xrealloc to resize piece array.
5283 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5284 <DW_OP_piece>: Update.
5285 <DW_OP_bit_piece>: New case.
5286
5287 2010-05-21 Tom Tromey <tromey@redhat.com>
5288
5289 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5290 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5291 * dwarf2expr.h (enum dwarf_value_location)
5292 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5293 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5294 (add_piece): Handle empty piece.
5295 (execute_stack_op) <DW_OP_piece>: Handle
5296 DWARF_VALUE_OPTIMIZED_OUT.
5297
5298 2010-05-21 Tom Tromey <tromey@redhat.com>
5299
5300 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5301 evaluate_subexp, not evaluate_subexp_with_coercion.
5302
5303 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5304
5305 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5306 attribute.
5307
5308 2010-05-21 Tom Tromey <tromey@redhat.com>
5309
5310 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5311 offset.
5312 (write_pieced_value): Likewise.
5313
5314 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5315
5316 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5317 and DW_TAG_volatile_type.
5318 (new_symbol): Likewise.
5319
5320 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5321
5322 * p-valprint.c (pascal_val_print): Call get_array_bounds
5323 to obtain the number of elements in an array.
5324
5325 2010-05-19 Doug Evans <dje@google.com>
5326
5327 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5328
5329 * python.c (source_python_script): Add comment.
5330 (source_python_script_for_objfile): Remove unnecessary call to
5331 gdbpy_print_stack.
5332
5333 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5334 Sergio Durigan Junior <sergiodj@redhat.com>
5335
5336 Code cleanup.
5337 * parse.c (exp_iterate): Use operator_length wrapper function.
5338
5339 2010-05-18 Michael Snyder <msnyder@vmware.com>
5340
5341 * ada-lang.c: White space.
5342 * ada-typeprint.c: White space.
5343 * ada-valprint.c: White space.
5344 * addrmap.c: White space.
5345 * auxv.c: White space.
5346 * ax-gdb.c: White space.
5347
5348 2010-05-18 Hui Zhu <teawater@gmail.com>
5349
5350 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5351 for oldfp.
5352 (inferior_call_waitpid): Move make_cleanup out of check.
5353 Check the return of waitpid.
5354 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5355
5356 2010-05-17 Michael Snyder <msnyder@vmware.com>
5357
5358 * tui/tui.c: White space.
5359 * tui/tui-data.c: White space.
5360 * tui/tui-disasm.c: White space.
5361 * tui/tui-file.c: White space.
5362 * tui/tui-interp.c: White space.
5363 * tui/tui-main.c: White space.
5364 * tui/tui-out.c: White space.
5365 * tui/tui-regs.c: White space.
5366 * tui/tui-source.c: White space.
5367 * tui/tui-stack.c: White space.
5368 * tui/tui-win.c: White space.
5369 * tui/tui-winsource.c: White space.
5370
5371 * procfs.c: White space.
5372
5373 * python/py-auto-load.c: White space.
5374 * python/py-block.c: White space.
5375 * python/py-breakpoint.c: White space.
5376 * python/py-cmd.c: White space.
5377 * python/py-function.c: White space.
5378 * python/py-lazy-string.c: White space.
5379 * python/py-objfile.c: White space.
5380 * python/py-param.c: White space.
5381 * python/py-prettyprint.c: White space.
5382 * python/py-progspace.c: White space.
5383 * python/py-symtab.c: White space.
5384 * python/python.c: White space.
5385 * python/py-type.c: White space.
5386 * python/py-utils.c: White space.
5387 * python/py-value.c: White space.
5388
5389 * mi/mi-cmd-break.c: White space.
5390 * mi/mi-cmd-env.c: White space.
5391 * mi/mi-cmds.c: White space.
5392 * mi/mi-cmd-stack.c: White space.
5393 * mi/mi-cmd-var.c: White space.
5394 * mi/mi-console.c: White space.
5395 * mi/mi-getopt.c: White space.
5396 * mi/mi-interp.c: White space.
5397 * mi/mi-main.c: White space.
5398 * mi/mi-out.c: White space.
5399 * mi/mi-parse.c: White space.
5400
5401 * cli/cli-cmds.c: White space.
5402 * cli/cli-decode.c: White space.
5403 * cli/cli-dump.c: White space.
5404 * cli/cli-interp.c: White space.
5405 * cli/cli-logging.c: White space.
5406 * cli/cli-script.c: White space.
5407 * cli/cli-setshow.c: White space.
5408
5409 * valarith.c: White space.
5410 * valops.c: White space.
5411 * valprint.c: White space.
5412 * value.c: White space.
5413 * varobj.c: White space.
5414 * xcoffread.c: White space.
5415 * xml-support.c: White space.
5416 * xml-tdesc.c: White space.
5417
5418 2010-05-17 Andreas Schwab <schwab@redhat.com>
5419
5420 PR gdb/11092
5421 * c-lang.c (c_printstr): Compute real length of NUL terminated
5422 string at first.
5423
5424 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5425
5426 * parse.c (parse_exp_in_context): When block is not NULL, use
5427 its associated language to parse the expression instead of
5428 the current_language.
5429
5430 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5431
5432 * jv-lang.c (java_lookup_class): Remove commented out code.
5433 (type_from_class): Likewise.
5434 (java_op_print_tab): Remove commented-out elements.
5435
5436 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5437
5438 * ada-lang.c (to_fixed_range_type): The the raw index type as
5439 argument instead of the raw type name. Remove orig_type parameter.
5440 Update calls throughout.
5441 (ada_fixup_array_indexes_type): New function.
5442 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5443 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5444 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5445 Remove name parameter.
5446 (print_array_type): Add call to ada_fixup_array_indexes_type.
5447 Update calls to print_range_type.
5448 (ada_print_type): Update calls to print_range_type.
5449
5450 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5451
5452 * dwarf2read.c (read_set_type): Set type length if
5453 DW_AT_byte_size attribute is present.
5454
5455 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5456
5457 * p-valprint.c (pascal_val_print): Handle set type if range limits
5458 are undefined but size is known.
5459
5460 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5461
5462 * procfs.c: Reformat.
5463
5464 2010-05-16 Michael Snyder <msnyder@vmware.com>
5465
5466 * target.c: White space.
5467 * target-descriptions.c: White space.
5468 * target-memory.c: White space.
5469 * thread.c: White space.
5470 * top.c: White space.
5471 * tracepoint.c: White space.
5472 * trad-frame.c: White space.
5473 * tramp-frame.c: White space.
5474 * ui-file.c: White space.
5475 * ui-out.c: White space.
5476 * user-regs.c: White space.
5477 * utils.c: White space.
5478
5479 * scm-exp.c: White space.
5480 * scm-lang.c: White space.
5481 * scm-valprint.c: White space.
5482 * sentinel-frame.c: White space.
5483 * ser-base.c: White space.
5484 * ser-go32.c: White space.
5485 * serial.c: White space.
5486 * ser-mingw.c: White space.
5487 * ser-pipe.c: White space.
5488 * ser-tcp.c: White space.
5489 * ser-unix.c: White space.
5490 * solib.c: White space.
5491 * solib-darwin.c: White space.
5492 * solib-frv.c: White space.
5493 * solib-irix.c: White space.
5494 * solib-osf.c: White space.
5495 * solib-pa64.c: White space.
5496 * solib-som.c: White space.
5497 * solib-spu.c: White space.
5498 * solib-svr4.c: White space.
5499 * solib-target.c: White space.
5500 * source.c: White space.
5501 * stabsread.c: White space.
5502 * stack.c: White space.
5503 * std-regs.c: White space.
5504 * symfile.c: White space.
5505 * symmisc.c: White space.
5506 * symtab.c: White space.
5507
5508 2010-05-16 Michael Snyder <msnyder@vmware.com>
5509
5510 * source.c (_initialize_source): Add "rev" as an abbreviation
5511 for the "reverse-search" command.
5512
5513 2010-05-16 Michael Snyder <msnyder@vmware.com>
5514
5515 * record.c: White space.
5516 * regcache.c: White space.
5517 * reggroups.c: White space.
5518 * remote-fileio.c: White space.
5519 * remote-m32r-sdi.c: White space.
5520 * remote-mips.c: White space.
5521 * remote-sim.c: White space.
5522 * remote.c: White space.
5523 (process_g_packet): Remove orphan braces.
5524
5525 2010-05-15 Michael Snyder <msnyder@vmware.com>
5526
5527 * parse.c: White space.
5528 * p-lang.c: White space.
5529 * posix-hdep.c: White space.
5530 * printcmd.c: White space.
5531 * progspace.c: White space.
5532 * prologue-value.c: White space.
5533 * psymtab.c: White space.
5534 * p-typeprint.c: White space.
5535 * p-valprint.c: White space.
5536
5537 * objc-lang.c: White space.
5538 * objfiles.c: White space.
5539 * observer.c: White space.
5540 * osabi.c: White space.
5541 * osdata.c: White space.
5542
5543 * m2-lang.c: White space.
5544 * m2-valprint.c: White space.
5545 * macrocmd.c: White space.
5546 * macroexp.c: White space.
5547 * macroscope.c: White space.
5548 * macrotab.c: White space.
5549 * main.c: White space.
5550 * maint.c: White space.
5551 * mdebugread.c: White space.
5552 * memattr.c: White space.
5553 * minsyms.c: White space.
5554 * monitor.c: White space.
5555
5556 2010-05-14 Michael Snyder <msnyder@vmware.com>
5557
5558 * jv-lang.c: White space.
5559 * jv-typeprint.c: White space.
5560 * jv-valprint.c: White space.
5561 * language.c: White space.
5562 * libunwind-frame.c: White space.
5563 * linespec.c: White space.
5564 * linux-nat.c: White space.
5565 * linux-record.c: White space.
5566 * linux-thread-db.c: White space.
5567
5568 * infcall.c: White space.
5569 * inf-child.c: White space.
5570 * infcmd.c: White space.
5571 * inferior.c: White space.
5572 * inf-loop.c: White space.
5573 * inflow.c: White space.
5574 * inline-frame.c: White space.
5575 * interps.c: White space.
5576
5577 * gcore.c: White space.
5578 * gdb.c: White space.
5579 * gdbtypes.c: White space.
5580 * gnu-nat.c: White space.
5581 * gnu-v2-abi.c: White space.
5582 * gnu-v3-abi.c: White space.
5583
5584 * findcmd.c: White space.
5585 * findvar.c: White space.
5586 * fork-child.c: White space.
5587 * frame-base.c: White space.
5588 * frame.c: White space.
5589 * frame-unwind.c: White space.
5590 * f-valprint.c: White space.
5591
5592 * elfread.c: White space.
5593 * environ.c: White space.
5594 * eval.c: White space.
5595 * event-loop.c: White space.
5596 * event-top.c: White space.
5597 * exceptions.c: White space.
5598 * exec.c: White space.
5599 * expprint.c: White space.
5600
5601 * dbxread.c: White space.
5602 * dcache.c: White space.
5603 * disasm.c: White space.
5604 * doublest.c: White space.
5605 * dsrec.c: White space.
5606 * dummy-frame.c: White space.
5607 * dwarf2expr.c: White space.
5608 * dwarf2-frame.c: White space.
5609 * dwarf2loc.c: White space.
5610 * dwarf2read.c: White space.
5611
5612 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5613
5614 PR python/11482
5615
5616 * python/py-value.c (valpy_hash): New function.
5617 (value_object_type): Register valpy_hash.
5618
5619 2010-05-14 Hui Zhu <teawater@gmail.com>
5620 Michael Snyder <msnyder@vmware.com>
5621
5622 * linux-fork.c (gdbthread.h): New include.
5623 (fork_info): Add parent_ptid.
5624 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5625 functions.
5626 (delete_checkpoint_command): Call inferior_call_waitpid.
5627 (checkpoint_command): Set parent_ptid.
5628
5629 2010-05-13 Michael Snyder <msnyder@vmware.com>
5630
5631 * dictionary.c: Re-indent to GNU coding standard.
5632
5633 * charset.c: White space.
5634 * c-lang.c: White space.
5635 * cli-out.c: White space.
5636 * coffread.c: White space.
5637 * complaints.c: White space.
5638 * completer.c: White space.
5639 * corefile.c: White space.
5640 * corelow.c: White space.
5641 * cp-abi.c: White space.
5642 * cp-namespace.c: White space.
5643 * cp-support.c: White space.
5644 * cp-valprint.c: White space.
5645 * c-typeprint.c: White space.
5646 * c-valprint.c: White space.
5647 * blockframe.c: White space.
5648 * breakpoint.c: White space.
5649 * buildsym.c: White space.
5650 * blockframe.c: White space.
5651 * bcache.c: White space.
5652 * gdbarch.sh: White space, add blank lines.
5653 * arch-utils.c: Ditto.
5654 * gdbarch.c: Regenerate.
5655 * frame.c: White space, add blank lines.
5656 * stack.c: White space, add blank lines.
5657 (initialize_stack): Remove long-dead code.
5658
5659 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5660
5661 Code cleanup.
5662 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5663 (locexpr_read_variable, loclist_read_variable): Update the callers.
5664
5665 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5666
5667 Code cleanup.
5668 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5669 Remove check of NULL returned by tag_type_to_type.
5670 (die_containing_type): Remove variable type. Remove type_die variable
5671 initialization. Remove check of NULL returned by tag_type_to_type.
5672
5673 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5674
5675 PR exp/11530.
5676 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5677 names of unnamed structures or unions.
5678
5679 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5680
5681 * procfs.c (proc_watchpoint_address): New function.
5682 (procfs_stopped_by_watchpoint): Remove useless check after
5683 find_procinfo_or_die call.
5684 (procfs_stopped_data_address): New function.
5685 (procfs_use_watchpoints): Register new watchpoint related function.
5686
5687 2010-05-11 Tom Tromey <tromey@redhat.com>
5688
5689 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5690
5691 2010-05-10 Michael Snyder <msnyder@vmware.com>
5692
5693 * utils.c: White space cleanup.
5694
5695 2010-05-10 Tom Tromey <tromey@redhat.com>
5696
5697 * eval.c (ptrmath_type_p): Add 'lang' argument.
5698 (evaluate_subexp_standard): Update.
5699 (evaluate_subexp_with_coercion): Update.
5700 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5701
5702 2010-05-10 Michael Snyder <msnyder@vmware.com>
5703
5704 * utils.c (do_fclose_cleanup) Restore local variable.
5705
5706 2010-05-09 Doug Evans <dje@google.com>
5707
5708 * record.c (init_record_core_ops): Rename record_core to record-core.
5709
5710 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5711
5712 Implement task switching on pa-hpux.
5713 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5714 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5715
5716 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5717
5718 * valops.c (find_overload_match): Add missing i18n markup.
5719
5720 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5721
5722 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5723
5724 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5725
5726 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5727 list for the obconcat call.
5728 * mdebugread.c (parse_symbol): Likewise.
5729 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5730 Likewise.
5731 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5732 New variable ap. Remove variables len and val.
5733 * symfile.h (obconcat): Likewise for the prototype.
5734
5735 2010-05-07 Michael Snyder <msnyder@vmware.com>
5736
5737 * python/python.c (execute_gdb_command): Remove unused variables.
5738 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5739 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5740 Remove unused variable.
5741 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5742 (cmdpy_completer): Remove unused variable.
5743 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5744 * python/py-function.c (fnpy_call): Remove unused variable.
5745 * python/py-objfile.c (objfile_to_objfile_object):
5746 Remove unused variable.
5747 * python/py-param.c (parmpy_init): Remove unused variable.
5748 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5749 Remove unused variable.
5750 (gdbpy_default_visualizer): Remove unused variable.
5751 * python/py-progspace.c (pspace_to_pspace_object):
5752 Remove unused variable.
5753 * python/py-symtab.c (symtab_and_line_to_sal_object):
5754 Remove unused variable.
5755 * python/py-type.c (typy_template_argument):
5756 Remove unused variable.
5757 * python/py-value.c (valpy_string): Remove unused variable.
5758 (convert_value_from_python): Remove unused variables.
5759
5760 2010-05-07 Michael Snyder <msnyder@vmware.com>
5761
5762 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5763 and use it to compute variable 't1'.
5764
5765 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5766
5767 * ada-lang.c (assign_aggregate): Remove unused variable.
5768
5769 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5770
5771 PR C++/7943:
5772 * valops.c (find_overload_match): Handle fsym == NULL case.
5773 Add int no_adl argument.
5774 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5775 when appropriate.
5776 Add int no_adl argument.
5777 (find_oload_champ_namespace): Add int no_adl argument.
5778 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5779 expression.
5780 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5781 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5782 Evaluate arguments and use them to perform ADL lookup.
5783 Pass no_adl argument to find_overload_match.
5784 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5785 * cp-support.h: Added prototype for
5786 make_symbol_overload_list_namespace.
5787 * cp-support.c (make_symbol_overload_list_namespace): New function.
5788 (make_symbol_overload_list_adl_namespace): New function.
5789 (make_symbol_overload_list_adl): New function.
5790 (make_symbol_overload_list_using): Moved code to add function to
5791 overload set to make_symbol_overload_list_namespace.
5792 * c-exp.y: create UNKNOWN_CPP_NAME token.
5793 Add parse rule for ADL functions.
5794 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5795
5796 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5797
5798 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5799 sentinel.
5800
5801 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5802
5803 Implement task switching on solaris targets.
5804 * sol-thread.c (thread_db_find_thread_from_tid)
5805 (sol_get_ada_task_ptid): New functions.
5806 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5807
5808 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5809
5810 * remote.c (remote_query_supported_append): Use reconcat.
5811 (remote_query_supported): Install a cleanup. Use reconcat.
5812
5813 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5814
5815 * gdbarch.sh (qsupported): Delete.
5816 * gdbarch.h, gdbarch.c: Regenerate.
5817 * remote.c (remote_query_supported): Remove use of
5818 gdbarch_qsupported.
5819
5820 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5821
5822 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5823 function.
5824
5825 2010-05-06 Michael Snyder <msnyder@vmware.com>
5826
5827 * xml-support.c (xinclude_start_include): Delete unused variable.
5828 (xml_process_xincludes): Delete unused variable.
5829 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5830 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5831 (tdesc_find_arch_register): Delete unused variable.
5832 (tdesc_use_registers): Delete unused variable.
5833 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5834 * inferior.c (print_inferior): Delete unused variable.
5835 * record.c (record_open_1): Delete unused variable.
5836 (record_restore): Delete unused variable.
5837 (cmd_record_save): Delete unused variable.
5838 * gcore.c (derive_heap_segment): Delete unused variable.
5839 (objfile_find_memory_regions): Use unused variable.
5840 * jit.c (jit_inferior_init): Delete unused variable.
5841 * progspace.c (clone_program_space): Delete unused variable.
5842 (pspace_empty_p): Delete unused variable.
5843
5844 * frame-unwind.c (frame_unwind_find_by_frame):
5845 Delete unused variable.
5846 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5847 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5848 (method_name_from_physname): Delete unused variable.
5849 (cp_func_name): Delete unused variable.
5850 (cp_validate_operator): Delete unused variable.
5851 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5852 Delete unused variable.
5853 * trad-frame.c (trad_frame_get_prev_register):
5854 Delete unused variable.
5855 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5856
5857 * serial.c (serial_for_fd): Delete unused variable.
5858 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5859 * top.c (execute_command): Delete unused variable.
5860 (init_main): Delete unused variable.
5861 * utils.c (do_fclose_cleanup): Delete unused variable.
5862 (do_all_inferior_continuations): Delete unused variable.
5863 (initialize_utils): Delete unused variable.
5864 (internal_problem_mode): Delete unused global.
5865 * frame.c (get_prev_frame): Delete unused global.
5866 (get_frame_locals_address): Delete unused global.
5867 (get_frame_args_address): Delete unused global.
5868
5869 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5870 (pascal_type_print_varspec_prefix): Delete unused variable.
5871 * f-typeprint.c (f_type_print_base): Delete unused variable.
5872 (f_type_print_varspec_suffix): Delete unused variable.
5873 * m2-typeprint.c (m2_print_type): Delete unused variable.
5874 (m2_long_set): Delete unused variable.
5875 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5876 * d-valprint.c (dynamic_array_type): Delete unused variable.
5877 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5878 Delete unused variable.
5879 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5880 * m2-valprint.c (m2_val_print): Delete unused variable.
5881
5882 * ui-out.c (ui_out_field_int): Delete unused variable.
5883 (ui_out_field_fmt_int): Delete unused variable.
5884 * varobj.c (varobj_list_children): Delete unused variable.
5885 (varobj_set_value): Delete unused variable.
5886 (install_new_value_visualizer): Delete unused variable.
5887 (varobj_set_visualizer): Delete unused variable.
5888 (varobj_update): Delete unused variable.
5889 (varobj_editable_p): Delete unused variable.
5890 (c_value_of_root): Delete unused variable.
5891 (cplus_describe_child): Delete unused variable.
5892
5893 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5894 (decode_constrained_packed_array_type): Delete unused variable.
5895 (add_defn_to_vec): Delete unused variable.
5896 (symbol_completion_match): Delete unused variable.
5897 (value_tag_from_contents_and_address): Delete unused variable.
5898 (ada_evaluate_subexp): Delete unused variable.
5899 * c-lang.c (classify_type): Delete unused variable.
5900 * f-lang.c (f_printstr): Delete unused variable.
5901 * objc-lang.c (objc_printstr): Delete unused variable.
5902 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5903 * jv-lang.c (type_from_class): ifdef unused variable.
5904 (java_class_name_from_physname): Delete unused variable.
5905 * m2-lang.c (m2_printstr): Delete unused variable.
5906
5907 * objfiles.c (objfile_relocate): Delete unused variable.
5908 * maint.c (_initialize_maint_cmds): Delete unused variable.
5909 * demangle.c (_initialize_demangler): Delete unused variable.
5910 * corefile.c (reopen_exec_file): Delete unused variable.
5911 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5912 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5913
5914 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5915 * memattr.c (mem_delete): Delete unused variable.
5916 (invalidate_target_mem_regions): Delete unused variable.
5917 * mem-break.c (default_memory_insert_breakpoint):
5918 Delete unused variable.
5919 * target.c (target_get_osdata): Delete unused variable.
5920 * parse.c (length_of_subexp): Delete unused variable.
5921 (prefixify_subexp): Delete unused variable.
5922 (exp_iterate): Delete unused variable.
5923 * reverse.c (delete_bookmark_command): Delete unused variable.
5924
5925 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5926 * macroexp.c (gather_arguments): Delete unused variable.
5927 (substitute_args): Delete unused variable.
5928 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5929 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5930 (_initialize_gdbarch): Delete unused variable.
5931 * gdbarch.c, gdbarch.h: Regenerate.
5932 * arch-utils.c (initialize_current_architecture):
5933 Delete unused variable.
5934 (_initialize_gdbarch_utils): Delete unused variable.
5935 * gdbtypes.c (make_cv_type): Delete unused variable.
5936 (make_type_with_address_space): Delete unused variable.
5937
5938 * linespec.c (decode_compound): Delete unused variable.
5939 * dictionary.c (iterator_next_hashed): Delete unused variable.
5940 * infcall.c (call_function_by_hand): Delete unused variable.
5941 * infcmd.c (step_1): Delete unused variable.
5942 (registers_info): Delete unused variable.
5943 (attach_command): Delete unused variable.
5944 * infrun.c (follow_exec): Delete unused variable.
5945 (handle_step_into_function_backwards): Delete unused variable.
5946 (_initialize_infrun): Delete unused variable.
5947 * stack.c (parse_frame_specification_1): Delete unused variable.
5948 (frame_info): Delete unused variable.
5949 (backtrace_command_1): Delete unused variable.
5950 (catch_info): Delete unused variable.
5951
5952 * eval.c (evaluate_subexp_standard): Delete unused variable.
5953 * valops.c (value_cast_pointers): Delete unused variable.
5954 (value_dynamic_cast): Delete unused variable.
5955 (value_array): Delete unused variable.
5956 (find_overload_match): Delete unused variable.
5957 * valarith.c (value_subscript): Delete unused variable.
5958 (value_binop): Delete unused variable.
5959 * valprint.c (_initialize_valprint): Delete unused variable.
5960 * printcmd.c (print_command_1): Delete unused variable.
5961 (address_info): Delete unused variable.
5962 (printf_command): Delete unused variable.
5963
5964 * auxv.c (target_auxv_search): Delete unused variable.
5965 * blockframe.c (get_frame_block): Delete unused variable.
5966 * regcache.c (regcache_cpy): Delete unused variable.
5967 (regcache_cpy_no_passthrough): Delete unused variable.
5968 * charset.c (wchar_iterate): Delete unused variable.
5969 (find_charset_names): Delete unused variable.
5970 (_initialize_charset): Delete unused variable.
5971 * disasm.c (do_mixed_source_and_assembly):
5972 Delete unused variable.
5973 * source.c (set_default_source_symtab_and_line):
5974 Delete unused variable.
5975 (set_substitute_path_command): Delete unused variable.
5976 * value.c (preserve_values): Delete unused variable.
5977 (value_from_double): Delete unused variable.
5978
5979 2010-05-05 Michael Snyder <msnyder@vmware.com>
5980
5981 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5982 (find_last_source_symtab_from_partial): Delete unused variable.
5983 * symfile.c (place_section): Delete unused variable.
5984 (default_symfile_offsets): Delete unused variable.
5985 (get_debug_link_info): Delete unused variable.
5986 (find_separate_debug_file_by_debuglink): Delete unused variable.
5987 (add_symbol_file_command): Delete unused variable.
5988 (symfile_find_segment_sections): Delete unused variable.
5989 * symmisc.c (free_symtab): Delete unused variable.
5990 (dump_symtab_1): Delete unused variable.
5991 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5992 (find_pc_sect_symtab): Delete unused variable.
5993 (skip_prologue_using_lineinfo): Delete unused variable.
5994 (sources_info): Delete unused variable.
5995 (completion_list_add_name): Delete unused variable.
5996 (expand_line_sal): Delete unused variable.
5997
5998 * breakpoint.c (validate_commands_for_breakpoint):
5999 Delete unused variables.
6000 (insert_catchpoint): Delete unused variable.
6001 (update_watchpoint): Delete unused variable.
6002 (insert_bp_location): Delete unused variable.
6003 (insert_breakpoint_locations): Delete unused variable.
6004 (remove_breakpoint_1): Delete unused variable.
6005 (software_breakpoint_inserted_here_p): Delete unused variable.
6006 (watchpoints_triggered): Delete unused variable.
6007 (bpstat_check_watchpoint): Delete unused variable.
6008 (bpstat_stop_status): Delete unused variable.
6009 (print_one_breakpoint_location): Delete unused variable.
6010 (allocate_bp_location): Delete unused variable.
6011 (create_breakpoint): Delete unused variable.
6012 (watch_command_1): Delete unused variable.
6013 (catch_exception_command_1): Delete unused variable.
6014 (catch_ada_exception_command): Delete unused variable.
6015 (delete_breakpoint): Delete unused variable.
6016 (breakpoint_re_set_one): Delete unused variable.
6017 (do_enable_breakpoint): Delete unused variable.
6018
6019 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6020
6021 * amd64-tdep.c: Include disasm.h.
6022 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
6023 (amd64_insn_length): Moved to disasm.c and renamed.
6024 (fixup_riprel): Adjust.
6025 * disasm.c (do_ui_file_delete): New.
6026 (gdb_insn_length): New.
6027 (gdb_buffered_insn_length_fprintf)
6028 (gdb_buffered_insn_length_init_dis)
6029 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
6030 renamed.
6031 * disasm.h (gdb_insn_length): Declare.
6032 (gdb_buffered_insn_length): Declare.
6033
6034 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6035
6036 * remote.c (clear_threads_parsing_context): New.
6037 (remote_threads_info): Delete unused null_cleanup. Install a
6038 cleanup to clear the threads_parsing_context in case parsing
6039 throws.
6040
6041 2010-05-05 Michael Snyder <msnyder@vmware.com>
6042
6043 * c-exp.y (parse_string_or_char): Delete unused variable.
6044 (c_lex): Delete unused variable.
6045 * cp-name-parser.y (cpname_lex): Delete unused variable.
6046 * ada-exp.y (find_primitive_type): Delete unused variable.
6047 (write_var_or_type): Delete unused variable.
6048 * jv-exp.y (java_parse): Delete unused variable.
6049 (push_expression_name): Delete unused variable.
6050 * p-exp.y (pascal_lex): Delete unused variable.
6051
6052 2010-05-05 Pedro Alves <pedro@codesourcery.com>
6053
6054 * remote.c (remote_threads_info): Really revert previous previous
6055 change.
6056
6057 2010-05-05 Michael Snyder <msnyder@vmware.com>
6058
6059 * elfread.c (elf_symtab_read): Delete unused variable.
6060 (find_separate_debug_file_by_buildid): Delete unused variables.
6061 (elf_symfile_read): Delete unused variable.
6062
6063 * coffread.c (coff_symfile_read): Delete unused variables.
6064
6065 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
6066 (read_pe_exported_syms): Delete unused variable.
6067
6068 * stabsread.c (define_symbol): Delete unused variable.
6069
6070 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
6071 (process_psymtab_comp_unit): Delete unused variable.
6072 (dwarf2_build_psymtabs_hard): Delete unused variable.
6073 (load_partial_comp_unit): Delete unused variable.
6074 (create_all_comp_units): Delete unused variable.
6075 (scan_partial_symbols): Delete unused variable.
6076 (add_partial_symbol): Delete unused variable.
6077 (add_partial_namespace): Delete unused variable.
6078 (add_partial_enumeration): Delete unused variable.
6079 (load_full_comp_unit): Delete unused variable.
6080 (process_full_comp_unit): Delete unused variable.
6081 (read_file_scope): Delete unused variable.
6082 (read_type_unit_scope): Delete unused variable.
6083 (process_structure_scope): Delete unused variable.
6084 (process_enumeration_scope): Delete unused variable.
6085 (read_tag_ptr_to_member_type): Delete unused variable.
6086 (read_typedef): Delete unused variable.
6087 (read_partial_die): Delete unused variable.
6088 (decode_locdesc): Delete unused variable.
6089 (zeroed_partial_die): Delete unused global variable.
6090
6091 * tui/tui-interp.c (_initialize_tui_interp):
6092 Delete unused variable.
6093 * tui/tui-regs.c tui_display_registers_from):
6094 Delete unused variable.
6095 (tui_check_register_values): Delete unused variable.
6096 (tui_register_format): Delete unused variable.
6097 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
6098 * tui/tui-windata.c (tui_display_data_from_line):
6099 Delete unused variables.
6100 (tui_vertical_data_scroll): Delete unused variables.
6101
6102 2010-05-05 Michael Snyder <msnyder@vmware.com>
6103
6104 * remote.c (remote_threads_info): Revert questionable part of
6105 the previous change.
6106
6107 2010-05-05 Michael Snyder <msnyder@vmware.com>
6108
6109 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6110 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6111 (mi_cmd_var_list_children): Delete unused variable.
6112 (varobj_update_one): Delete unused variable.
6113 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
6114 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
6115 Delete unused variable.
6116 (mi_cmd_stack_list_variables): Delete unused variable.
6117 (list_args_or_locals): Delete unused variable.
6118 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
6119 Delete unused variables.
6120 (mi_cmd_file_list_exec_source_files): Delete unused variable.
6121 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
6122 Delete unused variable.
6123 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6124 (mi_cmd_interpreter_exec): Delete unused variable.
6125 (mi_on_normal_stop): Delete unused variable.
6126 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6127 (print_one_inferior): Delete unused variables.
6128 (mi_execute_command): Delete unused variable.
6129 (mi_cmd_execute): Delete unused variable.
6130 (timestamp): Delete unused variable.
6131
6132 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6133 (restore_binary_file): Delete unused variable.
6134 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6135 * cli/cli-script.c (define_command): Delete unused variables.
6136 (recurse_read_control_structure): Delete unused variable.
6137 (script_from_file): Delete unused variable.
6138 * cli/cli-cmds.c (complete_command): Delete unused variable.
6139 (disassemble_command): Delete unused variable.
6140
6141 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6142 * tracepoint.c (delete_trace_variable_command):
6143 Delete unused variables.
6144 (encode_actions_1): Delete unused variables.
6145 (start_tracing): Delete unused variable.
6146 (trace_status_mi): Delete unused variable.
6147 (tfind_1): Delete unused variable.
6148 (trace_find_pc_command): Delete unused variable.
6149 (trace_find_line_command): Delete unused variables.
6150 (trace_find_range_command): Delete unused variables.
6151 (trace_find_outside_command): Delete unused variables.
6152 (parse_tracepoint_definition): Delete unused variables.
6153 (tfile_fetch_registers): Delete unused variable.
6154
6155 * dcache.c (dcache_init): Delete unused variable.
6156 (dcache_info): Delete unused variable.
6157
6158 * remote.c (remote_threads_info): Delete unused variable.
6159 (process_stop_reply) :Delete unused variable.
6160 (remote_get_trace_status): Delete unused variables.
6161
6162 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6163 (thread_from_lwp): Delete unused variable.
6164 (enable_thread_event_reporting): Delete unused variable.
6165 (check_for_thread_db): Delete unused variables.
6166 (thread_db_find_new_threads_2): Delete unused variable.
6167
6168 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6169 (checkpoint_command): Delete unused variable.
6170 (linux_fork_context): Delete unused variables.
6171
6172 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6173 (linux_tracefork_child): Delete unused variable.
6174 (linux_child_follow_fork): Delete unused variable.
6175 (linux_nat_detach): Delete unused variable.
6176 (linux_handle_extended_wait): Delete unused variable.
6177 (linux_nat_has_pending_sigint): Delete unused variable.
6178 (linux_nat_find_memory_regions): Delete unused variable.
6179 (linux_nat_make_corefile_notes): Delete unused variables.
6180 (linux_nat_info_proc_cmd): Delete unused variable.
6181 (linux_proc_pending_signals): Delete unused variable.
6182 (linux_nat_stop_lwp): Delete unused variables.
6183 (_initialize_linux_nat): Delete unused variable.
6184
6185 * ser-pipe.c (pipe_ops): Delete unused global variable.
6186
6187 * linux-record.c (record_linux_system_call):
6188 Delete unused variables.
6189
6190 * corelow.c (core_xfer_partial): Delete unused variables.
6191
6192 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6193 (svr4_solib_create_inferior_hook): Add ifdef around
6194 conditionally-used variable declarations.
6195
6196 * solib.c (solib_find): Delete unused variable.
6197 (free_so_symbols): Delete unused variable.
6198 (info_sharedlibrary_command): Delete unused variable.
6199 (reload_shared_libraries_1): Delete unused variable.
6200 (_initialize_solib): Delete unused variable.
6201
6202 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6203 (i386_collect_xstateregset): Delete unused variable.
6204 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6205
6206 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6207 Delete unused variable 'type'.
6208
6209 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6210
6211 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6212 ada-lang.c: Remove comment mentioning these macros.
6213 * m2-exp.y: Delete commented out code.
6214
6215 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6216
6217 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6218 for array types.
6219 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6220
6221 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6222
6223 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6224 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6225 ATTRIBUTE_UNUSED.
6226 (cleanup_kernel_helper_return): Likewise.
6227 * arm-tdep.c (copy_unmodified): Likewise.
6228 (copy_preload): Likewise.
6229 (copy_copro_load_store): Likewise.
6230 (cleanup_branch): Likewise.
6231 (copy_b_bl_blx): Likewise.
6232 (copy_bx_blx_reg): Likewise.
6233 (copy_alu_imm): Likewise.
6234 (copy_alu_reg): Likewise.
6235 (copy_alu_shifted_reg): Likewise.
6236 (cleanup_load): Likewise.
6237 (cleanup_store): Likewise.
6238 (cleanup_block_load_pc): Likewise.
6239 (cleanup_svc): Likewise.
6240 (copy_undef): Likewise.
6241 (copy_unpred): Likewise.
6242 * remote.c (register_remote_support_xml): Likewise.
6243
6244 2010-05-05 Hui Zhu <teawater@gmail.com>
6245
6246 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6247
6248 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6249
6250 * remote.c (register_remote_support_xml)
6251 (remote_query_supported_append, remote_query_supported): Add cast
6252 to NULL used as sentinel.
6253 * tracepoint.c (tvariables_info_1): Likewise.
6254 * utils.c (add_internal_problem_command): Likewise.
6255
6256 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6257
6258 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6259 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6260 registers gracefully.
6261
6262 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6263
6264 * exec.c (print_section_info): Display entry point without arch
6265 specific parts.
6266
6267 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6268
6269 PR exp/11349.
6270 * printcmd.c (x_command): Only dereference once implicitly for
6271 TYPE_CODE_REF.
6272
6273 2010-05-03 Doug Evans <dje@google.com>
6274
6275 * event-loop.c (gdb_timer): Delete unused global.
6276 (create_timer): Update.
6277
6278 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6279
6280 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6281 CURRENT->DECLARATION case.
6282 * cp-support.h (struct using_direct): Provide extended comment.
6283
6284 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6285
6286 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6287 HPPABSD_SIZEOF_GREGS.
6288 (HPPAOBSD_SIZEOF_FPREGS): New define.
6289 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6290 (hppaobsd_supply_fpregset): New function.
6291 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6292 (hppaobsd_fpregset): New variable.
6293 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6294 (_initialize_hppabsd_tdep): Remove spurious blank line.
6295
6296 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6297
6298 PR pascal/11349.
6299 * p-valprint.c (pascal_value_print): Always dereference a value with
6300 type code TYPE_CODE_REF.
6301
6302 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6303
6304 * remote.c (remote_notice_signals): New.
6305 (remote_start_remote): In non-stop mode, update the remote end on
6306 which signals it can silently pass.
6307 (init_remote_ops): Install remote_notice_signals.
6308
6309 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6310
6311 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6312 * command.h (error_no_arg): ... here. Remove NORETURN, change
6313 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6314 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6315 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6316 (internal_verror, internal_error, nomem): Remove NORETURN, change
6317 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6318 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6319 (throw_vfatal, throw_error): Remove NORETURN.
6320 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6321 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6322 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6323 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6324 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6325 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6326 NORETURN.
6327 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6328 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6329 ATTRIBUTE_NORETURN.
6330 * target.c (tcomplain): Likewise.
6331 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6332 ATTRIBUTE_NORETURN.
6333 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6334 (internal_error, perror_with_name, nomem): Remove NORETURN.
6335 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6336 ATTRIBUTE_NORETURN.
6337
6338 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6339
6340 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6341 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6342 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6343 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6344 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6345 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6346 * complaints.h (complaint, internal_complaint): Likewise.
6347 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6348 (ATTR_FORMAT): Remove.
6349 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6350 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6351 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6352 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6353 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6354 (internal_error, internal_vwarning, internal_warning, warning)
6355 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6356 * disasm.c (fprintf_disasm): Likewise.
6357 * exceptions.c (throw_it): Likewise.
6358 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6359 (throw_error): Likewise.
6360 * language.h (type_error, range_error): Likewise.
6361 * linespec.c (cplusplus_error): Likewise.
6362 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6363 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6364 * monitor.c (monitor_debug): Likewise.
6365 * parser-defs.h (parser_fprintf): Likewise.
6366 * serial.h (serial_printf): Likewise.
6367 * tui/tui-hooks.c (tui_query_hook): Likewise.
6368 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6369 (uo_message): Likewise.
6370 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6371 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6372 Likewise.
6373 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6374
6375 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6376
6377 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6378 (cli_table_header, cli_begin, cli_end, cli_field_int)
6379 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6380 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6381 Delete forward declarations.
6382 (cli_ui_out_impl): Move below the callbacks.
6383 (_initialize_cli_out): Delete.
6384
6385 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6386
6387 * README: Use consistent `GDB' and `GDBserver' spellings.
6388
6389 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6390
6391 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6392
6393 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6394
6395 * infrun.c (prepare_for_detach): In non-stop, context switch to
6396 the thread that got the event before handling the event.
6397
6398 2010-04-30 Tom Tromey <tromey@redhat.com>
6399
6400 * symtab.c (symbol_set_names): Fix typo.
6401
6402 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6403
6404 * python/py-param.c (parm_constants): Avoid ARI warning
6405 by adding ARI comment.
6406 (parmpy_init): Likewise.
6407
6408 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6409
6410 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6411 and created type for re-use.
6412
6413 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6414
6415 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6416
6417 2010-04-29 Doug Evans <dje@google.com>
6418
6419 * ser-base.h (reschedule): Delete prototype.
6420 * ser-base.c (reschedule): Make static.
6421
6422 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6423
6424 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6425 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6426 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6427 EABI.
6428 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6429 use.
6430
6431 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6432
6433 PR gdb/11557
6434
6435 * regcache.c (registers_changed): Rename to ...
6436 (registers_changed_ptid): ... this, and only delete register cache
6437 entries matching the ptid filter argument.
6438 (registers_changed): Reimplement on top of registers_changed_ptid.
6439 * regcache.h (registers_changed_ptid): Declare.
6440 * target.c (target_resume): Flush register caches.
6441
6442 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6443 Tom Tromey <tromey@redhat.com>
6444 Thiago Jung Bauermann <bauerman@br.ibm.com>
6445
6446 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6447 (SUBDIR_PYTHON_SRCS): Likewise.
6448 (py-parameter.o): New rule.
6449 * python/py-parameter.c: New file.
6450 * python/python-internal.h (gdbpy_initialize_parameter)
6451 (gdbpy_parameter, gdbpy_parameter_value)
6452 (gdbpy_parse_command_name): Declare.
6453 * python/py-cmd.c (parse_command_name): Rename to
6454 gdbpy_parse_command_name.
6455 (gdbpy_parse_command_name): Accept a starting list parameter and
6456 use over cmdlist.
6457 (cmdpy_init): Use gdbpy_parse_command_name.
6458 * python/python.c (parameter_to_python): Rename to
6459 gdbpy_parameter_to_python. Accept enum var_types and value.
6460 (gdbpy_parameter): Use gdbpy_parameter_value.
6461 (_initialize_python): Call gdbpy_initialize_parameters.
6462
6463 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6464
6465 * MAINTAINERS: Add myself for write after approval privileges.
6466
6467 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6468
6469 D language support.
6470 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6471 (COMMON_OBS): Add d-lang.o d-valprint.o.
6472 (HFILES_NO_SRCDIR): Add d-lang.h.
6473 * NEWS: Mention D language support.
6474 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6475 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6476 * d-lang.c: New file.
6477 * d-lang.h: New file.
6478 * d-valprint.c: New file.
6479 * defs.h (enum language): Add language_d.
6480 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6481 * language.c (binop_result_type, integral_type, character_type)
6482 (string_type, boolean_type, structured_type): Add language_d.
6483 * symfile.c (init_filename_language_table): Add language_d.
6484 * symtab.c: Include d-lang.h.
6485 (symbol_init_language_specific, symbol_find_demangled_name)
6486 (symbol_natural_name, lookup_symbol_in_language)
6487 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6488
6489 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6490
6491 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6492
6493 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6494
6495 * symfile.c (init_filename_language_table): Register .dg files
6496 with language_ada.
6497
6498 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6499
6500 * gdbtypes.h (struct main_type): Expand comment about target_type
6501 field.
6502
6503 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6504 Tristan Gingold <gingold@adacore.com>
6505
6506 * symfile.c (reread_symbols): Also search for file in libraries.
6507 Update comment.
6508
6509 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6510
6511 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6512 in terms of configuration.
6513
6514 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6515
6516 * objfiles.c: Include solist.h.
6517 (free_all_objfiles): New variable so. Check stale solist objfiles.
6518 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6519 and no_shared_libraries.
6520
6521 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6522
6523 ARI warning fix.
6524 * python/py-auto-load.c (source_section_scripts): Remove trailing
6525 new-line in i18n string.
6526
6527 2010-04-26 Doug Evans <dje@google.com>
6528
6529 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6530
6531 2010-04-26 Tom Tromey <tromey@redhat.com>
6532
6533 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6534 command list.
6535
6536 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6537
6538 Removal of config/i386/nm-i386sol2.h native configuration file.
6539 * config/i386/nm-i386sol2.h: Remove file.
6540 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6541 * config/i386/sol2-64.mh: Idem.
6542 * config/djgpp/fnchange.lst: Remove reference to that file.
6543 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6544
6545 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6546
6547 PR breakpoints/11531.
6548 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6549 macro definition and related comment.
6550 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6551 (resume): Remove code and comment related to this macro.
6552
6553 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6554
6555 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6556 Fix whitespace.
6557
6558 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6559
6560 * defs.h: Adjust comment.
6561 * filesystem.h, filesystem.c: New files.
6562 * Makefile.in (SFILES): Add filesystem.c.
6563 (COMMON_OBS): Add filesystem.o.
6564 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6565 different target and host path flavours.
6566 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6567 has_dos_based_file_system on the gdbarch.
6568 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6569 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6570 * i386-tdep.c (i386_go32_init_abi): Ditto.
6571 * gdbarch.sh (has_dos_based_file_system): New.
6572 * gdbarch.h, gdbarch.c: Regenerate.
6573 * NEWS: Mention improved support for remote targets with DOS-based
6574 filesystems. Mention new `set/show target-file-system-kind'
6575 commands.
6576
6577 2010-04-23 Stan Shebs <stan@codesourcery.com>
6578
6579 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6580 comments.
6581 (struct agent_reqs): Remove.
6582 (ax_reg_mask): Declare.
6583 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6584 (free_agent_expr): Free reg_mask.
6585 (ax_print): Add scope and register mask info.
6586 (ax_reqs): Remove agent_reqs argument, use agent expression
6587 fields, and move part of register mask computation to...
6588 (ax_reg_mask): New function.
6589 * ax-gdb.c (gen_trace_static_fields): Call it.
6590 (gen_traced_pop): Ditto.
6591 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6592 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6593 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6594 (gen_eval_for_expr): Ditto, and require an rvalue.
6595 (agent_command): Call ax_reqs.
6596 (agent_eval_command): Ditto.
6597 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6598 (validate_action_line): Ditto.
6599 (collect_symbol): Ditto.
6600 (encode_actions_1): Ditto.
6601
6602 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6603 Paul Pluzhnikov <ppluzhnikov@google.com>
6604 Jan Kratochvil <jan.kratochvil@redhat.com>
6605
6606 Fix deadlock on looped list of loaded shared objects.
6607 * solib-svr4.c (LM_PREV): New function.
6608 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6609 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6610 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6611 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6612
6613 2010-04-23 Doug Evans <dje@google.com>
6614
6615 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6616 python.
6617 * configure: Regenerate.
6618 * main.c: #include "python/python.h".
6619 (captured_main): Defer loading auto-loaded scripts until after
6620 local_gdbinit has been sourced.
6621 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6622 (load_auto_scripts_for_objfile): New function.
6623 (auto_load_new_objfile): Call it.
6624 * python/python.h (gdbpy_global_auto_load): Declare.
6625 (load_auto_scripts_for_objfile): Declare.
6626
6627 Add support for auto-loading scripts from .debug_gdb_scripts section.
6628 * NEWS: Add entry for .debug_gdb_scripts.
6629 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6630 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6631 (py-auto-load.o): New rule.
6632 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6633 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6634 * python/py-auto-load.c: New file.
6635 * python/python-internal.h: #include <stdio.h>.
6636 (set_python_list, show_python_list): Declare.
6637 (gdbpy_initialize_auto_load): Declare.
6638 (source_python_script_for_objfile): Declare.
6639 * python/python.c: Remove #include of observer.h.
6640 (gdbpy_auto_load): Moved to py-auto-load.c.
6641 (GDBPY_AUTO_FILENAME): Ditto.
6642 (gdbpy_new_objfile): Delete.
6643 (source_python_script_for_objfile): New function.
6644 (set_python_list, show_python_list): Make externally visible.
6645 (_initialize_python): Move "auto-load" command to py-auto-load.c
6646 and observer_attach_new_objfile to py-auto-load.c.
6647
6648 2010-04-23 Jerome Guitton <guitton@adacore.com>
6649
6650 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6651 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6652 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6653 New constants.
6654 (alpha_heuristic_analyze_probing_loop): New function.
6655 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6656 and handle cases when a stack probe loop is generated.
6657 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6658 (alpha_mdebug_max_frame_size_exceeded): New function.
6659 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6660 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6661 Return 0 when the maximum debuggable frame size has been exceeded.
6662
6663 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6664
6665 Fix ARI warning.
6666 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6667
6668 2010-04-20 Chris Moller <cmoller@redhat.com>
6669
6670 PR 10179
6671
6672 * symtab.c (rbreak_command): Added code to include a filename
6673 specification in the rbreak argument.
6674 * NEWS: Added a brief description of filename-qualified rbreak.
6675
6676 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6677
6678 Fix crashes on dangling display expressions.
6679 * ada-lang.c (ada_operator_check): New function.
6680 (ada_exp_descriptor): Fill-in the field operator_check.
6681 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6682 * jv-lang.c (exp_descriptor_java): Likewise.
6683 * m2-lang.c (exp_descriptor_modula2): Likewise.
6684 * scm-lang.c (exp_descriptor_scm): Likewise.
6685 * parse.c (exp_descriptor_standard): Likewise.
6686 (operator_check_standard): New function.
6687 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6688 * parser-defs.h (struct exp_descriptor): New field operator_check.
6689 (operator_check_standard, exp_uses_objfile): New declarations.
6690 * printcmd.c: Remove the inclusion of solib.h.
6691 (display_uses_solib_p): Remove the function.
6692 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6693 and exp_uses_objfile instead of display_uses_solib_p.
6694 * solist.h (struct so_list) <objfile>: New comment.
6695 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6696 * symtab.h (lookup_objfile_from_block): New declaration.
6697 (struct general_symbol_info) <obj_section>: Extend the comment.
6698
6699 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6700 Thiago Jung Bauermann <bauerman@br.ibm.com>
6701
6702 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6703 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6704 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6705 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6706 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6707 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6708 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6709 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6710 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6711 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6712 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6713 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6714 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6715 Define, in case <ptrace.h> doesn't provide it.
6716 (booke_debug_info): New variable.
6717 (max_slots_number): Ditto.
6718 (hw_break_tuple): New struct.
6719 (thread_points): Ditto.
6720 (ppc_threads): New variable.
6721 (PPC_DEBUG_CURRENT_VERSION): New define.
6722 (have_ptrace_new_debug_booke): New function.
6723 (ppc_linux_check_watch_resources): Renamed to ...
6724 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6725 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6726 (booke_cmp_hw_point): New function.
6727 (booke_find_thread_points_by_tid): Ditto.
6728 (booke_insert_point): Ditto.
6729 (booke_remove_point): Ditto.
6730 (ppc_linux_insert_hw_breakpoint): Ditto.
6731 (ppc_linux_remove_hw_breakpoint): Ditto.
6732 (get_trigger_type): Ditto.
6733 (ppc_linux_insert_watchpoint): Handle BookE processors.
6734 (ppc_linux_remove_watchpoint): Ditto.
6735 (ppc_linux_new_thread): Ditto.
6736 (ppc_linux_thread_exit): New function..
6737 (ppc_linux_stopped_data_address): Handle BookE processors.
6738 (ppc_linux_watchpoint_addr_within_range): Ditto.
6739 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6740 to_remove_hw_breakpoint fields of the target operations struct.
6741 Add observe for the thread_exit event.
6742
6743 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6744
6745 * i386-linux-nat.c (regmap): Removed.
6746 (fetch_register): Replace regmap with
6747 i386_linux_gregset_reg_offset.
6748 (store_register): Likewise.
6749 (supply_gregset): Likewise.
6750 (fill_gregset): Likewise.
6751
6752 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6753 global.
6754
6755 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6756
6757 2010-04-22 Chris Moller <cmoller@redhat.com>
6758
6759 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6760 method of popping recursion-detection stack with a method based on
6761 obstack_object_size(). (Similar to the PR9167 patch below, but for
6762 the static array obstack rather than the static member obstack.)
6763
6764 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6765
6766 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6767 (_initialize_amd64_linux_nat): Replace
6768 amd64_linux_gregset64_reg_offset with
6769 amd64_linux_gregset_reg_offset.
6770
6771 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6772 global.
6773
6774 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6775
6776 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6777
6778 PR stabs/11479.
6779 * stabsread.c (set_length_in_type_chain): New function.
6780 (read_struct_type): Call set_length_in_type_chain function.
6781 (read_enum_type): Idem.
6782
6783 2010-04-21 Stan Shebs <stan@codesourcery.com>
6784 Nathan Sidwell <nathan@codesourcery.com>
6785
6786 * tracepoint.c (trace_save): Open in binary mode.
6787
6788 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6789
6790 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6791 fields.
6792 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6793 builtin_char32 fields.
6794 * printcmd.c (decode_format): Set char size to '\0'
6795 for strings unless explicit size is given.
6796 (print_formatted): Correct calculation of NEXT_ADDRESS
6797 for 16 or 32 bit strings.
6798 (do_examine): Do not force byte size for strings.
6799 Use builtin_char16 and builtin_char32 types to display
6800 16 or 32 bit-wide strings.
6801 (x_command): Set LAST_SIZE to 'b' for string type.
6802
6803 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6804
6805 PR corefiles/11523
6806 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6807 XCR0 first.
6808
6809 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6810 there is no .reg-xstate section.
6811 (i386_linux_core_read_description): Check XCR0 first.
6812
6813 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6814
6815 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6816 for len <= 8.
6817
6818 2010-04-21 Chris Moller <cmoller@redhat.com>
6819
6820 PR 9167
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().
6824
6825 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6826
6827 PR pascal/11492.
6828 * p-valprint.c (pascal_val_print): Fix default printing of integer
6829 arrays.
6830
6831 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6832
6833 Fix compilation warning on gcc-4.1.2.
6834 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6835 local variable`pc' to zero.
6836
6837 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6838
6839 Implement thread support with core files on alpha-tru64.
6840 * dec-thread.c (dec_thread_find_new_threads): New function,
6841 extracted from resync_thread_list.
6842 (resync_thread_list): Add OPS parameter. Replace extracted-out
6843 code by call to dec_thread_find_new_threads.
6844 (dec_thread_wait): Update call to resync_thread_list.
6845 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6846
6847 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6848
6849 * ada-lang.c (value_pointer): New function.
6850 (make_array_descriptor): Call value_pointer to convert addresses to
6851 pointers.
6852
6853 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6854
6855 * rs6000-aix-tdep.c: #include exceptions.h.
6856 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6857 while reading the memory at ADDR, then ADDR cannot be a function
6858 descriptor.
6859
6860 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6861
6862 * ada-typeprint.c (ada_print_typedef): New function.
6863 * ada-lang.h (ada_print_typedef): Add declaration.
6864 * ada-lang.c (ada_language_defn): set la_print_typdef field
6865 to ada_print_typedef.
6866
6867 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6868
6869 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6870
6871 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6872
6873 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6874 (iterate_over_mappings): Adjust function profile. Add declaration.
6875 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6876 Adjust accordingly.
6877
6878 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6879
6880 * procfs.c (solib_mappings_callback): Move function up to avoid
6881 a compiler warning.
6882
6883 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6884
6885 * procfs.c (find_signalled_thread, find_stop_signal): Move
6886 these functions down to define them only when used.
6887
6888 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6889
6890 * valprint.c (common_val_print): Fix the value before extracting
6891 its contents.
6892 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6893 * ada-lang.h (ada_to_fixed_value): New function declaration.
6894 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6895 to avoid code duplication and fix a bug in the handling of
6896 fixed types contents.
6897
6898 2010-04-20 Tom Tromey <tromey@redhat.com>
6899
6900 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6901 (read_partial_die): Likewise.
6902 (dwarf_attr_name): Likewise.
6903
6904 2010-04-20 Chris Moller <cmoller@redhat.com>
6905
6906 PR 10867
6907
6908 * cp-valprint.c (global): Adding new static array recursion
6909 detection obstack.
6910 (cp_print_value_fields, cp_print_static_field): Added new static
6911 array recursion detection code.
6912
6913 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6914
6915 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6916 general-purpose register set should be 68 instead of 144.
6917 (i386_linux_sse_regset_sections): Likewise.
6918 (i386_linux_avx_regset_sections): Likewise.
6919
6920 2010-04-20 Stan Shebs <stan@codesourcery.com>
6921 Nathan Sidwell <nathan@codesourcery.com>
6922
6923 * dwarf2loc.c (struct axs_var_loc): New struct.
6924 (dwarf2_tracepoint_var_loc): New function.
6925 (dwarf2_tracepoint_var_access): New function.
6926 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6927 with DW_OP_piece.
6928 (locexpr_describe_location_piece): New function.
6929 (locexpr_describe_location_1): New function.
6930 (locexpr_describe_location): Call it, update signature.
6931 (loclist_describe_location): Rewrite to loop over locations,
6932 update signature.
6933 * symtab.h (struct symbol_computed_ops): Add address to
6934 describe_location arguments, return void.
6935 * printcmd.c (address_info): Get context PC, pass to computed
6936 location description.
6937 * tracepoint.c (scope_info): Ditto.
6938 * ax-gdb.c (trace_kludge): Export.
6939
6940 2010-04-20 Tom Tromey <tromey@redhat.com>
6941
6942 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6943 (struct dwarf2_cie) <segment_size>: New field.
6944 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6945 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6946 DW_FORM_exprloc.
6947 (read_attribute_value): Handle DW_FORM_flag_present,
6948 DW_FORM_sec_offset, DW_FORM_exprloc.
6949 (dump_die_shallow): Likewise.
6950 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6951 (dwarf2_const_value): Handle DW_FORM_exprloc.
6952 (attr_form_is_block): Likewise.
6953 (struct line_header) <maximum_ops_per_instruction>: New field.
6954 (dwarf_decode_line_header): Set new field.
6955 (dwarf_decode_lines): Handle new field.
6956
6957 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6958
6959 * f-exp.y: Add new production to recognize the `logical*8' type.
6960 (LOGICAL_S8_KEYWORD): New token.
6961 * f-lang.c (enum f_primitive_types)
6962 <f_primitive_type_logical_s8>: New field.
6963 (f_language_arch_info): Handling `logical*8' type.
6964 (build_fortran_types): Building `logical*8' type.
6965 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6966
6967 2010-04-19 Doug Evans <dje@google.com>
6968
6969 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6970 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6971 (pipe_close): Ditto.
6972
6973 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6974
6975 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6976
6977 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6978
6979 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6980 type to void function.
6981
6982 2010-04-19 Stan Shebs <stan@codesourcery.com>
6983 Vladimir Prus <vladimir@codesourcery.com>
6984
6985 * tracepoint.c (tfind_1): Add missing newline, report exit from
6986 tfind mode as such.
6987 * target.c (update_current_target): Make default
6988 to_trace_find return -1.
6989
6990 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6991
6992 * objc-lang.c (find_methods): Move symname check up.
6993
6994 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6995
6996 * ada-lang.c (print_recreate_exception)
6997 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6998 not "catch unhandled".
6999
7000 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7001
7002 PR breakpoints/8554.
7003
7004 Implement `save-breakpoints'.
7005
7006 * breakpoint.c (save_cmdlist): New.
7007 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
7008 to save_cmdlist.
7009 (print_recreate_catch_fork): New.
7010 (catch_fork_breakpoint_ops): Install it.
7011 (print_recreate_catch_vfork): New.
7012 (catch_vfork_breakpoint_ops): Install it.
7013 (print_recreate_catch_syscall): New.
7014 (catch_syscall_breakpoint_ops): Install it.
7015 (print_recreate_catch_exec): New.
7016 (catch_exec_breakpoint_ops): Install it.
7017 (print_recreate_exception_catchpoint): New.
7018 (gnu_v3_exception_catchpoint_ops): Install it.
7019 (save_breakpoints): New, based on tracepoint_save_command, but
7020 handle all breakpoint types.
7021 (save_breakpoints_command): New.
7022 (tracepoint_save_command): Rename to...
7023 (save_tracepoints_command): ... this, and reimplement using
7024 save_breakpoints.
7025 (save_command): New.
7026 (_initialize_breakpoints): Install the "save" command prefix.
7027 Install the "save breakpoints" command. Make "save-tracepoints" a
7028 deprecated alias for "save tracepoints".
7029 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
7030 * ada-lang.c (print_recreate_exception): New.
7031 (print_recreate_catch_exception): New.
7032 (catch_exception_breakpoint_ops): Install it.
7033 (print_recreate_catch_exception_unhandled): New.
7034 (catch_exception_unhandled_breakpoint_ops): Install it.
7035 (print_recreate_catch_assert): New.
7036 (catch_assert_breakpoint_ops): Install it.
7037
7038 * NEWS: Mention the new `save breakpoints' command. Mention the
7039 new `save tracepoints' alias and that `save-tracepoints' is now
7040 deprecated.
7041
7042 2010-04-18 Pedro Alves <pedro@codesourcery.com>
7043
7044 PR tui/9217
7045
7046 * tui/tui-out.c: Include cli-out.h.
7047 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7048 (tui_begin, tui_end, tui_field_int, tui_field_skip)
7049 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
7050 (tui_message, tui_wrap_hint, tui_flush): Delete forward
7051 declarations.
7052 (struct ui_out_data): Rename to...
7053 (struct tui_ui_out_data): ... this. Remove `stream' and
7054 `suppress_output' fields, and inherit cli_ui_out_data.
7055 (tui_out_data): New typedef.
7056 (tui_ui_out_impl): Don't initialize fields staticaly.
7057 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7058 (tui_begin, tui_end): Delete.
7059 (tui_field_int): Adjust to delegate most work to the base type.
7060 (tui_field_skip): Delete.
7061 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
7062 delegate most work to the base type.
7063 (tui_spaces): Delete.
7064 (tui_text): Adjust to delegate most work to the base type.
7065 (tui_message): Delete.
7066 (tui_wrap_hint): Delete.
7067 (tui_flush): Delete.
7068 (out_field_fmt): Delete.
7069 (field_separator): Delete.
7070 (tui_out_new): Adjust to initialize the base type.
7071 (_initialize_tui_out): Initialize tui_ui_out_impl.
7072 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
7073 cli_ui_out_data.
7074 (cli_out_data): Adjust.
7075 (cli_ui_out_impl): Make extern.
7076 (cli_table_header, cli_field_int, cli_field_skip): Use
7077 uo_field_string instead of cli_field_string.
7078 (cli_redirect): Adjust to use cli_out_data.
7079 (cli_out_data_ctor): New.
7080 (cli_out_new): Use it.
7081 * cli-out.h (struct ui_file): Remove forward declaration.
7082 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7083 (cli_ui_out_impl): Declare.
7084 (cli_out_data_ctor): Declare.
7085 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7086 (uo_field_string): No longer static.
7087 (ui_out_data): Change return type to void pointer.
7088 (ui_out_new): Change `data' parameter type to void pointer.
7089 * ui-out.h (struct ui_out_data): Don't forward declare.
7090 (ui_out_data): Change return type to void pointer.
7091 (ui_out_new): Change `data' parameter type to void pointer.
7092 (uo_field_string): Declare.
7093
7094 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7095
7096 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7097 instead of always false.
7098
7099 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7100
7101 PR corefiles/11511
7102 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7103 orig_rax.
7104
7105 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7106
7107 * breakpoint.c (watchpoints_triggered): Use
7108 is_hardware_watchpoint.
7109 (watchpoints_triggered): Ditto.
7110 (bpstat_check_location): Use is_watchpoint and
7111 is_hardware_watchpoint.
7112 (bpstat_check_watchpoint): Use is_watchpoint and
7113 is_hardware_watchpoint.
7114 (bpstat_stop_status): Fix comment.
7115 (user_settable_breakpoint): Use is_watchpoint.
7116 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7117 (disable_watchpoints_before_interactive_call_start): Use
7118 is_watchpoint.
7119 (enable_watchpoints_after_interactive_call_stop): Use
7120 is_watchpoint.
7121 (clear_command): Use is_watchpoint.
7122 (do_enable_breakpoint): Use is_watchpoint.
7123
7124 2010-04-16 Mike Frysinger <vapier@gentoo.org>
7125
7126 * solib-frv.c (enable_break1_done): Delete.
7127 (enable_break2): Do not check enable_break1_done. Move the
7128 enable_break2_done setting and call to
7129 remove_solib_event_breakpoints() to the end. Return without
7130 warning when the contents of _dl_debug_addr are 0.
7131 (enable_break): Do not set enable_break1_done.
7132 (frv_clear_solib): Likewise.
7133
7134 2010-04-16 Kevin Buettner <kevinb@redhat.com>
7135
7136 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7137 instead of an error if no PLT entry is found. Return a
7138 potentially useful result.
7139 (m32c_m16c_pointer_to_address): Add code to search for function
7140 address when no .plt entry is found.
7141
7142 2010-04-16 Stan Shebs <stan@codesourcery.com>
7143
7144 * tracepoint.c (trace_variable_command): Run a cleanup.
7145
7146 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7147
7148 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7149
7150 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7151
7152 Support for Windows OS Thread Information Block.
7153 * NEWS: Document new feature.
7154 * remote.c (PACKET_qGetTIBAddr): New enum element.
7155 (remote_get_tib_address): New function.
7156 (init_remote_ops): Set to_get_tib_address field
7157 to remote_get_tib_address.
7158 (_initialize_remote): Add add_packet_config_cmd
7159 for PACKET_qGetTIBAddr.
7160 * target.c (update_current_target): Set default value for
7161 new to_get_tib_address field.
7162 * target.h (target_ops): New field to_get_tib_address.
7163 (target_get_tib_address): New macro.
7164 * windows-nat.c (thread_info): Add thread_local_base field.
7165 (windows_add_thread): Add tlb argument of type 'void *'.
7166 (fake_create_process): Adapt windows_add_thread call.
7167 (get_windows_debug_event): Idem.
7168 (windows_get_tib_address): New function.
7169 (init_windows_ops): Set to_get_tib_address field
7170 to remote_get_tib_address.
7171 (_initialize_windows_nat): Replace info_w32_cmdlist
7172 initialization by a call to init_w32_command_list.
7173 (info_w32_command, info_w32_cmdlist): Removed from here...
7174 to windows-tdep.c file.
7175 * windows-tdep.h (info_w32_cmdlist): Declare.
7176 (init_w32_command_list): New external function
7177 declaration.
7178 * windows-tdep.c: Add several headers.
7179 (info_w32_cmdlist): to here, made global.
7180 (thread_information_32): New struct.
7181 (thread_information_64): New struct.
7182 (TIB_NAME): New char array.
7183 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7184 (maint_display_all_tib): New static variable.
7185 (windows_get_tlb_type): New function.
7186 (tlb_value_read, tlb_value_write): New functions.
7187 (tlb_value_funcs): New static struct.
7188 (tlb_make_value): New function.
7189 (display_one_tib): New function.
7190 (display_tib): New function.
7191 (show_maint_show_all_tib):New function.
7192 (info_w32_command): Moved from windows-nat.c.
7193 (init_w32_command_list): New function.
7194 (_initialize_windows_tdep): New function.
7195 New "maint set/show show-all-tib" command
7196 New "$_tlb" internal variable.
7197
7198 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7199
7200 * tui/tui-regs.c (tui_display_register): Add comment about
7201 a couple of casts.
7202 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7203
7204 2010-04-15 Stan Shebs <stan@codesourcery.com>
7205
7206 * frame.c: Include tracepoint.h.
7207 (get_current_frame): Allow a trace frame to be an alternate source
7208 of stack frame data.
7209 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7210 it won't succeed.
7211
7212 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7213
7214 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7215 flags.
7216 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7217
7218 2010-04-15 Doug Evans <dje@google.com>
7219
7220 * NEWS: Add entry for python program space support.
7221 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7222 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7223 (py-progspace.o): New rule.
7224 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7225 function.
7226 (find_pretty_printer_from_progspace): New function.
7227 (find_pretty_printer_from_gdb): New function.
7228 (find_pretty_printer): Rewrite.
7229 * python/py-progspace.c: New file.
7230 * python/python-internal.h (program_space): Add forward decl.
7231 (pspace_to_pspace_object, pspy_get_printers): Declare.
7232 (gdbpy_initialize_pspace): Declare.
7233 * python/python.c: #include "progspace.h".
7234 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7235 (_initialize_python): Call gdbpy_initialize_pspace.
7236 (GdbMethods): Add current_progspace, progspaces.
7237
7238 Add -s option to source command.
7239 * NEWS: Document new option.
7240 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7241 Delete from_tty and cleanupp args. Split filep arg into file and
7242 full_pathp. New arg search_path.
7243 (source_script_from_stream): New function.
7244 (source_script_with_search): New function.
7245 (source_script): Rewrite.
7246 (source_command): Parse "-s" option.
7247 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7248 * python/python.c (source_python_script): Make file arg a const char *.
7249 Don't call fclose, leave for caller.
7250 * python/python.h (source_python_script): Update.
7251
7252 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7253 Pedro Alves <pedro@codesourcery.com>
7254
7255 Avoid rereading shared libraries that haven't changed.
7256
7257 * solib.c (free_so_symbols): New function, from ...
7258 (free_so): ... here. Call it.
7259 (solib_read_symbols): Don't warn here if symbols have already been
7260 loaded.
7261 (solib_add): Warn here instead, if a pattern was specified.
7262 (reload_shared_libraries_1): New.
7263 (reload_shared_libraries): Rewrite to not fetch the library list.
7264
7265 2010-04-14 Doug Evans <dje@google.com>
7266
7267 * source.c (openp): Strip DOS drive letter if present before
7268 concatenating string to search path.
7269
7270 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7271
7272 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7273 * objfiles.c (gdb_bfd_close_or_warn): New.
7274 * corelow.c: Include objfiles.h
7275 (core_close): Use gdb_bfd_close_or_warn.
7276 * elfread.c (build_id_verify): Ditto.
7277 * exec.c (exec_close, exec_close_1): Ditto.
7278
7279 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7280 Pedro Alves <pedro@codesourcery.com>
7281
7282 Group errors for many missing shared libraries.
7283
7284 * solist.h (struct so_list): Remove from_tty.
7285 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7286 (solib_map_sections): Take so_list argument. Return 0 if we
7287 failed to open a BFD. Add target sections here.
7288 (symbol_add_stub): Delete.
7289 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7290 not from_tty copied from the so_list. Don't warn a second time
7291 for a missing library.
7292 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7293 add to the section table here. Print out a single warning for all
7294 missing libraries.
7295 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7296 flags.
7297
7298 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7299
7300 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7301 error/warning messages. Capitalize and use complete sentences.
7302 (blpy_block_syms_iternext): Likewise.
7303 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7304 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7305 (frame_info_to_frame_object, frapy_read_var)
7306 (gdbpy_frame_stop_reason_string): Likewise.
7307 * python/py-lazy-string.c (stpy_convert_to_value)
7308 (gdbpy_create_lazy_string_object): Likewise.
7309 * python/py-objfile.c (objfpy_set_printers): Likewise.
7310 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7311 * python/python.c (parameter_to_python): Likewise.
7312 * python/py-type.c (typy_range, typy_target): Likewise.
7313 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7314 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7315
7316
7317 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7318
7319 PR python/11381
7320
7321 * python/py-prettyprint.c (pretty_print_one_value): Test for
7322 Py_None.
7323 (print_string_repr): Test for Py_None. Set flags accordingly.
7324 Return value depending on return type.
7325 (print_children): Take a value indicating whether data was printed
7326 before this function was called. Alter output accordingly.
7327 (apply_val_pretty_printer): Capture return value from
7328 print_string_repr and pass to print_children.
7329
7330 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7331
7332 PR corefiles/11481
7333 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7334 register note sections.
7335 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7336 New variables.
7337 (i386_linux_init_abi): Install list of supported register note
7338 sections that matches the target description.
7339
7340 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7341
7342 * remote.c (remote_get_noisy_reply): Don't error out on empty
7343 replies.
7344 (remote_start_remote): Update and merge tracepoints and trace
7345 state variables as long as the target supports tracepoints.
7346 (remote_trace_init): Fix prototype.
7347 (remote_download_trace_state_variable): Validate reply.
7348 (remote_trace_set_readonly_regions): Fix prototype.
7349 (remote_trace_start): Fix prototype. Check for empty reply.
7350 (remote_get_trace_status): Small cleanup.
7351 (remote_trace_stop): Fix prototype. Check for empty reply.
7352 (remote_trace_find): Check for empty reply.
7353 (remote_save_trace_data): Validate reply.
7354 (remote_set_disconnected_tracing): Check for empty reply, and
7355 validate reply.
7356 (remote_set_circular_trace_buffer): Ditto.
7357
7358 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7359
7360 Suppress unused value warning during compilation.
7361 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7362 calls to void.
7363 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7364
7365 2010-04-12 Stan Shebs <stan@codesourcery.com>
7366
7367 * tracepoint.c (tfile_xfer_partial): Check read result.
7368
7369 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7370
7371 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7372 * remote-sim.c (gdbsim_files_info): Likewise.
7373
7374 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7375
7376 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7377 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7378 variable.
7379 (fetch_vfp_registers): New function to fetch VFP registers.
7380 (store_vfp_registers): New function to store VFP registers.
7381 (arm_linux_fetch_inferior_registers): Add support for VFP
7382 registers.
7383 (arm_linux_store_inferior_registers): Likewise.
7384 (arm_linux_read_description): Likewise.
7385 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7386 until we need it.
7387
7388 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7389
7390 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7391 tdep.
7392 (amd64_collect_xstateregset): Likewise.
7393
7394 2010-04-09 Stan Shebs <stan@codesourcery.com>
7395
7396 * tracepoint.c (trace_status_mi): Report frames created.
7397
7398 * tracepoint.c (trace_dump_command): Include default-collect
7399 expressions.
7400
7401 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7402
7403 * symtab.c (find_function_start_sal): Never return SAL pointing
7404 before function start address, even if line info is missing.
7405
7406 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7407
7408 * NEWS: Mention tracepoints support.
7409
7410 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7411
7412 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7413 circular trace buffer statuses.
7414
7415 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7416
7417 * config/djgpp/fnchange.lst: Fix typo in translations for
7418 symbol-without-target_section.exp and symbol-without-target_section.c.
7419
7420 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7421
7422 * breakpoint.c (condition_command): Pass condition expression to
7423 set_breakpoint_condition stripped from breakpoint number.
7424
7425 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7426 Thiago Jung Bauermann <bauerman@br.ibm.com>
7427 Tom Tromey <tromey@redhat.com>
7428
7429 * breakpoint.c (condition_command): Simplify. Move condition
7430 setting code to ...
7431 (set_breakpoint_condition): ... here. New function.
7432 * breakpoint.h (set_breakpoint_condition): Declare.
7433 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7434 (SUBDIR_PYTHON_SRCS): Likewise.
7435 (py-breakpoint.o): New rule.
7436 * python/py-breakpoint.c: New file.
7437 * python/python-internal.h (gdbpy_breakpoints)
7438 (gdbpy_initialize_breakpoints): Declare.
7439 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7440
7441 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7442
7443 * regformats/regdat.sh: Include server.h. Don't include
7444 regcache.h.
7445
7446 2010-04-08 Stan Shebs <stan@codesourcery.com>
7447 Pedro Alves <pedro@codesourcery.com>
7448
7449 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7450 and circular_buffer.
7451 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7452 * tracepoint.c (trace_status_command): Display target's status for
7453 disconnected tracing and circular buffer.
7454 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7455 query for non-disconnected-tracing case, remove the stop_tracing
7456 call.
7457 (tfile_open): Clear disconnected and circular buffer status.
7458 (trace_save): Save disconnected and circular buffer status.
7459 (parse_trace_status): Parse disconnected and circular buffer status,
7460 also recognize disconnected as a stop reason.
7461 * remote.c (remote_set_disconnected_tracing): Only set
7462 QTDisconnected if the remote end supports disconnected tracing.
7463 Warn otherwise, if trying to enable disconnected tracing.
7464 * infcmd.c (detach_command): Update disconnect_tracing call.
7465 * cli/cli-cmds.c (quit_command): Ditto.
7466
7467 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7468
7469 * i387-tdep.c (i387_collect_xsave): Replace abort with
7470 internal_error.
7471
7472 2010-04-08 Stan Shebs <stan@codesourcery.com>
7473
7474 * breakpoint.c (default_collect_info): New function.
7475 (breakpoints_info): Call it.
7476 (maintenance_info_breakpoints): Ditto.
7477 (tracepoints_info): Ditto.
7478
7479 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7480
7481 * i387-tdep.c (i387_collect_xsave): Re-indent.
7482
7483 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7484
7485 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7486 if HAVE_PTRACE_GETFPXREGS is defined.
7487 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7488 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7489
7490 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7491 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7492 if .reg-xfp section doesn't exist.
7493 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7494
7495 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7496
7497 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7498 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7499 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7500 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7501 (i386_gdbarch_init): Update comments.
7502 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7503
7504 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7505
7506 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7507
7508 * features/Makefile (i386/i386-mmx-expedite): New.
7509 (i386/i386-mmx-linux-expedite): Likewise.
7510 ($(outdir)/i386/i386-mmx.dat): Likewise.
7511 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7512
7513 * features/i386/i386-mmx-linux.c: New.
7514 * features/i386/i386-mmx-linux.xml: Likewise.
7515 * features/i386/i386-mmx.c: Likewise.
7516 * features/i386/i386-mmx.xml: Likewise.
7517 * regformats/i386/i386-mmx-linux.dat: Likewise.
7518 * regformats/i386/i386-mmx.dat: Likewise.
7519
7520 * features/Makefile (WHICH): Add i386/i386-mmx and
7521 i386/i386-mmx-linux.
7522
7523 2010-04-08 Doug Evans <dje@google.com>
7524
7525 * source.c (openp): Skip $cdir in PATH.
7526
7527 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7528
7529 PR python/11417
7530 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7531 a NULL address.
7532 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7533 address and a zero length.
7534
7535 2010-04-08 Hui Zhu <teawater@gmail.com>
7536
7537 * i386-tdep.c (i386_process_record): Add support for insn
7538 rdtsc.
7539
7540 2010-04-07 Doug Evans <dje@google.com>
7541
7542 * python/python.c (source_python_script): Use ensure_python_env
7543 to prepare environment for script.
7544
7545 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7546
7547 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7548 <sys/uio.h> and "i386-xstate.h".
7549 (PTRACE_GETREGSET): New.
7550 (PTRACE_SETREGSET): Likewise.
7551 (have_ptrace_getregset): Likewise.
7552 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7553 registers.
7554 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7555 registers.
7556 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7557 (amd64_linux_store_inferior_registers): Likewise.
7558 (amd64_linux_read_description): Check and enable AVX target
7559 descriptions.
7560
7561 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7562 and "features/i386/amd64-avx-linux.c".
7563 (amd64_linux_regset_sections): New.
7564 (amd64_linux_core_read_description): Check and enable AVX
7565 target description.
7566 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7567 set_gdbarch_core_regset_sections.
7568 (_initialize_amd64_linux_tdep): Call
7569 initialize_tdesc_amd64_avx_linux.
7570
7571 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7572 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7573 (tdesc_amd64_avx_linux): New.
7574 (amd64_linux_update_xstateregset): Likewise.
7575
7576 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7577 (amd64_ymm_names): New.
7578 (amd64_ymmh_names): Likewise.
7579 (amd64_register_name): Likewise.
7580 (amd64_supply_xstateregset): Likewise.
7581 (amd64_collect_xstateregset): Likewise.
7582 (amd64_supply_xsave): Likewise.
7583 (amd64_collect_xsave): Likewise.
7584 (AMD64_NUM_REGS): Removed.
7585 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7586 %xmmN if AVX is available.
7587 (amd64_pseudo_register_name): Support pseudo YMM registers.
7588 (amd64_regset_from_core_section): Support .reg-xstate section.
7589 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7590 and ymm0h_regnum. Call set_gdbarch_register_name.
7591 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7592
7593 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7594 AMD64_YMM15H_REGNUM.
7595 (AMD64_NUM_REGS): New.
7596 (amd64_supply_xsave): Likewise.
7597 (amd64_collect_xsave): Likewise.
7598 (amd64_register_name): Removed.
7599 (amd64_register_type): Likewise.
7600
7601 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7602
7603 * i387-tdep.c: Include "i386-xstate.h".
7604 (XSAVE_XSTATE_BV_ADDR): New.
7605 (xsave_avxh_offset): Likewise.
7606 (XSAVE_AVXH_ADDR): Likewise.
7607 (i387_supply_xsave): Likewise.
7608 (i387_collect_xsave): Likewise.
7609
7610 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7611 (I387_YMM0H_REGNUM): Likewise.
7612 (I387_YMMENDH_REGNUM): Likewise.
7613 (i387_supply_xsave): Likewise.
7614 (i387_collect_xsave): Likewise.
7615
7616 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7617
7618 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7619 <sys/uio.h> and "i386-xstate.h".
7620 (PTRACE_GETREGSET): New.
7621 (PTRACE_SETREGSET): Likewise.
7622 (fetch_xstateregs): Likewise.
7623 (store_xstateregs): Likewise.
7624 (GETXSTATEREGS_SUPPLIES): Likewise.
7625 (regmap): Include 8 upper YMM registers.
7626 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7627 state.
7628 (i386_linux_store_inferior_registers): Likewise.
7629 (i386_linux_read_description): Check and enable AVX target
7630 descriptions.
7631
7632 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7633 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7634 (i386_linux_regset_sections): Add ".reg-xstate".
7635 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7636 (i386_linux_core_read_xcr0): New.
7637 (i386_linux_core_read_description): Check and enable AVX target
7638 description.
7639 (i386_linux_init_abi): Set xsave_xcr0_offset.
7640 (_initialize_i386_linux_tdep): Call
7641 initialize_tdesc_i386_avx_linux.
7642
7643 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7644 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7645 (i386_linux_core_read_xcr0): New.
7646 (tdesc_i386_avx_linux): Likewise.
7647 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7648
7649 * i386-tdep.c: Include "i386-xstate.h" and
7650 "features/i386/i386-avx.c".
7651 (i386_ymm_names): New.
7652 (i386_ymmh_names): Likewise.
7653 (i386_ymmh_regnum_p): Likewise.
7654 (i386_ymm_regnum_p): Likewise.
7655 (i386_xmm_regnum_p): Likewise.
7656 (i386_register_name): Likewise.
7657 (i386_ymm_type): Likewise.
7658 (i386_supply_xstateregset): Likewise.
7659 (i386_collect_xstateregset): Likewise.
7660 (i386_sse_regnum_p): Removed.
7661 (i386_pseudo_register_name): Support pseudo YMM registers.
7662 (i386_pseudo_register_type): Likewise.
7663 (i386_pseudo_register_read): Likewise.
7664 (i386_pseudo_register_write): Likewise.
7665 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7666 %xmmN if AVX is available.
7667 (i386_regset_from_core_section): Support .reg-xstate section.
7668 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7669 (i386_process_record): Replace i386_sse_regnum_p with
7670 i386_xmm_regnum_p.
7671 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7672 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7673 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7674 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7675 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7676 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7677 Set ymm0_regnum.
7678 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7679
7680 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7681 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7682 i386_ymm_type.
7683 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7684 (I386_AVX_NUM_REGS): New.
7685 (i386_xmm_regnum_p): Likewise.
7686 (i386_ymm_regnum_p): Likewise.
7687 (i386_ymmh_regnum_p): Likewise.
7688
7689 * common/i386-xstate.h: New.
7690
7691 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7692
7693 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7694
7695 * features/Makefile (WHICH): Add i386/i386-avx,
7696 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7697 (i386/i386-avx-expedite): New.
7698 (i386/i386-avx-linux-expedite): Likewise.
7699 (i386/x86-64-avx-expedite):Likewise.
7700 (i386/x86-64-avx-linux-expedite): Likewise.
7701 ($(outdir)/i386/i386-avx.dat): New dependency.
7702 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7703 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7704 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7705
7706 * features/i386/32bit-avx.xml: New.
7707 * features/i386/64bit-avx.xml: Likewise.
7708 * features/i386/i386-avx-linux.c: Likewise.
7709 * features/i386/i386-avx-linux.xml: Likewise.
7710 * features/i386/i386-avx.c: Likewise.
7711 * features/i386/i386-avx.xml: Likewise.
7712 * features/i386/x86-64-avx-linux.c: Likewise.
7713 * features/i386/x86-64-avx-linux.xml: Likewise.
7714 * features/i386/x86-64-avx.c: Likewise.
7715 * features/i386/x86-64-avx.xml: Likewise.
7716 * regformats/i386/i386-avx-linux.dat: Likewise.
7717 * regformats/i386/i386-avx.dat: Likewise.
7718 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7719 * regformats/i386/x86-64-avx.dat: Likewise.
7720
7721 2010-04-07 Doug Evans <dje@google.com>
7722
7723 * top.c (source_file_name): Make const char *.
7724 * top.h (source_file_name): Update.
7725 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7726 const char *.
7727 (script_from_file): Change `file' arg to const char *.
7728 * cli/cli-script.h (script_from_file): Update.
7729
7730 2010-04-06 Doug Evans <dje@google.com>
7731
7732 * cli/cli-cmds.c (source_command): Run cleanups.
7733
7734 2010-04-06 Stan Shebs <stan@codesourcery.com>
7735
7736 * defs.h (char_ptr): Move typedef here from...
7737 * ada-lang.c (char_ptr): Remove.
7738 * charset.c (char_ptr): Remove.
7739 * tracepoint.h (struct uploaded_string): Remove.
7740 (struct uploaded_tp): Use vectors for string arrays.
7741 * tracepoint.c (trace_save): Use vectors of actions.
7742 (parse_tracepoint_definition): Ditto.
7743 (get_uploaded_tp): Clear vectors.
7744 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7745 (next_cmd): Change to an int.
7746 (read_next_cmd): Use vector of command strings.
7747
7748 2010-04-06 Doug Evans <dje@google.com>
7749
7750 * top.h (source_script, cd_command): Delete.
7751 * main.c: #include "cli/cli-cmds.h"
7752
7753 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7754
7755 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7756 type in bytes, not bits.
7757
7758 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7759
7760 * stabsread.c (define_symbol): Add support for char
7761 and string constants.
7762
7763 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7764
7765 Remove remaining "%ll" uses.
7766 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7767 hex_string call.
7768 * rs6000-nat.c (rs6000_ptrace64): Idem.
7769 * solib-pa64.c (pa64_current_sos): Idem.
7770 * solib-spu.c (spu_current_sos): Idem.
7771 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7772 plongest call.
7773 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7774 phex (VAR, 8) call.
7775 * sh64-tdep.c (sh64_show_media_regs): Idem.
7776
7777 2010-04-05 Stan Shebs <stan@codesourcery.com>
7778
7779 * tracepoint.c: Include gdbcore.h.
7780 (tfile_xfer_partial): Return partial results, also try reading
7781 from executable.
7782 (tfile_has_all_memory): New function.
7783 (init_tfile_ops): Use it.
7784
7785 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7786
7787 PR gdb/10736:
7788 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7789 the changes in data-directory.
7790 (init_sysinfo): Reload the syscall XML file if the data-directory
7791 has changed.
7792
7793 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7794
7795 Code cleanup.
7796 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7797
7798 2010-04-04 Stan Shebs <stan@codesourcery.com>
7799 Nathan Sidwell <nathan@codesourcery.com>
7800
7801 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7802 breakpoints printed.
7803 (is_hardware_watchpoint): Make argument const.
7804 (is_watchpoint): Ditto.
7805 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7806 use it everywhere.
7807 (breakpoints_info): Pass NULL to breakpoint_1.
7808 (maintenance_info_breakpoints): Ditto.
7809 (watchpoints_info): New function.
7810 (tracepoints_info): Use breakpoint_1 filter.
7811 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7812 (_initialize_breakpoint): Make "info watchpoints" its own command.
7813 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7814 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7815
7816 2010-04-04 Stan Shebs <stan@codesourcery.com>
7817
7818 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7819
7820 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7821
7822 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7823 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7824
7825 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7826
7827 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7828 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7829
7830 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7831
7832 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7833 code form.
7834
7835 2010-04-02 Hui Zhu <teawater@gmail.com>
7836
7837 * i386-tdep.c (OT_DQUAD): New enum.
7838 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7839 SSE3, SSSE3 and SSE4.
7840
7841 2010-04-02 Hui Zhu <teawater@gmail.com>
7842
7843 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7844 "*addr = 0".
7845
7846 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7847
7848 * tracepoint.c (trace_dump_actions): New, factored out from
7849 trace_dump_command, and adjusted to recurse into while-stepping's
7850 action list.
7851 (trace_dump_command): Use it.
7852
7853 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7854
7855 * breakpoint.h (struct counted_command_line): Moved definition to
7856 breakpoint.c, and forward declare.
7857 (breakpoint_commands): Declare.
7858 * breakpoint.c (struct counted_command_line): Moved here.
7859 (breakpoint_commands): New.
7860 * tracepoint.c (encode_actions): Use breakpoint_commands.
7861 * remote.c (remote_download_tracepoint): Ditto.
7862
7863 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7864
7865 * remote.c (remote_parse_stop_reply): Use hex_string instead
7866 of phex_nz for error.
7867
7868 2010-04-01 Stan Shebs <stan@codesourcery.com>
7869 Nathan Sidwell <nathan@codesourcery.com>
7870
7871 * tracepoint.h (enum actionline_type): Remove.
7872 (validate_actionline): Change return to void.
7873 * tracepoint.c (report_agent_reqs_errors): New function.
7874 (validate_actionline): Call it, change return to void, report errors
7875 more consistently.
7876 (collect_symbol): Call report_agent_reqs_errors.
7877 (encode_actions_1): Ditto.
7878 (encode_actions): Don't expect a result from validate_actionline.
7879
7880 2010-04-01 Stan Shebs <stan@codesourcery.com>
7881
7882 * tracepoint.c (trace_start_command): Confirm if trace is running.
7883 (trace_stop_command): Error if trace not running.
7884
7885 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7886
7887 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7888 (AMD64_NUM_LOWER_BYTE_REGS): New.
7889 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7890 (amd64_pseudo_register_write): Likewise.
7891 (amd64_init_abi): Set num_byte_regs to 20.
7892
7893 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7894
7895 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7896 (prev_breakpoint_count): New.
7897 (set_breakpoint_count): Adjust.
7898 (rbreak_start_breakpoint_count): New.
7899 (start_rbreak_breakpoints): Adjust.
7900 (end_rbreak_breakpoints): Adjust.
7901 (struct commands_info) <arg>: New field.
7902 (do_map_commands_command): Tweak output to include breakpoint spec
7903 range.
7904 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7905 ARG was empty on entry. Set INFO's arg.
7906 (create_breakpoint): Adjust.
7907
7908 * NEWS: Clarify `commands' changes.
7909
7910 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7911
7912 * tracepoint.c: Include stack.h.
7913 (struct add_local_symbols_data): New.
7914 (do_collect_symbol): New.
7915 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7916 iterate_over_block_local_vars.
7917 * stack.c (print_block_frame_locals): Rewrite as ...
7918 (iterate_over_block_locals): ... this. Take a callback function
7919 pointer and generic data pointer, and call that instead of
7920 print_variable_and_value.
7921 (struct print_variable_and_value_data): New.
7922 (do_print_variable_and_value): New.
7923 (iterate_over_block_local_vars): New, abstracted out from
7924 print_frame_local_vars.
7925 (print_frame_local_vars): Rewrite using
7926 iterate_over_block_local_vars.
7927 (iterate_over_block_arg_vars): New, abstracted out from
7928 print_frame_arg_vars.
7929 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7930 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7931 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7932
7933 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7934
7935 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7936 instructions. Use the PC+4 if the base of the TBB or TBH is the
7937 PC register.
7938
7939 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7940
7941 Fix crash on reading wrong function declaration DWARF.
7942 * dwarf2read.c (read_subroutine_type): New variable void_type.
7943 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7944 more close to their use.
7945
7946 2010-03-31 Stan Shebs <stan@codesourcery.com>
7947
7948 * breakpoint.c (tracepoint_save_command): Include variables,
7949 conditionals, tracepoint types, and default-collect.
7950 * tracepoint.c (save_trace_state_variables): New function.
7951 * tracepoint.h (save_trace_state_variables): Declare it.
7952
7953 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7954
7955 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7956
7957 2010-03-30 Keith Seitz <keiths@redhat.com>
7958
7959 * c-typeprint.c (c_type_print_args): Don't print "void"
7960 for java, regardless of whether it is TYPE_PROTOTYPED.
7961 Use the passed-in language instead of current_language.
7962 (c_type_print_varspec_suffix): Use current_language instead
7963 of assuming language_c.
7964 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7965 any return type specifier from the physname.
7966
7967 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7968
7969 * tui/tui-interp.c (tui_is_toplevel): New.
7970 (tui_init): Set it.
7971 (tui_allowed_p): New.
7972 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7973 enabling it.
7974 * tui/tui.h (tui_allowed_p): Declare.
7975
7976 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7977
7978 * serial.h: Include winsock2.h before windows.h.
7979
7980 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7981
7982 * NEWS: Mention xmlRegisters= in qSupported packet.
7983
7984 * i386-tdep.c: Include "remote.h".
7985 (_initialize_i386_tdep): Call register_remote_support_xml.
7986
7987 * remote.c (remote_support_xml): New.
7988 (register_remote_support_xml): Likewise.
7989 (remote_query_supported_append): Likewise.
7990 (remote_query_supported): Support remote_support_xml.
7991
7992 * remote.h (register_remote_support_xml): New.
7993
7994 2010-03-29 Stan Shebs <stan@codesourcery.com>
7995
7996 * tracepoint.c (trace_find_line_command): Remove dead code.
7997
7998 * tracepoint.h (struct uploaded_string): New struct.
7999 (struct uploaded_tp): New fields for source strings.
8000 * breakpoint.c (this_utp, next_cmd): New globals.
8001 (read_uploaded_action): New function.
8002 (create_tracepoint_from_upload): Fill in more parts
8003 of a tracepoint.
8004 * tracepoint.c (encode_source_string): New function.
8005 (trace_save): Write out source strings, fix error checks.
8006 (parse_tracepoint_definition): Add source string parsing.
8007 * remote.c (PACKET_TracepointSource): New packet type.
8008 (remote_download_command_source): New function.
8009 (remote_download_tracepoint): Download source pieces also.
8010 (_initialize_remote): Add packet config command.
8011
8012 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
8013 expression handler.
8014
8015 * tracepoint.c (start_tracing): Check tracepoints before sending
8016 commands to target, don't start if all tracepoints disabled.
8017
8018 2010-03-28 Pedro Alves <pedro@codesourcery.com>
8019
8020 * cli/cli-script.c (process_next_line): Handle 'stepping'.
8021
8022 2010-03-26 Stan Shebs <stan@codesourcery.com>
8023
8024 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
8025
8026 2010-03-26 Tom Tromey <tromey@redhat.com>
8027
8028 * breakpoint.c (commands_command_1): Duplicate 'arg'.
8029
8030 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8031
8032 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8033 (skip_prologue_sal): Remove local definition.
8034 (resolve_sal_pc): Remove now unnecessary code.
8035 * linespec.c (minsym_found): Call skip_prologue_sal.
8036 * symtab.c (find_function_start_pc): Remove.
8037 (find_function_start_sal): Extract prologue skipping into ...
8038 (skip_prologue_sal): ... this new function. Handle code both
8039 with and without debug info. Respect SAL's explicit_pc and
8040 explicit_line flags. Inline old find_function_start_pc.
8041 * symtab.h (find_function_start_pc): Remove.
8042 (skip_prologue_sal): Add prototype.
8043
8044 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8045
8046 * dwarf2read.c (read_func_scope): Also scan specification DIEs
8047 for DW_TAG_imported_module children.
8048
8049 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8050
8051 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
8052 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
8053 * completer.c (add_struct_fields): Fix inverted logic.
8054
8055 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8056
8057 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
8058
8059 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8060
8061 * tracepoint.c (current_trace_status): Don't make sure error_desc
8062 is non-NULL here.
8063 (parse_trace_status): Release a previous error_desc string, and
8064 set it to NULL by default. If stop reason is tracepoint_error,
8065 make sure error_desc is not left NULL.
8066
8067 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8068
8069 * tracepoint.c (trace_save): Remove X from tracepoint error
8070 description.
8071
8072 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8073
8074 * tracepoint.c (parse_trace_status): Don't allow plain strings in
8075 the terror description. Don't expect an X prefix.
8076
8077 2010-03-25 Stan Shebs <stan@codesourcery.com>
8078
8079 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8080 (struct trace_status): New field error_desc.
8081 * tracepoint.c (stop_reason_names): Add terror.
8082 (current_trace_status): Ensure non-NULL error description.
8083 (trace_status_command): Add error report.
8084 (trace_status_mi): Ditto.
8085 (trace_save): Add special case for error description.
8086 (parse_trace_status): Add case for errors.
8087
8088 2010-03-25 Keith Seitz <keiths@redhat.com>
8089
8090 * dwarf2read.c (read_subroutine_type): If the compilation unit
8091 language is Java, mark any formal parameter named "this" as
8092 artificial (GCC/43521).
8093 (dwarf2_name): Add special handling for Java constructors.
8094
8095 2010-03-25 Tom Tromey <tromey@redhat.com>
8096
8097 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8098 * infrun.c (handle_inferior_event): Change initialization of
8099 stop_stack_dummy.
8100 (handle_inferior_event): Change assignment to stop_stack_dummy.
8101 (normal_stop): Update use of stop_stack_dummy.
8102 (struct inferior_status) <stop_stack_dummy>: Change type.
8103 * inferior.h (stop_stack_dummy): Update.
8104 * infcmd.c (stop_stack_dummy): Change type.
8105 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8106 function.
8107 (call_function_by_hand): Call set_std_terminate_breakpoint.
8108 Rewrite std::terminate handling.
8109 * breakpoint.h (enum bptype) <bp_std_terminate,
8110 bp_std_terminate_master>: New.
8111 (enum stop_stack_kind): New.
8112 (struct bpstat_what) <call_dummy>: Change type.
8113 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8114 Declare.
8115 * breakpoint.c (create_std_terminate_master_breakpoint): New
8116 function.
8117 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8118 Call create_std_terminate_master_breakpoint.
8119 (print_it_typical): Handle new breakpoint kinds.
8120 (bpstat_stop_status): Handle bp_std_terminate_master.
8121 (bpstat_what): Correctly set call_dummy field. Handle
8122 bp_std_terminate_master and bp_std_terminate.
8123 (print_one_breakpoint_location): Update.
8124 (allocate_bp_location): Update.
8125 (set_std_terminate_breakpoint): New function.
8126 (delete_std_terminate_breakpoint): Likewise.
8127 (create_thread_event_breakpoint): Update.
8128 (delete_command): Update.
8129 (breakpoint_re_set_one): Update.
8130 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8131
8132 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8133
8134 * symfile.c (build_section_addr_info_from_bfd): New.
8135 (build_section_addr_info_from_objfile): Base it on
8136 build_section_addr_info_from_bfd.
8137 (addrs_section_compar, addrs_section_sort): New.
8138 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8139 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8140 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8141
8142 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8143
8144 * elfread.c (find_separate_debug_file_by_buildid):
8145 Remove unused local variable.
8146
8147 2010-03-24 Tom Tromey <tromey@redhat.com>
8148
8149 PR breakpoints/9352:
8150 * NEWS: Mention changes to `commands' and `rbreak'.
8151 * symtab.c (do_end_rbreak_breakpoints): New function.
8152 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8153 end_rbreak_breakpoints.
8154 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8155 (set_breakpoint_count): Likewise. Clear last_was_multi.
8156 (multi_start, multi_end, last_was_multi): New globals.
8157 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8158 functions.
8159 (struct commands_info): New
8160 (do_map_commands_command): New function.
8161 (commands_command_1): New function.
8162 (commands_command): Use it.
8163 (commands_from_control_command): Likewise.
8164 (do_delete_breakpoint): New function.
8165 (delete_command): Use it.
8166 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8167 (do_map_disable_breakpoint): New function.
8168 (disable_command): Use it.
8169 (do_map_enable_breakpoint): New function.
8170 (enable_command): Use it.
8171 (enable_once_breakpoint): Add argument.
8172 (enable_once_command): Update.
8173 (enable_delete_breakpoint): Add argument.
8174 (enable_delete_command): Update.
8175 (break_command_really): Set last_was_multi when needed.
8176 (check_tracepoint_command): Fix formatting.
8177 (validate_commands_for_breakpoint): New function.
8178 (breakpoint_set_commands): Use it.
8179 (tracepoint_save_command): Update.
8180 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8181 Declare.
8182
8183 2010-03-24 Tom Tromey <tromey@redhat.com>
8184
8185 * breakpoint.h (struct counted_command_line): New struct.
8186 (struct breakpoint) <commands>: Change type.
8187 (struct bpstats) <commands>: Change type.
8188 <commands_left>: New field.
8189 * breakpoint.c (alloc_counted_command_line): New function.
8190 (incref_counted_command_line): Likewise.
8191 (decref_counted_command_line): Likewise.
8192 (do_cleanup_counted_command_line): Likewise.
8193 (make_cleanup_decref_counted_command_line): Likewise.
8194 (breakpoint_set_commands): Use decref_counted_command_line and
8195 alloc_counted_command_line.
8196 (commands_command): Don't error if breakpoint commands are
8197 executing.
8198 (commands_from_control_command): Likewise.
8199 (bpstat_free): Update.
8200 (bpstat_copy): Likewise.
8201 (bpstat_clear_actions): Likewise.
8202 (bpstat_do_actions_1): Likewise.
8203 (bpstat_stop_status): Likewise.
8204 (print_one_breakpoint_location): Likewise.
8205 (delete_breakpoint): Likewise.
8206 (bpstat_alloc): Initialize new field.
8207 (tracepoint_save_command): Update.
8208 * tracepoint.c (encode_actions): Update.
8209 (trace_dump_command): Update.
8210
8211 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8212
8213 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8214 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8215 (read_structure_type): For RealView, set TYPE_STUB on structures with
8216 no byte size and no children.
8217 (read_subroutine_type): Mark functions as prototyped by default.
8218 * symtab.c (producer_is_realview): New function.
8219 * symtab.h (expand_line_sal): Fix declaration formatting.
8220 (producer_is_realview): Declare.
8221
8222 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8223
8224 * arm-tdep.c (skip_prologue_function): New function.
8225 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8226 (thumb_analyze_prologue): Document return value. Recognize more
8227 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8228 Add debug output.
8229 (arm_skip_prologue): Remove call dummy check. Check the prologue
8230 for non-GNU compilers.
8231 (arm_instruction_changes_pc): New function.
8232 (arm_analyze_prologue): New function, broken out from
8233 arm_scan_prologue. Recognize more ARM instructions and skippable
8234 calls. Update comments. Handle NULL cache. Return the address
8235 of the first unrecognized instruction. Do not skip past other
8236 instructions which change control flow. Add debug output.
8237 (arm_scan_prologue): Use arm_analyze_prologue.
8238 (ARM_PC_32): Delete.
8239 (shifted_reg_val): Simplify ARM_PC_32 check.
8240
8241 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8242
8243 * tracepoint.c (tvariables_info_1): Actually compute
8244 the number of rows in the result.
8245
8246 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8247
8248 * remote.c (crc32): Constify `buf' parameter.
8249 (remote_verify_memory): New, abstracted out from...
8250 (compare_sections_command): ... this. Remove hardcoded target
8251 checks.
8252 (init_remote_ops): Install remote_verify_memory.
8253 * target.c (target_verify_memory): New.
8254 * target.h (struct target_ops) <to_verify_memory>: New field.
8255 (target_verify_memory): Declare.
8256
8257 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8258
8259 Implement -trace-save.
8260
8261 * mi-cmds.h (mi_cmds_trace_save): Declare.
8262 * mi-cmds.c (mi_cmds): Register -trace-save.
8263 * mi/mi-main.c (mi_cmd_trace_save): New.
8264 * remote.c (remote_save_trace_data): Take const parameter.
8265 * target.h (struct target_ops::to_save_trace_data): Take
8266 const parameter.
8267 * target.c (update_current_target): Adjust to the above.
8268 * tracepoint.c (trave_save): New, extracted from
8269 (trace_save_command): ...this.
8270 (tfile_trace_find): Remove message that is unnecessary now
8271 that 'tfind' reports found frame.
8272 * tracepoint.h (trace_save): Declare.
8273
8274 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8275
8276 Implement -trace-find.
8277
8278 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8279 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8280 * mi/mi-main.c (mi_cmd_trace_find): New.
8281 * target.h (struct target_ops): Document to_trace_find.
8282 * tracepoint.h (tfind_1): Declare.
8283 * tracepoint.c (finish_tfind_command): Rename to...
8284 (tfind_1): ...this.
8285 * remote.c (remote_trace_find): Return -1 if target say
8286 there's no frame. Improve error diagnostics.
8287
8288 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8289
8290 -trace-define-variable and -trace-list-variables.
8291
8292 * tracepoint.c (create_trace_state_variable): Make
8293 private copy of name, as opposed to assuming the
8294 pointer lives forever.
8295 (tvariables_info_1): New.
8296 (tvariables_info): Use the above.
8297 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8298 Declare.
8299 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8300 and -trace-list-variables.
8301 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8302 (mi_cmd_trace_list_variables): New.
8303 * mi/mi-main.c (mi_cmd_trace_define_variable)
8304 (mi_cmd_trace_list_variables): New.
8305
8306 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8307
8308 Implement -break-passcount.
8309
8310 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8311 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8312 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8313
8314 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8315
8316 -trace-start/-trace-end/-trace-status.
8317
8318 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8319 and -trace-stop.
8320 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8321 (mi_cmd_trace_stop): Declare.
8322 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8323 (mi_cmd_trace_stop): New.
8324 * tracepoint.c (start_tracing): New, extracted from...
8325 (trace_start_command): ...this.
8326 (trace_status_mi): New.
8327 * tracepoint.h (struct trace_status): Document
8328 stopping_tracepoint.
8329 (start_tracing, stop_tracing, trace_status_mi): Declare.
8330
8331 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8332
8333 Implement creating tracepoints with -break-insert.
8334
8335 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8336 to mean that tracepoint should be created.
8337
8338 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8339
8340 * breakpoint.c (check_no_tracepoint_commands): Use
8341 current spelling of 'teval'.
8342
8343 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8344
8345 Unify actions and commands
8346
8347 * defs.h (read_command_lines, read_command_lines_1): New
8348 parameters validator and closure.
8349 * tracepoint.h (struct action_line): Remove.
8350 * breakpoint.h (struct breakpoint): Remove the 'actions'
8351 field.
8352 * defs.h (enum command_control_type): New value
8353 while_stepping_control.
8354 (struct command_line): Add comments.
8355 * breakpoint.c (breakoint_is_tracepoint): New.
8356 (breakpoint_set_commands): For tracepoints,
8357 verify the commands are permissible.
8358 (check_tracepoint_commands): New.
8359 (commands_command): Require that each new line is validated using
8360 check_tracepoint_command, if we set commands for a tracepoint.
8361 (create_tracepoint_from_upload): Likewise.
8362 (print_one_breakpoint_location): Remove the code to print
8363 actions specifically.
8364 (tracepoint_save_command): Relay to print_command_lines.
8365 * cli/cli-script.c (process_next_line): New parameters validator
8366 and closure. Handle 'while-stepping'. Call validator if not null.
8367 (read_command_lines, read_command_lines1): Likewise.
8368 (recurse_read_control_structure): New parameters validator and
8369 closure. Handle while_stepping_control.
8370 (print_command_lines): Handle while-stepping.
8371 (get_command_line, define_command, document_command): Adjust.
8372 * remote.c (remote_download_tracepoint): Adjust.
8373 * tracepoint.c (make_cleanup_free_actions, read_actions)
8374 (free_actions, do_free_actions_cleanup): Remove.
8375 (trace_actions_command): Use read_command_lines.
8376 (validate_actionline): Use error in one place.
8377 (encode_actions_1): New, extracted from...
8378 (encode_actions): ...this. Also use cleanups for exception
8379 safety.
8380 (trace_dump_command): Adjust.
8381 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8382 it's tracepoint.
8383
8384 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8385
8386 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8387
8388 2010-03-22 Stan Shebs <stan@codesourcery.com>
8389
8390 * value.c (value_static_field): Be lazy about the field's value.
8391
8392 2010-03-22 Reid Kleckner <reid@kleckner.net>
8393
8394 PR gdb/11094
8395 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8396 bp_jit_event.
8397 (disable_breakpoints_in_shlibs): Likewise.
8398
8399 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8400
8401 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8402 GCC 4.1 debug info generation (GCC PR c++/28460).
8403 (determine_prefix): Likewise.
8404
8405 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8406
8407 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8408 get_current_arch.
8409 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8410
8411 2010-03-19 Stan Shebs <stan@codesourcery.com>
8412
8413 * ax-gdb.c (gen_fetch): Handle bool.
8414 (gen_usual_unary): Ditto.
8415 (gen_cast): Ditto.
8416 (gen_equal): New function.
8417 (gen_less): New function.
8418 (gen_expr_binop_rest): Call them, also return integer type from
8419 logical operations.
8420 (gen_expr): Ditto.
8421
8422 2010-03-19 Tom Tromey <tromey@redhat.com>
8423
8424 * jv-lang.c (jv_dynamics_objfile_data_key)
8425 (jv_type_objfile_data_key): New globals.
8426 (class_symtab): Move earlier.
8427 (jv_per_objfile_free): New function.
8428 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8429 parameter.
8430 Remove ancient #if 1.
8431 (add_class_symbol): Remove redundant declaration.
8432 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8433 (java_link_class_type): Mark as static. Update.
8434 (jv_clear_object_type): New function.
8435 (set_java_object_type): Likewise.
8436 (get_java_object_type): Use set_java_object_type.
8437 (is_object_type): Likewise.
8438 (_initialize_java_language): Register new objfile keys.
8439 (get_java_class_symtab): Add 'gdbarch' parameter.
8440 (add_class_symtab_symbol): Update.
8441 (type_from_class): Update.
8442
8443 2010-03-19 Stan Shebs <stan@codesourcery.com>
8444
8445 * ax-general.c (ax_const_l): Fix a sizing bug.
8446
8447 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8448
8449 GDB 7.1 released.
8450
8451 2010-03-18 Stan Shebs <stan@codesourcery.com>
8452 Pedro Alves <pedro@codesourcery.com>
8453
8454 * target.h (struct target_ops): New method
8455 to_set_circular_trace_buffer.
8456 (target_set_circular_trace_buffer): New macro.
8457 * target.c (update_current_target): Add
8458 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8459 default behavior.
8460 * remote.c (remote_set_circular_trace_buffer): New function.
8461 (init_remote_ops): Add it to vector.
8462 * tracepoint.h (struct trace_status): New field traceframes_created,
8463 change buffer_size and buffer_free to int.
8464 * tracepoint.c (circular_trace_buffer): New global.
8465 (start_tracing): Send values of disconnected tracing and circular
8466 trace buffer settings.
8467 (set_circular_trace_buffer): New function.
8468 (parse_trace_state): Handle total space and frames created.
8469 (trace_status_command): Display total space and total frames
8470 created.
8471 (trace_save): Write out new status values.
8472 (parse_trace_status): Set traceframe_count, traceframes_created,
8473 buffer_free and buffer_size to -1 by default.
8474 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8475 * NEWS: Mention the circular trace buffer option.
8476
8477 2010-03-18 Tom Tromey <tromey@redhat.com>
8478
8479 * infcmd.c (finish_command_continuation): Wrap print_return_value
8480 in TRY_CATCH.
8481
8482 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8483
8484 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8485 DIE has a name before creating the associated partial symbol.
8486 (read_func_scope): Emit a complaint if the subprogram does not
8487 have a name or when we can't extract the subprogram PC bounds.
8488
8489 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8490
8491 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8492 instead of selected frame architecture.
8493
8494 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8495
8496 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8497 a valid selected thread, and that it is not running.
8498 (advance_command): Ditto.
8499 (finish_command): Ditto.
8500
8501 2010-03-17 Stan Shebs <stan@codesourcery.com>
8502
8503 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8504
8505 * infcall.c: Include tracepoint.h.
8506 (call_function_by_hand): Disallow calls in tfind mode.
8507 * infcmd.c: Include tracepoint.h.
8508 (ensure_not_tfind_mode): New function.
8509 (continue_1): Call it.
8510 (step_1) Ditto.
8511 (jump_command): Ditto.
8512 (signal_command): Ditto.
8513 (advance_command): Ditto.
8514 (until_command): Ditto.
8515 (finish_command): Ditto.
8516 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8517
8518 * ax-gdb.h (struct axs_value): New field optimized_out.
8519 (gen_trace_for_var): Add gdbarch argument.
8520 * ax-gdb.c (gen_trace_static_fields): New function.
8521 (gen_traced_pop): Call it, add gdbarch argument.
8522 (gen_trace_for_expr): Update call to it.
8523 (gen_trace_for_var): Ditto, and report optimized-out variables.
8524 (gen_struct_ref_recursive): Check for optimized-out value.
8525 (gen_struct_elt_for_reference): Ditto.
8526 (gen_static_field): Pass gdbarch instead of expression, assume
8527 optimization if field not found.
8528 (gen_var_ref): Set the optimized_out flag.
8529 (gen_expr): Error on optimized-out variable.
8530 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8531 expressions, skip optimized-out variables with computed locations.
8532 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8533 erroring out if location expression missing.
8534 (loclist_tracepoint_var_ref): Don't error out here.
8535
8536 2010-03-17 Tom Tromey <tromey@redhat.com>
8537
8538 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8539 DWARF data is available.
8540
8541 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8542
8543 * symfile.c (generic_load): Reset breakpoints after loading.
8544
8545 2010-03-17 Tom Tromey <tromey@redhat.com>
8546
8547 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8548
8549 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8550
8551 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8552 create_breakpoint call, adjust the parameters.
8553
8554 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8555 Chandru <chandru@in.ibm.com>
8556
8557 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8558 * valarith.c (value_subscripted_rvalue): Suppress error if
8559 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8560
8561 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8562
8563 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8564
8565 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8566
8567 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8568 before doing the associated thread switch.
8569
8570 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8571
8572 * MAINTAINERS: Update my email address.
8573
8574 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8575
8576 Simplify MI breakpoint setting.
8577
8578 * breakpoint.c (break_command_really): Make nonstatic and
8579 rename to...
8580 (create_breakpoint): ...this. Rename prior function by this name
8581 to...
8582 (create_breakpoint_sal): ...this.
8583 (create_breakpoints): Rename to...
8584 (create_breakpoints_sal): ...this.
8585 (set_breakpoint): Remove.
8586 * breakpoint.h: Adjust to above changes.
8587 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8588
8589 2010-03-15 Stan Shebs <stan@codesourcery.com>
8590
8591 * ax-gdb.c: Include cp-support.h.
8592 (find_field): Remove.
8593 (gen_primitive_field): New function.
8594 (gen_struct_ref_recursive): New function.
8595 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8596 of find_field.
8597 (gen_static_field): New function.
8598 (gen_struct_elt_for_reference): New.
8599 (gen_namespace_elt): New.
8600 (gen_maybe_namespace_elt): New.
8601 (gen_aggregate_elt_ref): New.
8602 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8603
8604 2010-03-15 Tom Tromey <tromey@redhat.com>
8605
8606 * dwarf2read.c (die_needs_namespace): Also return 0 for
8607 DW_TAG_subprogram.
8608
8609 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8610
8611 PR c++/7936:
8612 * cp-support.h: Added char *declaration element to using_direct
8613 data struct.
8614 (cp_add_using): Added char *declaration argument.
8615 (cp_add_using_directive): Ditto.
8616 (cp_lookup_symbol_imports): made extern.
8617 * cp-namespace.c: Updated with the above changes.
8618 * dwarf2read.c (read_import_statement): Ditto.
8619 (read_namespace): Ditto.
8620 (read_import_statement): Support import declarations.
8621 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8622 declarations.
8623 Added support for 'declaration_only' search.
8624 (cp_lookup_symbol_namespace): Attempt to search for the name as
8625 is before consideration of imports.
8626 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8627 search at every block level search.
8628 Now takes language argument.
8629 (lookup_symbol_aux): Updated.
8630
8631 2010-03-15 Tom Tromey <tromey@redhat.com>
8632
8633 * c-exp.y (name_not_typename): Add 'operator' clause.
8634
8635 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8636
8637 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8638 * configure: Regenerate.
8639
8640 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8641
8642 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8643 and ".sdynbss". Update the comment.
8644
8645 2010-03-15 Jie Zhang <jie@codesourcery.com>
8646
8647 * MAINTAINERS: Update my email address.
8648
8649 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8650
8651 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8652
8653 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8654
8655 * charset.c [USE_WIN32API]: Include <windows.h>.
8656 (_initialize_charset): Correct type of w32_host_default_charset.
8657
8658 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8659
8660 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8661
8662 2010-03-12 Tom Tromey <tromey@redhat.com>
8663
8664 PR c++/9708:
8665 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8666 in a lexical block does not need a namespace.
8667 (new_symbol) <DW_TAG_variable>: Put extern variables on
8668 list_in_scope in all cases.
8669
8670 2010-03-12 Stan Shebs <stan@codesourcery.com>
8671
8672 * ax-gdb.c (gen_expr): Add shift expressions.
8673 (gen_expr_binop_rest): Ditto.
8674
8675 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8676
8677 * buildsym.c (finish_block): Reset using_directives pointer
8678 after block initialization.
8679
8680 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8681
8682 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8683 * i386-tdep.c (i386_word_names): Likewise.
8684
8685 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8686
8687 * target.c (memory_xfer_partial): Don't use the stack cache if
8688 inspecting trace frames.
8689 * tracepoint.c (finish_tfind_command): Invalidate the target
8690 dcache.
8691
8692 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8693
8694 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8695 for the PIC displacement, print also the displacement value.
8696 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8697
8698 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8699
8700 * remote-mips.c (close_ports, mips_initialize_cleanups)
8701 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8702 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8703 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8704 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8705 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8706 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8707 comments describing each of these functions.
8708 (mips_enter_debug, mips_exit_debug, common_open)
8709 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8710 blank line after the comment describing the function.
8711
8712 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8713
8714 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8715 parameter displacementp. Update comment.
8716 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8717 element exists. Return if svr4_exec_displacement was not successful.
8718 Update comment.
8719
8720 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8721 Daniel Jacobowitz <dan@codesourcery.com>
8722
8723 * solib-svr4.c (read_program_header): Support type == -1 to read
8724 all program headers.
8725 (read_program_headers_from_bfd): New function.
8726 (svr4_static_exec_displacement): Remove and move the comment ...
8727 (svr4_exec_displacement): ... here. Remove variable found. New
8728 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8729 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8730 targets using read_program_headers_from_bfd. Remove the call of
8731 svr4_static_exec_displacement.
8732
8733 2010-03-10 Tom Tromey <tromey@redhat.com>
8734
8735 * dwarf2read.c (struct pubnames_header): Remove.
8736 (_PUBNAMES_HEADER): Remove.
8737 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8738 (struct aranges_header): Remove.
8739 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8740 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8741 (PUBNAMES_SECTION): Remove.
8742 (ARANGES_SECTION): Remove.
8743 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8744 (dwarf2_build_psymtabs): Remove dead code.
8745 (dwarf2_build_psymtabs_easy): Remove.
8746
8747 2010-03-10 Tom Tromey <tromey@redhat.com>
8748
8749 * elfread.c (elf_symfile_read): Don't call
8750 dwarf2_build_frame_info.
8751 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8752 (struct dwarf2_per_objfile) <objfile>: New field.
8753 (dwarf2_has_info): Now idempotent. Set objfile field.
8754 (dwarf2_read_section): Check and set readin field. Call
8755 posix_madvise.
8756 (dwarf2_build_psymtabs): Don't read all sections.
8757 (read_type_comp_unit_head): Read types section.
8758 (create_debug_types_hash_table): Likewise.
8759 (init_cu_die_reader): Add asserts.
8760 (process_type_comp_unit): Add assert.
8761 (dwarf2_build_psymtabs_hard): Read info section.
8762 (load_partial_comp_unit): Add assert.
8763 (create_all_comp_units): Read info section.
8764 (load_full_comp_unit): Likewise.
8765 (dwarf2_ranges_read): Read ranges section.
8766 (dwarf2_record_block_ranges): Add assert.
8767 (dwarf2_read_abbrevs): Read abbrev section.
8768 (read_indirect_string): Read str section.
8769 (dwarf_decode_line_header): Read line section.
8770 (read_signatured_type_at_offset): Read types section.
8771 (dwarf_decode_macros): Read macinfo section.
8772 (dwarf2_symbol_mark_computed): Read loc section.
8773 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8774 dwarf2_build_frame_info.
8775 (dwarf2_build_frame_info): Unconditionally set
8776 dwarf2_frame_objfile_data on the objfile.
8777 * configure.ac: Check for posix_madvise.
8778 * config.in, configure: Rebuild.
8779
8780 2010-03-10 Tom Tromey <tromey@redhat.com>
8781
8782 * xcoffread.c (xcoff_start_psymtab): Update.
8783 (xcoff_end_psymtab): Update.
8784 * psymtab.c (allocate_psymtab): Remove dead code.
8785 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8786 void*.
8787 * mdebugread.c (parse_partial_symbols): Update.
8788 (new_psymtab): Likewise.
8789 * dwarf2read.c (process_psymtab_comp_unit): Update.
8790 (psymtab_to_symtab_1): Update.
8791 * dbxread.c (start_psymtab): Update.
8792 (end_psymtab): Likewise.
8793
8794 2010-03-10 Tom Tromey <tromey@redhat.com>
8795
8796 * xcoffread.c: Include psymtab.h.
8797 (xcoff_sym_fns): Update.
8798 * symtab.h (struct partial_symbol): Remove.
8799 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8800 (struct partial_symtab): Remove.
8801 (PSYMTAB_TO_SYMTAB): Remove.
8802 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8803 (find_pc_sect_psymtab): Remove.
8804 (find_pc_sect_symtab_via_partial): Declare.
8805 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8806 (find_main_psymtab): Remove.
8807 (find_main_filename): Declare.
8808 (fixup_psymbol_section): Remove.
8809 (fixup_section): Declare.
8810 * symtab.c: Include psymtab.h.
8811 (lookup_symtab): Use lookup_symtab method.
8812 (lookup_partial_symtab): Remove.
8813 (find_pc_sect_psymtab_closer): Remove.
8814 (find_pc_sect_psymtab): Remove.
8815 (find_pc_sect_symtab_via_partial): New function.
8816 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8817 (fixup_section): No longer static.
8818 (fixup_psymbol_section): Remove.
8819 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8820 (lookup_global_symbol_from_objfile): Likewise.
8821 (lookup_symbol_aux_psymtabs): Remove.
8822 (lookup_symbol_aux_quick): New function.
8823 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8824 (lookup_partial_symbol): Remove.
8825 (basic_lookup_transparent_type_quick): New function.
8826 (basic_lookup_transparent_type): Use it.
8827 (find_main_psymtab): Remove.
8828 (find_main_filename): New function.
8829 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8830 (find_line_symtab): Use expand_symtabs_with_filename method.
8831 (output_partial_symbol_filename): New function.
8832 (sources_info): Use map_partial_symbol_filenames.
8833 (struct search_symbols_data): New type.
8834 (search_symbols_file_matches): New function.
8835 (search_symbols_name_matches): Likewise.
8836 (search_symbols): Use expand_symtabs_matching method.
8837 (struct add_name_data): Rename from add_macro_name_data.
8838 (add_macro_name): Update.
8839 (add_partial_symbol_name): New function.
8840 (default_make_symbol_completion_list): Use
8841 map_partial_symbol_names.
8842 (struct add_partial_symbol_name): New type.
8843 (maybe_add_partial_symtab_filename): New function.
8844 (make_source_files_completion_list): Use
8845 map_partial_symbol_filenames.
8846 (expand_line_sal): Use expand_symtabs_with_filename method.
8847 * symmisc.c: Include psymtab.h.
8848 (print_objfile_statistics): Use print_stats method.
8849 (dump_objfile): Use dump method.
8850 (dump_psymtab, maintenance_print_psymbols)
8851 (maintenance_info_psymtabs, maintenance_check_symtabs)
8852 (extend_psymbol_list): Remove.
8853 * symfile.h (struct quick_symbol_functions): New struct.
8854 (struct sym_fns) <qf>: New field.
8855 (sort_pst_symbols): Remove.
8856 (increment_reading_symtab): Declare.
8857 * symfile.c: Include psymtab.h.
8858 (compare_psymbols, sort_pst_symbols): Remove.
8859 (psymtab_to_symtab): Remove.
8860 (increment_reading_symtab): New function.
8861 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8862 method.
8863 (set_initial_language): Use find_main_filename.
8864 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8865 (free_named_symtabs): Remove unused code.
8866 (start_psymtab_common, add_psymbol_to_bcache)
8867 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8868 Remove.
8869 * stack.c: Include psymtab.h, symfile.h.
8870 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8871 * source.h (psymtab_to_fullname): Don't declare.
8872 * source.c: Include psymtab.h.
8873 (select_source_symtab): Use find_last_source_symtab method.
8874 (forget_cached_source_info): Use forget_cached_source_info
8875 method.
8876 (find_and_open_source): No longer static.
8877 (psymtab_to_fullname): Remove.
8878 * somread.c: Include psymtab.h.
8879 (som_sym_fns): Update.
8880 * psympriv.h: New file.
8881 * psymtab.h: New file.
8882 * psymtab.c: New file.
8883 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8884 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8885 * objfiles.c: Include psymtab.h.
8886 (objfile_relocate1): Use relocate method.
8887 (objfile_has_partial_symbols): Use has_symbols method.
8888 * mipsread.c: Include psymtab.h.
8889 (ecoff_sym_fns): Update.
8890 * mi/mi-cmd-file.c: Include psymtab.h.
8891 (print_partial_file_name): New function.
8892 (mi_cmd_file_list_exec_source_files): Use
8893 map_partial_symbol_filenames.
8894 * mdebugread.c: Include psympriv.h.
8895 * machoread.c: Include psympriv.h.
8896 (macho_sym_fns): Update.
8897 * m2-exp.y (yylex): Use lookup_symtab.
8898 * elfread.c: Include psympriv.h.
8899 (elf_sym_fns): Update.
8900 * dwarf2read.c: Include psympriv.h.
8901 * dbxread.c: Include psympriv.h.
8902 (aout_sym_fns): Update.
8903 * cp-support.c: Include psymtab.h.
8904 (read_in_psymtabs): Remove.
8905 (make_symbol_overload_list_qualified): Use
8906 expand_symtabs_for_function method.
8907 * coffread.c: Include psympriv.h.
8908 (coff_sym_fns): Update.
8909 * blockframe.c: Include psymtab.h.
8910 (find_pc_partial_function): Use find_pc_sect_symtab method.
8911 * ada-lang.h (ada_update_initial_language): Update.
8912 * ada-lang.c: Include psymtab.h.
8913 (ada_update_initial_language): Remove 'main_pst' argument.
8914 (ada_lookup_partial_symbol): Remove.
8915 (struct ada_psym_data): New type.
8916 (ada_add_psyms): New function.
8917 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8918 (struct add_partial_datum): New type.
8919 (ada_add_partial_symbol_completions): New function.
8920 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8921 (ada_exception_support_info_sniffer): Update.
8922 * Makefile.in (SFILES): Add psymtab.c.
8923 (COMMON_OBS): Add psymtab.o.
8924 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8925
8926 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8927
8928 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8929
8930 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8931
8932 PR C++/11236:
8933 * cp-namespace.c (cp_add_using): Deleted.
8934 (cp_add_using_directive): Use obstack allocations.
8935 Merged the function cp_add_using into this one.
8936 Added 'struct obstack *' argument.
8937 (cp_scan_for_anonymous_namespaces): Updated.
8938 * cp-support.h: Updated.
8939 * dwarf2read.c (read_import_statement): Updated.
8940 (read_namespace): Updated.
8941
8942 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8943
8944 * windows-nat.c (cygwin_conv_path): Remove old macro.
8945
8946 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8947
8948 * breakpoint.c (condition_command): Handle watchpoint conditions.
8949 (is_hardware_watchpoint): Add comment.
8950 (is_watchpoint): New.
8951 (update_watchpoint): Don't reparse the watchpoint's condition
8952 unless necessary.
8953 (WP_IGNORE): New.
8954 (watchpoint_check): Use it.
8955 (bpstat_check_watchpoint): Handle it.
8956 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8957 conditions in a frame where it makes sense.
8958 (watch_command_1): Store the innermost block of the condition
8959 expression.
8960 (delete_breakpoint): Delete the watchpoint condition expression.
8961 * breakpoint.h (struct bp_location) <cond>: Update comment.
8962 (struct breakpoint): New field `cond_exp_valid_block'.
8963
8964 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8965
8966 Adjust handling of Ada DIEs after dwarf2_physname patch.
8967 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8968
8969 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8970 Pierre Muller <muller@ics.u-strasbg.fr>
8971
8972 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8973 from/to posix/win32.
8974 (windows_make_so): Use non-Cygwin 1.7 specific function.
8975 (windows_create_inferior): Make sure that cygallargs points to
8976 original args in non Cygwin 1.7. case.
8977
8978 2010-03-09 Michael Snyder <msnyder@vmware.com>
8979
8980 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8981 after target_read_memory to get host byte order.
8982 (i386_process_record): Ditto.
8983
8984 2010-03-09 Keith Seitz <keiths@redhat.com>
8985
8986 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8987 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8988 print out const or volatile qualifiers, too.
8989 (c_type_print_args): Add parameters show_artificial and language.
8990 Skip artificial parameters when requested.
8991 Use the appropriate language printer.
8992 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8993 parameters and pass language_c.
8994 * dwarf2read.c (die_list): New file global.
8995 (struct partial_die_info): Update comments for name field.
8996 (pdi_needs_namespace): Renamed to ...
8997 (die_needs_namespace): ... this. Rewrite.
8998 (dwarf2_linkage_name): Remove.
8999 (add_partial_symbol): Do not predicate the call to
9000 partial_die_full_name based on pdi_needs_namespace.
9001 Remove call to cp_check_possible_namespace_symbols and associated
9002 outdated comments.
9003 (guess_structure_name): Do not inspect child subprogram DIEs.
9004 (dwarf2_fullname): Update comments.
9005 Use die_needs_namespace to assist in computing the name.
9006 (read_func_scope): Use dwarf2_name to get the DIE's name.
9007 Use dwarf2_physname to get the "linkage name" of the DIE.
9008 (dwarf2_add_member_field): Use dwarf2_physname instead of
9009 dwarf2_linkage_name.
9010 (read_structure_type): For structs and classes, set TYPE_NAME, too.
9011 (determine_class): Remove.
9012 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
9013 except Ada.
9014 (new_symbol): Unconditionally call dwarf2_name.
9015 Compute the "linkage name" using dwarf2_physname.
9016 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
9017 When determining to scan for anonymous C++ namespaces, ignore
9018 the linkage name.
9019 (dwarf2_physname): New function.
9020 (dwarf2_full_name): Move content to new function and call
9021 that.
9022 (dwarf2_compute_name): "New" function.
9023 (_initialize_dwarf2_read): Initialize die_list.
9024 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
9025 physname.
9026 (gnu_v3_print_method_ptr): Use the physname for virtual methods
9027 without a demangled name.
9028 Print out type information for non-virtual methods.
9029 * linespec.c (decode_line_1): Force ANY string using "::" (or
9030 "." for java) to use decode_compound, and clean up any stray quoting.
9031 If we found a file symtab, re-evaluate whether the remainder is_quoted.
9032 (decode_compound): Stop consuming at an open parenthesis.
9033 Keep template parameters.
9034 Keep any overload information.
9035 Keep keywords like "const".
9036 Remove paren_pointer.
9037 Move is_quoted check from set_flags to here.
9038 Remove #if 0 code from 2000. Ten years is long enough.
9039 (find_method): Before comparing symbol names, canonicalize the string
9040 from the user.
9041 If a specific overload is requested, find it. Otherwise throw an error.
9042 (find_method_overload_end): New function.
9043 (set_flags): Remove.
9044 (decode_compound): Assume that parentheses are matched.
9045 It's a lot easier.
9046 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
9047 to cplus_demangle.
9048 * linespec.c (decode_line_1): Keep important keywords like
9049 "const" and "volatile".
9050 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
9051 * typeprint.h (c_type_print_args): Add declaration.
9052 * ui-file.c (do_ui_file_obsavestring): New function.
9053 (ui_file_obsavestring): New function.
9054 * ui-file.h (ui_file_obsavestring): Add declaration.
9055 * valops.c (find_overload_match): Resolve the object to
9056 a non-pointer type.
9057 If the object is a data member, search the object for the member
9058 and return with staticp set.
9059 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
9060 Do not attempt to extract a function name from non-function types.
9061 If the extracted function name and the original name are the same,
9062 we don't have a C++ method.
9063
9064 From Jan Kratochvil <jan.kratochvil@redhat.com>:
9065 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
9066
9067 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
9068 and arguments from symbol lookups.
9069 * ax-gdb.c (gen_expr): Likewise.
9070 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
9071 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
9072 lookup_possible_namespace_symbol): Likewise.
9073 * cp-support.c (read_in_psymtabs): Likewise.
9074 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
9075 * language.h (la_lookup_symbol_nonlocal): Likewise.
9076 * scm-valprint.c (scm_inferior_print): Likewise.
9077 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9078 * solib-svr.c (elf_lookup_lib): Likewise.
9079 * solib.c (show_auto_solib_add): Likewise.
9080 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9081 * symmisc.c (maintenance_check_symtabs): Likewise.
9082 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9083 lookup_symbol_aux_local, lookup_symbol_aux_block,
9084 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9085 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9086 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9087 basic_lookup_transparent_type, find_main_psymtab,
9088 lookup_block_symbol): Likewise.
9089 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9090 lookup_symbol_global, lookup_symbol_aux_block,
9091 lookup_symbol_partial_symbol, lookup_block_symbol,
9092 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9093
9094 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9095
9096 * python/python-internal.h: Include symtab.h.
9097
9098 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9099 Pierre Muller <muller@ics.u-strasbg.fr>
9100
9101 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9102 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9103 indentation.
9104
9105 2010-03-08 Tom Tromey <tromey@redhat.com>
9106
9107 * breakpoint.c (breakpoint_1): Add "QUIT".
9108
9109 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9110 Pedro Alves <pedro@codesourcery.com>
9111
9112 * solib.c (solib_find): Replace extension if
9113 solib_symbols_extension is set in the target gdbarch.
9114 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9115 solib_symbols_extension to "sym".
9116 * gdbarch.sh (solib_symbols_extension): New variable.
9117 (pstring): New function.
9118 * gdbarch.h, gdbarch.c: Regenerate.
9119
9120 2010-03-08 Tom Tromey <tromey@redhat.com>
9121
9122 PR cli/9591:
9123 * NEWS: Update.
9124 * utils.c: Include main.h.
9125 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9126 (defaulted_query): Use default answer if `batch_flag'.
9127 * main.h (batch_flag): Declare.
9128 * main.c (batch_flag): New global.
9129 (captured_main): Remove 'batch'. Update.
9130
9131 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9132
9133 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9134 and Kevin Buettner:
9135
9136 * remote-mips.c (rockhopper_ops): New target_ops struct.
9137 (MON_ROCKHOPPER): New mips_monitor_type.
9138 (read_hex_value): New function.
9139 (mips_request): Send 8-byte values with a 'T' packet. Read the
9140 packet argument as a string and use read_hex_value to parse it.
9141 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9142 (rockhopper_open): New function.
9143 (mips_wait): Read the PC, FP and SP fields as strings. Use
9144 read_hex_value to parse them and mips_set_register to commit them.
9145 (mips_set_register): New function.
9146 (mips_fetch_registers): Do not cast register value to "unsigned"
9147 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9148 (mips_store_registers): Use a 'T' packet to set registers when
9149 using MON_ROCKHOPPER.
9150 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9151 and expect the total to be printed before the entry address.
9152 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9153
9154 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9155
9156 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9157 Change return value to int. Store value fetched in location
9158 addressed by `val'. Use function's return value as success
9159 or failure indicator. Adjust all callers.
9160
9161 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9162
9163 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9164
9165 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9166 Hui Zhu <teawater@gmail.com>
9167
9168 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9169 tmp_to_stopped_data_address.
9170 (record_open): Reset tmp_to_stopped_by_watchpoint and
9171 tmp_to_stopped_data_address.
9172 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9173 to_stopped_data_address.
9174
9175 2010-03-08 Hui Zhu <teawater@gmail.com>
9176
9177 * i386-tdep.c (i386_process_record): Initialize regnum.
9178
9179 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9180
9181 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9182 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9183
9184 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9185
9186 Memory error when reading wrong core file.
9187 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9188 errors while reading the inferior memory, and return zero if
9189 an exception was raised.
9190
9191 2010-03-07 Michael Snyder <msnyder@vmware.com>
9192
9193 * record.c (record_restore): Rename tmpu8 to rectype.
9194
9195 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9196 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9197
9198 (i386_record_push): Rename local tmpulongest to addr.
9199
9200 (i386_process_record): Rename local tmpulongest to addr.
9201
9202 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9203 addr64.
9204
9205 Rename local variable tmpu8 to opcode8 and regnum.
9206
9207 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9208
9209 * remote.c (remote_get_ada_task_ptid): New function.
9210 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9211
9212 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9213
9214 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9215 block. Define helper macros to reduce ifdefs in code.
9216 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9217 size. Call unadorned GetModuleFileNameEx rather than
9218 GetModuleFileNameEx*.
9219 (windows_make_so): Use __PMAX to denote maximum buffer size and
9220 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9221 appropriate.
9222 (get_image_name): Use __PMAX to denote maximum buffer size.
9223 (handle_load_dll): Likewise.
9224 (windows_pid_to_exec_file): Likewise.
9225 (windows_create_inferior): Add many accommodations for older Cygwin and
9226 non-Cygwin.
9227 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9228 __USEWIDE conditional.
9229 (bad_GetModuleFileNameExA): Likewise.
9230 (_initialize_loadable): Just use real function names without the dyn_
9231 part since they are defined earlier.
9232
9233 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9234 Tom Tromey <tromey@redhat.com>
9235
9236 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9237 (parse_escape): Likewise.
9238 * python/py-utils.c (unicode_to_target_string): Update.
9239 (unicode_to_target_python_string): Update.
9240 (target_string_to_unicode): Update.
9241 * printcmd.c (printf_command): Update.
9242 * p-exp.y (yylex): Update.
9243 * objc-exp.y (yylex): Update.
9244 * mi/mi-parse.c: Include charset.h.
9245 (mi_parse_escape): New function.
9246 (mi_parse_argv): Use it.
9247 * jv-exp.y (yylex): Update.
9248 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9249 function.
9250 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9251 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9252 * gdbarch.c: Rebuild.
9253 * gdbarch.h: Rebuild.
9254 * defs.h (parse_escape): Update.
9255 * cli/cli-setshow.c: Include arch-utils.h.
9256 (do_setshow_command): Update.
9257 * cli/cli-cmds.c (echo_command): Update.
9258 * charset.h (target_charset, target_wide_charset): Update.
9259 * charset.c: Include arch-utils.h.
9260 (target_charset_name): Default to "auto".
9261 (target_wide_charset_name): Likewise.
9262 (show_target_charset_name): Handle "auto".
9263 (show_target_wide_charset_name): Likewise.
9264 (be_le_arch): New global.
9265 (set_be_le_names): Add 'gdbarch' argument.
9266 (validate): Likewise. Don't call set_be_le_names.
9267 (set_charset_sfunc, set_host_charset_sfunc)
9268 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9269 Update.
9270 (target_charset): Add 'gdbarch' argument.
9271 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9272 (auto_target_charset_name): New global.
9273 (default_auto_charset, default_auto_wide_charset): New functions.
9274 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9275 for target charsets. Copy result of nl_langinfo. Use GetACP if
9276 USE_WIN32API.
9277 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9278 remove 'byte_order' argument. Update.
9279 (classify_type): Likewise.
9280 (c_emit_char): Update.
9281 (c_printchar): Update.
9282 (c_printstr): Update.
9283 (c_get_string): Update.
9284 (evaluate_subexp_c): Update.
9285 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9286 Declare.
9287 * python/python.c (gdbpy_target_charset): New function.
9288 (gdbpy_target_wide_charset): Likewise.
9289 (GdbMethods): Update.
9290 * NEWS: Update.
9291
9292 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9293
9294 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9295 off high address bits.
9296
9297 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9298
9299 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9300 address as UnsignedLongLong, not LongLong.
9301
9302 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9303 Pedro Alves <pedro@codesourcery.com>
9304
9305 * remote-mips.c (gdbthread.h): Include.
9306 (remote_mips_ptid): Declare.
9307 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9308 (common_open): Set inferior_ptid, add it as an inferior, and
9309 as a thread too. Delete FIXME comment regarding start_remote().
9310 (mips_close): Invoke generic_mourn_inferior().
9311 (mips_kill): Make sure that target_mourn_inferior is invoked.
9312 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9313 it's now invoked from mips_close().
9314 (mips_load): Don't null out inferior_ptid. Don't call
9315 clear_symtab_users().
9316 (mips_thread_alive, mips_pid_to_str): New functions.
9317 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9318 to_thread_alive and to_pid_to_str operations.
9319
9320 2010-03-04 Tom Tromey <tromey@redhat.com>
9321
9322 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9323 in DWARF 3 and later.
9324 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9325
9326 2010-03-04 Keith Seitz <keiths@redhat.com>
9327
9328 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9329 If the filename portion of the linespec was quoted, recheck the
9330 remainder for additional quoting.
9331 (locate_first_half): Skip over completer chars, too.
9332
9333 2010-03-04 Tom Tromey <tromey@redhat.com>
9334
9335 * printcmd.c (printf_command): Pass dummy argument to
9336 printf_filtered.
9337
9338 2010-03-04 Doug Evans <dje@google.com>
9339
9340 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9341 unwound_fp.
9342
9343 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9344
9345 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9346
9347 * breakpoint.c (update_watchpoint): Create a sentinel location if
9348 the software watchpoint isn't watching any memory.
9349 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9350
9351 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9352
9353 * utils.c (fputs_maybe_filtered): Check if there's already a top
9354 level interpreter before dereferencing it. If there isn't one,
9355 don't paginate either.
9356
9357 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9358
9359 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9360 the state right when single stepping.
9361 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9362 Get the next PC along with the instruction state.
9363 (thumb_get_next_pc): Remove.
9364 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9365
9366 2010-03-04 Hui Zhu <teawater@gmail.com>
9367
9368 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9369
9370 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9371
9372 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9373 top level interpreter is MI.
9374
9375 2010-03-03 Stan Shebs <stan@codesourcery.com>
9376
9377 * remote.c (remote_download_tracepoint): Iterate over locations.
9378 * tracepoint.c (validate_actionline): Ditto.
9379 (encode_actions): Add location argument.
9380 (trace_dump_command): Check all locations to see if stepping
9381 frame.
9382
9383 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9384 Eli Zaretskii <eliz@gnu.org>
9385
9386 * NEWS: Add X86 general purpose registers section.
9387
9388 2010-03-03 Tom Tromey <tromey@redhat.com>
9389
9390 PR mi/11098:
9391 * varobj.c (install_new_value): Handle case where new print_value
9392 is NULL.
9393
9394 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9395
9396 PR gdb/11345:
9397 * printcmd.c (printf_command): Print end of format string using
9398 printf_filtered.
9399
9400 2010-03-02 Tom Tromey <tromey@redhat.com>
9401
9402 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9403 * defs.h (read_command_lines_1): Add missing 'void'.
9404 * cli/cli-script.c (recurse_read_control_structure): Add missing
9405 'void'.
9406 (read_next_line): Likewise.
9407 (read_command_lines_1): Likewise.
9408
9409 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9410
9411 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9412 store backchain as part of prologue.
9413
9414 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9415
9416 * progspace.c (update_address_spaces): Update inferior address spaces
9417 also.
9418
9419 2010-03-02 Doug Evans <dje@google.com>
9420
9421 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9422 lowpc,highpc args to addrmap_set_empty.
9423
9424 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9425
9426 * amd64-tdep.c (amd64_byte_names): New.
9427 (amd64_word_names): Likewise.
9428 (amd64_dword_names): Likewise.
9429 (amd64_pseudo_register_name): Likewise.
9430 (amd64_pseudo_register_read): Likewise.
9431 (amd64_pseudo_register_write): Likewise.
9432 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9433 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9434 set_gdbarch_pseudo_register_write and
9435 set_tdesc_pseudo_register_name. Don't call
9436 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9437
9438 * i386-tdep.c (i386_num_mmx_regs): Removed.
9439 (i386_num_pseudo_regs): Likewise.
9440 (i386_byte_names): New.
9441 (i386_word_names): Likewise.
9442 (i386_byte_regnum_p): Likewise.
9443 (i386_word_regnum_p): Likewise.
9444 (i386_mmx_regnum_p): Updated.
9445 (i386_pseudo_register_name): Make it global. Handle byte and
9446 word pseudo-registers.
9447 (i386_pseudo_register_read): Likewise.
9448 (i386_pseudo_register_write): Likewise.
9449 (i386_pseudo_register_type): Handle byte, word and dword
9450 pseudo-registers
9451 (i386_register_reggroup_p): Don't include pseudo
9452 registers, except for MXX, in any register groups. Don't
9453 include pseudo byte, word, dword registers in general_reggroup.
9454 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9455 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9456 pseudo-registers after word pseudo-registers. Call
9457 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9458
9459 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9460 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9461 eax_regnum.
9462 (i386_byte_regnum_p): New.
9463 (i386_word_regnum_p): Likewise.
9464 (i386_dword_regnum_p): Likewise.
9465 (i386_pseudo_register_name): Likewise.
9466 (i386_pseudo_register_read): Likewise.
9467 (i386_pseudo_register_write): Likewise.
9468
9469 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9470
9471 * target-descriptions.c (tdesc_type): Remove
9472 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9473 (tdesc_predefined_types): Likewise.
9474 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9475 if flag name is empty.
9476 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9477
9478 * features/i386/32bit-core.xml: Define i386_eflags.
9479 * features/i386/64bit-core.xml: Likewise.
9480
9481 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9482 * features/i386/64bit-sse.xml: Likewise.
9483
9484 * features/i386/amd64-linux.c: Regenerated.
9485 * features/i386/amd64.c: Likewise.
9486 * features/i386/i386-linux.c: Likewise.
9487 * features/i386/i386.c: Likewise.
9488
9489 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9490
9491 * gdbtypes.c (append_composite_type_field_raw): New.
9492 (append_composite_type_field_aligned): Use the new function.
9493 * gdbtypes.h (append_composite_type_field_raw): Declare.
9494 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9495 (struct tdesc_type_flag): New type.
9496 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9497 kind. Add size to u.u. Add u.f for flags.
9498 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9499 (tdesc_free_type): Likewise.
9500 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9501 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9502 (tdesc_add_bitfield, tdesc_add_flag): New.
9503 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9504 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9505 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9506 current_type. Add current_type_size and current_type_is_flags.
9507 (tdesc_start_union): Clear the new fields.
9508 (tdesc_start_struct, tdesc_start_flags): New.
9509 (tdesc_start_field): Handle struct fields, including bitfields.
9510 (field_attributes): Make type optional. Add start and end.
9511 (union_children): Rename to struct_union_children.
9512 (union_attributes): Rename to struct_union_attributes. Add optional
9513 size.
9514 (flags_attributes): New.
9515 (feature_children): Add struct and flags.
9516 * features/gdb-target.dtd: Add flags and struct to features.
9517 Make field type optional. Add field start and end.
9518
9519 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9520
9521 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9522 (amd64_linux_read_description): Likewise.
9523 (_initialize_amd64_linux_nat): Set to_read_description to
9524 amd64_linux_read_description.
9525
9526 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9527 (amd64_linux_register_name): Removed.
9528 (amd64_linux_register_type): Likewise.
9529 (amd64_linux_core_read_description): New.
9530 (amd64_linux_init_abi): Set target description to
9531 tdesc_amd64_linux if needed. Support orig_rax in target
9532 description. Don't call set_gdbarch_register_name nor
9533 set_gdbarch_register_type. Call
9534 set_gdbarch_core_read_description.
9535 (_initialize_amd64_linux_tdep): Call
9536 initialize_tdesc_amd64_linux.
9537
9538 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9539
9540 * amd64-tdep.c: Include "features/i386/amd64.c".
9541 (amd64_register_names): Removed.
9542 (amd64_register_name): Likewise.
9543 (amd64_register_type): Likewise.
9544 (amd64_init_abi): Set num_core_regs and register_names. Set
9545 target description to tdesc_amd64 if needed. Don't call
9546 set_gdbarch_register_name nor set_gdbarch_register_type.
9547 (_initialize_amd64_tdep): New.
9548
9549 * i386-linux-nat.c (i386_linux_read_description): New.
9550 (_initialize_i386_linux_nat): Set to_read_description to
9551 i386_linux_read_description.
9552
9553 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9554 (i386_linux_register_name): Removed.
9555 (i386_linux_core_read_description): New.
9556 (i386_linux_read_description): Likewise.
9557 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9558 Set target description to tdesc_i386_linux if needed. Support
9559 orig_eax. Set register_reggroup_p. Call
9560 set_gdbarch_core_read_description.
9561 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9562
9563 * i386-linux-tdep.h (tdesc_i386_linux): New.
9564
9565 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9566 with I387_NUM_REGS.
9567
9568 * i386-tdep.c: Include "features/i386/i386.c".
9569 (i386_register_names): Make it const.
9570 (i386_mmx_names): Likewise.
9571 (i386_num_register_names): Removed.
9572 (i386_register_name): Likewise.
9573 (i386_eflags_type): Likewise.
9574 (i386_mxcsr_type): Likewise.
9575 (i386_sse_type): Likewise.
9576 (i386_register_type): Likewise.
9577 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9578 (i386_pseudo_register_name): New.
9579 (i386_pseudo_register_type): Likewise.
9580 (i386_mmx_type): Make it static.
9581 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9582 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9583 call set_gdbarch_register_name nor set_gdbarch_register_type.
9584 Set register_reggroup_p. Set target description to tdesc_i386
9585 if needed. Call set_tdesc_pseudo_register_type,
9586 set_tdesc_pseudo_register_name and tdesc_use_registers.
9587 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9588 initialize_tdesc_x86_64.
9589
9590 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9591 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9592 register_names, tdesc and register_reggroup_p.
9593 (I386_NUM_FREGS): Removed.
9594 (i386_eflags_type): Likewise.
9595 (i386_mxcsr_type): Likewise.
9596 (i386_mmx_type): Likewise.
9597 (i386_sse_type): Likewise.
9598 (i386_register_name): Likewise.
9599 (i386_regnum): Add I386_MXCSR_REGNUM.
9600 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9601
9602 * i387-tdep.h (I387_NUM_REGS): New.
9603
9604 * regformats/i386/i386-linux.dat: Generated.
9605 * regformats/i386/i386.dat: Likewise.
9606 * regformats/i386/amd64-linux.dat: Likewise.
9607 * regformats/i386/amd64.dat: Likewise.
9608
9609 * regformats/reg-i386-linux.dat: Removed.
9610 * regformats/reg-i386.dat: Likewise.
9611 * regformats/reg-x86-64-linux.dat: Likewise.
9612 * regformats/reg-x86-64.dat: Likewise.
9613
9614 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9615
9616 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9617 cygwin_conv_path API rather than the deprecated
9618 cygwin_conv_to_full_posix_path.
9619 * windows-nat.c:
9620 (GetModuleFileNameExA): Undefine for Cygwin.
9621 (GetModuleFileNameExW): Define for Cygwin.
9622 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9623 Call GetModuleFileNameExW and convert path to POSIX using
9624 cygwin_conv_path.
9625 (windows_make_so): Always define p. Drop unused variable m.
9626 Don't use Win32 functions to check file existance, rather use
9627 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9628 Use canonicalize_file_name to get full path.
9629 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9630 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9631 use correct target buffer size in call to WideCharToMultiByte.
9632 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9633 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9634 (windows_create_inferior): Convert all paths and arguments to wchar_t
9635 and use CreateProcessW on Cygwin.
9636 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9637 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9638 (bad_GetModuleFileNameExW): Define for Cygwin.
9639 (_initialize_loadable): Load GetModuleFileNameExW into
9640 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9641
9642 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9643
9644 PR python/11036
9645 * python/py-frame.c (frapy_read_var): Add block argument and logic
9646 to cope with user provided blocks.
9647
9648 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9649
9650 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9651 New comment.
9652
9653 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9654
9655 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9656 (COMMON_OBS): ... to here since it's used unconditionally.
9657 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9658 (SFILES): To here.
9659
9660 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9661
9662 * mips-linux-tdep.c: Update struct sigframe comments.
9663 (SIGFRAME_CODE_OFFSET): Delete macro.
9664 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9665 this_frame's sp.
9666 (mips_linux_n32n64_sigframe_init): Same.
9667
9668 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9669
9670 * remote-mips.c (mips_load): Don't use pseudo-register when
9671 invalidating regcache.
9672
9673 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9674
9675 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9676
9677 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9678
9679 * NEWS: Add "New targets" section, and mention ARM Symbian
9680 support.
9681
9682 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9683
9684 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9685 add ADDR_SIZE member.
9686 (allocate_piece_closure): Update.
9687 (copy_pieced_value_closure): Likewise.
9688 (dwarf2_evaluate_loc_desc): Likewise.
9689 (read_pieced_value): Use DWARF address size instead of
9690 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9691
9692 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9693 Tom Tromey <tromey@redhat.com>
9694
9695 * python/py-type.c (typy_lookup_typename): Add in block argument.
9696 If provided restrict lookup to specified blocks.
9697 (gdbpy_lookup_type): Likewise.
9698 (typy_lookup_type): Likewise.
9699
9700 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9701
9702 Symbian config
9703
9704 gdb/
9705 * arm-symbian-tdep.c: New.
9706 * configure.tgt (arm*-*-symbianelf*): New target.
9707 (*-*-symbianelf*): New OS.
9708 * osabi.c (gdb_osabi_names): Add Symbian.
9709 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9710 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9711 (ALLDEPFILES): Add arm-symbian-tdep.c.
9712
9713 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9714
9715 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9716
9717 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9718
9719 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9720
9721 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9722 Tom Tromey <tromey@redhat.com>
9723 Thiago Jung Bauermann <bauerman@br.ibm.com>
9724
9725 * python/python.c (_initialize_python): Call
9726 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9727 gdbpy_initialize_blocks.
9728 * python/python-internal.h: Declare struct symbol, block and
9729 symtab_and_line. Declare block_object_type and
9730 symbol_object_type
9731 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9732 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9733 (symbol_to_symbol_object, block_to_block_object)
9734 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9735 (gdbpy_initialize_blocks ): Declare.
9736 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9737 (frapy_select): Add methods.
9738 (frapy_read_var): Add symbol branch.
9739 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9740 py-block.
9741 (SUBDIR_PYTHON_SRCS): Likewise.
9742 (py-symbol.o): New rule.
9743 (py-symtab.o): Likewise.
9744 (py-block.o): Likewise.
9745 * python/py-symbol.c: New file.
9746 * python/py-symtab.c: Likewise.
9747 * python/py-block.c: Likewise.
9748
9749 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9750
9751 PR gdb/11321
9752
9753 * inferior.h (prepare_for_detach): Declare.
9754 (struct inferior) <detaching>: New field.
9755 * infrun.c (prepare_for_detach): New.
9756 (handle_inferior_event) <random signal>: Don't stop if detaching.
9757 * target.c (target_detach): Call prepare_for_detach.
9758
9759 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9760
9761 Per-process displaced stepping queue.
9762
9763 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9764 (displaced_step_gdbarch, displaced_step_closure,
9765 (displaced_step_original, displaced_step_copy): Move globals to
9766 this...
9767 (struct displaced_step_inferior_state): ... new structure.
9768 (displaced_step_inferior_states): New global.
9769 (get_displaced_stepping_state, add_displaced_stepping_state)
9770 (remove_displaced_stepping_state, infrun_inferior_exit): New
9771 functions.
9772 (displaced_step_clear): Add displaced_step_inferior_state
9773 parameter, and adjust to handle it.
9774 (displaced_step_clear_cleanup): Parameter is now a
9775 displaced_step_inferior_state. Adjust.
9776 (displaced_step_prepare): Adjust.
9777 (displaced_step_fixup, displaced_step_fixup)
9778 (infrun_thread_ptid_changed, resume): Adjust.
9779 (init_wait_for_inferior): Don't call displaced_step_clear.
9780 (infrun_thread_stop_requested): Rewrite.
9781 (_initialize_infrun): Install infrun_inferior_exit as
9782 inferior_exit observer.
9783
9784 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9785
9786 * inferior.h (ptid_match): Declare.
9787 * infrun.c (ptid_match): New.
9788 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9789 (handle_notification): Add debug output.
9790 * linux-nat.c (ptid_match): Delete.
9791
9792 2010-02-24 David S. Miller <davem@davemloft.net>
9793
9794 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9795 * syscalls/sparc-linux.xml: New.
9796 * syscalls/sparc64-linux.xml: New.
9797 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9798 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9799 (sparc32_linux_get_syscall_number): New function.
9800 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9801 syscall number fetcher.
9802 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9803 (sparc64_linux_get_syscall_number): New function.
9804 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9805 syscall number fetcher.
9806
9807 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9808
9809 Multiexec MI
9810
9811 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9812 * inferior.c (add_inferior_silent): Notify inferior_added
9813 observer.
9814 (delete_inferior_1): Notify inferior_removed observer.
9815 (exit_inferior_1): Pass inferior, not pid, to observer.
9816 (inferior_appeared): Likewise.
9817 (add_inferior_with_spaces): New.
9818 (add_inferior_command): Use the above.
9819 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9820 Declare.
9821
9822 * inflow.c (inflow_inferior_exit): Likewise.
9823 * jit.c (jit_inferior_exit_hook): Likewise.
9824
9825 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9826 remove-inferior.
9827 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9828 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9829 (report_initial_inferior): New.
9830 (mi_inferior_removed): Register the above. Make sure
9831 inferior_added observer is called on the first inferior.
9832 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9833 inferior number, not pid.
9834 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9835 affected.
9836 * mi/mi-main.c (current_context): New.
9837 (proceed_thread_callback): Use typed closure.
9838 Proceed everything if pid is 0. Most implementation split into
9839 (proceed_thread): ... this.
9840 (run_one_inferior): New.
9841 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9842 Adjust for multiexec behaviour.
9843 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9844 (mi_cmd_execute): Handle the 'thread-group' option here.
9845 Do some extra checks.
9846 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9847 options.
9848 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9849
9850 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9851
9852 Make -exec-run a proper MI commands.
9853
9854 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9855 * mi/mi-cmds.c (mi_cmds): Adjust.
9856 * mi/mi-main.c (mi_cmd_exec_run): New.
9857
9858 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9859 Stan Shebs <stan@codesourcery.com>
9860
9861 * tracepoint.h (set_traceframe_number)
9862 (cleanup_restore_current_traceframe): Declare.
9863 * tracepoint.c (set_traceframe_number): New.
9864 (struct current_traceframe_cleanup): New.
9865 (do_restore_current_traceframe_cleanup)
9866 (restore_current_traceframe_cleanup_dtor)
9867 (make_cleanup_restore_current_traceframe): New.
9868 * infrun.c: Include tracepoint.h.
9869 (fetch_inferior_event): Switch out and in of tfind mode.
9870
9871 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9872
9873 * breakpoint.c (breakpoint_init_inferior): Also delete
9874 bp_shlib_event breakpoints.
9875 * solib-frv.c (enable_break): Remove call to
9876 remove_solib_event_breakpoints.
9877 * solib-svr4.c (enable_break): Ditto.
9878 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9879 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9880 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9881 * solib-spu.c (spu_enable_break): Ditto.
9882
9883 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9884
9885 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9886
9887 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9888
9889 * varobj.c (varobj_update): Avoid non-constants in initializers.
9890
9891 2010-02-23 Tom Tromey <tromey@redhat.com>
9892
9893 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9894 handle big-endian values.
9895 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9896
9897 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9898
9899 PR9605
9900
9901 gdb/
9902 * breakpoint.c (insert_bp_location): If inserting the read
9903 watchpoint failed, fallback to an access watchpoint.
9904 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9905 if the value changed, if not watching the same memory for writes.
9906 (watchpoint_locations_match): Add comment.
9907 (update_global_location_list): Copy the location's watchpoint type.
9908 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9909 handle read watchpoints here.
9910 (i386_insert_watchpoint): Read watchpoints aren't supported.
9911 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9912 packets.
9913 * target.h (target_insert_watchpoint): Update description.
9914
9915 2010-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9918 * m2-typeprint.c (m2_print_type): Update.
9919 * gdbtypes.c (recursive_dump_type): Update.
9920 (copy_type_recursive): Update.
9921 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9922 (c_type_print_base): Update.
9923 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9924 Remove.
9925 (struct cplus_struct_type) <ntemplate_args>: Remove.
9926 <struct template_arg>: Remove.
9927 <is_dynamic>: Move earlier.
9928 (TYPE_TEMPLATE_ARGS): Remove.
9929 (TYPE_NTEMPLATE_ARGS): Remove.
9930 (TYPE_TEMPLATE_ARG): Remove.
9931
9932 2010-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 PR c++/8693, PR c++/9496:
9935 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9936 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9937 write_dollar_variable. Don't try to classify NAME tokens.
9938 (token_and_value): New type.
9939 (token_fifo, popping, name_obstack): New globals.
9940 (classify_name): New function.
9941 (classify_inner_name): Likewise.
9942 (yylex): Likewise.
9943 (VARIABLE): Now has type sval.
9944 (exp : VARIABLE): Call write_dollar_variable.
9945 (qualified_name): Use TYPENAME, not typebase. Add production for
9946 multiple "::" instances.
9947 (variable): Use name_not_typename.
9948 (qualified_type): Remove.
9949 (typebase): Update.
9950
9951 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9952
9953 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9954 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9955 found by bfd_get_section_by_name.
9956 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9957
9958 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9959
9960 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9961 7.0 section" into "Changes in 7.1".
9962
9963 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9964
9965 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9966 * version.in: Bump version to 7.1.50.20100219-cvs.
9967
9968 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9969
9970 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9971 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9972
9973 2010-02-17 Tom Tromey <tromey@redhat.com>
9974
9975 * NEWS: Add Python API Improvements section.
9976
9977 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9978
9979 * NEWS: Correct typo.
9980
9981 2010-02-17 Tom Tromey <tromey@redhat.com>
9982
9983 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9984
9985 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9986
9987 * symfile.c (build_section_addr_info_from_objfile): Include sections
9988 only if they are SEC_ALLOC or SEC_LOAD.
9989
9990 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9991
9992 PR shlibs/11293
9993 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9994 of ULONGEST for address size.
9995
9996 2010-02-17 Tom Tromey <tromey@redhat.com>
9997
9998 * NEWS: Add C++ improvements section.
9999
10000 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
10001
10002 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
10003 PyThreadState_Swap): Avoid "statement with no effect" warning.
10004
10005 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10006
10007 * solib-svr4.c (enable_break <target_auxv_search>): New variable
10008 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
10009
10010 2010-02-17 Tristan Gingold <gingold@adacore.com>
10011 Petr Hluzin <petr.hluzin@gmail.com>
10012
10013 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
10014 gdb_assert. Fix info->size for SIG prologue.
10015
10016 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10017
10018 * infcmd.c (show_inferior_tty_command): Check for NULL.
10019 Correct output message.
10020
10021 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10022
10023 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
10024 FUNCTION contains parentheses. Improve removal of a trailing
10025 single quote.
10026
10027 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10028
10029 * gcore.c (do_bfd_delete_cleanup): New function.
10030 (gcore_command): Use it. Discard the cleanup after success.
10031 (gcore_copy_callback): Delete dead code.
10032
10033 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10034
10035 * symfile.c (addr_info_make_relative): Always use
10036 find_lowest_section.
10037
10038 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
10039
10040 * NEWS: Added entry for namespace fixes.
10041
10042 2010-02-15 Tom Tromey <tromey@redhat.com>
10043
10044 * dwarf2read.c (guess_structure_name): Allocate name on the
10045 objfile obstack.
10046
10047 2010-02-15 Tom Tromey <tromey@redhat.com>
10048
10049 * c-typeprint.c (c_type_print_base): Reverse order of test.
10050
10051 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10052
10053 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
10054 initialize it from ELF BFD. Extend the prelink condition by it.
10055
10056 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10057
10058 * defs.h (parse_pid_to_attach): New.
10059 * utils.c (parse_pid_to_attach): New.
10060 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
10061 * gnu-nat.c (gnu_attach): Likewise.
10062 * nto-procfs.c (procfs_attach): Likewise.
10063 * procfs.c (procfs_attach): Likewise.
10064 * windows-nat.c (windows_attach): Likewise.
10065 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
10066 * inf-ttrace.c (inf_ttrace_attach): Likewise.
10067 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
10068 check.
10069
10070 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
10071
10072 * MAINTAINERS: Add myself for write after approval privileges.
10073
10074 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10075
10076 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10077 block.
10078
10079 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10080
10081 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10082 only if INFO_VERBOSE.
10083
10084 2010-02-12 Tomas Holmberg <th@virtutech.com>
10085
10086 * mi/mi-main.c: Added the --reverse flag to the following MI
10087 commands: exec-continue, exec-finish, exec-next, exec-step,
10088 exec-next-instruction, exec-step-instruction. This is to
10089 support reverse execution over the MI interface to gdb.
10090
10091 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10092
10093 * tracepoint.c (_initialize_tracepoint): Specify that the address
10094 range of `tfind outsize' is exclusive, and that the address range
10095 of `tfind range' is inclusive, in the commands' help strings.
10096
10097 2010-02-12 Joel Brobecker <brobecker@adacore.com>
10098
10099 Spurious "dll not found" error messages on x64-windows.
10100 * windows-nat.c: Add include of complaints.h.
10101 (handle_unload_dll): Change dll-not-found error into a complaint.
10102
10103 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10104
10105 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10106 bp_tracepoint and bp_fast_tracepoint, not
10107 bp_loc_software_breakpoint.
10108 (update_global_location_list): Tracepoints are never duplicates of
10109 anything.
10110
10111 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10112
10113 * breakpoint.c (break_command_really): Change return type to int.
10114 Return false if no breakpoint was created, true otherwise.
10115 (trace_command): Don't set the tracepoint count if no tracepoint
10116 was created.
10117 (ftrace_command): Ditto.
10118 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10119 created in the breakpoints table.
10120
10121 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10122 Ulrich Weigand <uweigand@de.ibm.com>
10123
10124 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10125
10126 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10127
10128 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10129 the offset value isn't of integral type.
10130
10131 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10132
10133 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10134 New.
10135
10136 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10137
10138 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10139 non-subscriptable types.
10140 * valarith.c (binop_types_user_defined_p): New, abstracted out
10141 from ...
10142 (binop_user_defined_p): ... this.
10143 * value.h (binop_types_user_defined_p): Declare.
10144
10145 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10146
10147 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10148 Merge uploaded TSVs before merging uploaded tracepoints.
10149
10150 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10151
10152 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10153
10154 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10155
10156 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10157 whitespace character after a dot in comment.
10158 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10159 Likewise.
10160 (list_args_or_locals): For the 'all' (that is
10161 -stack-list-variables) case, always output list of tuples.
10162 Output 'arg' field if variable is argument.
10163
10164 2010-02-10 Tom Tromey <tromey@redhat.com>
10165
10166 * parser-defs.h (parser_debug): Declare.
10167 * parse.c (_initialize_parse): Install "debug parser" set/show
10168 command.
10169 (parser_debug): New global.
10170 (show_parserdebug): New function.
10171 * c-exp.y (c_parse): Set yydebug.
10172
10173 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10174
10175 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10176 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10177 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10178 i386_mxcsr.
10179 (tdesc_find_type): New.
10180 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10181 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10182
10183 * target-descriptions.h (tdesc_find_type): New.
10184
10185 2010-02-10 Michael Snyder <msnyder@vmware.com>
10186
10187 * gdb-gdb.py: Comment fix.
10188
10189 2010-02-09 Tristan Gingold <gingold@adacore.com>
10190
10191 * machoread.c (macho_symfile_relocate): New function.
10192 (macho_sym_fns): Use macho_symfile_relocate instead of
10193 default_symfile_relocate.
10194 (macho_oso_data): New type.
10195 (current_oso): New variable.
10196 (macho_add_oso_symfile): Do not compute section_addr_info, but
10197 instead set vma of sections.
10198 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10199 Set and clear current_oso.
10200
10201 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10202
10203 Wrong type description for tagged type parameter.
10204 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10205 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10206 reference to a tagged type.
10207
10208 2010-02-09 Tristan Gingold <gingold@adacore.com>
10209
10210 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10211 brothers of the parent.
10212
10213 2010-02-08 Tom Tromey <tromey@redhat.com>
10214
10215 PR c++/8017:
10216 * value.h: Update.
10217 * valops.c (search_struct_field): Make 'name' const.
10218 (search_struct_method): Likewise.
10219 (find_method_list): Make 'method' const.
10220 (value_struct_elt): Make 'name' and 'err' const.
10221 (value_find_oload_method_list): Make 'method' const.
10222 (find_overload_match): Make 'name' const.
10223 * eval.c (evaluate_subexp_standard): New locals function,
10224 function_name.
10225 <OP_FUNCALL>: Handle OP_SCOPE specially.
10226
10227 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10228
10229 * infrun.c (handle_inferior_event): Do not look up regcache
10230 for exited processes.
10231
10232 2010-02-08 Chris Moller <moller@mollerware.com>
10233
10234 PR gdb/10728
10235 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10236 warn if found, and assume length = 1.
10237
10238 2010-02-08 Chris Moller <cmoller@redhat.com>
10239
10240 PR gdb/9067
10241 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10242 (cp_print_static_field) Fix use of obstacks.
10243
10244 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10245
10246 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10247 resumed LWPs as resumed.
10248 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10249 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10250 of throwing an internal error. If an LWP of a process we're not
10251 waiting for reports a signal, don't force collecting a SIGSTOP,
10252 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10253 go through all LWPs cancelling breakpoints in non-stop mode.
10254 (resume_stopped_resumed_lwps): New.
10255 (linux_nat_wait): Use it.
10256
10257 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10258
10259 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10260 i386/amd64 and i386/amd64-linux.
10261 (i386/i386-expedite): New.
10262 (i386/i386-linux-expedite): Likewise.
10263 (i386/amd64-expedite):Likewise.
10264 (i386/amd64-linux-expedite): Likewise.
10265 ($(outdir)/i386/i386-linux.dat): Likewise.
10266 ($(outdir)/i386/amd64.dat): Likewise.
10267 ($(outdir)/i386/amd64-linux.dat): Likewise.
10268
10269 * features/i386/32bit-core.xml: New.
10270 * features/i386/32bit-linux.xml: Likewise.
10271 * features/i386/32bit-sse.xml: Likewise.
10272 * features/i386/64bit-core.xml: Likewise.
10273 * features/i386/64bit-linux.xml: Likewise.
10274 * features/i386/64bit-sse.xml: Likewise.
10275 * features/i386/i386-linux.xml: Likewise.
10276 * features/i386/i386.xml: Likewise.
10277 * features/i386/amd64-linux.xml: Likewise.
10278 * features/i386/amd64.xml: Likewise.
10279 * features/i386/i386-linux.c: Likewise.
10280 * features/i386/i386.c: Likewise.
10281 * features/i386/amd64-linux.c: Likewise.
10282 * features/i386/amd64.c: Likewise.
10283
10284 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10285
10286 PR c++/7935:
10287 * cp-support.h: Added char* alias element to using_direct data
10288 struct.
10289 (cp_add_using): Added char* alias argument.
10290 (cp_add_using_directive): Ditto.
10291 * cp-namespace.c: Updated with the above changes.
10292 (cp_lookup_symbol_imports): Check for aliases.
10293 * dwarf2read.c (read_import_statement): Figure out local alias
10294 for the import and pass it on to cp_add_using.
10295 (read_namespace): Pass alias argument to cp_add_using.
10296
10297 2010-02-05 Hui Zhu <teawater@gmail.com>
10298
10299 * defs.h (gdb_bfd_errmsg): New extern.
10300 * exec.c (exec_file_attach): Change bfd_errmsg to
10301 gdb_bfd_errmsg.
10302 * utils.c (AMBIGUOUS_MESS1): New macro.
10303 (AMBIGUOUS_MESS2): New macro.
10304 (gdb_bfd_errmsg): New function.
10305
10306 2010-02-04 Doug Evans <dje@google.com>
10307
10308 * solib-svr4.c (enable_break): Add comment.
10309
10310 2010-02-04 Anthony Green <green@moxielogic.com>
10311
10312 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10313 gracefully.
10314
10315 2010-02-04 Tom Tromey <tromey@redhat.com>
10316
10317 * valops.c (search_struct_field): Account for
10318 value_embedded_offset. Fix check for virtual base past the end of
10319 the object. Use value_copy when making a slice of the value.
10320
10321 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10322
10323 PR tui/9622
10324 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10325 only if gdb_stdout is a tty.
10326
10327 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10328
10329 * target-descriptions.c: Include "osabi.h".
10330 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10331 OSABI.
10332
10333 2010-02-04 Tristan Gingold <gingold@adacore.com>
10334
10335 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10336 (macho_symtab_read): Adjust calls to macho_add_oso.
10337 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10338 (macho_symfile_read): Adjust call to macho_oso_symfile.
10339 (macho_new_init): Move this function after declarations.
10340 (macho_symfile_init): Ditto.
10341 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10342 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10343
10344 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10345
10346 Include MI command in remotelog.
10347
10348 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10349
10350 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10351
10352 * remote.c (remote_state): Remove gdbarch.
10353 (init_remote_state): Don't set gdbarch.
10354 (remote_query_supported): Pass target_gdbarch instead of
10355 rs->gdbarch to gdbarch_qsupported.
10356
10357 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10358
10359 * gdbarch.sh: Add qsupported.
10360
10361 * gdbarch.c: Regenerated.
10362 * gdbarch.h: Likewise.
10363
10364 * remote.c (remote_state): Add gdbarch.
10365 (init_remote_state): Set gdbarch.
10366 (remote_query_supported): Support gdbarch_qsupported.
10367
10368 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10369
10370 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10371 __FreeBSD_kernel_version.
10372
10373 2010-02-03 Tristan Gingold <gingold@adacore.com>
10374
10375 * symfile.h (struct sym_fns): Add sym_relocate field.
10376 (default_symfile_relocate): New prototype.
10377 (symfile_relocate_debug_section): First argument is now an objfile.
10378 * symfile.c (default_symfile_relocate): Rename from
10379 symfile_relocate_debug_section, first argument is now an objfile.
10380 (symfile_relocate_debug_section): New function.
10381 * coffread.c (coff_sym_fns): Set sym_relocate field.
10382 * somread.c (som_sym_fns): Ditto.
10383 * mipsread.c (ecoff_sym_fns): Ditto.
10384 * machoread.c (macho_sym_fns): Ditto.
10385 * elfread.c (elf_sym_fns): Ditto.
10386 * dwarf2read.c (dwarf2_read_section): Ditto.
10387 * xcoffread.c (xcoff_sym_fns): Ditto.
10388 * dbxread.c (aout_sym_fns): Ditto.
10389 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10390 (elfstab_build_psymtabs): Ditto.
10391
10392 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10393
10394 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10395
10396 2010-02-02 Tom Tromey <tromey@redhat.com>
10397
10398 * valops.c (value_cast_structs): Try downcasting using the RTTI
10399 type.
10400
10401 2010-02-02 Tom Tromey <tromey@redhat.com>
10402
10403 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10404 (gnuv2_baseclass_offset): Now static.
10405 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10406 * gnu-v2-abi.h: Remove.
10407
10408 2010-02-02 Tom Tromey <tromey@redhat.com>
10409
10410 * m2-typeprint.c (m2_record_fields): Don't use
10411 TYPE_DECLARED_TYPE.
10412 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10413 (struct main_type) <flag_declared_class>: New field.
10414 (struct cplus_struct_type) <declared_type>: Remove.
10415 <ntemplate_args>: Move earlier.
10416 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10417 (DECLARED_TYPE_TEMPLATE): Remove.
10418 (TYPE_DECLARED_TYPE): Remove.
10419 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10420 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10421 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10422 TYPE_DECLARED_TYPE.
10423
10424 2010-02-02 Tom Tromey <tromey@redhat.com>
10425
10426 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10427 * valops.c (search_struct_field): Compute nbases after calling
10428 CHECK_TYPEDEF.
10429 (check_field): Call CHECK_TYPEDEF.
10430 * cp-valprint.c (cp_print_value): Pass correct address to
10431 baseclass_offset. Fix check for virtual base past the end of the
10432 object. Don't offset address passed to cp_print_value_fields or
10433 apply_val_pretty_printer.
10434 (cp_print_value_fields): Fix call to val_print.
10435 (cp_print_value_fields_rtti): New function.
10436 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10437 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10438 val_print.
10439 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10440 offset to address.
10441 * language.h (struct language_defn) <la_val_print>: Document.
10442 * c-lang.h (cp_print_value_fields_rtti): Declare.
10443
10444 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10445
10446 PR libc/11214:
10447 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10448 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10449 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10450
10451 2010-02-01 Michael Matz <matz@suse.de>
10452 Daniel Jacobowitz <dan@codesourcery.com>
10453
10454 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10455 functions use a frame pointer.
10456
10457 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10458
10459 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10460 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10461 * config/djgpp/fnchange.lst: Add translations for
10462 symbol-without-target_section.exp and symbol-without-target_section.c.
10463
10464 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10465
10466 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10467 (remote_breakpoint_for_pc): Correct invalid_p check.
10468 * gdbarch.c: Regenerated.
10469
10470 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10471
10472 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10473 arm_pc_is_thumb.
10474 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10475 (extend_buffer_earlier): New function.
10476 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10477 (arm_adjust_breakpoint_address): New function.
10478 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10479
10480 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10481
10482 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10483 (arm_linux_thumb2_le_breakpoint): New constants.
10484 (arm_linux_init_abi): Set thumb2_breakpoint and
10485 thumb2_breakpoint_size.
10486 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10487 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10488 Implement support for single stepping through IT blocks if
10489 a 32-bit Thumb breakpoint instruction is available.
10490 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10491 is available, use it when needed.
10492 (arm_remote_breakpoint_from_pc): New function.
10493 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10494 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10495 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10496
10497 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10498
10499 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10500 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10501 * gdbarch.c, gdbarch.h: Regenerated.
10502 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10503 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10504 gdbarch_remote_breakpoint_from_pc.
10505
10506 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10507
10508 * infrun.c (prepare_to_proceed): Handle other signals which might
10509 match a breakpoint.
10510 (handle_inferior_event): Move the check for unusual breakpoint
10511 signals earlier.
10512
10513 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10514
10515 amd64 - function returning record with field straddling 2 registers.
10516 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10517 a record of length <= 16 in which a field straddles the two
10518 eightbytes.
10519
10520 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10521
10522 Implement return values on amd64-windows.
10523 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10524 (amd64_windows_return_value): New function.
10525 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10526 amd64_windows_return_value.
10527
10528 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10529
10530 amd64-windows: 32 bytes allocated on stack by caller for integer
10531 parameter registers.
10532 * i386-tdep.h (struct gdbarch_tdep): Add new field
10533 integer_param_regs_saved_in_caller_frame.
10534 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10535 tdep->integer_param_regs_saved_in_caller_frame to 1.
10536 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10537 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10538
10539 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10540
10541 amd64-windows: memory args passed by pointer during function calls.
10542 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10543 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10544 where tdep->memory_args_by_pointer is non-zero.
10545 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10546 tdep->memory_args_by_pointer to 1.
10547
10548 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10549
10550 amd64-windows: Integer parameters in function calls.
10551 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10552 amd64-tdep.c.
10553 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10554 call_dummy_integer_regs, and classify.
10555 * amd64-tdep.h (amd64_classify): Add declaration.
10556 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10557 (amd64_reg_class): Delete, moved to i386-tdep.h.
10558 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10559 Replace call to amd64_classify by call to tdep->classify.
10560 (amd64_push_arguments): Get the list of registers to use for
10561 passing integer parameters from the gdbarch tdep structure,
10562 rather than using a hardcoded one. Replace calls to amd64_classify
10563 by calls to tdep->classify.
10564 (amd64_push_dummy_call): Get the register number used for
10565 the "hidden" argument from tdep->call_dummy_integer_regs.
10566 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10567 and tdep->call_dummy_integer_regs. Set tdep->classify.
10568 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10569 (amd64_windows_dummy_call_integer_regs): New static global.
10570 (amd64_windows_classify): New function.
10571 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10572 tdep->call_dummy_integer_regs and tdep->classify.
10573
10574 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10575
10576 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10577 for the new regcache. All callers updated.
10578 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10579 (get_thread_arch_regcache): Do not set aspace here.
10580 * regcache.h (regcache_xmalloc): Update declaration.
10581
10582 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10583 regcache_xmalloc updated.
10584
10585 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10586
10587 Another -Wunused-function error in procfs.c (sparc-solaris)
10588 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10589 Only define if SYS_syssgi is defined.
10590 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10591 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10592 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10593 is itself defined.
10594
10595 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10596
10597 * windows-nat.c (windows_initialization_done): New variable.
10598 (get_windows_debug_event): Issue error when process dies before
10599 completely initializing.
10600 (do_initial_windows_stuff): Set flag to indicate when we are done with
10601 the initial steps of attaching to the child.
10602
10603 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10604
10605 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10606
10607 2010-01-27 Doug Evans <dje@google.com>
10608
10609 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10610
10611 * breakpoint.c (bpstat_stop_status): Delete useless code.
10612
10613 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10614
10615 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10616 objfile via SYMBOL_SYMTAB.
10617
10618 2010-01-26 Tom Tromey <tromey@redhat.com>
10619
10620 PR exp/7643:
10621 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10622 coerce_array on result.
10623
10624 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10625
10626 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10627 search_parent argument.
10628 (cp_add_using): Initialize 'searched' field.
10629 (reset_directive_searched): New function.
10630 * cp-support.h: Add 'searched' field to using_direct struct.
10631 (cp_lookup_symbol_imports): Ditto.
10632 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10633 Perform recursive search.
10634 Implement non parent search.
10635 * valops.c (value_maybe_namespace_elt): Updated.
10636
10637 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10638
10639 PR gdb/10929:
10640 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10641 scopes which contain using directives even if they contain no
10642 declarations.
10643 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10644 la_lookup_symbol_nonlocal.
10645 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10646 cp_lookup_symbol_namespace.
10647 (cp_lookup_symbol_namespace): Perform an import lookup at every
10648 block level.
10649 (cp_lookup_symbol_imports): New function.
10650 (cp_lookup_symbol_in_namespace): New function.
10651
10652 2010-01-25 Tom Tromey <tromey@redhat.com>
10653
10654 PR gdb/11049:
10655 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10656 result.
10657
10658 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10659
10660 * configure.ac: Only use host_os part when disabling TUI on osf.
10661 Use test to check variables, prefix strings with x.
10662 * configure: Regenerate.
10663
10664 * solib-osf.c (osf_current_sos): Initialize tail.
10665
10666 2010-01-25 gingold <gingold@adacore.com>
10667
10668 * windows-nat.c (windows_continue): Use %x to print thread id.
10669 (get_windows_debug_event): Ditto.
10670
10671 2010-01-22 Tom Tromey <tromey@redhat.com>
10672
10673 PR symtab/11199:
10674 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10675 type and arguments. Use smash_to_methodptr_type.
10676 (read_structure_type): Call quirk_gcc_member_function_pointer
10677 later.
10678 * gdbtypes.h (smash_to_methodptr_type): Declare.
10679 * gdbtypes.c (smash_to_methodptr_type): New function.
10680 (lookup_methodptr_type): Use it.
10681
10682 2010-01-21 Tom Tromey <tromey@redhat.com>
10683
10684 PR symtab/11198:
10685 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10686 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10687 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10688 (glibc_skip_solib_resolver): Use
10689 lookup_minimal_symbol_and_objfile.
10690
10691 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10692
10693 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10694 WIN32 targets.
10695
10696 2010-01-20 Tom Tromey <tromey@redhat.com>
10697
10698 PR backtrace/10770:
10699 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10700 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10701 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10702 dwarf_stack_values, not CORE_ADDRs.
10703 (execute_stack_op): Change DW_OP_div and comparison operators to
10704 use signed operands.
10705
10706 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10707
10708 Per-inferior args and tty and environment.
10709
10710 * infcmd.c (inferior_args): Rename to ...
10711 (inferior_args_scratch): ... this.
10712 (inferior_io_terminal): Rename to ...
10713 (inferior_io_terminal_scratch): ... this.
10714 (inferior_argc, inferior_argv): Remove.
10715 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10716 inside current_inferior().
10717 (set_inferior_tty_command, show_inferior_tty_command): New.
10718 (get_inferior_args, set_inferior_args): Store inside
10719 current_inferior().
10720 (notice_args_set): Likewise and rename to...
10721 (set_args_command): ... this.
10722 (set_inferior_args_vector): Likewise.
10723 (notice_args_read): Rename to...
10724 (show_args_command): ...new.
10725 (tty_command): Remove.
10726 (run_command_1): Don't free old args, as they are freed by
10727 set_inferior_arg now.
10728 (run_no_args_command): Likewise.
10729 (inferior_environ): Remove.
10730 (run_command_1): Use environment of the current inferior.
10731 (environment_info, set_environment_command)
10732 (unset_environment_command, path_info, path_command): Likewise.
10733 (_initialize_infcmd): Adjust for function and variable renames.
10734 Do not init inferior_environ.
10735 * inferior.h (set_inferior_arg): Adjust prototype.
10736 (struct inferior): New fields args, argc, argv, terminal, environment.
10737 (inferior_environ): Remove declaration.
10738 * inferior.c (free_inferior): Free new fields.
10739 (add_inferior_silent): Initialize 'environment' field.
10740 * main.c (captured_main): Set arguments only after the initial
10741 inferior has been created. Set set_inferior_io_terminal,
10742 not tty_command.
10743 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10744 inferior.
10745 (_initialize_mi_cmd_env): Adjust for disappearance of global
10746 inferior_environ.
10747 * solib.c (solib_find): Use environment of the current inferior.
10748
10749 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10750
10751 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10752 HAVE_PYTHON.
10753 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10754
10755 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10756
10757 Get rid of ada-lang.c:function_name_from_pc.
10758 * ada-lang.c: Add "stack.h" #include.
10759 (function_name_from_pc): Delete.
10760 (is_known_support_routine): Replace call to function_name_from_pc
10761 by call to find_frame_funname.
10762 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10763
10764 2010-01-19 Tom Tromey <tromey@redhat.com>
10765
10766 PR c++/11026:
10767 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10768 objfile obstack.
10769
10770 2010-01-19 Tom Tromey <tromey@redhat.com>
10771
10772 * top.c (stop_sig, float_handler, do_nothing): Remove.
10773
10774 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10775
10776 * breakpoint.c (watchpoint_check): Check the call
10777 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10778 Extend the comment.
10779 * config/djgpp/fnchange.lst: Add translations for
10780 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10781 watchpoint-cond-gone-stripped.c.
10782
10783 2010-01-19 Tom Tromey <tromey@redhat.com>
10784
10785 PR c++/8000:
10786 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10787 into parent scope, and enumerator into grandparent scope.
10788
10789 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10790
10791 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10792
10793 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10794
10795 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10796 i[34567]86-*-solaris2.1[0-9]*.
10797 * configure.tgt: Likewise.
10798
10799 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10800
10801 * NEWS: Document the source command enhancement allowing it
10802 to load Python scripts. Document the "set/show script-extension"
10803 commands.
10804
10805 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10806
10807 Add -Wunused-function to compile flags.
10808 * configure.ac: Add -Wunused-function to build_warnings.
10809 * configure: Regenerate.
10810
10811 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10812
10813 "delete" ada-lex.c:input function, not used.
10814 * ada-lex.l: #define YY_NO_INPUT.
10815
10816 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10817
10818 Delete free_named_symtabs and associated cleanup.
10819 * symfile.h (free_named_symtabs): Delete declaration.
10820 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10821 (cashier_psymtab): Comment function out.
10822 Delete declaration.
10823 (free_named_symtabs): Delete.
10824 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10825 * dbxread.c (end_psymtab): Likewise.
10826 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10827 * exec.c (exec_close_1): Ditto.
10828 * xcoffread.c (xcoff_end_psymtab): Likewise.
10829
10830 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10831
10832 * stack.c (print_block_frame_labels): Comment function out.
10833
10834 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10835
10836 Delete unused or undefined functions.
10837 * breakpoint.c (ep_parse_optional_filename): Delete.
10838 * dcache.c (dcache_write_line): Remove declaration.
10839 * infrun.c (build_infrun): Remove declaration.
10840 * tracepoint.c (tracepoint_save_command): Remove declaration.
10841 * linux-nat.c (init_lwp_list): Delete. No longer used.
10842 * event-loop.c (check_async_signal_handlers): Delete declaration.
10843 * infrun.c (init_execution_control_state): Delete.
10844 (proceed): Update comment to avoid mentioning
10845 init_execution_control_state.
10846 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10847 * ada-lang.c (ada_to_static_fixed_value): Delete.
10848 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10849 * cp-namespace.c (cp_copy_usings): Delete.
10850 * xml-syscall.c (xml_number_of_syscalls): Delete.
10851 * progspace.c (find_program_space_by_num): Delete.
10852 * inflow.c (handle_sigio): Delete declaration.
10853 * hppa-tdep.c (hppa_alignof): Delete.
10854 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10855 (mipsnbsd_core_osabi_sniffer): Delete.
10856
10857 2010-01-18 Tom Tromey <tromey@redhat.com>
10858
10859 PR c++/9680:
10860 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10861 (CONST_CAST): New tokens.
10862 (exp): Add new productions.
10863 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10864 reinterpret_cast.
10865 (is_cast_operator): New function.
10866 (yylex): Handle cast operators specially.
10867 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10868 UNOP_REINTERPRET_CAST>: New cases.
10869 * expprint.c (print_subexp_standard): Likewise.
10870 (op_name_standard): Likewise.
10871 (dump_subexp_body_standard): Likewise.
10872 * parse.c (operator_length_standard): Likewise.
10873 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10874 UNOP_REINTERPRET_CAST.
10875 * gdbtypes.c (class_types_same_p): New function.
10876 (is_ancestor): Use it.
10877 (is_public_ancestor): New function.
10878 (is_unique_ancestor_worker): Likewise.
10879 (is_unique_ancestor): Likewise.
10880 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10881 (is_unique_ancestor): Declare.
10882 * valops.c (value_reinterpret_cast): New function.
10883 (dynamic_cast_check_1): Likewise.
10884 (dynamic_cast_check_2): Likewise.
10885 (value_dynamic_cast): Likewise.
10886 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10887
10888 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10889
10890 Fix build failure when building without Python support.
10891 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10892 is not defined.
10893
10894 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10895
10896 Use XVS field type instead of doing a parallel lookup.
10897 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10898 if it is a reference type instead of doing a type lookup using
10899 the XVS field name.
10900
10901 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10902
10903 Trust PAD types instead of using PAD___XVS.
10904 * ada-lang.c (trust_pad_over_xvs): New static variable.
10905 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10906 parallel XVS type, follow the XVS type instead of the PAD type.
10907 (unwrap_value): Make sure that there is no parallel XVE type
10908 before returning the value as is.
10909 (set_ada_list, show_ada_list): New static variables.
10910 (set_ada_command, show_ada_command): New functions.
10911 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10912 Add new "set/show ada trust-PAD-over-XVS" setting.
10913
10914 2010-01-18 Tom Tromey <tromey@redhat.com>
10915 Thiago Jung Bauermann <bauerman@br.ibm.com>
10916
10917 Allow "source" to load python scripts.
10918 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10919 * python/python.c (source_python_script): New function.
10920 * python/python.h (source_python_script): Add declaration.
10921 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10922 (script_ext_off, script_ext_soft, script_ext_strict)
10923 (script_ext_enums, script_ext_mode): New static constants.
10924 (show_script_ext_mode, find_and_open_script): New functions.
10925 (source_script): Enhance to handle Python scripts.
10926 (init_cli_cmds): Add set/show script-extension commands.
10927
10928 2010-01-16 Stan Shebs <stan@codesourcery.com>
10929
10930 * tracepoint.h (struct trace_status): Use unsigned long long
10931 instead of size_t.
10932 * tracepoint.c (trace_status_command): Fix printf directive.
10933 (trace_save_command): Check fwrite returns, fix printf directive.
10934 (trace_filename): New global.
10935 (tfile_open): Set it, check read returns.
10936 (tfile_close): Free trace_filename.
10937 (tfile_get_traceframe_address): Check read returns.
10938 (tfile_trace_find): Ditto.
10939 (tfile_fetch_registers): Ditto.
10940 (tfile_xfer_partial): Ditto.
10941 (tfile_get_trace_state_variable_value): Ditto.
10942
10943 2010-01-15 Stan Shebs <stan@codesourcery.com>
10944
10945 Add trace file support.
10946 * tracepoint.h (enum trace_stop_reason): New enum.
10947 (struct trace_status): New struct.
10948 (parse_trace_status): Declare.
10949 (struct uploaded_tp): Move here from remote.c,
10950 add fields for actions.
10951 (struct uploaded_tsv): New struct.
10952 * tracepoint.c (tfile_ops): New target vector.
10953 (trace_fd): New global.
10954 (tfile_open): New function.
10955 (tfile_close): New function.
10956 (tfile_files_info): New function.
10957 (tfile_get_trace_status): New function.
10958 (tfile_get_traceframe_address): New function.
10959 (tfile_trace_find): New function.
10960 (tfile_fetch_registers): New function.
10961 (tfile_xfer_partial): New function.
10962 (tfile_get_trace_state_variable_value): New function.
10963 (init_tfile_ops): New function.
10964 (_initialize_tracepoint): Call it, add tfile target.
10965 (trace_status): New global.
10966 (current_trace_status): New function.
10967 (trace_running_p): Remove, change all users to get from
10968 current_trace_status()->running.
10969 (get_trace_status): Remove.
10970 (trace_status_command): Call target_get_trace_status directly,
10971 report more detail including tracing stop reasons.
10972 (trace_find_command): Always allow tfind on a file.
10973 (trace_find_pc_command): Ditto.
10974 (trace_find_tracepoint_command): Ditto.
10975 (trace_find_line_command): Ditto.
10976 (trace_find_range_command): Ditto.
10977 (trace_find_outside_command): Ditto.
10978 (trace_frames_offset, cur_offset): Declare as off_t.
10979 (trace_regblock_size): Rename from reg_size, update users.
10980 (parse_trace_status): New function.
10981 (tfile_interp_line): New function.
10982 (disconnect_or_stop_tracing): Ensure current trace
10983 status before asking what to do.
10984 (stop_reason_names): New global.
10985 (trace_save_command): New command.
10986 (get_uploaded_tp): Move here from remote.c.
10987 (find_matching_tracepoint): Ditto.
10988 (merge_uploaded_tracepoints): New function.
10989 (parse_trace_status): Use stop_reason_names.
10990 (_initialize_tracepoint): Define tsave command.
10991 * target.h (target_ops): New fields to_save_trace_data,
10992 to_upload_tracepoints, to_upload_trace_state_variables,
10993 to_get_raw_trace_data, change to_get_trace_status
10994 to take a pointer to a status struct.
10995 (target_save_trace_data): New macro.
10996 (target_upload_tracepoints): New macro.
10997 (target_upload_trace_state_variables): New macro.
10998 (target_get_raw_trace_data): New macro.
10999 * target.c (update_current_target): Add new methods, change
11000 signature of to_get_trace_status.
11001 * remote.c (hex2bin): Make globally visible.
11002 (bin2hex): Ditto.
11003 (remote_download_trace_state_variable): Download name also.
11004 (remote_get_trace_status): Update parameter, use
11005 parse_trace_status.
11006 (remote_save_trace_data): New function.
11007 (remote_upload_tracepoints): New function.
11008 (remote_upload_trace_state_variables): New function.
11009 (remote_get_raw_trace_data): New function.
11010 (remote_start_remote): Use them.
11011 (_initialize_remote_ops): Add operations.
11012 * ax-gdb.c: Include breakpoint.h.
11013 * breakpoint.c (create_tracepoint_from_upload): Use
11014 break_command_really, return tracepoint, warn about unimplemented
11015 parts.
11016 * NEWS: Mention trace file addition.
11017
11018 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11019
11020 Fix compilation warning on gcc-3.4.
11021 * exec.c (print_section_info): Move the `displacement' variable
11022 initialization to its declaration.
11023
11024 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11025
11026 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
11027 comparison.
11028
11029 2010-01-15 Eric Botcazou <botcazou@adacore.com>
11030
11031 "info tasks" broken by typedefs in ATCB type definitions.
11032 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
11033 ada_check_typedef before retrieving the length of the type for
11034 regular fields.
11035
11036 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11037
11038 Do not use name-based lookup for unconstrained packed arrays.
11039 * ada-lang.c (find_parallel_type_by_descriptive_type):
11040 Limit the fallback to name-based lookups to the case where
11041 the type is a constrained packed array.
11042
11043 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11044
11045 Enhance gdb-gdb.py to handle main_type.type_specific.
11046 * gdb-gdb.py: Print the type-specific part of struct main_type.
11047
11048 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11049
11050 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
11051 * configure: Regenerate.
11052 * config.in: Regenerate.
11053 * utils.c: Include sys/resource.h.
11054 (dump_core, can_dump_core): New.
11055 (internal_vproblem): Update the comment. Check can_dump_core while
11056 setting dump_core_p. Replace two abort calls by dump_core calls.
11057
11058 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11059 Eli Zaretskii <eliz@gnu.org>
11060
11061 * NEWS: Document the PIE support.
11062
11063 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11064
11065 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
11066 (check_is_pie_binary, _initialize_linux_tdep): Remove.
11067
11068 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11069
11070 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
11071 Replace exec_entry_point call by bfd_get_start_address.
11072
11073 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11074
11075 Support Valgrind attachments broken by the PIE support.
11076 * auxv.c: Include gdbcore.h.
11077 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11078 parameters ops, object and annex. Remove their assertions.
11079 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11080 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11081 (memory_xfer_auxv): ... here.
11082 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11083 memory_xfer_auxv.
11084 * procfs.c (procfs_xfer_partial): Likewise.
11085 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11086 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11087 (svr4_solib_create_inferior_hook): Conditionalize the
11088 svr4_relocate_main_executable call.
11089
11090 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11091
11092 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11093 target_section. Find SECT in current_target_sections, gdb_assert it.
11094 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11095 New variable abfd.
11096 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11097 of separate debug info file.
11098
11099 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11100
11101 Support PIEs with no symfile_objfile.
11102 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11103 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11104
11105 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11106
11107 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11108 code part to ...
11109 (svr4_static_exec_displacement): ... a new function.
11110 (svr4_exec_displacement): New function.
11111 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11112 new_offsets using alloca now. Remove variable old_chain and changed.
11113 Call objfile_relocate unconditionally now.
11114
11115 2010-01-14 Doug Evans <dje@google.com>
11116
11117 * gdbtypes.c (arch_flags_type): Fix comment.
11118 * gdbtypes.h (arch_composite_type): Fix comment.
11119
11120 2009-01-14 Tristan Gingold <gingold@adacore.com>
11121
11122 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11123 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11124 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11125 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11126 macho_add_oso_symfile.
11127 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11128
11129 2010-01-14 Joel Brobecker <brobecker@adacore.com>
11130
11131 Tru64: Dead threads are never deleted.
11132 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11133 (dec_thread_count_gdb_threads): Fix counter increment.
11134 (dec_thread_add_gdb_thread): Fix *listp increment.
11135 (resync_thread_list): Fix bug in deletion of dead threads that
11136 caused all threads to be deleted, instead of just the dead ones.
11137
11138 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11139
11140 PR python/10705
11141
11142 * python/python-internal.h: Add lazy_string_object_type
11143 definition.
11144 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11145 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11146 * python/py-value.c (valpy_lazy_string): New function.
11147 (convert_value_from_python): Add lazy string conversion.
11148 * python/py-prettyprint.c (pretty_print_one_value): Check if
11149 return is also a lazy string.
11150 (print_string_repr): Add lazy string printing branch.
11151 (print_children): Likewise.
11152 * python/py-lazy-string.c: New file. Implement lazy strings.
11153 * python/python.c (_initialize_python): Call
11154 gdbpy_initialize_lazy_string.
11155 * varobj.c (value_get_print_value): Add lazy string printing
11156 branch. Account for encoding.
11157 * c-lang.c (c_printstr): Account for new encoding argument. If
11158 encoding is NULL, find encoding suited for type, otherwise use
11159 user encoding.
11160 * language.h (language_defn): Add encoding argument.
11161 (LA_PRINT_STRING): Likewise.
11162 * language.c (unk_lang_printstr): Update to reflect new encoding
11163 argument to language_defn.
11164 * ada-lang.h (ada_printstr): Likewise.
11165 * c-lang.h (c_printstr): Likewise.
11166 * p-lang.h (pascal_printstr);
11167 * f-lang.c (f_printstr): Likewise.
11168 * m2-lang.c (m2_printstr): Likewise.
11169 * objc-lang.c (objc_printstr): Likewise.
11170 * p-lang.c (pascal_printstr): Likewise.
11171 * scm-lang.c (scm_printstr): Likewise.
11172 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11173 encoding argument.
11174 * ada-valprint.c (ada_printstr): Likewise.
11175 * f-valprint.c (f_val_print): Likewise
11176 * m2-valprint.c (m2_val_print): Likewise.
11177 * p-valprint.c (pascal_val_print): Likewise.
11178 * expprint.c (print_subexp_standard): Likewise.
11179 * valprint.c (val_print_string): Likewise.
11180 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11181 (SUBDIR_PYTHON_SRCS): Likewise.
11182 (py-lazy-string.o): New rule.
11183
11184 2010-01-13 Doug Evans <dje@google.com>
11185
11186 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11187 uninitialized" warning from gcc on local `tree'.
11188
11189 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11190
11191 Implement core awareness.
11192
11193 * bcache.c (compare_ints): Remove
11194 (print_percentage): Use compare_positive_ints.
11195 * defs.h (compare_positive_ints): Declare.
11196 * linux-nat.h (struct lin_lwp): New field core.
11197 (linux_nat_core_of_thread_1): Declare.
11198 * linux-nat.c (add_lwp): Init the 'core' field.
11199 (linux_nat_wait_1): Record the core.
11200 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11201 (linux_nat_add_target): Register the above.
11202 * linux-thread-db.c (update_thread_core): New.
11203 (thread_db_find_new_threads): Update core information for
11204 every thread.
11205 * remote.c (struct private_thread_info): New.
11206 (free_private_thread_info, demand_private_info): New.
11207 (PACKET_qXfer_threads, use_osdata_threads): New.
11208 (struct thread_item, threads_parsing_context
11209 (start_thread, end_thread, thread_attributes)
11210 (thread_children, threads_children, threads_elements): New.
11211 (remote_threads_info): Try qXfer:threads before anything
11212 else.
11213 (remote_protocol_packets): Register qXfer:threads.
11214 (remote_open_1): Init use_osdata_threads.
11215 (struct stop_reply): New field 'core'.
11216 (remote_parse_stop_reply): Parse core number.
11217 (process_stop_reply): Record core number.
11218 (remote_xfer_partial): Handle qXfer:threads.
11219 (remote_core_of_thread): New.
11220 (init_remote_ops): Register remote_core_of_thread.
11221 (_initialize_remote): Register qXfer:read.
11222 * target.c (target_core_of_thread): New
11223 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11224 (struct target_ops): New field to_core_of_threads.
11225 (target_core_of_thread): Declare.
11226 * gdbthread.h (struct thread_info): New field private_dtor.
11227 * thread.c (print_thread_info): Report the core.
11228 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11229 * utils.c (compare_positive_ints): New.
11230 * features/threads.dtd: New.
11231 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11232 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11233 (do_nothing, free_vector_of_osdata_items)
11234 (splay_tree_int_comparator, free_splay_tree): New.
11235 (print_one_inferior_data): Implemented printing of selected
11236 inferiors. Collect and print cores.
11237 (output_cores): New.
11238 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11239 thread groups together with --available.
11240
11241 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11242
11243 * configure: Regenerate (for _STRUCTURED_PROC).
11244
11245 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11246
11247 Delete dead function.
11248 * ada-lang.c (extract_string): Delete. No longer used.
11249
11250 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11251
11252 Fix -Wunused warning in dec-thread.c.
11253 * dec-thread.c (dec_thread_count_gdb_threads)
11254 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11255
11256 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11257
11258 * ada-valprint.c (ada_print_floating): Remove trailing space.
11259
11260 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11261
11262 Add support for DW_AT_GNAT_descriptive_type.
11263 * gdbtypes.h (enum type_specific_kind): New enum.
11264 (struct main_type) [type_specific_field]: New component.
11265 [type_specific]: Add new component "gnat_stuff".
11266 (struct gnat_aux_type): New type.
11267 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11268 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11269 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11270 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11271 (TYPE_SPECIFIC_FIELD): New macros.
11272 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11273 type does not hold any cplus-specific data.
11274 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11275 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11276 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11277 cplus-specific data.
11278 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11279 Set new component TYPE_SPECIFIC_FIELD (type).
11280 (gnat_aux_default): New constant.
11281 (allocate_gnat_aux_type): New function.
11282 (init_type): Add initialization the type-specific stuff for
11283 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11284 (print_gnat_stuff): New function.
11285 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11286 specific data. Adjust code that prints the contents of the
11287 type-specific union using the TYPE_SPECIFIC_FIELD value.
11288 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11289 the type cplus stuff for Ada types.
11290 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11291 Error out if these routines are called with an Ada type.
11292 (read_structure_type, read_array_type, read_subrange_type):
11293 Add call to set_descriptive_type.
11294 (set_die_type): Initialize the gnat-specific data if necessary.
11295 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11296 New functions.
11297 * ada-lang.c (decode_constrained_packed_array_type): Use
11298 decode_constrained_packed_array_type instead of doing a standard
11299 lookup to locate a parallel type.
11300 (find_parallel_type_by_descriptive_type): New function.
11301 (ada_find_parallel_type_with_name): New function.
11302 (ada_find_parallel_type): Reimplement using
11303 ada_find_parallel_type_with_name.
11304 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11305 to check if type has a cplus stuff.
11306 * linespec.c (total_number_of_methods): Likewise.
11307 * mdebugread.c (new_type): Likewise.
11308
11309 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11310
11311 * NEWS: Document the 0b binary number prefix parsing.
11312
11313 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11314
11315 * objfiles.c (objfile_relocate1): Change the return type to int.
11316 Describe the new return value. Return non-zero if data changed.
11317 (objfile_relocate): New variable changed. Set it. Call
11318 breakpoint_re_set depending on CHANGED.
11319
11320 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11321
11322 Implement binary numbers parsing.
11323 * c-exp.y (parse_number): New case 'b' and 'B'.
11324
11325 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11326 Tristan Gingold <gingold@adacore.com>
11327
11328 * solib.c (info_sharedlibrary_command): Replace
11329 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11330 objfile_has_symbols.
11331
11332 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11333
11334 * NEWS: Document the improvements made to the mips-irix port.
11335
11336 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11337
11338 Fix the documentation of valprint.c:value_print.
11339 * valprint.c (value_print): Update the function description to
11340 mention that the syntax of the output follows the current_language,
11341 not necessarily C.
11342
11343 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11344
11345 Fix displacement of separate debug info files.
11346 * objfiles.c (objfile_relocate): Rename to ...
11347 (objfile_relocate1): ... here and make it static. Extend the comment.
11348 (objfile_relocate): New function.
11349 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11350 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11351 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11352 allocated using alloca.
11353 * symfile.c (copy_section_addr_info): Remove.
11354 (build_section_addr_info_from_objfile): Make it global. New variables
11355 addr_bit and mask, use them.
11356 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11357 (copy_section_addr_info): Remove.
11358
11359 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11360
11361 Signal unwinder for mips-irix N32.
11362 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11363 tramp-frame.h.
11364 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11365 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11366 (SIGCONTEXT_LO_OFF): New macros.
11367 (mips_irix_n32_tramp_frame_init): New function.
11368 (mips_irix_n32_tramp_frame): New static constant.
11369 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11370
11371 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11372
11373 Breakpoint in shared library does not work on mips-irix.
11374 * procfs.c: #include "observer.h".
11375 (procfs_inferior_created): New function, moving here the code
11376 which unsets the syssgi syscall-exit notifications.
11377 (procfs_create_inferior): Remove the code which unsets the syssgi
11378 syscall-exit notifications. It is too early to do this here.
11379 (_initialize_procfs): Attach the procfs_inferior_created observer.
11380
11381 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11382
11383 Wrong return convention for arrays (mips-irix).
11384 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11385 128 bits or smaller are returned the same way as structs
11386 and unions of the the same size.
11387
11388 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11389
11390 Cannot set the PC on mips-irix.
11391 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11392 register number, no the cooked one.
11393
11394 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11395
11396 Error while loading core file on mips-irix.
11397 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11398 if debugging from a core file.
11399
11400 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11401
11402 GDB hangs when attaching to process on mips-irix.
11403 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11404 attaching to a process.
11405
11406 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11407
11408 Use the correct breakpoint instruction on mips-irix.
11409 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11410 containing the correct breakpoint instruction to use on mips-irix.
11411 Use it when the osabi is GDB_OSABI_IRIX.
11412
11413 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11414
11415 -Wunused warning in procfs.c (mips-irix only).
11416 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11417 throughout instead of using praddset and prdelset respectively.
11418
11419 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11420
11421 GDB crash while stepping into function.
11422 * infrun.c (handle_inferior_event): Refetch the current frame
11423 after handling what.main_action, in case that pointer became
11424 dangling.
11425
11426 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11427
11428 Fix build failure of solaris-hosted cross debuggers.
11429 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11430
11431 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11432
11433 Fix build failure on sparc-solaris.
11434 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11435
11436 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11437
11438 Move some symfile code into subroutines.
11439 * symfile.h (relative_addr_info_to_section_offsets)
11440 (addr_info_make_relative): New prototypes.
11441 * symfile.c (default_symfile_offsets): Move a part to ...
11442 (relative_addr_info_to_section_offsets): ... this new function.
11443 (default_symfile_offsets): Call it.
11444 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11445 this part to ...
11446 (addr_info_make_relative): ... this new function.
11447
11448 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11449
11450 Add from_tty to solib_create_inferior_hook.
11451 * infcmd.c (post_create_inferior): Move solib_add after
11452 solib_create_inferior_hook. Pass from_tty to
11453 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11454 0 from_tty and comment why.
11455 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11456 * linux-nat.c (linux_child_follow_fork): Likewise.
11457 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11458 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11459 from_tty.
11460 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11461 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11462 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11463 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11464 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11465 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11466 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11467 Pass it to svr4_so_ops.solib_create_inferior_hook.
11468 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11469 from_tty.
11470 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11471 solib_add.
11472 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11473 enable_break.
11474 * solib-target.c (solib_target_solib_create_inferior_hook): New
11475 parameter from_tty.
11476 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11477 it to ops->solib_create_inferior_hook.
11478 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11479 Move solib_add after solib_create_inferior_hook, call it now with
11480 from_tty as 0. New comment there.
11481 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11482 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11483 Likewise.
11484
11485 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11486
11487 Fix multiexec race.
11488 * infrun.c (handle_inferior_event): Use get_thread_regcache
11489 with events ptid, not get_current_regcache.
11490
11491 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11492
11493 GDB crash with empty executable name (MinGW).
11494 * source.c (openp): Add assert that parameter string is not NULL.
11495 if parameter string is an empty string, then return with a failure
11496 immediately.
11497
11498 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11499
11500 Get rid of support for VAX Floats.
11501 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11502 (ada_vax_float_print_function): Delete.
11503 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11504 (ada_vax_float_print_function): Delete.
11505 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11506 (ada_print_type): Remove support for VAX floats.
11507 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11508
11509 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11510
11511 * stabsread.c (read_args): Handle zero arguments.
11512
11513 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11514
11515 Cannot find in-tree libiconv.a after reconfigure.
11516 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11517 that we can use, then cache the path to this archive.
11518 * configure: Regenerate.
11519
11520 2010-01-07 Stan Shebs <stan@codesourcery.com>
11521
11522 Make tracepoint operations go through target vector.
11523 * target.h (enum trace_find_type): New enum.
11524 (struct target_ops): New fields to_trace_init,
11525 to_download_tracepoint, to_download_trace_state_variable,
11526 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11527 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11528 to_set_disconnected_tracing.
11529 (target_trace_init): New macro.
11530 (target_download_tracepoint): New macro.
11531 (target_download_trace_state_variable): New macro.
11532 (target_trace_start): New macro.
11533 (target_trace_set_readonly_regions): New macro.
11534 (target_get_trace_status): New macro.
11535 (target_trace_stop): New macro.
11536 (target_trace_find): New macro.
11537 (target_get_trace_state_variable_value): New macro.
11538 (target_set_disconnected_tracing): New macro.
11539 * target.c (update_current_target): Inherit and set defaults for
11540 tracepoint operations.
11541 * tracepoint.c (default_collect): Make globally visible.
11542 (target_is_remote): Remove, along with all calls.
11543 (tvariables_info): Call target_get_trace_state_variable_value.
11544 (remote_set_transparent_ranges): Remove.
11545 (trace_start_command): Call target_trace_init,
11546 target_download_tracepoint, etc.
11547 (download_tracepoint): Remove.
11548 (trace_stop_command): Simplify.
11549 (stop_tracing): Call target_trace_stop.
11550 (get_trace_status): Call target_get_trace_status.
11551 (trace_status_command): Add case for targets that cannot trace.
11552 (finish_tfind_command): Change to take numerical arguments, call
11553 target_trace_find.
11554 (trace_find_command): Update call to finish_tfind_command.
11555 (trace_find_pc_command): Ditto.
11556 (trace_find_tracepoint_command): Ditto.
11557 (trace_find_line_command): Ditto.
11558 (trace_find_range_command): Ditto.
11559 (trace_find_outside_command): Ditto.
11560 (set_disconnected_tracing_value): Call
11561 target_set_disconnected_tracing.
11562 * remote.c: Add protocol encoding bits from tracepoint.c.
11563 (trace_error): Move from tracepoint.c.
11564 (remote_get_noisy_reply): Ditto.
11565 (free_actions_list_cleanup_wrapper): Ditto.
11566 (free_actions_list): Ditto.
11567 (remote_trace_init): New function.
11568 (remote_download_tracepoint): New function.
11569 (remote_download_trace_state_variable): New function.
11570 (remote_trace_set_readonly_regions): New function.
11571 (remote_trace_start): New function.
11572 (remote_get_trace_status): New function.
11573 (remote_trace_stop): New function.
11574 (remote_trace_find): New function.
11575 (remote_download_trace_state_variable): New function.
11576 (remote_set_disconnected_tracing): New function.
11577 (init_remote_ops): Add tracepoint operations.
11578
11579 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11580
11581 2010-01-07 Tristan Gingold <gingold@adacore.com>
11582
11583 * symfile.c (build_section_addr_info_from_objfile): New function.
11584 (symbol_file_add_separate): Don't use offsets from objfile but
11585 built an addr info.
11586
11587 2010-01-06 Stan Shebs <stan@codesourcery.com>
11588
11589 Support disconnected tracing.
11590 * infcmd.c (detach_command): Ask whether to stop tracing.
11591 * cli/cli-cmds.c (quit_command): Ditto.
11592 * breakpoint.h (struct breakpoint): New field number_on_target.
11593 * breakpoint.c (create_tracepoint_from_upload): New function.
11594 (get_tracepoint_by_number_on_target): New function.
11595 * remote.c (struct remote): New field disconnected_tracing.
11596 (remote_disconnected_tracing_feature): New function.
11597 (remote_protocol_features): Add DisconnectedTracing.
11598 (struct uploaded_tp): New struct.
11599 (uploaded_tps): New global.
11600 (get_uploaded_tp): New function.
11601 (find_matching_tracepoint): New function.
11602 (remote_get_tracing_state): New function.
11603 (remote_start_remote): Call it.
11604 * tracepoint.c (disconnected_tracing): New global.
11605 (trace_start_command): Initialize number_on_target.
11606 (stop_tracing): New function, split out from...
11607 (trace_stop_command): Call stop_tracing.
11608 (get_trace_status): New function, split out from...
11609 (trace_status_command): Call get_trace_status, add info on
11610 disconnection behavior.
11611 (disconnect_or_stop_tracing): New function.
11612 (finish_tfind_command): Translate from number on target.
11613 (trace_find_tracepoint_command): Translate to number on target.
11614 (send_disconnected_tracing_value): New function.
11615 (set_disconnected_tracing): New function.
11616 (_initialize_tracepoint): Add disconnected-tracing variable.
11617 * NEWS: Mention disconnected tracing.
11618
11619 2010-01-06 Tristan Gingold <gingold@adacore.com>
11620
11621 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11622 parameter to main_objfile. Iterate on all separate debug objfiles.
11623 * symfile.h (symbol_file_add_separate)
11624 (find_separate_debug_file_by_debuglink): Remove parameter names.
11625 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11626 (reread_symbols): Use free_objfile_separate_debug.
11627 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11628 Adjust comment.
11629 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11630 (free_objfile_separate_debug): New prototypes.
11631 * objfiles.c (objfile_separate_debug_iterate): New function.
11632 (add_separate_debug_objfile, free_objfile_separate_debug): New
11633 functions.
11634 (free_objfile): Use free_objfile_separate_debug. Adjust for
11635 multiple separate debug objfile.
11636 (objfile_has_symbols): Adjust comment. Iterate on all separate
11637 debug objfiles.
11638 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11639 debug objfile.
11640 (lookup_minimal_symbol_text): Ditto.
11641 (lookup_minimal_symbol_by_pc_name): Ditto.
11642 (lookup_minimal_symbol_solib_trampoline): Ditto.
11643 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11644 debug objfiles.
11645
11646 2010-01-05 Stan Shebs <stan@codesourcery.com>
11647
11648 Add fast tracepoints.
11649 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11650 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11651 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11652 * breakpoint.c (tracepoint_type): New function.
11653 (ALL_TRACEPOINTS): Use it.
11654 (should_be_inserted): Ditto.
11655 (bpstat_check_location): Ditto.
11656 (print_one_breakpoint_location): Ditto.
11657 (user_settable_breakpoint): Ditto.
11658 (set_breakpoint_location_function): Ditto.
11659 (disable_breakpoints_in_shlibs): Ditto.
11660 (delete_trace_command): Ditto.
11661 (print_it_typical): Add bp_fast_tracepoint case.
11662 (bpstat_what): Ditto.
11663 (print_one_breakpoint_location): Ditto.
11664 (allocate_bp_location): Ditto.
11665 (mention): Ditto.
11666 (breakpoint_re_set_one): Ditto.
11667 (disable_command): Ditto.
11668 (enable_command): Ditto.
11669 (check_fast_tracepoint_sals): New function.
11670 (break_command_really): Call it.
11671 (ftrace_command): New function.
11672 (_initialize_breakpoint): Add ftrace command.
11673 * gdbarch.sh (fast_tracepoint_valid_at): New.
11674 * gdbarch.h, gdbarch.c: Regenerate.
11675 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11676 (i386_gdbarch_init): Use it.
11677 * remote.c (struct remote_state): New field fast_tracepoints.
11678 (PACKET_FastTracepoints): New packet config type.
11679 (remote_fast_tracepoint_feature): New function.
11680 (remote_protocol_features): Add FastTracepoints.
11681 (remote_supports_fast_tracepoints): New function.
11682 (_initialize_remote): Add FastTracepoints.
11683 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11684 * NEWS: Mention fast tracepoints.
11685
11686 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11687
11688 * gdb-gdb.py: New file.
11689
11690 2010-01-05 Michael Snyder <msnyder@vmware.com>
11691
11692 * infrun.c (handle_inferior_event): Fix typo in comment.
11693
11694 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11695
11696 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11697
11698 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11699
11700 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11701 and s390x-linux64.
11702 (s390-linux32-expedite): Define.
11703 (s390-linux64-expedite): Define.
11704 (s390x-linux64-expedite): Define.
11705 * features/s390-acr.xml: New file.
11706 * features/s390-fpr.xml: New file.
11707 * features/s390-core32.xml: New file.
11708 * features/s390-core64.xml: New file.
11709 * features/s390x-core64.xml: New file.
11710 * features/s390-linux32.xml: New file.
11711 * features/s390-linux64.xml: New file.
11712 * features/s390x-linux64.xml: New file.
11713 * features/s390-linux32.c: New generated file.
11714 * features/s390-linux64.c: New generated file.
11715 * features/s390x-linux64.c: New generated file.
11716
11717 * regformats/s390-linux32.dat: New generated file.
11718 * regformats/s390-linux64.dat: New generated file.
11719 * regformats/s390x-linux64.dat: New generated file.
11720 * regformats/reg-s390.dat: Remove.
11721 * regformats/reg-s390x.dat: Remove.
11722
11723 * s390-nat.c: Include "auxv.h" and <elf.h>.
11724 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11725 (s390_target_wordsize): New function.
11726 (s390_auxv_parse): Likewise.
11727 (s390_get_hwcap): Likewise.
11728 (s390_read_description): Likewise.
11729 (_initialize_s390_nat): Install s390_auxv_parse and
11730 s390_read_description.
11731
11732 * s390-tdep.c: Include "features/s390-linux32.c",
11733 "features/s390-linux64.c", and "features/s390x-linux64.c".
11734 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11735 (s390_register_call_saved): New function.
11736 (s390_register_name): Remove.
11737 (s390_register_type): Remove.
11738 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11739 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11740 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11741 (s390_pseudo_register_name): New function.
11742 (s390_pseudo_register_type): New function.
11743 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11744 Handle full GPR pesudos and varying pseudo register numbers.
11745 (s390_pseudo_register_write): Likewise
11746 (s390x_pseudo_register_read): Remove.
11747 (s390x_pseudo_register_write): Likewise.
11748 (s390_register_group): Remove.
11749 (s390_pseudo_register_group): New function.
11750 (s390_regmap_gregset): Add GPR upper halves.
11751 (s390x_regmap_gregset): Likewise.
11752 (s390_regmap_fpregset): Likewise.
11753 (s390_regmap_upper): New global variable.
11754 (s390_upper_regset): New global variable.
11755 (s390_upper_regset_sections): New global variable.
11756 (s390_regset_from_core_section): Handle GPR upper halves.
11757 (s390_core_read_description): New function.
11758 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11759 register information. Handle varying pseudo register numbers.
11760 (s390_backchain_frame_unwind_cache): Likewise.
11761 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11762 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11763 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11764 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11765 Handle varying pseudo register numbers.
11766 (s390_unwind_pc): Handle varying pseudo register numbers.
11767 (s390_dwarf2_prev_register): New function.
11768 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11769 register information. Handle varying pseudo register numbers.
11770 Install s390_dwarf2_prev_register to unwind full GPRs.
11771 (s390_gdbarch_init): Handle target descriptions. Assign varying
11772 pseudo register numbers. Install s390_adjust_frame_regnum.
11773 (_initialize_s390_tdep): Initialize target descriptions.
11774
11775 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11776 (S390_NUM_REGS): Redefine to include upper half registers.
11777 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11778 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11779 (tdesc_s390_linux32): Add declaration.
11780 (tdesc_s390_linux64): Likewise.
11781 (tdesc_s390x_linux64): Likewise.
11782
11783 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11784
11785 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11786 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11787 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11788 (ppc_linux_vmx_regset_sections): Likewise.
11789 (ppc_linux_fp_regset_sections): Likewise.
11790
11791 * corelow.c (get_core_register_section): Constify arguments.
11792 (get_core_registers): Use gdbarch_core_regset_sections instead
11793 of hard-coded platform-specific register section names.
11794
11795 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11796
11797 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11798 a register, assume the least-significant part is used.
11799 (write_pieced_value): Likewise.
11800
11801 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11802
11803 * printcmd.c: Include "arch-utils.h".
11804 (do_one_display): Re-parse expression if current architecture changed.
11805
11806 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11807 Joel Brobecker <brobecker@adacore.com>
11808
11809 * gdbtypes.c (check_typedef): New comment on type length.
11810 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11811 comment on type length.
11812 (value_primitive_field): Keep the original TYPE value, new comment.
11813
11814 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11815
11816 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11817 p_start. Change != comparisons to > and < comparisons.
11818
11819 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11820
11821 * cli/cli-script.c (process_next_line): Check P2 overrun.
11822
11823 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11824
11825 Update the copyright hearder to add year 2010 for most GDB files.
11826
11827 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11828
11829 Fix build failure in inf-ptrace.c.
11830 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11831
11832 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11833
11834 * top.c (print_gdb_version): Update copyright year.
11835
11836 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11837
11838 Fix break *FUN'address thread NUM.
11839 * ada-lex.l (task): Expand rule to also match the thread keyword.
11840
11841 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11842
11843 Fix break *FUN'address task NUM.
11844 * ada-lex.l (task): New rule.
11845 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11846 been built before using it.
11847
11848 For older changes see ChangeLog-2009.
11849 \f
11850 Local Variables:
11851 mode: change-log
11852 left-margin: 8
11853 fill-column: 74
11854 version-control: never
11855 coding: utf-8
11856 End: