2010-12-29 Hui Zhu <teawater@gmail.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-12-29 Hui Zhu <teawater@gmail.com>
2
3 * ax-gdb.c (gen_expr): Change error message.
4
5 2010-12-29 Joel Brobecker <brobecker@adacore.com>
6
7 * gdb.c: Revert the previous change, which was probably committed
8 by accident.
9
10 2010-12-29 Joel Brobecker <brobecker@adacore.com>
11
12 * ada-lang.c: Fix typo in comment.
13
14 2010-12-29 Joel Brobecker <brobecker@adacore.com>
15
16 * ada-valprint.c (ada_val_print_1): Print null array pointers as
17 `0x0' rather than `(null)'. Add assertion.
18
19 2010-12-29 Joel Brobecker <brobecker@adacore.com>
20
21 * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
22 * ada-lang.c (ada_typedef_target_type): New function.
23 (desc_base_type): Add handling of fat pointer typedefs.
24 (ada_coerce_to_simple_array): Make non-static.
25 (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
26 Add assertion.
27 (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
28 (ada_check_typedef): Add handling of fat pointer typedefs.
29 (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
30 * ada-typeprint.c (ada_print_type): Add handling of fat pointer
31 typedefs.
32 * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
33 array accesses to simple arrays rather than simple array pointers.
34 (ada_value_print): In the case of array descriptors, do not print
35 the value type description unless it is an array access.
36
37 2010-12-29 Joel Brobecker <brobecker@adacore.com>
38
39 * target.h (enum target_object): Expand the documentation of
40 TARGET_OBJECT_OSDATA a bit.
41
42 2010-12-28 Michael Snyder <msnyder@vmware.com>
43
44 * command.h: Comment clean-up.
45 * cli/cli-cmds.c: Ditto.
46 * cli/cli-cmds.h: Ditto.
47 * cli/cli-decode.c: Ditto.
48 * cli/cli-decode.h: Ditto.
49 * cli/cli-dump.c: Ditto.
50 * cli/cli-interp.c: Ditto.
51 * cli/cli-logging.c: Ditto.
52 * cli/cli-script.c: Ditto.
53 * cli/cli-setshow.c: Ditto.
54 * cli/cli-setshow.h: Ditto.
55
56 2010-12-28 Michael Snyder <msnyder@vmware.com>
57
58 * event-loop.c: Comment clean-up.
59 * event-loop.h: Ditto.
60 * event-top.c: Ditto.
61 * gdb.c: Ditto.
62 * gdb.h: Ditto.
63 * main.c: Ditto.
64 * top.c: Ditto.
65 * top.h: Ditto.
66
67 2010-12-28 Pedro Alves <pedro@codesourcery.com>
68
69 * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
70 collect a user register.
71
72 2010-12-28 Hui Zhu <teawater@gmail.com>
73
74 * gdbarch.sh (ax_pseudo_register_collect,
75 ax_pseudo_register_push_stack): new callbacks.
76 (agent_expr): Forward declare.
77 * gdbarch.h, gdbarch.c: Regenerate.
78 * ax-gdb.c (gen_expr): Remove pseudo-register check code.
79 * ax-general.c (user-regs.h): New include.
80 (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
81 (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
82 * mips-tdep.c (ax.h): New include.
83 (mips_ax_pseudo_register_collect,
84 mips_ax_pseudo_register_push_stack): New functions.
85 (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
86 mips_ax_pseudo_register_push_stack.
87
88 2010-12-28 Yao Qi <yao@codesourcery.com>
89
90 * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
91
92 2010-12-28 Joel Brobecker <brobecker@adacore.com>
93
94 * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
95 (inf_child_target): Do not set t->to_acknowledge_created_inferior.
96 * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
97 target_acknowledge_created_inferior.
98 * inf-ttrace.c (inf_ttrace_him): Likewise.
99 * target.h (struct target_ops): Delete to_acknowledge_created_inferior
100 field.
101 (target_acknowledge_created_inferior): Delete.
102 * target.c (update_current_target): Remove setting of
103 to_acknowledge_created_inferior field. Do default value for that
104 field either.
105 (debug_to_acknowledge_created_inferior): Delete.
106 (setup_target_debug): Remove setting of
107 current_target.to_acknowledge_created_inferior.
108
109 2010-12-27 Pedro Alves <pedro@codesourcery.com>
110
111 gdb/
112 * breakpoint.c (breakpoint_restore_shadows): When looking for the
113 location with the lowest address that overlaps the memory range we
114 want to restore shadows for, account for multiple locations at the
115 same address.
116
117 2010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
118
119 Code cleanup - renaming.
120 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
121 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
122 variables.
123
124 2010-12-27 Kevin Buettner <kevinb@redhat.com>
125 Hui Zhu <teawater@gmail.com>
126
127 * mips-tedp.c (mips_register_name): Add comments.
128
129 2010-12-23 Yao Qi <yao@codesourcery.com>
130
131 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
132 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
133 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
134 (arm_analyze_load_stack_chk_guard): New.
135 (arm_skip_stack_protector): New.
136 (arm_skip_prologue): Adjust post_prologue_pc by
137 arm_skip_stack_protector.
138
139
140 2010-12-23 Yao Qi <yao@codesourcery.com>
141
142 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
143 set_gdbarch_deprecated_fp_regnum.
144
145 2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
146
147 * inferior.c (remove_inferior_command): Don't remove an active inferior.
148 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
149
150 2010-12-21 Tom Tromey <tromey@redhat.com>
151
152 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
153
154 2010-12-20 Yao Qi <yao@codesourcery.com>
155
156 * arm-tdep.c (arm_register_reggroup_p): New.
157 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
158 register_reggroup_p.
159
160 2010-12-20 Yao Qi <yao@codesourcery.com>
161
162 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
163 * features/arm-with-iwmmxt.c: Regenerate.
164 * features/arm-with-neon.c: Regenerate.
165 * features/arm-with-vfpv2.c: Regenerate.
166 * features/arm-with-vfpv3.c: Regenerate.
167
168 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
169
170 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
171 (get_other_inferior): New.
172
173 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
174
175 * python/py-progspace.c (py_free_pspace): Obtain arch another
176 way to avoid dereferencing a null pointer.
177
178 2010-12-17 Michael Snyder <msnyder@vmware.com>
179
180 * utils.c (do_my_cleanups): Comment fix-up.
181
182 2010-12-17 Kevin Buettner <kevinb@redhat.com>
183
184 * mips-tdep.c (make_mips16_addr): New function.
185 (mips_elf_make_msymbol_special): Don't set the low bit in the
186 symbol's address.
187 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
188 indicating mips16 address, if present.
189 (mips_write_pc): Set bit indicating mips16 address when in a mips16
190 function.
191 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
192 but for each function pointer argument to inferior function call.
193
194 2010-12-17 Tom Tromey <tromey@redhat.com>
195
196 * psympriv.h (struct partial_symtab) <readin>: Move field
197 earlier.
198
199 2010-12-16 Kevin Buettner <kevinb@redhat.com>
200
201 * mips-tdep.c (mips_convert_register_float_case_p)
202 (mips_convert_register_gpreg_case_p): New functions.
203 (mips_convert_register_p): Invoke new functions above.
204 (mips_register_to_value): Add case for fetching value shorter
205 than 64 bits from a 64-bit register.
206 (mips_value_to_register): Add case for storing value shorter
207 than 64 bits into a 64-bit register.
208
209 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
210
211 * python/py-value.c (value_object_type) <tp_flags>: Add
212 Py_TPFLAGS_BASETYPE.
213
214 2010-12-16 Mike Frysinger <vapier@gentoo.org>
215
216 * NEWS: Mention new sim --map-info flag.
217
218 2010-12-15 Doug Evans <dje@google.com>
219
220 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
221 "save gdb-index" command.
222
223 2010-12-15 Tom Tromey <tromey@redhat.com>
224
225 * infrun.c (save_infcall_control_state): Handle the
226 exception-resume breakpoint.
227 (restore_infcall_control_state): Likewise.
228 (discard_infcall_control_state): Likewise.
229
230 2010-12-15 Kevin Buettner <kevinb@redhat.com>
231
232 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
233 cooked values that are being transferred to 64-bit raw registers.
234 (mips_pseudo_register_read): Revise to preserve symmetry with
235 mips_pseudo_register_write().
236
237 2010-12-15 Greg Watson <g.watson@computer.org>
238
239 * f-exp.y (yylex): Check entire token against keywords.
240
241 2010-12-15 Doug Evans <dje@google.com>
242
243 Rename "maint set python auto-load" to "set auto-load-scripts".
244 * NEWS: Mention it.
245 * python/py-auto-load.c (auto_load_scripts): Renamed from
246 gdbpy_auto_load.
247 (load_auto_scripts_for_objfile): Update.
248 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
249 "set auto-load-scripts".
250
251 2010-12-14 Kevin Buettner <kevinb@redhat.com>
252
253 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
254 than unsigned, values in registers.
255
256 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
257
258 * valops.c (value_one): Use get_array_bounds to compute the number
259 of array elements instead of dividing the length of the array by the
260 length of the element types.
261 * valarith.c (value_complement, value_neg): Likewise.
262
263 2010-12-14 Joel Brobecker <brobecker@adacore.com>
264
265 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
266 and __fp_scr respectively throughout.
267 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
268 Python using GCC on IRIX.
269 * configure: Regenerate.
270
271 2010-12-13 Kevin Buettner <kevinb@redhat.com>
272
273 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
274 when attaching, on the names in bkpt_names: _start, __start, and
275 main.
276
277 2010-12-12 Stan Shebs <stan@codesourcery.com>
278
279 * value.c (value_of_internalvar): Add case for trace state
280 variables.
281
282 2010-12-12 Doug Evans <dje@google.com>
283
284 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
285 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
286 section. Delete members lines full_names. Rename read_lines to
287 no_file_data.
288 (quick_file_names): New struct.
289 (hash_file_name_entry, eq_file_name_entry): New functions.
290 (delete_file_name_entry, create_quick_file_names_table): New functions.
291 (dwarf2_read_index): Initialize quick_file_names_table.
292 (dw2_get_file_names): Renamed from dw2_require_line_header.
293 Return pointer to quick_file_names entry. All callers updated.
294 (dw2_get_real_path): Renamed from dw2_require_full_path.
295 Replace per_cu arg with pointer to quick_file_names entry.
296 All callers updated.
297 (dw2_free_cached_file_names): New function.
298 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
299 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
300 the OBJF_READNOW case.
301 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
302
303 2010-12-12 Mark Kettenis <kettenis@gnu.org>
304
305 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
306 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
307
308 2010-12-12 Mark Kettenis <kettenis@gnu.org>
309
310 * sparc-tdep.c: Fix typo in comment.
311
312 2010-12-10 Doug Evans <dje@google.com>
313
314 * dwarf2read.c: Whitespace cleanup, plus comment additions.
315 No code changes.
316
317 2010-12-10 Tom Tromey <tromey@redhat.com>
318
319 * NEWS: Document exception-handling change.
320
321 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
322
323 * mi/mi-parse.c (mi_parse): Wrong error message.
324
325 2010-12-09 Doug Evans <dje@google.com>
326
327 * symfile.h (quick_symbol_functions): Clarify usage of
328 map_symbol_filenames.
329
330 2010-12-09 Tom Tromey <tromey@redhat.com>
331
332 * mi/mi-parse.h (mi_parse): Update.
333 * mi/mi-parse.c (mi_parse_cleanup): New function.
334 (mi_parse): Add 'token' argument. Throw exception on error.
335 * mi/mi-main.c (mi_print_exception): New function.
336 (mi_execute_command): Use mi_print_exception. Catch exceptions
337 from mi_parse.
338
339 2010-12-09 Tom Tromey <tromey@redhat.com>
340
341 PR c++/9593:
342 * thread.c (clear_thread_inferior_resources): Call
343 delete_longjmp_breakpoint.
344 * infrun.c (handle_inferior_event): Handle exception breakpoints.
345 (handle_inferior_event): Likewise.
346 (insert_exception_resume_breakpoint): New function.
347 (check_exception_resume): Likewise.
348 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
349 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
350 (step_1): Set thread's initiating frame.
351 (until_next_continuation): New function.
352 (until_next_command): Support exception breakpoints.
353 (finish_command_continuation): Delete longjmp breakpoint.
354 (finish_forward): Support exception breakpoints.
355 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
356 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
357 bp_exception_master>: New constants.
358 (struct bpstat_what) <is_longjmp>: New field.
359 (set_longjmp_breakpoint): Update.
360 * breakpoint.c (create_exception_master_breakpoint): New function.
361 (update_breakpoints_after_exec): Handle bp_exception_master. Call
362 create_exception_master_breakpoint.
363 (print_it_typical): Handle bp_exception_master, bp_exception.
364 (bpstat_stop_status): Handle bp_exception_master.
365 (bpstat_what): Handle bp_exception_master, bp_exception,
366 bp_exception_resume.
367 (bptype_string): Likewise.
368 (print_one_breakpoint_location): Likewise.
369 (allocate_bp_location): Likewise.
370 (set_longjmp_breakpoint): Handle exception breakpoints. Change
371 interface.
372 (delete_longjmp_breakpoint): Handle exception breakpoints.
373 (mention): Likewise.
374 (struct until_break_command_continuation_args) <thread_num>: New
375 field.
376 (until_break_command_continuation): Call
377 delete_longjmp_breakpoint.
378 (until_break_command): Support exception breakpoints.
379 (delete_command): Likewise.
380 (breakpoint_re_set_one): Likewise.
381 (breakpoint_re_set): Likewise.
382
383 2010-12-08 Doug Evans <dje@google.com>
384
385 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
386
387 * gdbtypes.c (check_typedef): Tweak comment.
388
389 PR symtab/12302
390 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
391 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
392 (struct addrmap_index_data): New struct.
393 (add_address_entry): Remove arg `pst', new args `start', `end'.
394 (add_address_entry_worker, write_address_map): New functions.
395 (write_psymtabs_to_index): Address table generation moved to
396 write_address_map. Build a table mapping psymtab to CU index
397 to pass to it.
398
399 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
400 name to perror.
401
402 * symfile.h (quick_symbol_functions): Clarify usage of
403 expand_symtabs_with_filename.
404 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
405 comp units, ignore type units.
406
407 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
408
409 2010-12-07 Doug Evans <dje@google.com>
410
411 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
412 gdb_realpath.
413
414 PR python/12227
415 * NEWS: Mention -data-directory.
416 * main.c (captured_main): Recognize -data-directory.
417
418 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
419
420 * mi/mi-parse.c (mi_parse): Missing else.
421
422 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
423
424 * configure.tgt: Accept microblaze*-*-linux* for linux target
425 and microblaze*-*-* for as target.
426
427 2010-12-02 Keith Seitz <keiths@redhat.com>
428
429 * linespec.c (find_method): Move name canonicalization outside
430 the loop.
431 Be paranoid and use a cleanup.
432
433 2010-12-01 Doug Evans <dje@google.com>
434
435 * dwarf2read.c (save_gdb_index_command): Add comment.
436
437 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
438
439 * valops.c (value_assign): Returned value is never lazy. If a
440 C++ class type is returned, fix incorrect enclosing type / embedded
441 offset. If internal variable is returned, allocate new internalvar
442 value using value_of_internalvar.
443
444 * NEWS: Document changes in behavior of "print x = 0" and similar
445 expressions.
446
447 2010-11-29 Doug Evans <dje@google.com>
448
449 * python/lib/gdb/printing.py (register_pretty_printer): Change
450 printer-name:subprinter-name to printer-name;subprinter-name.
451 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
452 Ditto.
453 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
454
455 2010-11-29 Tom Tromey <tromey@redhat.com>
456
457 * opencl-lang.c (lval_func_check_synthetic_pointer): New
458 function.
459 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
460 New fields.
461 (value_bits_synthetic_pointer): Declare.
462 * value.c (value_bits_synthetic_pointer): New function.
463 * valprint.c (valprint_check_validity): Handle synthetic
464 pointers.
465 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
466 * valarith.c (value_ptradd): Use set_value_component_location.
467 * p-valprint.c (pascal_object_print_value_fields): Handle
468 synthetic pointers.
469 * jv-valprint.c (java_print_value_fields): Handle synthetic
470 pointers.
471 * dwarf2read.c (dwarf_stack_op_name): Add
472 DW_OP_GNU_implicit_pointer.
473 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
474 arguments. Handle location lists.
475 (fill_in_loclist_baton): New function.
476 (dwarf2_symbol_mark_computed): Use it.
477 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
478 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
479 arguments.
480 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
481 find_location_expression. No longer static. Update all callers.
482 (dwarf_expr_frame_pc): New function.
483 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
484 all callers.
485 (struct piece_closure) <per_cu>: New field.
486 (allocate_piece_closure): Add per_cu argument.
487 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
488 (check_pieced_value_bits): Remove validity argument, add check_for
489 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
490 (check_pieced_value_validity, check_pieced_value_invalid):
491 Update.
492 (check_pieced_synthetic_pointer): New function.
493 (get_frame_address_in_block_wrapper): New function.
494 (indirect_pieced_value): New function.
495 (pieced_value_funcs): Update.
496 (invalid_synthetic_pointer): New function.
497 (dwarf2_evaluate_loc_desc_full): Rename from
498 dwarf2_evaluate_loc_desc. Add byte_offset argument.
499 (dwarf2_evaluate_loc_desc): Rewrite.
500 (dwarf2_loc_desc_needs_frame): Set new field on context.
501 (get_ax_pc): New function.
502 (disassemble_dwarf_expression): Handle
503 DW_OP_GNU_implicit_pointer.
504 * dwarf2expr.h (enum dwarf_value_location)
505 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
506 (struct dwarf_expr_context) <get_frame_pc>: New field.
507 (struct dwarf_expr_piece) <v.ptr>: New field.
508 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
509 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
510 * dwarf2-frame.c (no_get_frame_pc): New function.
511 (execute_stack_op): Set new field on context.
512 * cp-valprint.c (cp_print_value_fields): Handle synthetic
513 pointers.
514
515 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
516
517 PR python/12199
518
519 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
520
521 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
522
523 Fix step_resume_breakpoint unsaved during an infcall.
524 * gdbthread.h (struct thread_control_state): Move here field
525 step_resume_breakpoint ...
526 (struct thread_info): ... from here.
527 * infrun.c (save_infcall_control_state): Reset
528 control.step_resume_breakpoint to NULL.
529 (restore_infcall_control_state, discard_infcall_control_state): Delete
530 control.step_resume_breakpoint.
531 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
532 the moved field.
533
534 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
535
536 Rename and move inferior_thread_state and inferior_status.
537 * gdbthread.h (struct thread_control_state): New struct, move fields
538 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
539 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
540 stop_step and stop_bpstat here from struct thread_info.
541 (struct thread_suspend_state): New struct, move field stop_signal here
542 from struct thread_info.
543 (struct thread_info): Move the fields above from this struct.
544 * inferior.h: Move the inferior_thread_state and inferior_status
545 declarations comment to their definitions at infrun.c.
546 (struct inferior_control_state): New struct, move field stop_soon from
547 struct inferior here.
548 (struct inferior_suspend_state): New empty struct.
549 (struct inferior): New fields control and suspend. Move out field
550 stop_soon.
551 * infrun.c (struct inferior_thread_state): Rename to ...
552 (infcall_suspend_state): ... here. Replace field stop_signal by
553 fields thread_suspend and inferior_suspend.
554 (save_inferior_thread_state): Rename to ...
555 (save_infcall_suspend_state): ... here. New variable inf. Update the
556 code for new fields.
557 (restore_inferior_thread_state): Rename to ...
558 (restore_infcall_suspend_state): ... here. New variable inf. Update
559 the code for new fields.
560 (do_restore_inferior_thread_state_cleanup): Rename to ...
561 (do_restore_infcall_suspend_state_cleanup): ... here.
562 (make_cleanup_restore_inferior_thread_state): Rename to ...
563 (make_cleanup_restore_infcall_suspend_state): ... here.
564 (discard_inferior_thread_state): Rename to ...
565 (discard_infcall_suspend_state): ... here.
566 (get_inferior_thread_state_regcache): Rename to ...
567 (get_infcall_suspend_state_regcache): ... here.
568 (struct inferior_status): Rename to ...
569 (struct infcall_control_state): ... here. Replace fields
570 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
571 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
572 stop_step, stop_bpstat and stop_soon by fields thread_control and
573 inferior_control.
574 (save_inferior_status): Rename to ...
575 (save_infcall_control_state): ... here. Update the code for new
576 fields.
577 (restore_inferior_status): Rename to ...
578 (restore_infcall_control_state): ... here. Update the code for new
579 fields.
580 (do_restore_inferior_status_cleanup): Rename to ...
581 (do_restore_infcall_control_state_cleanup): ... here.
582 (make_cleanup_restore_inferior_status): Rename to ...
583 (make_cleanup_restore_infcall_control_state): ... here.
584 (discard_inferior_status): Rename to ...
585 (discard_infcall_control_state): ... here.
586 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
587 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
588 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
589 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
590 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
591 references to the moved fields and renamed functions.
592
593 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
594
595 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
596 the comment.
597 (save_inferior_thread_state): Reset tp->stop_signal.
598
599 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
600
601 * infcall.c (call_function_by_hand): Remove variable
602 caller_state_cleanup.
603
604 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
605
606 PR breakpoints/12217
607
608 * breakpoint.c (is_marker_spec): Check for NULL.
609
610 2010-11-25 Pedro Alves <pedro@codesourcery.com>
611
612 * breakpoint.h: No longer include python.h or python-internal.h.
613 (struct breakpoint_object): Forward declare.
614 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
615 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
616 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
617 PyObject pointer.
618 (gdbpy_breakpoint_created): Remove casts around py_bp_object
619 accesses.
620
621 2010-11-24 Joel Brobecker <brobecker@adacore.com>
622
623 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
624 only if HAVE_ELF is defined.
625
626 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
627
628 Code cleanup.
629 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
630 (save_inferior_status) <stepping_over_breakpoint>
631 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
632 trap_expected.
633 (struct inferior_status) <step_resume_break_address>: Remove.
634
635 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
636
637 Code cleanup.
638 * infrun.c (struct inferior_status, save_inferior_status)
639 (restore_inferior_status): Group and reorder the fields, comment their
640 groups.
641
642 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
643
644 Code cleanup.
645 * dictionary.c
646 (struct dict_vector) <iter_match_first, iter_match_next>
647 (iter_match_first_hashed, iter_match_next_hashed)
648 (iter_match_first_linear, iter_match_next_linear)
649 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
650 (iter_match_next_hashed, iter_match_first_linear)
651 (iter_match_next_linear): Use symbol_compare_ftype.
652 * dictionary.h: Include symfile.h.
653 (dict_iter_match_first, dict_iter_match_next): Use
654 symbol_compare_ftype.
655 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
656 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
657 (map_matching_symbols_psymtab): Likewise.
658 * symfile.h (symbol_compare_ftype): New typedef.
659 (struct quick_symbol_functions) <map_matching_symbols): Use
660 symbol_compare_ftype.
661
662 2010-11-23 Tom Tromey <tromey@redhat.com>
663
664 * configure: Rebuild.
665 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
666
667 2010-11-19 Tom Tromey <tromey@redhat.com>
668
669 * Makefile.in (SUBDIRS): Add doc.
670 * configure: Rebuild.
671 * configure.ac: Don't configure in doc. Create doc/Makefile.
672
673 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
674
675 PR python/12212
676
677 * python/py-inferior.c (find_thread_object): Check if PIDGET
678 returns 0.
679
680 010-11-22 Joel Brobecker <brobecker@adacore.com>
681
682 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
683
684 2010-11-22 Joel Brobecker <brobecker@adacore.com>
685
686 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
687 Return the original type if the main type portions match rather
688 than when the type themselves match.
689
690 2010-11-22 Joel Brobecker <brobecker@adacore.com>
691
692 * ada-lang.c (ada_template_to_fixed_record_type_1):
693 For dynamic fields, check the field size against the maximum
694 object size.
695
696 2010-11-22 Joel Brobecker <brobecker@adacore.com>
697
698 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
699 function.
700 (mips_irix_n32_stack_tramp_frame): New static global.
701 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
702 list of unwinder.
703
704 2010-11-22 Jerome Guitton <guitton@adacore.com>
705
706 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
707 ATCB symbols.
708
709 2010-11-22 Joel Brobecker <brobecker@adacore.com>
710
711 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
712 if type1 is a typedef.
713
714 2010-11-22 Joel Brobecker <brobecker@adacore.com>
715
716 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
717 "_finalizer" to the list.
718
719 2010-11-22 Joel Brobecker <brobecker@adacore.com>
720
721 * symfile.c: Remove all "#if 0"/"#endif" blocks.
722
723 2010-11-22 Joel Brobecker <brobecker@adacore.com>
724
725 * symfile.c: Add missing second space after period in various comments.
726
727 2010-11-22 Joel Brobecker <brobecker@adacore.com>
728
729 * ada-typeprint.c (print_array_type): Fix formatting in comment.
730 (print_selected_record_field_types): Fix formatting in function
731 documentation.
732
733 2010-11-22 Joel Brobecker <brobecker@adacore.com>
734
735 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
736 in name of "show ravenscar" prefix command name.
737
738 2010-11-22 Joel Brobecker <brobecker@adacore.com>
739
740 * ravenscar-thread.c (show_ravenscar_task_switching_command):
741 Add missing '\n' in output.
742
743 2010-11-22 Joel Brobecker <brobecker@adacore.com>
744
745 * ravenscar-thread.c (running_thread_name): Change value.
746 (read_thread_id): Remove advance declaration.
747 (get_running_thread_msymbol): New function.
748 (has_ravenscar_runtime): Use get_running_thread_msymbol to
749 compute msym_running_thread.
750 (get_running_thread_id): Renames read_thread_id. Slight modifications
751 to not take any argument anymore, using get_running_thread_msymbol
752 to determine which symbol to use instead.
753 (ravenscar_running_thread): Use get_running_thread_id instead of
754 read_thread_id.
755
756 2010-11-22 Joel Brobecker <brobecker@adacore.com>
757
758 * ravenscar-sparc-thread.c (supply_register_at_address):
759 Fix passing of buf in call to regcache_raw_supply.
760
761 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
762
763 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
764
765 2010-11-22 Tom Tromey <tromey@redhat.com>
766
767 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
768
769 2010-11-19 Keith Seitz <keiths@redhat.com>
770
771 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
772 Remove extraneous '/' after $(DESTDIR).
773 (PYTHON_INSTALL_DIR): Likewise.
774
775 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
776
777 Fix stale memory references.
778 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
779 xfree, new comment.
780
781 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
782 Tom Tromey <tromey@redhat.com>
783
784 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
785 (.PHONY): Remove for .y outputs.
786
787 2010-11-19 Will Drewry <wad@google.com>
788 Tavis Ormandy <taviso@google.com>
789 Jan Kratochvil <jan.kratochvil@redhat.com>
790
791 * dwarf2read.c (decode_locdesc): Enforce location description stack
792 boundaries.
793
794 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
795
796 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
797 instruction is found.
798
799 2010-11-17 Tom Tromey <tromey@redhat.com>
800
801 * value.c (value_entirely_optimized_out): Check the
802 'check_any_valid' field.
803
804 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
805
806 * ada-lang.c (modify_general_field): Remove.
807 (make_array_descriptor): Replace all modify_general_field calls by
808 modify_field.
809 * value.c (modify_field): Update comment. New variable bytesize.
810 Normalize BITPOS. Initialize BYTESIZE, use it.
811
812 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
813
814 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
815 elements after xfree.
816
817 2010-11-16 Tom Tromey <tromey@redhat.com>
818
819 * gdb-add-index.sh: Really remove.
820
821 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
822
823 Code cleanup.
824 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
825 (init_one_comp_unit): ... this one.
826 (prepare_one_comp_unit): New prototype.
827 (dw2_require_line_header, process_psymtab_comp_unit): Use
828 init_one_comp_unit.
829 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
830 (load_partial_comp_unit): Remove variable attr. Use
831 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
832 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
833 prepare_one_comp_unit.
834 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
835 Use prepare_one_comp_unit.
836 (alloc_one_comp_unit): Rename to ...
837 (init_one_comp_unit): ... here and remove there calloc, new parameter
838 cu.
839 (prepare_one_comp_unit): New function.
840
841 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
842
843 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
844 possible used of uninitialized variable.
845
846 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
847
848 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
849 (rs6000_gdbarch_init): Call it.
850
851 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
852
853 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
854 instructions if debugging an E500 binary.
855
856 2010-11-12 Tom Tromey <tromey@redhat.com>
857
858 * varobj.c (value_get_print_value): Rearrange. Pass stream to
859 apply_varobj_pretty_printer.
860 * c-lang.c: Include exceptions.h.
861 (c_get_string): Throw MEMORY_ERROR when appropriate.
862 * python/py-prettyprint.c (enum string_repr_result): New.
863 (print_stack_unless_memory_error): New function.
864 (print_string_repr): Change return type. Use
865 print_stack_unless_memory_error.
866 (print_children): Use print_stack_unless_memory_error.
867 (apply_val_pretty_printer): Update. Don't print children if
868 string representation threw an exception.
869 (apply_varobj_pretty_printer): Add 'stream' argument. Use
870 print_stack_unless_memory_error.
871 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
872 globals.
873 (_initialize_python): Initialize them.
874 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
875 gdbpy_convert_exception.
876 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
877 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
878 (gdbpy_convert_exception): Declare.
879 (apply_varobj_pretty_printer): Update.
880 * python/py-utils.c (gdbpy_convert_exception): New function.
881
882 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
883
884 * mi/mi-main.c (mi_cmd_target_detach): Accept new
885 thread-group id format.
886
887 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
888
889 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
890
891 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
892
893 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
894 NULL.
895 (BPPY_SET_REQUIRE_VALID): Ditto.
896 (bpnum_is_valid): Delete function.
897 (bppy_get_visibility): New function.
898 (bppy_new): Parse for, and validate internal keyword. Pass
899 internal keyword to breakpoint or watchpoint functions.
900 (build_bp_list): New function.
901 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
902 iterate_over_breakpoints.
903 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
904 look-aside vector.
905 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
906 to internal breakpoint chain.
907
908 * breakpoint.c (set_breakpoint_number): New function.
909 (breakpoint_1): Check if breakpoint number is more than zero.
910 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
911 (create_breakpoint_sal): Take a new parameter called internal.
912 Call set_breakpoint_number with internal parameter. Do not
913 mention internal breakpoints. All callers updated.
914 (create_breakpoint): Ditto.
915 (create_breakpoints_sal): Ditto.
916 (watch_command_1): Ditto.
917 (watch_command_wrapper): Take a new parameter called internal.
918 All callers updated.
919 (rwatch_command_wrapper): Ditto.
920 (awatch_command_wrapper): Ditto.
921 (save_breakpoints): Update breakpoint save condition check.
922 (iterate_over_breakpoints): New function.
923 * breakpoint.h: Add conditional python includes. Add py_bp_object
924 and comment to struct breakpoint. Update all callers.
925 * defs.h: Add PyObject definition for GDB builds without Python.
926
927 2010-11-10 Doug Evans <dje@google.com>
928
929 * python/lib/gdb/command/pretty_printers.py
930 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
931
932 * value.c (set_value_enclosing_type): Renamed from
933 value_change_enclosing_type. All callers updated.
934 * value.h (set_value_enclosing_type): Update.
935 * valops.c (value_full_object): Always return a copy if we need to
936 make changes to the input value.
937
938 2010-11-09 Pedro Alves <pedro@codesourcery.com>
939
940 * breakpoint.c (watch_command_1): Get a pointer of the lazy
941 version of the expression's value, even if reading the value from
942 memory fails. When creating a -location watchpoint, get the
943 value's address from the lazy value pointer.
944
945 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
946
947 * infrun.c (restore_inferior_thread_state): Use
948 discard_inferior_thread_state to free the data.
949 (discard_inferior_thread_state): xfree also siginfo_data.
950
951 2010-11-05 Doug Evans <dje@google.com>
952
953 Make gdb.parameter("directories") work.
954 New command "set directories".
955 * NEWS: Document them.
956 * source.c (set_directories_command): New function.
957 (show_directories_1): Renamed from show_directories.
958 All callers updated.
959 (show_directories_command): New function.
960 (_initialize_source): Install "directories" as a set/show
961 variable instead of just a show command.
962
963 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
964
965 * NEWS: Mention OpenCL C language support.
966 * Makefile.in (SFILES): Add opencl-lang.c.
967 (COMMON_OBS): Add opencl-lang.o.
968 * opencl-lang.c: New File
969 * defs.h (enum language): Add language_opencl.
970 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
971 IBM XL C OpenCL compiler.
972 * c-lang.h: Include "parser-defs.h".
973 (evaluate_subexp_c): Declare.
974 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
975 (c_op_print_tab): Add declaration.
976 * eval.c (binop_promote): Handle language_opencl.
977 * c-exp.y: Lookup the primitive types instead of referring to the
978 builtins.
979
980 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
981
982 Fix configure --enable-plugins --without-python.
983 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
984 * configure: Regenerate.
985
986 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
987
988 * solib.c (solib_read_symbols): Call exception_fprintf even without
989 FROM_TTY. Print also so->so_name.
990
991 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
992
993 * gdbtypes.h (struct rank): Created subrank.
994 * gdbtypes.c: Initialized subrank for all
995 'BADNESS' constants.
996 (distance_to_ancestor): New function.
997 (is_ancestor): Use distance_to_ancestor.
998 (is_public_ancestor): Ditto.
999 (sum_ranks): Handle subrank.
1000 (compare_ranks): Ditto.
1001 (rank_one_type): Subrank base conversions.
1002
1003 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1004
1005 * gdbtypes.h: Create struct rank.
1006 Convert all 'BADNESS' macros to const struct rank declarations.
1007 (sum_ranks): New function.
1008 (compare_ranks): New function.
1009 * valops.c (find_oload_champ): Updated.
1010 (classify_oload_match): Use compare_ranks.
1011 Improved comments.
1012 (compare_parameters): Use compare_ranks.
1013 * gdbtypes.c: Initialize 'BADNESS' constants.
1014 (sum_ranks): New function.
1015 (compare_ranks): New function.
1016 (compare_badness): Use compare_ranks.
1017 (rank_function): Use global constants instead of literals.
1018 (rank_one_type): Ditto.
1019 Return struct rank.
1020 Use sum_ranks.
1021
1022 2010-11-04 Doug Evans <dje@google.com>
1023
1024 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
1025 (find_pretty_printer): Fix comments.
1026
1027 2010-11-04 Hui Zhu <teawater@gmail.com>
1028
1029 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
1030
1031 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1032
1033 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
1034 and `len' declaration and computation inside block where they
1035 are being used.
1036
1037 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1038
1039 * valprint.c (val_print_array_elements): Put back handling of
1040 empty arrays.
1041
1042 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1043
1044 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
1045 DIE and set the length of the type.
1046 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
1047 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
1048 return 0 if the corresponding bounds of the type are undefined.
1049 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
1050 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
1051 (val_print_array_elements): Use get_array_bounds to compute the number
1052 of array elements instead of dividing the length of the array by the
1053 length of the element types.
1054 * valarith.c (vector_binop): Likewise.
1055 * valops.c (value_cast): Likewise.
1056 * c-valprint.c (c_val_print): Likewise.
1057 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1058
1059 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1060
1061 * valarith.c (value_pos, value_neg, value_complement): Handle
1062 vector types.
1063 * valops.c (value_one): Likewise.
1064
1065 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1066
1067 * value.h (value_non_lval): Declare.
1068 * value.c (value_non_lval): New function.
1069 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
1070 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
1071 non-lvalue.
1072
1073 2010-11-02 Doug Evans <dje@google.com>
1074
1075 New python module gdb.printing, and new commands info pretty-printer,
1076 enable pretty-printer, disable pretty-printer.
1077 * NEWS: Mention them.
1078 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
1079 gdb/command/__init__.py, gdb/command/pretty_printers.py.
1080 * python/lib/gdb/__init__.py: Install pretty-printer commands.
1081 * python/lib/gdb/printing.py: New file.
1082 * python/lib/gdb/command/__init__.py: New file.
1083 * python/lib/gdb/command/pretty_printers.py: New file.
1084
1085 2010-11-02 Tom Tromey <tromey@redhat.com>
1086
1087 * NEWS: Mention Guile removal.
1088 * defs.h (enum language) <language_scm>: Remove.
1089 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
1090 scm-valprint.c.
1091 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
1092 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
1093 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
1094 Remove.
1095
1096 2010-11-02 Doug Evans <dje@google.com>
1097
1098 * top.c: #include "python/python.h".
1099 (gdb_init): Add a comment regarding initialize_all_files.
1100 Call finish_python_initialization at the end.
1101 * python/python.h (finish_python_initialization): Declare.
1102 * python/python.c (finish_python_initialization): New function.
1103 (_initialize_python): Move python-implemented initialization there
1104 and call it.
1105 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
1106
1107 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1108
1109 Revert:
1110 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1111 Pedro Alves <pedro@codesourcery.com>
1112 * gdbthread.h (currently_stepping): New declaration.
1113 * infrun.c (currently_stepping): Remove the forward declaration.
1114 (currently_stepping): Make it global.
1115 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1116 variables tp and step, initialized them. Pass STEP to to_resume.
1117 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1118 * remote.c (currently_stepping_callback): New.
1119 (remote_vcont_resume)
1120 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1121 New variable tp. Call currently_stepping_callback and step such
1122 thread.
1123
1124 2010-11-01 Hui Zhu <teawater@gmail.com>
1125
1126 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1127
1128 2010-10-28 Hui Zhu <teawater@gmail.com>
1129
1130 * tracepoint.c (trace_save): Change utp->actions to
1131 utp->step_actions.
1132
1133 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1134
1135 * (_FILE_OFFSET_BITS): Fix typo in comment.
1136
1137 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1138
1139 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1140 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1141 (PyEval_ReleaseLock): Define as nothing.
1142
1143 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1144
1145 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1146 by call to FILENAME_CMP.
1147
1148 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1149
1150 * dictionary.c (dict_hash): Move assignment out of if condition.
1151
1152 2010-10-22 Jie Zhang <jie@codesourcery.com>
1153
1154 * Makefile.in (install): Remove dependency of install-only and
1155 recursively invoke make for install-only.
1156 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1157 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1158
1159 2010-10-20 Hui Zhu <teawater@gmail.com>
1160
1161 * tracepoint.c (tfile_get_traceframe_address): Call
1162 extract_signed_integer.
1163 (tfile_trace_find): Call extract_signed_integer and
1164 extract_unsigned_integer. Change data_size to unsigned int.
1165 (tfile_fetch_registers): Call extract_unsigned_integer.
1166 (tfile_xfer_partial): Ditto.
1167 (tfile_get_trace_state_variable_value): Call
1168 extract_signed_integer and extract_unsigned_integer.
1169
1170 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1171
1172 * remote.c (remote_get_threadlist): If we got empty
1173 response, bail out immediately, and don't emit any
1174 warnings.
1175
1176 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1177
1178 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1179 for "mov pc, REG" as well.
1180 (thumb_instruction_changes_pc): Likewise.
1181
1182 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1183
1184 PR C++/11500:
1185 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1186 * eval.c (evaluate_subexp_standard): Check for overload of
1187 'operator->'.
1188 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1189 (value_x_unop): Ditto.
1190 * valops.c: Include "exceptions.h".
1191 (find_overload_match): Throw NOT_FOUND_ERROR.
1192 (value_struct_elt): Ditto.
1193
1194 2010-10-19 Tom Tromey <tromey@redhat.com>
1195
1196 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1197
1198 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1199
1200 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1201 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1202 for conversion.
1203 Make all other conversions illegal.
1204
1205 2010-10-18 Doug Evans <dje@google.com>
1206
1207 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1208 assumptions of when this case happens. Print "<unnamed typedef>".
1209
1210 2010-10-18 Tom Tromey <tromey@redhat.com>
1211
1212 * valprint.c (val_print_string): Pass 'encoding' to
1213 LA_PRINT_STRING.
1214
1215 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1216
1217 Fix the `stopped language detection' testcase for gcc-4.5.
1218 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1219 * symfile.c (set_initial_language): Move variable filename to a more
1220 inner block. Prefer LANGUAGE_OF_MAIN.
1221 * symtab.c (language_of_main): New variable.
1222 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1223 * symtab.h (language_of_main): New declaration.
1224
1225 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1226 Pedro Alves <pedro@codesourcery.com>
1227
1228 * gdbthread.h (currently_stepping): New declaration.
1229 * infrun.c (currently_stepping): Remove the forward declaration.
1230 (currently_stepping): Make it global.
1231 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1232 variables tp and step, initialized them. Pass STEP to to_resume.
1233 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1234 * remote.c (currently_stepping_callback): New.
1235 (remote_vcont_resume)
1236 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1237 New variable tp. Call currently_stepping_callback and step such
1238 thread.
1239
1240 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1241
1242 * infrun.c (follow_exec): Replace symbol_file_add_main by
1243 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1244 breakpoint_re_set.
1245 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1246 clear_symtab_users.
1247 * objfiles.c (free_all_objfiles): Likewise.
1248 * remote-m32r-sdi.c (m32r_load): Likewise.
1249 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1250 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1251 clear_symtab_users with ADD_FLAGS.
1252 (reread_symbols): Use parameter 0 for clear_symtab_users.
1253 (clear_symtab_users): New parameter add_flags. Do not call
1254 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1255 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1256 * symtab.h (clear_symtab_users): New parameter add_flags.
1257
1258 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1259
1260 Fix GCC false warning.
1261 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1262
1263 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1264
1265 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1266 display of type of method arguments.
1267
1268 2010-10-15 Tom Tromey <tromey@redhat.com>
1269
1270 PR python/11948:
1271 * varobj.c (value_get_print_value): Use val_print_string to print
1272 lazy strings.
1273 * python/py-prettyprint.c (print_string_repr): Use
1274 val_print_string to print lazy strings. Fix cleanup logic.
1275 (print_children): Likewise.
1276 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1277 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1278 Change return type to 'void', add 'addr' argument.
1279 * value.h (val_print_string): Update.
1280 * valprint.c (val_print_string): Add 'encoding' argument.
1281 * printcmd.c (print_formatted): Update.
1282 * p-valprint.c (pascal_val_print): Update.
1283 * m2-valprint.c (print_unpacked_pointer): Update.
1284 (m2_print_array_contents): Likewise.
1285 * jv-valprint.c (java_value_print): Update.
1286 * f-valprint.c (f_val_print): Update.
1287 * c-valprint.c (c_val_print): Update.
1288 * auxv.c (fprint_target_auxv): Update.
1289
1290 2010-10-15 Doug Evans <dje@google.com>
1291 Jan Kratochvil <jan.kratochvil@redhat.com>
1292
1293 PR exp/12117
1294 * gdbtypes.c (check_typedef): Clean up function comment.
1295 Keep track of instance flags as we strip typedefs and create a new
1296 type to preserve them if necessary.
1297 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1298
1299 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1300
1301 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1302
1303 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1304
1305 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1306 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1307 to...
1308 (types_equal): ...here. And changed it as follows:
1309 Outside of typedefs type must be of the same TYPE_CODE.
1310 When compairing two pointers or references they are equal if their
1311 targets are equal.
1312 Correct pointer conversions.
1313
1314 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1315
1316 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1317 having fields without names.
1318
1319 2010-10-13 Tom Tromey <tromey@redhat.com>
1320
1321 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1322
1323 2010-10-13 Doug Evans <dje@google.com>
1324
1325 New python module gdb.types.
1326 * NEWS: Document it.
1327 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1328 * python/lib/gdb/types.py: New file.
1329
1330 * c-typeprint.c: Whitespace cleanup.
1331 (cp_type_print_method_args): Remove unnecessary forward decl.
1332 (cp_type_print_derivation_info): Ditto.
1333 (c_type_print_varspec_prefix): Mark as static at definition.
1334 (c_type_print_modifier): Fix arg descriptions.
1335
1336 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1337
1338 * python/py-breakpoint.c (bppy_set_condition): New comment.
1339 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1340 failed PyUnicode_Decode.
1341 (cmdpy_completer): Skip element for failed
1342 python_string_to_host_string.
1343 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1344 * python/py-frame.c (frapy_read_var): Extend the function comment.
1345 * python/py-function.c (fnpy_init): Return -1 on failed
1346 python_string_to_host_string.
1347 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1348 the function comment.
1349 (infpy_search_memory): Extend the function comment. Remove the
1350 PyErr_SetString call on already set error state.
1351 * python/py-param.c (set_parameter_value): Extend the function
1352 comment. Return -1 on failed python_string_to_host_string, twice.
1353 (set_attr): Extend the function comment.
1354 (compute_enum_values): Extend the function comment. New variable
1355 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1356 failed python_string_to_host_string.
1357 (get_doc_string): Call gdbpy_print_stack on failed
1358 python_string_to_host_string.
1359 (parmpy_init): Extend the function comment.
1360 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1361 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1362 failed python_string_to_host_string.
1363 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1364 (valpy_binop, valpy_richcompare): Extend the function comment.
1365 * python/python.c
1366 (struct python_env) <error_type, error_value, error_traceback>: New
1367 fields.
1368 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1369 (ensure_python_env): Call PyErr_Fetch.
1370 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1371 failed convert_value_from_python.
1372 (value_get_print_value): Call gdbpy_print_stack on failed
1373 python_string_to_target_python_string.
1374
1375 2010-10-12 Tom Tromey <tromey@redhat.com>
1376
1377 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1378
1379 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1380
1381 * gdbtypes.c (do_is_ancestor): New function.
1382 (is_ancestor): Use do_is_ancestor.
1383 (is_public_ancestor): Use do_is_ancestor.
1384
1385 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1386
1387 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1388
1389 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1390
1391 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1392
1393 2010-10-11 Doug Evans <dje@google.com>
1394
1395 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1396 the address space id too.
1397
1398 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1399
1400 Fix attaching to re-prelinked executables on ppc64.
1401 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1402 initialize it, try to adjust FILESZ field by it.
1403
1404 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1405
1406 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1407 messages if info_verbose.
1408
1409 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1410
1411 * valops.c (value_cast): Handle vector types.
1412 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1413
1414 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1415
1416 * arm-tdep.c (thumb_expand_immediate): New function.
1417 (thumb_instruction_changes_pc): Likewise.
1418 (thumb2_instruction_changes_pc): Likewise.
1419 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1420 prologue parsing. Improved support for optimized code.
1421 (thumb_scan_prologue): Do not reply on line-number information,
1422 use same heuristics as arm_scan_prologue insead.
1423 (skip_prologue_function): Accept functions
1424 "__tls_get_addr" and "__aeabi_read_tp".
1425
1426 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1427 Daniel Jacobowitz <dan@codesourcery.com>
1428
1429 * arm-tdep.c (thumb_in_function_epilogue_p)
1430 (arm_in_function_epilogue_p): New.
1431 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1432 gdbarch_in_function_epilogue_p callback.
1433
1434 2010-10-07 Doug Evans <dje@google.com>
1435
1436 * cc-with-index.sh (output_file): Default to a.out.
1437
1438 * dwarf2read.c (mapped_index): Rename member index_table to
1439 symbol_table and index_table_slots to symbol_table_slots.
1440 All uses updated.
1441 (create_symbol_hash_table): Renamed from create_index_table.
1442 All callers updated.
1443 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1444 (write_hash_table): Rename local index_table to symbol_hash_table.
1445
1446 * addrmap.h (addrmap_foreach_fn): New typedef.
1447 (addrmap_foreach): Declare.
1448 * addrmap.c (struct addrmap_funcs): New member foreach.
1449 (addrmap_foreach): New function.
1450 (addrmap_fixed_foreach): New function.
1451 (addrmap_fixed_funcs): Update.
1452 (struct mutable_foreach_data): New struct.
1453 (addrmap_mutable_foreach_worker): New function.
1454 (addrmap_mutable_foreach): New function.
1455 (addrmap_mutable_funcs): Update.
1456
1457 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1458
1459 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1460 more cases.
1461
1462 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1463
1464 * ada-lang.c (full_match): Declare.
1465 (ada_match_name): Rename to match_name (we should avoid prefixing static
1466 symbols with "ada_").
1467 (match_name): New name for ada_match_name.
1468 (struct ada_psym_data): Remove and replace with...
1469 (struct match_data): User data for map_matching_symbols.
1470 (ada_add_psyms): Remove.
1471 (aux_add_nonlocal_symbols): New function, used as callback for
1472 map_matching_symbols.
1473 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1474 symbols.
1475 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1476 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1477 Rework to use map_matching_symbols instead of map_ada_symtabs.
1478 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1479 * psymtab.c: Include dependency on dictionary.h.
1480 (match_partial_symbol): New function.
1481 (ada_lookup_partial_symbol): Remove.
1482 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1483 (map_matching_symbols_psymtab): New function.
1484 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1485 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1486
1487 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1488
1489 * ada-lang.c (ada_match_name): Use new API for wild_match.
1490 (wild_match): Change API to be consistent with that of strcmp_iw;
1491 return 0 for a match, and switch operand order.
1492 (full_match): New function.
1493 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1494 matching to allow use of hashing.
1495 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1496 iter_name_next ot iter_match_first, iter_match_next.
1497 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1498 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1499 (iter_name_first_linear): Replace with iter_match_first_linear.
1500 (iter_name_next_linear): Replace with iter_match_next_linear.
1501 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1502 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1503 (dict_iter_match_first): New function.
1504 (dict_iter_match_next): New function.
1505 (dict_hash): New function.
1506 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1507 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1508
1509 2010-10-06 Doug Evans <dje@google.com>
1510
1511 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1512
1513 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1514
1515 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1516
1517 2010-10-06 Doug Evans <dje@google.com>
1518
1519 * Makefile.in (REQUIRED_SUBDIRS): New var.
1520 (subdir_do): Verify required subdir Makefiles exist.
1521
1522 Create subdir data-directory.
1523 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1524 data-directory/Makefile.in.
1525 (SUBDIRS): Add data-directory.
1526 (all): Remove xml-syscall-copy dependency.
1527 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1528 stamp-syscalls.
1529 (xml-syscall-install): Moved to data-directory/Makefile.in as
1530 install-syscalls.
1531 (install-only): Remove xml-syscall-install dependency.
1532 (all-data-directory): New rule.
1533 (data-directory/Makefile): New rule.
1534 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1535 * configure: Regenerate.
1536 * data-directory/Makefile.in: New file.
1537 * python/lib/gdb/__init__.py: New file.
1538
1539 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1540
1541 Fix ARI warnings in advance_wild_match.
1542 * ada-lang.c (advance_wild_match): Delete local variable t2.
1543 Adjust code accordingly. Minor reformatting.
1544
1545 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1546
1547 * gdbtypes.h (struct main_type): Remove flag_nottext.
1548 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1549 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1550 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1551 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1552 of TYPE_FLAG_NOTTEXT.
1553 (init_type): Remove the initialization of the flag_nottext field.
1554 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1555 TYPE_FLAG_NOTTEXT.
1556 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1557
1558 2010-10-04 Doug Evans <dje@google.com>
1559
1560 * cc-with-index.sh: New file.
1561
1562 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1563 function comment.
1564 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1565 (create_cus_from_index, create_addrmap_from_index): Ditto.
1566 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1567 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1568 (dw2_do_expand_symtabs_matching): Ditto.
1569 (eq_strtab_entry, create_strtab, add_string): Ditto.
1570 (hash_strtab_entry): Ditto.
1571 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1572 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1573 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1574 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1575 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1576 (write_psymtabs_to_index): Ditto.
1577
1578 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1579
1580 * ada-lang.c: #include "value.h".
1581 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1582 arguments. Implement using value_allocate_space_in_inferior
1583 instead of allocating memory from the stack.
1584 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1585 calls to ensure_lval.
1586 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1587 calls to make_array_descriptor and ensure_lval.
1588 * ada-lang.h (ada_convert_actual): Update declaration.
1589 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1590
1591 2010-10-04 Doug Evans <dje@google.com>
1592
1593 * python/python.c (_initialize_python): Define new function
1594 GdbSetPythonDirectory in python. Use it to update sys.path and
1595 gdb.__path__.
1596
1597 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1598
1599 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1600 incorporating and generalizing print_record_field_types.
1601 (print_record_field_types): Change return value and update comment.
1602 Re-implement using print_selected_record_field_types.
1603 (print_choices): Print "=>" here.
1604 Handle case of unencoded variant branch.
1605 (print_variant_clauses): Reformat comment.
1606 Special-case unencoded variant branch.
1607
1608 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1609
1610 * ada-lang.c (wild_match): Reimplement.
1611 Change API to eliminate unused length argument, reverse arguments and
1612 make 0 the 'true' return value.
1613 (advance_wild_match): New auxiliary function for wild_match to improve
1614 readability.
1615 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1616 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1617 API for wild_match.
1618 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1619 wild_match.
1620 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1621
1622 2010-10-01 Doug Evans <dje@google.com>
1623
1624 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1625 for `save gdb-index' command.
1626
1627 2010-10-01 Tom Tromey <tromey@redhat.com>
1628
1629 * symfile.h (allocate_symtab): Update.
1630 * symfile.c (allocate_symtab): Make 'filename' const.
1631 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1632 (add_psymbol_to_list): Likewise.
1633 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1634 const.
1635 (add_psymbol_to_list): Update.
1636 * mdebugread.c (new_symtab): Make 'name' const.
1637 (psymtab_to_symtab_1): Make 'filename' const.
1638 * elfread.c (elfstab_offset_sections): Update.
1639 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1640 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1641 (psymtab_include_file_name): Update.
1642 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1643 * buildsym.h (start_subfile): Update.
1644 * buildsym.c (start_subfile): Make arguments const.
1645
1646 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1647
1648 * fork-child.c (breakup_args): Fix crash if shell forking is
1649 disabled at compile time.
1650
1651 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1652
1653 * ada-lang.c (desc_bounds): Add handling of the case where
1654 the P_BOUNDS field is a pointer to a stub.
1655 (desc_data_target_type): Same for P_ARRAY field.
1656 (ada_check_typedef): Strip the typedef layers from the type
1657 found by ada_find_any_type.
1658
1659 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1660
1661 * sparc-tdep.c (sparc32_frame_align): New function.
1662 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1663 * sparc64-tdep.c (sparc64_frame_align): New function.
1664 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1665
1666 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1667
1668 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1669
1670 2010-09-30 Tom Tromey <tromey@redhat.com>
1671
1672 * symfile.h (struct sym_fns) <next>: Remove.
1673 (add_symtab_fns): Update.
1674 * symfile.c (sym_fns_ptr): New typedef.
1675 (symtab_fns): Now a VEC.
1676 (add_symtab_fns): Update. Change argument type.
1677 (find_sym_fns): Update. Change return type.
1678 (get_symfile_segment_data): Update.
1679 * objfiles.h (struct objfile) <sf>: Now const.
1680 * somread.c (som_sym_fns): Now const. Update.
1681 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1682 * mipsread.c (ecoff_sym_fns): Now const. Update.
1683 * machoread.c (macho_sym_fns): Now const. Update.
1684 * elfread.c (elf_sym_fns): Now const. Update.
1685 (elf_sym_fns_gdb_index): Likewise.
1686 * dbxread.c (aout_sym_fns): Now const. Update.
1687 * coffread.c (coff_sym_fns): Now const. Update.
1688
1689 2010-09-30 Tom Tromey <tromey@redhat.com>
1690
1691 * value.c (value_primitive_field): Take 'offset' into account for
1692 packed field.
1693
1694 2010-09-30 Tom Tromey <tromey@redhat.com>
1695
1696 * completer.c (count_struct_fields): Handle anonymous structs and
1697 unions.
1698 (add_struct_fields): Likewise.
1699
1700 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1701
1702 Fix printing parameters of inlined functions.
1703 * ada-lang.c (is_known_support_routine)
1704 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1705 for find_frame_funname.
1706 * python/py-frame.c (frapy_name): Likewise.
1707 * stack.c (find_frame_funname): New parameter funcp. Update the
1708 function comment. Fill it in.
1709 (print_frame): New variable func. Initialize it by
1710 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1711 FUNC as the parameter of print_args_stub.
1712 * stack.h (find_frame_funname): New parameter funcp. Remove the
1713 function declaration comment.
1714
1715 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1716
1717 PR corefiles/12071.
1718 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1719 tp. Iterate INFERIOR_LIST and call target_has_execution.
1720
1721 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1722
1723 Fix GDB crash on inferior calls with self-referencing classes.
1724 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1725 member fields.
1726
1727 2010-09-29 Doug Evans <dje@google.com>
1728
1729 Workaround for gcc/45682.
1730 * dwarf2read.c (partial_die_info): New fields fixup_called,
1731 linkage_name.
1732 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1733 Move definition next to use. Use linkage_name to determine if class
1734 is in a namespace. All callers updated.
1735 (fixup_partial_die): Return early if already called.
1736 Set fixup_called when done.
1737 (guess_full_die_structure_name): New function.
1738 (determine_prefix): Call it for class/struct/union dies if c++ and
1739 .debug_types section is present and parent is DW_TAG_compile_unit.
1740
1741 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1742
1743 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1744 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1745
1746 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1747
1748 * NEWS: Announce Ravenscar Profile support.
1749
1750 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1751 Jerome Guitton <guitton@adacore.com>
1752
1753 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1754 New files.
1755 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1756 ravenscar-sparc-thread.o to gdb_target_obs.
1757
1758 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1759
1760 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1761 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1762
1763 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1764
1765 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1766 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1767 skip_main_prologue method.
1768
1769 2010-09-27 Tom Tromey <tromey@redhat.com>
1770
1771 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1772 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1773 Only emit a given psymbol once.
1774 (struct signatured_type_index_data) <psyms_seen>: New field.
1775 (write_one_signatured_type): Update.
1776 (cleanup_htab): New function.
1777 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1778 version to 3.
1779 (save_gdb_index_command): Update index documentation.
1780
1781 2010-09-27 Tom Tromey <tromey@redhat.com>
1782
1783 * bcache.c (expand_hash_table): Use hash_function, not hash.
1784
1785 2010-09-27 Tom Tromey <tromey@redhat.com>
1786
1787 * gdb_wchar.h: Change minimum libiconv to 0x108.
1788
1789 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1790
1791 Fix lost siginfo_t for inferior calls.
1792 * infrun.c
1793 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1794 (save_inferior_thread_state): New variables regcache, gdbarch and
1795 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1796 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1797 using REGCACHE.
1798 (restore_inferior_thread_state): New variables regcache and gdbarch.
1799 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1800 REGCACHE. Free also SIGINFO_DATA.
1801
1802 2010-09-24 Tom Tromey <tromey@redhat.com>
1803
1804 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1805 MAYBE_SWAPs.
1806 (dw2_map_symbol_names): Likewise.
1807
1808 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1809
1810 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1811 discard_cleanups do_cleanups.
1812
1813 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1814
1815 PR gdb/11842
1816
1817 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1818 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1819 si_code is < 0. Check for si_code == SI_TIMER before checking for
1820 si_code < 0.
1821
1822 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1823
1824 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1825
1826 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1827
1828 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1829 debugging a core file.
1830
1831 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1832
1833 Code cleanup.
1834 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1835 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1836 xfree.
1837 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1838 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1839 Remove.
1840 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1841 Remove the conditional.
1842 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1843
1844 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1845
1846 * main.c: Include objfiles.h.
1847 (captured_main): New variable objfile. Call
1848 load_auto_scripts_for_objfile for ALL_OBJFILES.
1849
1850 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1851
1852 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1853 DW_TAG_constant.
1854
1855 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1856
1857 * dwarf2read.c (scan_partial_symbols): Add handling of
1858 DW_TAG_constant DIEs.
1859 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1860
1861 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1862
1863 * configure.ac: Add support for --enable-gdbserver.
1864 * configure: Regenerate.
1865
1866 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1867
1868 PR C++/12028
1869 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1870 'old_cleanups' reassignment.
1871
1872 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1873
1874 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1875 characters.
1876
1877 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1878
1879 PR mi/11407
1880 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1881 read_var_value and common_val_print and print a warning.
1882
1883 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1884
1885 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1886 keep the list in alphabetical order. Use longer e-mail address.
1887
1888 2010-09-15 Tom Tromey <tromey@redhat.com>
1889
1890 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1891
1892 2010-09-15 Tom Tromey <tromey@redhat.com>
1893
1894 * charset.c (iconv_open): New define.
1895 (iconv): Likewise.
1896 (iconv_close): Likewise.
1897 (phony_iconv_open): Add "phony_" prefix.
1898 (phony_iconv_close): Likewise.
1899 (phony_iconv): Likewise.
1900 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1901 Change how INTERMEDIATE_ENCODING is defined.
1902
1903 2010-09-15 Doug Evans <dje@google.com>
1904
1905 * dwarf2read.c (struct die_info): Fix comment.
1906
1907 2010-09-15 Alan Modra <amodra@gmail.com>
1908
1909 PR 4606
1910 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1911 than setting SEC_NEVER_LOAD on sections that need not be copied.
1912
1913 2010-09-14 Tom Tromey <tromey@redhat.com>
1914
1915 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1916 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1917 Declare.
1918 * symfile.h (extend_psymbol_list): Remove.
1919 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1920 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1921 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1922
1923 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1924
1925 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1926 Update the comment.
1927
1928 2010-09-14 Tom Tromey <tromey@redhat.com>
1929
1930 PR symtab/8399:
1931 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1932 for unrecognized frame base expression.
1933
1934 2010-09-14 Tom Tromey <tromey@redhat.com>
1935
1936 PR exp/11803:
1937 * value.c (value_static_field): Use value_of_variable.
1938
1939 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1940
1941 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1942 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1943
1944 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1945
1946 PR symtab/11992:
1947 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1948 UNKNOWN_CPP_NAME.
1949
1950 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1951
1952 * NEWS: Add x86-lynxos to the list of platforms supported by
1953 gdbserver.
1954
1955 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1956
1957 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1958
1959 2010-09-13 Tom Tromey <tromey@redhat.com>
1960
1961 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1962
1963 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1964
1965 * i386-tdep.c (i386_ymm_type): Set type name to
1966 builtin_type_vec256i.
1967
1968 2010-09-12 Michael Snyder <msnyder@vmware.com>
1969
1970 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1971
1972 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1973
1974 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1975
1976 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1977
1978 * amd64-tdep.c (amd64_register_name): Removed.
1979 (amd64_init_abi): Don't call set_gdbarch_register_name.
1980
1981 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1982
1983 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1984
1985 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1986 Paul Bolle <pebolle@tiscali.nl>
1987
1988 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1989 * cli-logging.c (struct saved_output_files) <targerr>: New.
1990 (set_logging_redirect, pop_output_files, handle_redirections):
1991 Redirect also gdb_stdtargerr.
1992 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1993 declarations.
1994 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1995 also gdb_stdtargerr.
1996 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1997 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1998 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1999 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
2000 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
2001 New functions.
2002
2003 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2004
2005 * hppa-tdep.c (unwind_command): Use host_address_to_string function
2006 to display a host address.
2007 * monitor.c (monitor_read_memory): Likewise.
2008 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
2009
2010 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2011
2012 * coffread.c (struct coff_symbol): Change c_value type from `long' to
2013 `CORE_ADDRESS' as it might contain target addresses.
2014
2015 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2016
2017 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
2018 before cast to pointer to avoid warning.
2019
2020 2010-09-09 Kevin Buettner <kevinb@redhat.com>
2021
2022 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
2023 type to be signed.
2024
2025 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
2026
2027 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
2028 anonymous class partial DIEs.
2029
2030 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2031
2032 * dwarf2read.c (dwarf2_compute_name): Check that the first
2033 argument is a pointer.
2034
2035 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2036
2037 * dwarf2read.c (read_func_scope, read_structure_type)
2038 (read_common_block): Check for a NULL return from new_symbol.
2039
2040 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2041
2042 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
2043
2044 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2045
2046 * dwarf2read.c (read_structure_type): Move processing of
2047 fields and member functions from here...
2048 (process_structure_scope): ... to here.
2049
2050 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2051
2052 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
2053 the domain type.
2054 (gnuv3_make_method_ptr): Likewise.
2055
2056 2010-09-08 Tom Tromey <tromey@redhat.com>
2057
2058 * breakpoint.c (create_breakpoint): Add missing _().
2059
2060 2010-09-08 Doug Evans <dje@google.com>
2061
2062 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
2063
2064 2010-09-08 Tom Tromey <tromey@redhat.com>
2065
2066 Revert:
2067 2010-09-01 Tom Tromey <tromey@redhat.com>
2068 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
2069 symtab.h: Revert earlier change.
2070
2071 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
2072
2073 * psymtab.c (add_psymbol_to_bcache): Initialize
2074 obj_section.
2075 memset psymbol.ginfo.value to 0.
2076
2077 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2078
2079 * infrun.c (resume): Extend comment on ignoring single-step
2080 requests on vfork parents waiting for a vfork-done.
2081
2082 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2083 Pedro Alves <pedro@codesourcery.com>
2084
2085 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
2086 is NULL.
2087 * fork-child.c (startup_inferior) <resume_signal>: Use enum
2088 target_signal type.
2089 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
2090 calling strsignal. Use enum target_signal type for saved_signo.
2091 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
2092 (linux_nat_wait_1): Use enum target_signal type for signo. Use
2093 target_signal_to_host before calling strsignal.
2094 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
2095 TARGET_SIGNAL_0.
2096
2097 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2098 Jan Kratochvil <jan.kratochvil@redhat.com>
2099
2100 * common/signals.c (ANY): Remove.
2101 (SET): No longer use ANY.
2102
2103 2010-09-06 Yao Qi <yao@codesourcery.com>
2104
2105 * infrunc(resume): When inferior is waiting_for_vfork_done,
2106 clear step and don't use displaced stepping.
2107
2108 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2109
2110 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2111 value specially.
2112
2113 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2114
2115 Code cleanup - split print_stop_reason.
2116 * infrun.c (enum inferior_stop_reason): Remove.
2117 (print_stop_reason): Remove by splitting into ...
2118 (print_exited_reason, print_signal_exited_reason)
2119 (print_no_history_reason, print_signal_received_reason)
2120 (print_end_stepping_range_reason): ... these new functions. Update
2121 the preceding comment.
2122 (handle_inferior_event): Change the calls to print_exited_reason,
2123 print_signal_exited_reason, print_no_history_reason,
2124 print_signal_received_reason, print_end_stepping_range_reason.
2125 (handle_step_into_function, handle_step_into_function_backward):
2126 Change the calls to print_end_stepping_range_reason.
2127
2128 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2129
2130 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2131 * cli-out.c: Include vec.h.
2132 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2133 variable stream, initialize it, use it.
2134 (cli_redirect): New function comment. Replace the stream and
2135 original_stream fields by the new streams field. Remove the
2136 original_stream != NULL conditional, assert error on NULL instead.
2137 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2138 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2139 original_stream fields by the new streams field.
2140 (cli_out_set_stream): Replace the stream field by the new streams
2141 field.
2142 * cli-out.h: Include vec.h.
2143 (ui_filep): New typedef, call DEF_VEC_P for it.
2144 (struct cli_ui_out_data): Replace the stream and original_stream
2145 fields by the new streams field.
2146 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2147 NULL first. Extend the comment.
2148 (handle_redirections): Call ui_out_redirect with output.
2149 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2150 calls outside of the TRY_CATCH block.
2151
2152 2010-09-03 Joel Brobecker <brobecker@adacore.com>
2153
2154 GDB 7.2 released.
2155
2156 2010-09-02 Joel Brobecker <brobecker@adacore.com>
2157
2158 Back out the following change:
2159 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2160 | * record.c (set_record_pic_cmdlist,
2161 | show_record_pic_cmdlist): New variables.
2162 | (set_record_pic_command,
2163 | show_record_pic_command): New functions.
2164 | (record_pic_function, record_pic_line, record_pic_enum,
2165 | set_record_pic_type, record_pic_hide_nofunction,
2166 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2167 | (record_pic_fputs): New function.
2168 | (function_list, node_list, edge_list): New struct.
2169 | (function_list, node_list, edge_list): New variables.
2170 | (record_pic_cleanups, record_pic_node,
2171 | record_pic_edge, cmd_record_pic): New functions.
2172 | (_initialize_record): Add new commands for record pic.
2173
2174 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2175
2176 * config.in, configure: Regenerated.
2177 * configure.ac: Check for waitpid.
2178 * ser-pipe.c (pipe_close): Wait for the program to exit.
2179
2180 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2181
2182 * cli/cli-logging.c: Include gdb_assert.h.
2183 (set_logging_overwrite): New function.
2184 (logging_redirect): New comment.
2185 (logging_no_redirect_file, set_logging_redirect)
2186 (pop_output_files) <logging_no_redirect_file>: New.
2187 (handle_redirections) <!logging_redirect>: New variable
2188 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2189 discard cleanup for the close of former OUTPUT. Set
2190 LOGGING_NO_REDIRECT_FILE.
2191 (handle_redirections) <logging_redirect>: gdb_assert
2192 LOGGING_NO_REDIRECT_FILE.
2193 (show_logging_command) <logging_redirect handling>: Adjust messages
2194 for SAVED_FILENAME not NULL.
2195 (_initialize_cli_logging): Install set_logging_overwrite and
2196 set_logging_redirect.
2197
2198 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2199
2200 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2201
2202 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2203
2204 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2205 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2206 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2207 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2208
2209 2010-09-02 Yao Qi <yao@codesourcery.com>
2210
2211 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2212 number from a WIFSIGNALED status.
2213
2214 2010-09-01 Tom Tromey <tromey@redhat.com>
2215
2216 * symtab.h (lookup_type_symbol): Declare.
2217 * symtab.c (lookup_symbol_in_language_full): Rename from
2218 lookup_symbol_in_language. Add 'for_type' argument.
2219 (lookup_symbol_in_language): New function.
2220 (lookup_type_symbol): Likewise.
2221 (lookup_symbol_aux): Add 'for_type' argument.
2222 (match_symbol_aux): New function.
2223 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2224 (match_transparent_type): New function.
2225 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2226 * symfile.h (struct quick_symbol_functions)
2227 <pre_expand_symtabs_matching>: Remove.
2228 <expand_one_symtab_matching>: New field.
2229 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2230 (pre_expand_symtabs_matching_psymtabs): Remove.
2231 (psym_functions): Update.
2232 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2233 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2234 (dw2_pre_expand_symtabs_matching): Remove.
2235 (dw2_expand_one_symtab_matching): New function.
2236 (dwarf2_gdb_index_functions): Update.
2237
2238 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2239
2240 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2241
2242 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2243
2244 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2245 as a feature reported by -list-target-features.
2246
2247 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2248
2249 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2250 (powerpc-32.o, powerpc-32.c): New rules.
2251 (clean): Also remove powerpc-32.c.
2252 * regformats/rs6000/powerpc-32.dat: Generate.
2253
2254 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2255
2256 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2257 psymbol_bcache_init.
2258 * psymtab.h (psymbol_bcache_init): New function prototype.
2259 (psymbol_bcache_free): New function prototype.
2260 (psymbol_bcache_get_bcache): New function prototype.
2261 * psymtab.c (psymbol_bcache_init): New function.
2262 (psymbol_bcache_free): New function.
2263 (psymbol_bcache_full): New function.
2264 (psymbol_bcache_get_bcache): New function.
2265 (add_psymbol_to_bcache): use psymbol_bcache_full.
2266 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2267 psymbol_bcache.
2268 * symmisc.c (print_symbol_bcache_statistics): Updated.
2269 (print_objfile_statistics): Updated.
2270 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2271 psymbol_cache.
2272 (free_objfile): Use psymbol_bcache_free.
2273
2274 2010-08-31 Tom Tromey <tromey@redhat.com>
2275
2276 PR c++/11961:
2277 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2278 Don't set TYPE_NAME on the type.
2279
2280 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2281
2282 * infrun.c (set_exec_direction_func): Error out if target does not
2283 support reverse execution.
2284
2285 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2286
2287 Make linux_get_siginfo_type `type *' unique.
2288 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2289 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2290 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2291 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2292 (_initialize_linux_tdep): New.
2293
2294 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2295
2296 Code cleanup.
2297 * defs.h (find_memory_region_ftype): New typedef.
2298 (exec_set_find_memory_regions): Use it.
2299 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2300 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2301 * gcore.c (objfile_find_memory_regions): Likewise.
2302 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2303 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2304 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2305 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2306 find_memory_region_ftype.
2307 (insert_dbx_link_bpt_in_region): Likewise.
2308 (iterate_over_mappings): Likewise. Drop the comment part about the
2309 function prototype.
2310 (find_memory_regions_callback): Use find_memory_region_ftype.
2311 (proc_find_memory_regions): Likewise.
2312 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2313 find_memory_region_ftype.
2314 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2315 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2316
2317 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2318
2319 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2320 'static partial_symbol psymbol'.
2321 (psymbol_hash): New function.
2322 (psymbol_compare): New function.
2323 * bcache.c (hash_continue): New.
2324 (hash): Use hash_continue.
2325 * bcache.c: Add hash_function and compare_function
2326 pointers to bcache struct.
2327 (bcache_full): Use bcache->hash_function, and
2328 bcache->compare_function.
2329 (bcache_compare): New function.
2330 (bcache_xmalloc): Take hash_function and
2331 compare_function arguments and initialize the
2332 bcach's pointers.
2333 Updated comment.
2334 * objfiles.c (allocate_objfile): Updated.
2335 * symfile.c (reread_symbols): Updated.
2336 * python/py-type.c (typy_richcompare): Updated.
2337
2338 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2339 Tom Tromey <tromey@redhat.com>
2340
2341 PR python/11792:
2342 * python/py-value.c (valpy_get_dynamic_type): New function.
2343 (value_object_getset): Add "dynamic_type".
2344 (valpy_get_type): Fail on error.
2345
2346 2010-08-30 Yao Qi <yao@codesourcery.com>
2347
2348 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2349 (arm_linux_syscall_next_pc): New.
2350 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2351 (arm_linux_init_abi): Initialize syscall_next_pc.
2352 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2353 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2354 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2355 Declare arm_frame_is_thumb.
2356
2357 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2358
2359 Code cleanup.
2360 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2361 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2362 code.
2363 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2364 calls of bpstat_alloc. Remove explicit bs chain termination.
2365
2366 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2367
2368 Code cleanup.
2369 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2370 (my_waitpid): Likewise.
2371
2372 2010-08-27 Doug Evans <dje@google.com>
2373
2374 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2375 as appropriate.
2376
2377 2010-08-27 Tom Tromey <tromey@redhat.com>
2378
2379 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2380 TYPE_FIELD_IGNORE_BITS.
2381
2382 2010-08-27 Doug Evans <dje@google.com>
2383
2384 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2385 the order they're defined in. munmap .debug_types buffer.
2386
2387 2010-08-26 Doug Evans <dje@google.com>
2388
2389 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2390 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2391 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2392 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2393 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2394 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2395 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2396 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2397 (write_psymtabs_to_index): Ditto.
2398
2399 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2400
2401 * NEWS: Mention libthread_db debugging with core files.
2402
2403 2010-08-26 Doug Evans <dje@google.com>
2404
2405 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2406 forward decl. Pass pst->dirname to dwarf_decode_lines.
2407 (psymtab_include_file_name): New function.
2408 (dwarf_decode_lines): Call it. Update comments.
2409
2410 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2411
2412 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2413 compilation unit being different from target die's.
2414
2415 2010-08-24 Doug Evans <dje@google.com>
2416
2417 PR symtab/11942
2418 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2419 debug_types_type_hash.
2420 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2421 All uses updated.
2422 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2423 appropriate type_hash table. All callers updated.
2424 (allocate_signatured_type_table): Renamed from
2425 allocate_signatured_type_hash_table. All callers updated.
2426 (create_signatured_type_table_from_index): Renamed from
2427 create_signatured_type_hash_from_index. All callers updated.
2428 (read_die_type): Add comment. Move actual reading to ...
2429 (read_die_type_1): ... here. New function.
2430 (follow_die_ref_or_sig): Tweak comment.
2431 (set_die_type): Rewrite to use appropriate choice of
2432 debug_info_type_hash or debug_types_type_hash.
2433 (get_die_type_at_offset): New function.
2434 (get_die_type): Call it.
2435
2436 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2437
2438 * python/py-type.c (typy_richcompare): Initialize worklist.
2439
2440 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2441 Kazu Hirata <kazu@codesourcery.com>
2442 Jonathan Larmour <jifl@eCosCentric.com>
2443
2444 * arm-tdep.c: Include features/arm-with-m.c.
2445 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2446 call this function.
2447 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2448 Check is_m after force-mode.
2449 (arm_gdbarch_init): Check the binary before the target description.
2450 Add check for M profile attribute. If we have an M-profile device,
2451 but no target register description, use arm-with-m. Recognize the
2452 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2453 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2454 * arm-tdep.h (XPSR_T): Define.
2455 (struct gdbarch_tdep): Add is_m member.
2456 * features/arm-m-profile.xml, features/arm-with-m.c,
2457 features/arm-with-m.xml: New files.
2458
2459 2010-08-23 Doug Evans <dje@google.com>
2460
2461 * dwarf2read.c (read_structure_type): Add comment.
2462 (read_enumeration_type): Add comment.
2463 (process_enumeration_scope): Move definition of some locals
2464 closer to their use.
2465 (read_namespace_type): Add comment.
2466 (set_die_type): Fix typo in comment.
2467
2468 2010-08-23 Tom Tromey <tromey@redhat.com>
2469
2470 PR python/11145:
2471 * python/py-value.c: Include expression.h.
2472 (valpy_do_cast): New function.
2473 (valpy_cast): Use it.
2474 (valpy_dynamic_cast): New function.
2475 (valpy_reinterpret_cast): Likewise.
2476 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2477
2478 2010-08-23 Tom Tromey <tromey@redhat.com>
2479
2480 PR python/11391:
2481 * python/py-value.c (valpy_nonzero): Don't throw error for other
2482 Value types.
2483
2484 2010-08-23 Tom Tromey <tromey@redhat.com>
2485
2486 PR python/10676:
2487 * python/py-type.c: Include bcache.h, vec.h.
2488 (struct type_equality_entry): New.
2489 (compare_strings): New function.
2490 (check_types_equal): Likewise.
2491 (check_types_worklist): Likewise.
2492 (typy_richcompare): Likewise.
2493 (type_object_type): Set tp_richcompare field.
2494
2495 2010-08-23 Tom Tromey <tromey@redhat.com>
2496
2497 PR python/10953:
2498 * python/py-type.c (typy_fields): Call check_typedef.
2499 (typy_template_argument): Add TRY_CATCH.
2500
2501 2010-08-23 Tom Tromey <tromey@redhat.com>
2502
2503 PR python/11915:
2504 * python/py-type.c (typy_array): New function.
2505 (type_object_methods): Add "array".
2506
2507 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2508
2509 * python/python.c: Include "serial.h".
2510 (gdbpy_event_fds): Change type to `struct serial *' a array from
2511 int array.
2512 (gdbpy_run_events): Change parameters. Use serial_readchar in
2513 place of read.
2514 (gdbpy_post_event): Use serial_write in place of write.
2515 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2516 serial_async in place of add_file_handler.
2517
2518 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2519
2520 * serial.h (gdb_pipe, serial_pipe): Declare.
2521 * serial.c (serial_interface_lookup): Take a const char pointer.
2522 (serial_fdopen): Rename to ...
2523 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2524 Call the OPS' fdopen function if there is one.
2525 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2526 (serial_pipe): New.
2527 (struct serial_ops) <fdopen>: New field.
2528
2529 * ser-mingw.c (free_pipe_state):
2530 (free_pipe_state): Close output on non-pex pipes.
2531 (pipe_windows_fdopen): New.
2532 (gdb_pipe): New.
2533 (_initialize_ser_windows): Register pipe_windows_fdopen.
2534 * ser-go32.c (gdb_pipe): New.
2535 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2536 no state pointer.
2537 (pipe_ops): Delete.
2538 (gdb_pipe): New.
2539
2540 2010-08-20 Keith Seitz <keiths@redhat.com>
2541
2542 PR symtab/11465:
2543 * dwarf2read.c (struct delayed_method_info): New struct.
2544 (struct dwarf2_cu): Add vector method_list.
2545 (scan_partial_symbols): Count methods for union, class, structure,
2546 and interface types.
2547 (add_to_method_list): New function.
2548 (free_delayed_list): New function.
2549 (compute_delayed_physnames): New function.
2550 (process_full_comp_unit): Make a cleanup for the CU's delayed
2551 physname list, compute the delayed physnames, and free the
2552 the list.
2553 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2554 of the physname until after the CU is read.
2555
2556 * dwarf2read.c (read_structure_type): Check if the current
2557 DIE's type was already completed after dwarf2_full_name
2558 was called.
2559
2560 2010-08-19 Stan Shebs <stan@codesourcery.com>
2561
2562 * NEWS: Mention some additional changes.
2563
2564 2010-08-19 Tom Tromey <tromey@redhat.com>
2565
2566 * Makefile.in (install-python): Add DESTDIR.
2567
2568 2010-08-19 Doug Evans <dje@google.com>
2569
2570 PR exp/11926
2571 * parser-defs.h (parse_float, parse_c_float): Declare.
2572 * parse.c (parse_float, parse_c_float): New function.
2573 * c-exp.y (parse_number): Call parse_c_float.
2574 * objc-exp.y (parse_number): Ditto.
2575 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2576 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2577
2578 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2579
2580 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2581 the arguments in the correct order.
2582 * symtab.c (maybe_add_partial_symtab_filename): Declare
2583 the arguments in the correct order.
2584
2585 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2586
2587 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2588 initialize it by null_frame_id, wrap its usage by get_frame_id,
2589 frame_id_p and frame_find_by_id.
2590
2591 2010-08-18 Tom Tromey <tromey@redhat.com>
2592
2593 PR python/11900:
2594 * configure: Rebuild.
2595 * configure.ac: Add install-python to CONFIG_INSTALL.
2596 * Makefile.in (install-python): New.
2597
2598 2010-08-18 Doug Evans <dje@google.com>
2599
2600 * gdb_assert.h (gdb_assert_not_reached): New macro.
2601 (gdb_assert_fail): Fix typo in comment.
2602 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2603 gdb_assert (0).
2604 * darwin-nat.c (darwin_check_new_threads): Ditto.
2605 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2606 (munmap_section_buffer): Ditto.
2607 * m32c-tdep.c (make_types): Ditto.
2608 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2609 * macroexp.c (get_character_constant): Ditto.
2610 (get_string_literal): Ditto.
2611 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2612 (mep_pseudo_cr_index, mep_register_type): Ditto.
2613 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2614 (mep_get_insn, mep_analyze_prologue): Ditto.
2615 * objfiles.c (qsort_cmp): Ditto.
2616 * prologue-value.c (pv_is_identical): Ditto.
2617 * record.c (record_get_loc): Ditto.
2618 * value.c (value_static_field): Ditto.
2619 * xtensa-tdep.c (call0_track_op): Ditto.
2620
2621 2010-08-18 Tom Tromey <tromey@redhat.com>
2622
2623 PR symtab/11919:
2624 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2625 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2626 name-copying lower. Document exception behavior.
2627 * completer.c (expression_completer): Catch exceptions from
2628 parse_field_expression.
2629
2630 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2631
2632 PR corefile/8210
2633
2634 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2635 workaround on core files.
2636 (try_thread_db_load_1): Don't try enabling thread event reporting
2637 on core files.
2638 (thread_db_load): Allow thread_db on core files.
2639 (attach_thread): Don't check thread signals on core files, nor try
2640 really attaching to the thread, nor enabling thread event event
2641 reporting.
2642 (thread_db_detach): Don't try disabing thread event reporting or
2643 removing thread event breakpoints when debugging a core file.
2644 (find_new_threads_callback): Don't try enabling thread event
2645 reporting on core files.
2646 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2647 debugging a core file.
2648 (thread_db_find_new_threads): Don't update thread
2649 cores (processors) when debugging a core (dump).
2650
2651 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2652
2653 PR corefile/8210
2654
2655 * corelow.c (add_to_thread_list): Don't use
2656 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2657 (get_core_register_section): Don't use
2658 gdbarch_core_reg_section_encodes_pid.
2659
2660 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2661 * gdbarch.h, gdbarch.c: Regenerate.
2662 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2663 gdbarch_core_reg_section_encodes_pid.
2664 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2665 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2666 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2667
2668 2010-08-18 Yao Qi <yao@codesourcery.com>
2669
2670 * MAINTAINERS : Add myself under Write After Approval.
2671
2672 2010-08-17 Tom Tromey <tromey@redhat.com>
2673
2674 * NEWS: Mention template parameter support.
2675
2676 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2677
2678 PR breakpoints/11371
2679
2680 * breakpoint.c (decref_bp_location): Assert the reference count is
2681 sane.
2682
2683 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2684
2685 PR breakpoints/11371
2686
2687 * breakpoint.c (breakpoint_init_inferior): Decrement the
2688 location's reference count instead of deleting right away.
2689 (bpstat_free): Decrement the location's reference count. Make
2690 static.
2691 (bpstat_copy): Increment the location's reference count.
2692 (bpstat_find_breakpoint): Adjust.
2693 (bpstat_num): Adjust.
2694 (print_it_typical): Adjust. Use the breakpoint pointer in the
2695 bpstat instead of the location's owner.
2696 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2697 Adjust to record the location's owner in the bpstat.
2698 (watchpoint_check): Use the breakpoint pointer in the bpstat
2699 instead of the location's owner.
2700 (bpstat_check_breakpoint_conditions): Don't handle
2701 bp_watchpoint_scope here. Use the breakpoint pointer in the
2702 bpstat instead of the location's owner.
2703 (bpstat_stop_status): Defer inferior function calls to after
2704 building the bpstat list. Handle bp_watchpoint_scope here. Use
2705 the breakpoint pointer in the bpstat instead of the location's
2706 owner.
2707 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2708 the location's owner.
2709 (free_bp_location): Don't walk bpstats clearing locations.
2710 (incref_bp_location): New.
2711 (decref_bp_location): New.
2712 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2713 instead of the location's owner.
2714 (update_global_location_list): Clear the location's owner, and
2715 decrement the location's reference count instead of deleting it
2716 right away.
2717 (breakpoint_retire_moribund): Decrement the location's reference
2718 count instead of deleting it right away.
2719 (bpstat_remove_bp_location): Delete.
2720 (bpstat_remove_breakpoint): New.
2721 (bpstat_remove_bp_location_callback): Delete.
2722 (bpstat_remove_breakpoint_callback): New.
2723 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2724 clearing references to the breakpoint that is being deleted.
2725
2726 * breakpoint.h (struct bp_location) <refc>: New field.
2727 <owner>: Update comments.
2728 (bpstat_free): Delete declaration.
2729 (struct bpstats): Change the type of the breakpoint_at field to
2730 struct breakpoint point, from struct bp_location pointer. Add new
2731 field bp_location_at.
2732
2733 2010-08-16 Tom Tromey <tromey@redhat.com>
2734
2735 * NEWS: Fix typo.
2736
2737 2010-08-16 Tom Tromey <tromey@redhat.com>
2738
2739 * NEWS: Mention watch -location.
2740
2741 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2742
2743 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2744 EXP_STRING_REPARSE to EXP_STRING.
2745 (watch_command_1): Set also EXP_STRING_REPARSE.
2746 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2747 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2748 Update comment for exp_string.
2749
2750 2010-08-16 Tom Tromey <tromey@redhat.com>
2751
2752 * value.c (release_value): Clear 'next' pointer.
2753 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2754 (watch_command_wrapper): Update.
2755 (watch_maybe_just_location): New function.
2756 (watch_command): Update.
2757 (rwatch_command_wrapper): Update.
2758 (rwatch_command): Update.
2759 (awatch_command_wrapper): Update.
2760 (awatch_command): Update.
2761 (check_for_argument): New function.
2762 (_initialize_breakpoint): Update help text.
2763
2764 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2765
2766 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2767 typedef'ed function types correctly.
2768
2769 2010-08-13 Tom Tromey <tromey@redhat.com>
2770
2771 * python/python-internal.h (gdbpy_get_hook_function): Don't
2772 declare.
2773
2774 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2775
2776 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2777 static.
2778
2779 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2780
2781 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2782 the format strings to be compatible with Python 2.4.
2783
2784 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2785
2786 Easier and more stubborn MI memory read commands.
2787
2788 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2789 and data-write-memory-bytes.
2790 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2791 (mi_cmd_data_write_memory_bytes): New.
2792 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2793 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2794 New.
2795 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2796 * target.c (target_read_until_error): Remove.
2797 (read_whatever_is_readable, free_memory_read_result_vector)
2798 (read_memory_robust): New.
2799 * target.h (target_read_until_error): Remove.
2800 (struct memory_read_result, free_memory_read_result_vector)
2801 (read_memory_robust): New.
2802
2803 2010-08-13 Hui Zhu <teawater@gmail.com>
2804
2805 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2806 (read_comp_unit): Initialize back_to.
2807
2808 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2809 Pedro Alves <pedro@codesourcery.com>
2810
2811 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2812 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2813 (struct partial_die_info) <has_template_arguments>: New field.
2814 <num_attrs>: Change type to unsigned char.
2815 <building_fullname>: New field.
2816 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2817 allocate a CU if we don't have one already. Add a cleanup for the
2818 CU.
2819 (partial_die_full_name): Handle template arguments not in
2820 DW_AT_name.
2821 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2822 (load_full_comp_unit): Only allocate a CU if we don't have one
2823 already.
2824 (do_ui_file_peek_last): New.
2825 (dwarf2_compute_name): Handle template parameters not in
2826 DW_AT_name.
2827 (read_comp_unit): Read and free abbrevs if not read yet.
2828 (load_partial_dies): Handle template arguments not in DW_AT_name.
2829 (find_partial_die): If we have a CU, but no a partial dies yet,
2830 also read in the CU.
2831 (dwarf2_const_value_attr): New, abstracted out from
2832 dwarf2_const_value.
2833 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2834 dwarf2_const_value_attr.
2835 (determine_prefix): Detect and break loops created by RCVT's debug
2836 info.
2837 (maybe_queue_comp_unit): Bail out early if reading partial
2838 symbols.
2839 (follow_die_offset): Load full CU if we have no dies.
2840 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2841 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2842
2843 2010-08-11 Tom Tromey <tromey@redhat.com>
2844 Phil Muldoon <pmuldoon@redhat.com>
2845
2846 * python/python.c (gdbpy_run_events): New function.
2847 (gdbpy_post_event): Likewise.
2848 (gdbpy_initialize_events): Likewise.
2849 (_initialize_python): Call gdbpy_initialize_events.
2850
2851 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2852
2853 * gdb/valarith.c (vector_binop): New function.
2854 (scalar_binop): Likewise.
2855 (value_binop): Call scalar_binop or vector_binop depending on the types.
2856 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2857 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2858 to pointers.
2859 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2860
2861 2010-08-11 Brad Roberts <braddr@puremagic.com>
2862
2863 * d-lang.c (extract_identifiers): Handle multiple digits.
2864
2865 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2866
2867 Code cleanup.
2868 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2869 Rename to dummy_frame_unwind.
2870 (dummy_frame_unwind): Remove.
2871 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2872 * frame-unwind.c (frame_unwind_init): Use address of
2873 dummy_frame_unwind and inline_frame_unwind.
2874 * frame.c (create_sentinel_frame): Use address of
2875 sentinel_frame_unwind.
2876 * inline-frame.c (inline_frame_unwinder): Rename to
2877 inline_frame_unwind.
2878 (inline_frame_unwind): Remove.
2879 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2880 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2881 sentinel_frame_unwind.
2882 (sentinel_frame_unwind): Remove.
2883 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2884 struct.
2885
2886 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2887
2888 Code cleanup.
2889 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2890 and returned value. New comment from frame-unwind.h.
2891 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2892 Extend the comment.
2893 * frame.c (get_frame_id, frame_unwind_register_value)
2894 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2895 (get_frame_type, frame_unwind_arch): Do not use the return value of
2896 frame_unwind_find_by_frame.
2897
2898 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2899 Thiago Jung Bauermann <bauerman@br.ibm.com>
2900 Tom Tromey <tromey@redhat.com>
2901
2902 * python/python.c (gdbpy_solib_address): New function.
2903 (gdbpy_decode_line): Likewise.
2904
2905 2010-08-10 Tom Tromey <tromey@redhat.com>
2906
2907 Revert gdb-add-index addition:
2908 * Makefile.in (install-only): Don't install gdb-add-index.
2909 * gdb-add-index.sh: Remove.
2910
2911 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2912
2913 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2914 `target_has_execution' check with `to_has_memory' check.
2915 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2916 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2917 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2918
2919 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2920
2921 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2922 (resume_siggnal, resume_step): Move these static globals...
2923 (struct sim_inferior_data): ...into this new struct.
2924 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2925 New static globals.
2926 (gdb_callback, callbacks_initialized): Move these globals to
2927 a point earlier in the file.
2928 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2929 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2930 (gdbsim_close_inferior, gdbsim_resume_inferior)
2931 (gdbsim_stop_inferior): New functions.
2932 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2933 New constants.
2934 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2935 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2936 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2937 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2938 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2939 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2940 new local variable `sim_data' in each of these functions. Use
2941 `sim_data' to reference former globals `program_loaded',
2942 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2943 `resume_step'.
2944 (gdbsim_open): Remove local variable `argv'. Put results of call
2945 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2946 make a cleanup for it. Free it though when a sim instance cannot
2947 be obtained.
2948 (gdbsim_close): Free sim_argv and null it out as appropriate.
2949 Close sim instances in all inferiors.
2950 (gdbsim_cntrl_c): Stop all inferiors.
2951 (gdbsim_wait):
2952 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2953
2954 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2955
2956 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2957 function after symbol construction is complete.
2958 Do the same for template symbol addition to template_symbols list.
2959
2960 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2961
2962 * symtab.c (symbol_get_demangled_name): Remove assertion and
2963 return NULL when language_specific.cplus_specific is not initialized.
2964 * stabsread.c (define_symbol): Set the name before calling
2965 cp_scan_for_anonymous_namespaces.
2966
2967 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2968
2969 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2970 SYMBOL_SET_LANGUAGE.
2971 (symbol_init_language_specific): Renamed to symbol_set_language.
2972 * symtab.c (symbol_init_language_specific): Removed redundant check
2973 for language_cplus.
2974 Renamed to symbol_set_language.
2975 * stabsread.c (define_symbol): Updated.
2976 (read_enum_type): Updated
2977 * psymtab.c (add_psymbol_to_bcache): Updated.
2978 * minsyms.c (install_minimal_symbols): Updated.
2979 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2980 SYMBOL_LANGUAGE to set the language.
2981 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2982 * mdebugread.c (new_symbol): Ditto.
2983 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2984 * dwarf2read.c (new_symbol_full): Ditto.
2985 * jv-lang.c (add_class_symbol): Ditto.
2986
2987 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2988
2989 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2990 (make_cleanup_restore_page_info)
2991 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2992 * gdbcmd.h (execute_command_to_string): New declaration.
2993 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2994 (make_cleanup_restore_ui_file): Move to utils.c
2995 (execute_gdb_command) <to_string>: Move ...
2996 * top.c (execute_command_to_string): ... here. Call
2997 set_batch_flag_and_make_cleanup_restore_page_info.
2998 * utils.c (make_cleanup_restore_integer): New source file blank line.
2999 (make_cleanup_restore_uinteger): New.
3000 (struct restore_ui_file_closure, do_restore_ui_file)
3001 (make_cleanup_restore_ui_file): Move here from python/python.c.
3002 (init_page_info) <batch_flag>
3003 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
3004 (set_batch_flag_and_make_cleanup_restore_page_info): New.
3005
3006 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
3007
3008 * thread.c (add_thread_silent): Use null_ptid instead of
3009 minus_one_ptid while getting rid of stale inferior_ptid.
3010
3011 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
3012
3013 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
3014 Throughout, call read_encoded_value with ptr_size rather than addr_size.
3015 (decode_frame_entry_1): Remove redundant setting of
3016 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
3017 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
3018 on examined frame section. Add comment to explain why.
3019 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
3020 comment to explain usage.
3021 * gdbarch.c: Regenerate.
3022 * gdbarch.h: Regenerate.
3023
3024 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
3025
3026 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3027
3028 Code cleanup.
3029 * varobj.c (varobj_create): Move variables fi, old_fi and block to
3030 a more inner block.
3031
3032 2010-08-05 Pedro Alves <pedro@codesourcery.com>
3033
3034 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
3035 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3036 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
3037 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
3038 linux-tdep.o to gdb_target_obs.
3039
3040 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
3041
3042 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
3043 argument.
3044
3045 2010-08-05 Hui Zhu <teawater@gmail.com>
3046
3047 * mips-linux-tdep.c(regset.h): New include.
3048 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
3049 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
3050 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
3051 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
3052 mips_linux_regset_from_core_section): New functions.
3053 (fetch_core_registers, regset_core_fns): Deleted.
3054 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
3055 Deleted regset_core_fns.
3056 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
3057 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
3058 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
3059 and fpregset64.
3060
3061 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3062
3063 * s390-tdep.c: Include linux-tdep.h.
3064 (s390_gdbarch_init): Call linux_init_abi.
3065
3066 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3067
3068 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
3069 instead of printing "Thread" here.
3070 * linux-tdep.c: Include inferior.h.
3071 (linux_core_pid_to_str): New.
3072 (linux_init_abi): New.
3073 * linux-tdep.h (linux_init_abi): Declare.
3074 * alpha-linux-tdep.c: Include linux-tdep.h.
3075 (alpha_linux_init_abi): Call linux_init_abi.
3076 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
3077 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
3078 * frv-linux-tdep.c: Include linux-tdep.h
3079 (frv_linux_init_abi): Call linux_init_abi.
3080 * hppa-linux-tdep.c: Include linux-tdep.h
3081 (hppa_linux_init_abi): Call linux_init_abi.
3082 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
3083 * ia64-linux-tdep.c: Include linux-tdep.h.
3084 (ia64_linux_init_abi): Call linux_init_abi.
3085 * m32r-linux-tdep.c: Include linux-tdep.h.
3086 (m32r_linux_init_abi): Call linux_init_abi.
3087 * m68klinux-tdep.c: Include linux-tdep.h.
3088 (m68k_linux_init_abi): Call linux_init_abi.
3089 * microblaze-linux-tdep.c: Include linux-tdep.h.
3090 (microblaze_linux_init_abi): Call linux_init_abi.
3091 * mips-linux-tdep.c: Include linux-tdep.h.
3092 (mips_linux_init_abi): Call linux_init_abi.
3093 * mn10300-linux-tdep.c: Include linux-tdep.h.
3094 (am33_linux_init_osabi): Call linux_init_abi. Rename the
3095 'gdbinfo' parameter to 'info'.
3096 * ppc-linux-tdep.c: Include linux-tdep.h.
3097 (ppc_linux_init_abi): Call linux_init_abi.
3098 * sh-linux-tdep.c: Include linux-tdep.h.
3099 (sh_linux_init_abi): Call linux_init_abi.
3100 * sparc-linux-tdep.c: Include linux-tdep.h.
3101 (sparc32_linux_init_abi): Call linux_init_abi.
3102 * sparc64-linux-tdep.c: Include linux-tdep.h.
3103 (sparc64_linux_init_abi): Call linux_init_abi.
3104 * xtensa-linux-tdep.c: Include linux-tdep.h.
3105 (xtensa_linux_init_abi): Call linux_init_abi.
3106 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
3107 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
3108 callback.
3109
3110 2010-08-03 Doug Evans <dje@google.com>
3111
3112 * breakpoint.c (bpdisp_text): Constify bpdisps.
3113 * solib-svr4.c (solib_break_names): Constify.
3114 (bkpt_names, main_name_list): Constify.
3115 (match_main): Constify soname arg.
3116 (bfd_lookup_symbol): Remove unnecessary forward decl.
3117 Constify symname arg.
3118 (enable_break): Constify bkpt_namep.
3119 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3120 (symtab_symbol_info): Constify classnames.
3121
3122 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3123
3124 * NEWS: Document Python value inferior function calls.
3125
3126 2010-08-02 Doug Evans <dje@google.com>
3127
3128 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3129
3130 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3131
3132 * linux-thread-db.c (libthread_db_debug): New variable.
3133 (thread_db_find_new_threads_silently): Control verbosity with it.
3134 (try_thread_db_load_1, try_thread_db_load): Likewise.
3135 (find_new_threads_once): Likewise.
3136 (_initialize_thread_db): Set/show it.
3137
3138 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3139
3140 * common/signals.c (signals): Move the content to signals.def.
3141 Include it. Remove the INDENT comments.
3142
3143 2010-07-30 Tom Tromey <tromey@redhat.com>
3144
3145 * Makefile.in (install-only): Install gdb-add-index.
3146 * gdb-add-index.sh: New file.
3147
3148 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3149
3150 * MAINTAINERS: Add myself for write after approval privileges.
3151
3152 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3153
3154 * symfile.c (addr_section_name): New function.
3155 (addrs_section_compar): Use it.
3156 (addr_info_make_relative): Use it. Move variable sect_name into a more
3157 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3158
3159 2010-07-30 Tom Tromey <tromey@redhat.com>
3160
3161 * configure: Rebuild.
3162 * configure.ac: Add missing case for Python 2.7.
3163
3164 2010-07-29 DJ Delorie <dj@redhat.com>
3165
3166 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3167 conditions.
3168
3169 2010-07-29 Pedro Alves <pedro@codesourcery.com>
3170
3171 * PROBLEMS: Remove mention of all problems.
3172
3173 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3174
3175 PR build/11848
3176 * configure.ac: Check for wresize.
3177 * configure, config.in: Regenerate.
3178 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3179 with HAVE_WRESIZE.
3180
3181 2010-07-28 Tom Tromey <tromey@redhat.com>
3182
3183 PR python/11060:
3184 * python/py-type.c (typy_legacy_template_argument): New function,
3185 extracted from typy_template_argument.
3186 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3187 value when needed.
3188
3189 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3190
3191 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3192
3193 2010-07-27 Tom Tromey <tromey@redhat.com>
3194
3195 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3196
3197 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3198
3199 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3200 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3201
3202 2010-07-28 Tom Tromey <tromey@redhat.com>
3203
3204 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3205
3206 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3207
3208 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3209 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3210
3211 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3212
3213 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3214 down, just before the block that parse the breakpoint addr_string.
3215
3216 2010-07-28 Tom Tromey <tromey@redhat.com>
3217
3218 PR c++/9946:
3219 * symfile.c (reread_symbols): Clear template_symbols.
3220 * symtab.h (struct symbol) <is_cplus_template_function>: New
3221 field.
3222 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3223 (struct template_symbol): New.
3224 * symtab.c (lookup_symbol_aux_local): Use
3225 cp_lookup_symbol_imports_or_template.
3226 * objfiles.h (struct objfile) <template_symbols>: New field.
3227 * objfiles.c (relocate_one_symbol): New function.
3228 (objfile_relocate1): Use it. Relocate isolated symbols.
3229 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3230 template_arguments>: New fields.
3231 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3232 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3233 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3234 (lookup_typename): Update.
3235 * gdbtypes.c (lookup_typename): Constify "block" argument.
3236 * dwarf2read.c: Include vec.h.
3237 (symbolp): New typedef.
3238 (read_func_scope): Read template arguments. Allocate a
3239 template_symbol when needed.
3240 (read_structure_type): Read template arguments.
3241 (new_symbol_full): New function, from new_symbol. Handle
3242 DW_TAG_template_type_param and DW_TAG_template_value_param.
3243 (new_symbol): Rewrite as wrapper.
3244 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3245 * cp-namespace.c: Include language.h.
3246 (search_symbol_list): New function.
3247 (cp_lookup_symbol_imports_or_template): Likewise.
3248
3249 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3250
3251 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3252 the command window to the new size and position.
3253
3254 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3255
3256 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3257 coordinates.
3258
3259 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3260
3261 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3262 after a detecting a resize.
3263 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3264 call.
3265
3266 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3267
3268 * configure.ac: Check for resize_term.
3269 * configure, config.in: Regenerate.
3270
3271 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3272
3273 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3274
3275 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3276
3277 * dwarf2read.c (read_string): Rename to ...
3278 (read_direct_string): ... this.
3279 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3280 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3281
3282 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3283
3284 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3285 (count_events_callback, select_event_lwp_callback)
3286 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3287
3288 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3289
3290 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3291 (_initialize_ia64_linux_nat): Install it.
3292 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3293 (linux_nat_set_status_is_event): New.
3294 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3295 cancel_breakpoints_callback, linux_nat_filter_event)
3296 (linux_nat_wait_1): Use linux_nat_status_is_event.
3297 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3298
3299 2010-07-27 Tom Tromey <tromey@redhat.com>
3300
3301 * NEWS: Mention labels, .gdb_index.
3302
3303 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3304
3305 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3306 "start,+length" form of arguments.
3307 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3308 since GDB 7.1"; and merge two separated paragraphs of disassemble
3309 description in "Changes in GDB 7.0".
3310
3311 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3312
3313 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3314 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3315 (fputs_maybe_filtered): Do not do filtering also on
3316 ! INPUT_FROM_TERMINAL_P.
3317
3318 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3319
3320 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3321 in warning message.
3322
3323 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3324
3325 * python/py-value.c (valpy_call): New Function.
3326
3327 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3328
3329 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3330 types_list_elements variables.
3331
3332 2010-07-26 Tom Tromey <tromey@redhat.com>
3333
3334 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3335 TLS with DW_OP_const4u or DW_OP_const8u.
3336
3337 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3338
3339 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3340 VSX registers contents.
3341
3342 2010-07-26 Jerome Guitton <guitton@adacore.com>
3343
3344 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3345 its adress is null. Add comment to explain why.
3346 (new_symbol): Ditto.
3347
3348 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3349
3350 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3351 the host signal first.
3352
3353 2010-07-23 Tom Tromey <tromey@redhat.com>
3354
3355 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3356 type_comp_units>: New fields.
3357 (dw2_get_cu): New function.
3358 (create_cus_from_index): Remove unused argument.
3359 (create_signatured_type_hash_from_index): New function.
3360 (create_addrmap_from_index): Update.
3361 (dwarf2_read_index): Handle version 2.
3362 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3363 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3364 (dw2_print_stats, dw2_expand_all_symtabs)
3365 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3366 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3367 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3368 (allocate_signatured_type_hash_table): New function.
3369 (add_signatured_type_cu_to_list): Likewise.
3370 (create_debug_types_hash_table): Use them. Set type_comp_units.
3371 (read_signatured_type): Ensure section data is available.
3372 (add_address_entry): Don't record empty ranges.
3373 (struct signatured_type_index_data): New.
3374 (write_one_signatured_type): New function.
3375 (write_psymtabs_to_index): Write type CUs.
3376 (save_gdb_index_command): Update comment.
3377 (process_type_comp_unit): Move inititalization of
3378 from_debug_types...
3379 (create_debug_types_hash_table): ... here.
3380
3381 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3382
3383 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3384 cleanup and generating of gdb script to it.
3385 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3386 and terminal size. Convert $tmpfile to a series of -ex-es.
3387
3388 2010-07-23 Keith Seitz <keiths@redhat.com>
3389
3390 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3391 hook for STATIC_BLOCK types, too.
3392
3393 2010-07-23 Keith Seitz <keiths@redhat.com>
3394
3395 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3396 and vector definition.
3397
3398 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3399
3400 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3401
3402 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3403
3404 * dwarf2read.c: Include completer.h.
3405 (save_gdb_index_command): Use matching usage command name.
3406 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3407 Set filename_completer for it.
3408
3409 2010-07-22 Tom Tromey <tromey@redhat.com>
3410
3411 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3412 type signature's per-CU data.
3413
3414 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3415
3416 * NEWS: Mention target reported shared libraries support by
3417 default.
3418
3419 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3420
3421 PR symtab/11827
3422
3423 Revert:
3424 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3425 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3426 and DW_TAG_volatile_type.
3427 (new_symbol): Likewise.
3428
3429 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3430
3431 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3432 function symbols before overload resolution.
3433
3434 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3435
3436 * breakpoint.c (bptype_string): New, abstracted out from
3437 print_one_breakpoint_location.
3438 (print_one_breakpoint_location): Adjust.
3439 (breakpoint_1): Adjust the type column width dynamically.
3440
3441 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3442
3443 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3444 a gdb_assert call, new comment.
3445
3446 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3447
3448 * linux-nat.c (linux_handle_extended_wait): Handle case when
3449 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3450
3451 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3452
3453 Code cleanup.
3454 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3455 linux_nat_wait_1. Use always LP->STATUS afterwards.
3456
3457 2010-07-20 Hui Zhu <teawater@gmail.com>
3458
3459 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3460 (inf_ptrace_attach): Ditto.
3461
3462 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3463
3464 Make core files the process_stratum.
3465 * corefile.c (core_target): New variable.
3466 (core_file_command): Remove variable t, use core_target.
3467 * corelow.c (core_ops): Make it static.
3468 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3469 * defs.h (make_cleanup_unpush_target): New prototype.
3470 * gdbarch.h: Regenerate.
3471 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3472 * gdbcore.h (core_target): New declaration.
3473 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3474 variables ops_already_pushed and back_to. Use push_target,
3475 make_cleanup_unpush_target and discard_cleanups calls.
3476 * record.c (record_open): Replace core_stratum by a core_bfd check.
3477 * target.c (target_is_pushed): New function.
3478 (find_core_target): Remove.
3479 * target.h (enum strata) <core_stratum>: Remove.
3480 (target_is_pushed): New declaration.
3481 (find_core_target): Remove declaration.
3482 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3483 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3484
3485 2010-07-19 Hui Zhu <teawater@gmail.com>
3486
3487 * breakpoint.c (single_step_breakpoints_inserted): New
3488 function.
3489 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3490 * infrun.c (maybe_software_singlestep): Add check code.
3491 * record.c (record_resume): Add code for software single step.
3492 (record_wait): Ditto.
3493
3494 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3495
3496 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3497 a more inner block. Remove its unused declaration initializer.
3498
3499 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3500
3501 * NEWS: Mention support for the new ptrace interface and hardware
3502 accelerated watchpoint conditions on powerpc-linux.
3503
3504 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3505
3506 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3507 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3508 and host_address_to_string() and %s for pointers.
3509 (debug_to_remove_breakpoint): Likewise.
3510 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3511 (debug_to_can_accel_watchpoint_condition): Likewise.
3512 (debug_to_stopped_data_address): Likewise.
3513 (debug_to_watchpoint_addr_within_range): Likewise.
3514 (debug_to_insert_hw_breakpoint): Likewise.
3515 (debug_to_remove_hw_breakpoint): Likewise.
3516 (debug_to_insert_watchpoint): Likewise.
3517 (debug_to_remove_watchpoint): Likewise.
3518
3519 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3520
3521 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3522 argument.
3523 (cplus_specific): New struct.
3524 * symtab.c (symbol_set_demangled_name): Updated.
3525 Use cplus_specific for cplus symbols.
3526 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3527 struct for cplus symbols.
3528 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3529 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3530 * symtab.c (symbol_init_cplus_specific): New function.
3531
3532 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3533
3534 * symtab.h (symbol_set_demangled_name): New function.
3535 (symbol_get_demangled_name): New function.
3536 * symtab.c (symbol_set_demangled_name): New function.
3537 (symbol_get_demangled_name): New function.
3538 (symbol_init_language_specific): Use demangled_name setter and getter.
3539 (symbol_set_names): Ditto.
3540 (symbol_natural_name): Ditto.
3541 (symbol_demangled_name): Ditto.
3542 * dwarf2read.c (new_symbol): Ditto.
3543
3544 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3545
3546 * symtab.h: Renamed cplus_specific to mangled_lang.
3547 * symtab.c (symbol_init_language_specific): Updated.
3548 (symbol_set_names): Updated.
3549 (symbol_natural_name): Updated.
3550 (symbol_demangled_name): Updated.
3551 * ada-lang.c (ada_decode_symbol): Updated.
3552 * dwarf2read.c (new_symbol): Updated.
3553
3554 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3555
3556 * valops.c (value_assign): Do not call to value_coerce_to_target.
3557 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3558
3559 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3560
3561 * MAINTAINERS: Add myself for write after approval privileges.
3562
3563 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3564
3565 * c-valprint.c (c_val_print): Add embedded_offset to address in
3566 call to val_print_array_elements.
3567
3568 2010-07-13 Tom Tromey <tromey@redhat.com>
3569
3570 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3571
3572 2010-07-13 Tom Tromey <tromey@redhat.com>
3573
3574 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3575 objfile.
3576
3577 2010-07-13 Tom Tromey <tromey@redhat.com>
3578
3579 * symfile.c (set_initial_language): Update.
3580 (deduce_language_from_filename): Argument type now const.
3581 * symtab.h (find_main_filename): Update.
3582 (deduce_language_from_filename): Update.
3583 * symtab.c (find_main_filename): Make result const.
3584 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3585 * psymtab.c (find_symbol_file_from_partial): Change return type.
3586 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3587 Make result const.
3588
3589 2010-07-13 Tom Tromey <tromey@redhat.com>
3590
3591 * breakpoint.c (save_cmdlist): No longer static.
3592 * gdbcmd.h (save_cmdlist): Declare.
3593 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3594 OBJF_READNOW on objfile if readnow_symbol_files.
3595 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3596 (elf_sym_fns_gdb_index): New global.
3597 * dwarf2read.c: Include exceptions.h.
3598 (offset_type): New.
3599 (struct mapped_index): New.
3600 (dwarf2_per_cu_data_ptr): New typedef.
3601 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3602 New fields.
3603 (GDB_INDEX_SECTION): New define.
3604 (struct dwarf2_per_cu_quick_data): New.
3605 (struct dwarf2_per_cu_data) <objfile>: New field.
3606 <psymtab>: Removed.
3607 <v>: New field.
3608 (byte_swap): New function.
3609 (MAYBE_SWAP): New macro.
3610 (INDEX_SUFFIX): New macro.
3611 (dw2_do_instantiate_symtab): New function.
3612 (dw2_instantiate_symtab): Likewise.
3613 (create_cus_from_index): Likewise.
3614 (create_addrmap_from_index): Likewise.
3615 (mapped_index_string_hash): Likewise.
3616 (find_slot_in_mapped_hash): Likewise.
3617 (dwarf2_read_index): Likewise.
3618 (dw2_setup): Likewise.
3619 (dw2_require_line_header): Likewise.
3620 (dw2_require_full_path): Likewise.
3621 (dw2_find_last_source_symtab): Likewise.
3622 (dw2_forget_cached_source_info): Likewise.
3623 (dw2_lookup_symtab): Likewise.
3624 (dw2_lookup_symbol): Likewise.
3625 (dw2_do_expand_symtabs_matching): Likewise.
3626 (dw2_pre_expand_symtabs_matching): Likewise.
3627 (dw2_print_stats): Likewise.
3628 (dw2_dump): Likewise.
3629 (dw2_relocate): Likewise.
3630 (dw2_expand_symtabs_for_function): Likewise.
3631 (dw2_expand_all_symtabs): Likewise.
3632 (dw2_expand_symtabs_with_filename): Likewise.
3633 (dw2_find_symbol_file): Likewise.
3634 (dw2_map_ada_symtabs): Likewise.
3635 (dw2_expand_symtabs_matching): Likewise.
3636 (dw2_find_pc_sect_symtab): Likewise.
3637 (dw2_map_symbol_names): Likewise.
3638 (dw2_map_symbol_filenames): Likewise.
3639 (dw2_has_symbols): Likewise.
3640 (dwarf2_gdb_index_functions): New global.
3641 (dwarf2_initialize_objfile): New function.
3642 (process_psymtab_comp_unit): Update.
3643 (add_partial_subprogram): Likewise.
3644 (dwarf2_psymtab_to_symtab): Likewise.
3645 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3646 (process_full_comp_unit): Update.
3647 (find_file_and_directory): New function.
3648 (read_file_scope): Use find_file_and_directory.
3649 (dwarf2_per_cu_objfile): Update.
3650 (dwarf2_per_cu_addr_size): Update.
3651 (dwarf2_per_cu_offset_size): Update.
3652 (dwarf2_free_objfile): Free the index, if needed.
3653 (dwarf2_per_objfile_free): Unmap the index, if needed.
3654 (struct strtab_entry): New.
3655 (hash_strtab_entry): New function.
3656 (eq_strtab_entry): Likewise.
3657 (create_strtab): Likewise.
3658 (add_string): Likewise.
3659 (struct symtab_index_entry): New.
3660 (struct mapped_symtab): New.
3661 (hash_symtab_entry): New function.
3662 (eq_symtab_entry): Likewise.
3663 (delete_symtab_entry): Likewise.
3664 (create_index_table): Likewise.
3665 (create_mapped_symtab): Likewise.
3666 (cleanup_mapped_symtab): Likewise.
3667 (find_slot): Likewise.
3668 (hash_expand): Likewise.
3669 (add_index_entry): Likewise.
3670 (add_indices_to_cpool): Likewise.
3671 (write_hash_table): Likewise.
3672 (add_address_entry): Likewise.
3673 (write_psymbols): Likewise.
3674 (write_obstack): Likewise.
3675 (unlink_if_set): Likewise.
3676 (write_psymtabs_to_index): Likewise.
3677 (save_gdb_index_command): Likewise.
3678 (_initialize_dwarf2_read): Install "save gdb-index"
3679 command.
3680 (create_all_comp_units): Initialize 'objfile' field of CU.
3681 (dwarf2_locate_sections): Check for .gdb_index.
3682 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3683 * symfile.h (dwarf2_initialize_objfile): Declare.
3684
3685 2010-07-13 Tom Tromey <tromey@redhat.com>
3686
3687 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3688 (basic_lookup_transparent_type): Likewise.
3689 * symfile.h (struct quick_symbol_functions)
3690 <pre_expand_symtabs_matching>: New field.
3691 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3692 (psym_functions): Update.
3693
3694 2010-07-13 Tom Tromey <tromey@redhat.com>
3695
3696 PR breakpoints/8357:
3697 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3698 * linespec.c (decode_line_1): Update comment. Call decode_label.
3699 (decode_label): New function.
3700 (symbol_found): Handle LOC_LABEL.
3701 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3702 domain. Call add_symbol_to_list.
3703
3704 2010-07-13 Tom Tromey <tromey@redhat.com>
3705
3706 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3707 * dwarf2loc.c (find_location_expression): Use
3708 dwarf2_per_cu_text_offset.
3709 (dwarf2_evaluate_loc_desc): Likewise.
3710 (dwarf2_loc_desc_needs_frame): Likewise.
3711 (compile_dwarf_to_ax): Likewise.
3712 (loclist_describe_location): Likewise.
3713 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3714 (dwarf2_per_cu_objfile): Update comment.
3715
3716 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3717
3718 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3719 * p-lang.c (pascal_printstr): Likewise.
3720
3721 2010-07-09 Tom Tromey <tromey@redhat.com>
3722
3723 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3724 'hint' if it is NULL.
3725
3726 2010-07-09 Hui Zhu <teawater@gmail.com>
3727
3728 * source.c (print_source_lines_base): Add check for noprint.
3729
3730 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3731
3732 * python/python-config.py: Resync with Python 2.7 version of this
3733 script.
3734
3735 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3736
3737 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3738
3739 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3740
3741 * NEWS: Create a new section for the next release branch.
3742 Rename the section of the current branch, now that it has
3743 been cut.
3744
3745 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3746
3747 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3748 * version.in: Bump version to 7.2.50.20100707-cvs.
3749
3750 2010-07-07 Tom Tromey <tromey@redhat.com>
3751
3752 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3753 LOC_COMPUTED symbol.
3754 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3755 (dwarf2_loc_desc_needs_frame): Likewise.
3756 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3757 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3758 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3759 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3760 'offset' argument.
3761 (struct dwarf2_frame_cache) <text_offset>: New field.
3762 (dwarf2_frame_cache): Set new field.
3763 (dwarf2_frame_prev_register): Update.
3764 (dwarf2_frame_sniffer): Update.
3765 (dwarf2_frame_base_sniffer): Update.
3766 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3767
3768 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3769 Thiago Jung Bauermann <bauerman@br.ibm.com>
3770
3771 Support for hw accelerated condition watchpoints in booke powerpc.
3772
3773 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3774 and move to eval.c. Change callers.
3775 (insert_bp_location): Pass watchpoint condition in
3776 target_insert_watchpoint.
3777 (remove_breakpoint_1) Pass watchpoint condition in
3778 target_remove_watchpoint.
3779 (watchpoint_locations_match): Call
3780 target_can_accel_watchpoint_condition.
3781 * eval.c: Include wrapper.h.
3782 (fetch_subexp_value): Moved from breakpoint.c.
3783 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3784 Formatting fix.
3785 (can_use_watchpoint_cond_accel): New function.
3786 (calculate_dvc): Likewise.
3787 (num_memory_accesses): Likewise.
3788 (check_condition): Likewise.
3789 (ppc_linux_can_accel_watchpoint_condition): Likewise
3790 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3791 check_condition and calculate_dvc.
3792 (ppc_linux_remove_watchpoint): Likewise.
3793 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3794 ppc_linux_can_accel_watchpoint_condition
3795 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3796 condition.
3797 (debug_to_remove_watchpoint): Likewise.
3798 (debug_to_can_accel_watchpoint_condition): New function.
3799 (update_current_target): Set to_can_accel_watchpoint_condition.
3800 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3801 * target.h: Add opaque declaration for struct expression.
3802 (struct target_ops) <to_insert_watchpoint>,
3803 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3804 <to_can_accel_watchpoint_condition>: New member.
3805 condition. Update all callers and implementations.
3806 (target_can_accel_watchpoint_condition): New macro.
3807 * value.c (free_value_chain): New function.
3808 * value.h (fetch_subexp_value): New prototype.
3809 (free_value_chain): Likewise.
3810
3811 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3812
3813 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3814 from gdbarch_core_regset_sections also for .reg if present.
3815
3816 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3817 section size for .reg.
3818 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3819 (ppc_linux_vmx_regset_sections): Likewise.
3820 (ppc_linux_fp_regset_sections): Likewise.
3821 (ppc64_linux_vsx_regset_sections): New variable.
3822 (ppc64_linux_vmx_regset_sections): Likewise.
3823 (ppc64_linux_fp_regset_sections): Likewise.
3824 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3825 for current word size.
3826
3827 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3828
3829 * server.c (myresume): Make static.
3830
3831 2010-07-06 Tom Tromey <tromey@redhat.com>
3832
3833 * configure, config.in: Rebuild.
3834 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3835 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3836
3837 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3838
3839 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3840 "clear".
3841
3842 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3843
3844 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3845 * gdbtypes.c (floatformats_ieee_half): New variable.
3846 * doublest.c (floatformat_from_length): Set format to
3847 gdbarch_half_format if length matches.
3848 * gdbarch.sh (half_bit): New architecture method.
3849 (half_format): Likewise.
3850 * gdbarch.h: Regenerate.
3851 * gdbarch.c: Likewise.
3852
3853 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3854 Joel Brobecker <brobecker@adacore.com>
3855
3856 Fix re-run of PIE executable, PR shlibs/11776.
3857 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3858 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3859
3860 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3861 Joel Brobecker <brobecker@adacore.com>
3862
3863 * auxv.c (memory_xfer_auxv): Update attach comment.
3864 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3865 svr4_relocate_main_executable.
3866 (svr4_solib_create_inferior_hook): Make the call to
3867 svr4_relocate_main_executable unconditional.
3868
3869 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3870 Joel Brobecker <brobecker@adacore.com>
3871
3872 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3873
3874 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3875 Joel Brobecker <brobecker@adacore.com>
3876
3877 Fix attaching to PIEs prelinked on the disk after the process was
3878 started.
3879 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3880 Verify it against bfd_get_arch_size. Try to match arbitrary
3881 displacement for the phdrs comparison.
3882
3883 2010-07-02 Tom Tromey <tromey@redhat.com>
3884
3885 PR exp/11780:
3886 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3887 value as optimized-out.
3888
3889 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3890 Thiago Jung Bauermann <bauerman@br.ibm.com>
3891
3892 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3893 represent?" question in comment. Change comment to a proper sentence.
3894
3895 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3896
3897 * c-valprint.c (c_val_print): Fix printing of character vectors.
3898
3899 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3900
3901 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3902 create_breakpoint prototype.
3903
3904 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3905
3906 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3907 usefulness suggestion of multiple breakpoints at same location.
3908
3909 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3910
3911 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3912
3913 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3914
3915 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3916 (loclist_tracepoint_var_ref): Handle optimized out values.
3917
3918 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3919
3920 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3921 unnecessary space in string.
3922 * filesystem.c (_initialize_filesystem): Ditto.
3923 * frame.c (_initialize_frame): Ditto.
3924 * infcmd.c (step_once): Ditto.
3925 * infrun.c (_initialize_infrun): Ditto.
3926 * linux-nat.c (linux_child_follow_fork): Ditto.
3927 * maint.c (maintenance_deprecate): Ditto.
3928 * memattr.c (_initialize_mem): Ditto.
3929 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3930 * monitor.c (monitor_open): Ditto.
3931 * procfs.c (procfs_xfer_memory): Ditto.
3932 * reverse.c (bookmarks_info): Ditto.
3933 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3934 * stack.c (_initialize_stack): Ditto.
3935 * tracepoint.c (_initialize_tracepoint): Ditto.
3936 * xtensa-tdep.c (xtensa_supply_gregset,
3937 xtensa_regset_from_core_section): Ditto.
3938
3939 2010-07-01 Tom Tromey <tromey@redhat.com>
3940
3941 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3942 check_all_valid.
3943 * value.c (value_entirely_optimized_out): Invert result. Update
3944 for new function name.
3945
3946 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3947
3948 Static tracepoints support.
3949
3950 * NEWS: Mention new support for static tracepoints.
3951 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3952 qXfer:statictrace:read.
3953 (New features in the GDB remote stub, GDBserver): Mention static
3954 tracepoints support using an UST based backend.
3955 (New commands): Mention "info static-tracepoint-markers" and
3956 "strace".
3957 * breakpoint.c (is_marker_spec): New.
3958 (is_tracepoint): Handle static tracepoints.
3959 (validate_commands_for_breakpoint): Static tracepoints can't do
3960 while-stepping.
3961 (static_tracepoints_here): New.
3962 (bpstat_what): Handle static tracepoints.
3963 (print_one_breakpoint_location, allocate_bp_location, mention):
3964 Ditto.
3965 (create_breakpoint_sal): Ditto.
3966 (decode_static_tracepoint_spec): New.
3967 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3968 `type_wanted'. Adjust. Handle static tracepoint marker
3969 locations.
3970 (break_command_1): Adjust.
3971 (update_static_tracepoint): New.
3972 (update_breakpoint_locations): Handle static tracepoints.
3973 (breakpoint_re_set_one): Handle static tracepoint marker
3974 locations.
3975 (disable_command, enable_command): Handle static tracepoints.
3976 (trace_command, ftrace_command): Adjust.
3977 (strace_command): New.
3978 (create_tracepoint_from_upload): Adjust.
3979 (save_breakpoints): Handle static tracepoints.
3980 (_initialize_breakpoint): Install the "strace" command.
3981 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3982 (struct breakpoint): New fields static_trace_marker_id and
3983 static_trace_marker_id_idx.
3984 (breakpoints_here_p): Declare.
3985 (create_breakpoint): Adjust.
3986 (static_tracepoints_here): Declare.
3987 * remote.c (struct remote_state) <static_tracepoints>: New field.
3988 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3989 (remote_static_tracepoint_marker_at): New.
3990 (remote_static_tracepoint_markers_by_strid): New.
3991 (remote_static_tracepoint_feature): New.
3992 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3993 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3994 (remote_supports_static_tracepoints): New.
3995 (remote_download_tracepoint): Download static tracepoints.
3996 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3997 remote_static_tracepoint_markers_by_strid.
3998 (_initialize_remote): Install set|show remote static-tracepoints,
3999 and set|show remote read-sdata-object commands.
4000 * target.c (update_current_target): Inherit and default
4001 to_static_tracepoint_marker_at, and
4002 to_static_tracepoint_markers_by_strid.
4003 * target.h (static_tracepoint_marker): Forward declare.
4004 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
4005 (static_tracepoint_marker_p): New typedef.
4006 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
4007 (struct target_ops): New fields to_static_tracepoint_marker_at and
4008 to_static_tracepoint_markers_by_strid.
4009 (target_static_tracepoint_marker_at)
4010 (target_static_tracepoint_markers_by_strid): New.
4011 * tracepoint.c: Include source.h.
4012 (validate_actionline): Handle $_sdata.
4013 (struct collection_list): New field strace_data.
4014 (add_static_trace_data): New.
4015 (clear_collection_list): Clear strace_data.
4016 (stringify_collection_list): Account for a possible static trace
4017 data collection.
4018 (encode_actions_1): Encode an $_sdata collection.
4019 (parse_tracepoint_definition): Handle static tracepoints.
4020 (parse_static_tracepoint_marker_definition): New.
4021 (release_static_tracepoint_marker): New.
4022 (print_one_static_tracepoint_marker): New.
4023 (info_static_tracepoint_markers_command): New.
4024 (sdata_make_value): New.
4025 (_initialize_tracepoint): Create the $_sdata convenience variable.
4026 Add the "info static-tracepoint-markers" command.
4027 Mention $_sdata in the "collect" command's help output.
4028 * tracepoint.h (struct static_tracepoint_marker): New.
4029 (parse_static_tracepoint_marker_definition)
4030 (release_static_tracepoint_marker): Declare.
4031 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4032 * python/py-breakpoint.c (bppy_new): Adjust.
4033
4034 2010-06-30 Joel Brobecker <brobecker@adacore.com>
4035
4036 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
4037 including Python.h.
4038
4039 2010-06-29 Doug Evans <dje@google.com>
4040
4041 PR gdb/11702
4042 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
4043 DW_AT_external is present.
4044
4045 PR gdb/11702
4046 * NEWS: Add entry.
4047 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
4048 create a symbol for the field and record the value.
4049 (new_symbol): Handle DW_TAG_member.
4050 * gdbtypes.c (field_is_static): Remove FIXME.
4051 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
4052 only ignore LOC_CONST symbols that are enums.
4053
4054 * dwarf2read.c: Remove trailing whitespace.
4055
4056 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
4057 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
4058 (struct main_type, field loc): Delete dwarf_block.
4059 (FIELD_DWARF_BLOCK): Delete.
4060 (SET_FIELD_DWARF_BLOCK): Delete.
4061 (TYPE_FIELD_DWARF_BLOCK): Delete.
4062 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
4063 Update.
4064
4065 2010-06-29 Hui Zhu <teawater@gmail.com>
4066
4067 * record.c (set_record_pic_cmdlist,
4068 show_record_pic_cmdlist): New variables.
4069 (set_record_pic_command,
4070 show_record_pic_command): New functions.
4071 (record_pic_function, record_pic_line, record_pic_enum,
4072 set_record_pic_type, record_pic_hide_nofunction,
4073 record_pic_hide_nosource, record_pic_hide_same): New variables.
4074 (record_pic_fputs): New function.
4075 (function_list, node_list, edge_list): New struct.
4076 (function_list, node_list, edge_list): New variables.
4077 (record_pic_cleanups, record_pic_node,
4078 record_pic_edge, cmd_record_pic): New functions.
4079 (_initialize_record): Add new commands for record pic.
4080
4081 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4082
4083 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
4084 ALLOCATE_CPLUS_STRUCT_TYPE.
4085
4086 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
4087 Tom Tromey <tromey@redhat.com>
4088 Thiago Jung Bauermann <bauerman@br.ibm.com>
4089
4090 * value.c (pack_unsigned_long): New function.
4091 (value_from_ulongest): New function.
4092 * value.h (value_from_ulongest): Declare.
4093 * python/python.c (_initialize_python): Call
4094 gdbpy_initialize_thread and gdbpy_initialize_inferior.
4095 * python/python-internal.h: Define thread_object.
4096 (gdbpy_inferiors, gdbpy_selected_thread)
4097 (frame_info_to_frame_object, create_thread_object)
4098 (find_thread_object, find_inferior_object)
4099 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
4100 (gdbpy_is_value_object, get_addr_from_python): Declare.
4101 * python/py-value.c (builtin_type_upylong): Define.
4102 (convert_value_from_python): Add logic for ulongest.
4103 (gdbpy_is_value_object): New function.
4104 * python/py-utils.c (get_addr_from_python): New function.
4105 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
4106 (gdbpy_selected_frame): Use PyObject over frame_info.
4107 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
4108 py-infthread.
4109 (SUBDIR_PYTHON_SRCS): Likewise.
4110 (py-inferior.o): New Rule.
4111 (py-infthread.o): New Rule.
4112 * python/py-inferior.c: New File.
4113 * python/py-infthread.c: New File.
4114
4115 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4116
4117 * c-typeprint.c (c_type_print_base): For no fields check include also
4118 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4119 * dwarf2read.c (struct typedef_field_list)
4120 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4121 (dwarf2_add_typedef): New.
4122 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4123 Copy also FI.TYPEDEF_FIELD_LIST.
4124 * gdbtypes.h (struct typedef_field)
4125 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4126 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4127 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4128
4129 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4130
4131 * cp-namespace.c (cp_lookup_nested_type): New variable
4132 concatenated_name. Turn the current return condition into a reverse
4133 one. Call also lookup_static_symbol_aux on the constructed qualified
4134 name.
4135 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4136 other files into a called ...
4137 (lookup_static_symbol_aux): ... new function here.
4138 * symtab.h (lookup_static_symbol_aux): New prototype.
4139 * valops.c (value_maybe_namespace_elt): Call also
4140 lookup_static_symbol_aux if we failed otherwise.
4141
4142 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4143
4144 Fix PR c++/11703 and PR gdb/1448.
4145 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4146 FIRST_ITER check.
4147
4148 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4149
4150 Fix modification of cplus_struct_default.
4151 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4152 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4153 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4154
4155 2010-06-28 Joel Brobecker <brobecker@adacore.com>
4156
4157 * NEWS: Add entry announcing the python directory.
4158
4159 2010-06-28 Tom Tromey <tromey@redhat.com>
4160
4161 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4162
4163 2010-06-28 Doug Evans <dje@google.com>
4164
4165 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4166 All callers updated.
4167
4168 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4169
4170 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4171 obstack_begin after each obstack_free.
4172
4173 2010-06-27 Doug Evans <dje@google.com>
4174
4175 * value.c (value_static_field): Use `switch' instead of `if'.
4176 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4177
4178 * valops.c (search_struct_field): Fix typo in error message.
4179
4180 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4181
4182 * dwarf2expr.c (execute_stack_op): Place preprocessor
4183 directives at the start of the source line.
4184
4185 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4186
4187 * defs.h (make_command_stats_cleanup): Declare.
4188 (set_display_time): Declare.
4189 (set_display_space): Declare.
4190 * event-top.c (command_handler): Use make_command_stats_cleanup.
4191 * main.c (display_time, display_space): Move definitions to utils.c.
4192 (captured_main): Use make_command_stats_cleanup to get start-up
4193 statistics.
4194 Use set_display_time and set_display_space for processing OPT_STATISTICS
4195 case.
4196 * maint.c (maintenance_time_display): Use set_display_time.
4197 (maintenance_space_display): Use set_display_space.
4198 * top.c (execute_command): Remove obsolete 'maint time' code.
4199 (command_loop): Use make_command_stats_cleanup.
4200 * utils.c (struct cmd_stats): Structure for storing initial time
4201 and space usage.
4202 (display_time, display_space): Move definitions here from utils.c.
4203 (set_display_time): New function.
4204 (set_display_space): New function.
4205 (make_command_stats_cleanup): New function.
4206 (report_command_stats): New auxiliary function for
4207 make_command_stats_cleanup.
4208
4209 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4210
4211 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4212 hosts where CORE_ADDR is long long.
4213
4214 2010-06-25 Tom Tromey <tromey@redhat.com>
4215
4216 PR python/10808:
4217 * python/python.c (execute_gdb_command): Add keywords. Accept
4218 "to_string" argument.
4219 (struct restore_ui_file_closure): New.
4220 (restore_ui_file): New function.
4221 (make_cleanup_restore_ui_file): Likewise.
4222 (GdbMethods) <execute>: Update.
4223
4224 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4225
4226 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4227 during inferior call stack frame setup.
4228
4229 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4230
4231 * solib-spu.c: Include "exception.h".
4232 (ocl_program_data_key): New variable.
4233 (append_ocl_sos): New function.
4234 (ocl_enable_break): Likewise.
4235 (spu_current_sos): Call append_ocl_sos.
4236 (spu_solib_loaded): Call ocl_enable_break.
4237 (_initialize_spu_solib): Register ocl_program_data_key.
4238
4239 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4240
4241 * cp-support.c (reset_directive_searched): New function.
4242 (make_symbol_overload_list_using): Prevent recursive calls.
4243
4244 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4245
4246 * printcmd.c (print_variable_and_value): Print error message on
4247 caught exception.
4248
4249 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4250
4251 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4252 of stack values.
4253 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4254 "value" member.
4255 (dwarf_expr_push): Change input type to ULONGEST.
4256 (dwarf_expr_fetch): Change return type to ULONGEST.
4257 (dwarf_expr_fetch_address): Add prototype.
4258 (dwarf2_read_address): Remove prototype.
4259 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4260 Truncate stack values to ctx->addr_size bytes.
4261 (dwarf_expr_fetch): Change return value to ULONGEST.
4262 (dwarf_expr_fetch_address): New function.
4263 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4264 when appropriate. Update for struct dwarf_expr_piece changes.
4265 (dwarf2_read_address): Remove.
4266 (unsigned_address_type): Remove.
4267 (signed_address_type): Remove.
4268 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4269 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4270 values. Perform operations on ULONGEST instead of on GDB values,
4271 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4272 values and DW_OP_deref results as unsigned integers.
4273 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4274 changes.
4275 (write_pieced_value): Likewise.
4276 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4277 dwarf_expr_fetch when appropriate.
4278 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4279 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4280 instead of dwarf_expr_fetch when appropriate.
4281
4282 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4283
4284 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4285
4286 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4287
4288 * python/python.c (_initialize_python): Add new "constant"
4289 PYTHONDIR in gdb module. Insert this path at the head of
4290 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4291 exec its __init__.py script if it exists in that directory.
4292
4293 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4294
4295 * rx-tdep.c (RX_ACC_REGNUM): Define.
4296 (RX_NUM_REGS): Redefine to 26.
4297 (rx_register_name): Add register "acc". Change order of several
4298 registers. Change name of "vct" register to "fintv" to match RX
4299 documentation.
4300 (rx_register_type): Add case for RX_ACC_REGNUM.
4301
4302 2010-06-24 Tom Tromey <tromey@redhat.com>
4303
4304 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4305
4306 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4307 Tom Tromey <tromey@redhat.com>
4308
4309 Fix GDB startup on readonly filesystem.
4310 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4311
4312 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4313 Pedro Alves <pedro@codesourcery.com>
4314
4315 Fix PR 9436.
4316 * breakpoint.c (handle_jit_event): New function.
4317 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4318 jit, err, table and bs_class. New variables shlib_event, jit_event,
4319 this_action and bptype. Change bs_class assignments to this_action
4320 assignments. new unhandled bptype internal error. Move here
4321 shlib_event and jit_event handling from handle_inferior_event.
4322 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4323 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4324 BPSTAT_WHAT_CHECK_JIT.
4325 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4326 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4327 (handle_inferior_event): Reinitialize frame and gdbarch after
4328 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4329 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4330 gdbarch when frame gets reinitialized.
4331
4332 2010-06-24 Hui Zhu <teawater@gmail.com>
4333
4334 * printcmd.c (ui_printf): New function.
4335 (printf_command): Call ui_printf.
4336 (_initialize_printcmd): New command "eval".
4337
4338 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4339
4340 * infrun.c (handle_inferior_event): Handle presence of single-step
4341 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4342 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4343 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4344 * breakpoint.c (detach_single_step_breakpoints): New function.
4345 (detach_breakpoints): Call it.
4346 (cancel_single_step_breakpoints): New function.
4347 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4348
4349 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4350 (spu_gdbarch_init): Install it.
4351
4352 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4353
4354 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4355 * configure: Regenerate.
4356
4357 2010-06-22 Hui Zhu <teawater@gmail.com>
4358
4359 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4360 (i386_process_record): Ditto.
4361 * record.c (record_memory_query): New variable.
4362 (_initialize_record): New command "set record memory-query".
4363 * record.h (record_memory_query): New extern.
4364
4365 2010-06-21 Doug Evans <dje@google.com>
4366
4367 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4368 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4369 (i386_syscall_p): Change type of lengthp to int.
4370 (i386_displaced_step_fixup): Handle kernels that run one past a
4371 syscall insn.
4372 * i386-linux-tdep.c (i386_linux_init_abi): Use
4373 i386_displaced_step_copy_insn instead of
4374 simple_displaced_step_copy_insn.
4375
4376 2010-06-21 Tom Tromey <tromey@redhat.com>
4377
4378 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4379 (dwarf_type_encoding_name): Likewise.
4380
4381 2010-06-21 Tom Tromey <tromey@redhat.com>
4382
4383 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4384 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4385 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4386 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4387 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4388 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4389 * dwarf2read.c (tag_type_to_type): Create a new error type on
4390 failure.
4391 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4392 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4393
4394 2010-06-21 Michael Snyder <msnyder@vmware.com>
4395
4396 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4397 not add_abbrev_prefix_cmd, for "enable breakpoints".
4398
4399 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4400
4401 * dwarf2loc.c (find_location_expression): Add relocation offset
4402 to base-address-selection entry base addresses. Read addresses
4403 (and offsets) as signed/unsigned integers, depending on the
4404 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4405 (loclist_describe_location): Likewise.
4406 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4407 unsigned integer. Do not call dwarf2_read_address.
4408 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4409
4410 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4411
4412 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4413 value instead of hard-coded SPU_LS_SIZE.
4414 (spu_software_single_step): Likewise.
4415 * spu-tdep.h (SPU_LS_SIZE): Remove.
4416
4417 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4418
4419 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4420 limit on local store memory accesses.
4421 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4422 * spu-tdep.c (spu_lslr): Remove.
4423 (spu_pointer_to_address): Do not truncate addresses.
4424 (spu_integer_to_address): Likewise.
4425 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4426 * spu-tdep.h: Add comments.
4427 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4428 (SPU_OVERLAY_LMA): Define.
4429
4430 2010-06-18 Stan Shebs <stan@codesourcery.com>
4431
4432 * osdata.c (get_osdata): Warn separately if target does not report
4433 type list.
4434 (info_osdata_command): Allow empty type, report error if target
4435 does not return available types of OS data.
4436 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4437 types if no annex supplied.
4438
4439 * thread.c (thread_id_make_value): Make a value representing the
4440 current thread.
4441 (_initialize_thread): Create $_thread.
4442
4443 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4444
4445 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4446 last local variable declaration. No real code change.
4447
4448 2010-06-17 Tom Tromey <tromey@redhat.com>
4449
4450 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4451 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4452 temporary obstack.
4453
4454 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4455 Jan Kratochvil <jan.kratochvil@redhat.com>
4456
4457 * breakpoint.c: Include parser-defs.h.
4458 (watchpoint_exp_is_const): New function.
4459 (watch_command_1): Call watchpoint_exp_is_const to check
4460 if the expression is constant.
4461
4462 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4463
4464 * configure.ac: Check for RDYNAMIC also for cross builds.
4465 * configure: Regenerate.
4466
4467 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4468
4469 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4470 (SFILES): Remove solib-null.c, add solib-target.c.
4471 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4472 (ALLDEPFILES): Remove solib-target.c.
4473 * solib-target.c (_initialize_solib_target): Set
4474 current_target_so_ops to solib_target_so_ops if not already set.
4475 * solib-null.c: Delete.
4476
4477 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4478
4479 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4480 bytecode.
4481
4482 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4483
4484 * cp-valprint.c (cp_print_static_field): Members of
4485 dont_print_stat_array_obstack are of type "struct type *".
4486 (_initialize_cp_valprint): Likewise.
4487
4488 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4489
4490 * frame.c (frame_register_unwind): Do not access contents
4491 of "optimized out" unwound register value.
4492
4493 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4494
4495 * ada-lang.h (ada_print_type): Make varstring const.
4496 * ada-typeprint.c (print_func_type): Make name const.
4497 (ada_print_type): Make varstring const.
4498 * c-lang.h (c_print_type): Make varstring const.
4499 * c-typeprint.c (c_print_type): Likewise.
4500 * f-lang.h (f_print_type): Likewise.
4501 * f-typeprint.c (f_print_type): Likewise.
4502 * jv-lang.h (java_print_type): Likewise.
4503 * jv-typeprint.c (java_print_type): Likewise.
4504 * language.c (unk_lang_print_type): Likewise.
4505 * language.h (struct language_defn) <la_print_type>: Likewise.
4506 * m2-lang.h (m2_print_type): Likewise.
4507 * m2-typeprint.c (m2_print_type): Likewise.
4508 * p-lang.h (pascal_print_type): Likewise.
4509 * p-typeprint.c (pascal_print_type): Likewise.
4510
4511 2010-06-11 Stan Shebs <stan@codesourcery.com>
4512
4513 Add per-operation permission flags.
4514
4515 * target.h (struct target_ops): New method to_set_permissions.
4516 (target_set_permissions): New macro.
4517 (target_insert_breakpoint): Change macro to function.
4518 (target_remove_breakpoint): Ditto.
4519 (target_stop): Ditto.
4520 (may_write_registers): Declare.
4521 (may_write_memory): Declare.
4522 (may_insert_breakpoints): Declare.
4523 (may_insert_tracepoints): Declare.
4524 (may_insert_fast_tracepoints): Declare.
4525 (may_stop): Declare.
4526 * target.c (may_write_registers, may_write_registers_1): New globals.
4527 (may_write_memory, may_write_memory_1): New globals.
4528 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4529 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4530 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4531 globals.
4532 (may_stop, may_stop_1): New global.
4533 (target_xfer_partial): Test for write permission.
4534 (target_store_registers): Ditto.
4535 (target_insert_breakpoint): New function.
4536 (target_remove_breakpoint): New function.
4537 (target_stop): New function.
4538 (_initialize_targets): Add new set/show variables.
4539 (set_write_memory_permission): New function.
4540 (update_target_permissions): New function.
4541 (set_target_permissions): New function.
4542 (update_current_target): Default to_set_permissions.
4543 (_initialize_targets): Use new globals and setter function.
4544 * tracepoint.c (start_tracing): Test for permission.
4545 * inferior.h (update_observer_mode): Declare.
4546 * infrun.c (non_stop_1): Define earlier.
4547 (observer_mode, observer_mode_1): New globals.
4548 (set_observer_mode, show_observer_mode): New functions.
4549 (update_observer_mode): New function.
4550 (_initialize_infrun): Define "set observer" command.
4551 * remote.c (PACKET_QAllow): New optional packet.
4552 (remote_protocol_features): Add QAllow.
4553 (remote_set_permissions): New function.
4554 (remote_start_remote): Call it.
4555 (init_remote_ops): Add it to target vector.
4556 (_initialize_remote): Add config command for QAllow.
4557
4558 2010-06-11 Tom Tromey <tromey@redhat.com>
4559
4560 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4561 DW_AT_vtable_elem_location even when GCC extension is seen.
4562
4563 2010-06-11 Tom Tromey <tromey@redhat.com>
4564
4565 PR gdb/9977, PR exp/11636:
4566 * value.h (value_offset): Update.
4567 (struct lval_funcs) <check_validity>: New field.
4568 <copy_closure>: Make argument const.
4569 (value_computed_closure): Update.
4570 (value_contents_for_printing): Declare.
4571 (value_bits_valid): Likewise.
4572 (val_print): Likewise.
4573 (set_value_component_location): Update.
4574 (value_entirely_optimized_out): Declare.
4575 * value.c (value_offset): Argument now const.
4576 (require_not_optimized_out): New function.
4577 (value_contents_for_printing): New function.
4578 (value_contents_all): Call require_not_optimized_out.
4579 (value_contents): Likewise.
4580 (value_bits_valid): New function.
4581 (value_computed_closure): Argument now const.
4582 (set_value_component_location): Make 'whole' argument const.
4583 (value_entirely_optimized_out): New function.
4584 (value_bitsize): Argument now 'const'.
4585 (value_bitpos): Likewise.
4586 (value_type): Likewise.
4587 * valprint.h (val_print_array_elements): Update.
4588 * valprint.c (val_print): Add 'val' argument. Use
4589 valprint_check_validity.
4590 (valprint_check_validity): New function.
4591 (value_check_printable): Use value_entirely_optimized_out.
4592 (common_val_print): Update.
4593 (value_print): Likewise.
4594 (val_print_array_elements): Add 'val' argument.
4595 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4596 value_bits_valid. Reinit frame cache for lval_computed.
4597 * sh64-tdep.c (sh64_do_register): Update.
4598 * scm-valprint.c (scm_val_print): Add 'val' argument.
4599 * scm-lang.h (scm_val_print): Update.
4600 * python/python.h (apply_val_pretty_printer): Update.
4601 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4602 argument. Call set_value_component_location.
4603 * printcmd.c (print_scalar_formatted): Update.
4604 * p-valprint.c (pascal_val_print): Add 'val' argument.
4605 (pascal_object_print_value_fields): Likewise.
4606 (pascal_object_print_value): Likewise.
4607 (pascal_object_print_static_field): Update.
4608 * p-lang.h (pascal_val_print): Update.
4609 (pascal_object_print_value_fields): Update.
4610 * mt-tdep.c (mt_registers_info): Update.
4611 * mi/mi-main.c (get_register): Update.
4612 (mi_cmd_data_evaluate_expression): Use common_val_print.
4613 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4614 (m2_print_unbounded_array): Likewise.
4615 (m2_val_print): Likewise.
4616 * m2-lang.h (m2_val_print): Update.
4617 * language.h (struct language_defn) <la_val_print>: Add 'val'
4618 argument.
4619 (LA_VAL_PRINT): Likewise.
4620 * language.c (unk_lang_val_print): Add 'val' argument.
4621 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4622 (java_val_print): Likewise.
4623 * jv-lang.h (java_val_print): Add 'val' argument.
4624 * infcmd.c (default_print_registers_info): Update.
4625 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4626 (f77_print_array): Likewise.
4627 (f_val_print): Likewise.
4628 * f-lang.h (f_val_print): Add 'val' argument.
4629 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4630 value_bitpos.
4631 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4632 set_value_optimized_out.
4633 (write_pieced_value): Use value_bitsize and value_bitpos.
4634 <default>: Don't exit loop.
4635 (check_pieced_value_validity): New function.
4636 (pieced_value_funcs): Reference check_pieced_value_validity,
4637 check_pieced_value_invalid.
4638 (copy_pieced_value_closure): Update.
4639 (check_pieced_value_bits): New function.
4640 (check_pieced_value_invalid): New function.
4641 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4642 (d_val_print): Likewise.
4643 * d-lang.h (d_val_print): Update.
4644 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4645 (cp_print_value_fields_rtti): Likewise.
4646 (cp_print_value): Likewise.
4647 (cp_print_static_field): Update.
4648 * c-valprint.c (c_val_print): Add 'val' argument.
4649 (c_value_print): Update.
4650 * c-lang.h (c_val_print): Update.
4651 (cp_print_value_fields): Likewise.
4652 (cp_print_value_fields_rtti): Likewise.
4653 * ada-valprint.c (struct ada_val_print_args): Remove.
4654 (val_print_packed_array_elements): Add 'val' argument.
4655 (ada_val_print): Likewise. Rewrite.
4656 (ada_val_print_stub): Remove.
4657 (ada_val_print_array): Add 'val' argument.
4658 (ada_val_print_1): Likewise.
4659 (print_variant_part): Likewise.
4660 (ada_value_print): Update.
4661 (print_record): Add 'val' argument.
4662 (print_field_values): Likewise.
4663 * ada-lang.h (ada_val_print): Update.
4664
4665 2010-06-11 Tom Tromey <tromey@redhat.com>
4666
4667 * vec.h (VEC_cleanup): New macro.
4668 (DEF_VEC_ALLOC_FUNC_I): Update.
4669 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4670 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4671 * dwarf2loc.c (struct axs_var_loc): Remove.
4672 (unimplemented): New function.
4673 (translate_register): Likewise.
4674 (access_memory): Likewise.
4675 (compile_dwarf_to_ax): Likewise.
4676 (dwarf2_tracepoint_var_loc): Remove.
4677 (dwarf2_tracepoint_var_access): Likewise.
4678 (dwarf2_tracepoint_var_ref): Likewise.
4679 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4680 (loclist_tracepoint_var_ref): Likewise.
4681 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4682 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4683 require_composition. No longer static.
4684 (execute_stack_op): Update.
4685 * ax-gdb.h (trace_kludge): Declare.
4686
4687 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4688
4689 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4690 (should_be_inserted): Return zero also on NULL OWNER.
4691 (breakpoint_program_space_exit): New OWNER comment.
4692 (insert_breakpoint_locations): Extend comment for OWNER.
4693 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4694 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4695 New OWNER comment.
4696 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4697 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4698 (bpstat_check_location): New assert on OWNER.
4699 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4700 and B initializations to the code block. New assert on them.
4701 (print_one_breakpoint_location): New OWNER comment.
4702 (watchpoint_locations_match): Assert on OWNER.
4703 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4704 initializations to the code block. New assert on OWNER.
4705 (set_breakpoint_location_function): New assert on OWNER.
4706 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4707 (bp_location_compare, update_global_location_list)
4708 (update_global_location_list): New OWNER comment.
4709
4710 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4711
4712 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4713
4714 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4715
4716 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4717 (lin_thread_get_thread_signals): Remove prototype.
4718 (GET_THREAD_SIGNALS): Remove.
4719 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4720 * linux-thread-db.c (check_thread_signals): Directly call
4721 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4722
4723 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4724
4725 * gregset.h (GDB_FPXREGSET_T): Remove.
4726 (gdb_fpxregset_t): Likewise.
4727 (supply_fpxregset): Remove prototype.
4728 (fill_fpxregset): Likewise.
4729 * i386-linux-nat.c (supply_fpxregset): Remove.
4730 (fill_fpxregset): Likewise.
4731 (fetch_fpxregs): Inline supply_fpxregset call.
4732 (store_fpxregs): Inline fill_fpxregset call.
4733
4734 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4735 * config/i386/nm-linux.h: Remove file.
4736
4737 2010-06-09 Michael Snyder <msnyder@vmware.com>
4738
4739 * target.c (update_current_target): Fix spelling error in comment.
4740 (target_mourn_inferior): Fix spelling error in error message.
4741
4742 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4743
4744 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4745 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4746
4747 2010-06-08 Michael Snyder <msnyder@vmware.com>
4748
4749 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4750
4751 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4752
4753 * configure.ac <"${have_libpython}" != no>: New workaround of
4754 python#4434.
4755 * configure: Regenerate.
4756
4757 2010-06-08 Hui Zhu <teawater@gmail.com>
4758
4759 * record.c (record_wait): Move signal out of replay code.
4760
4761 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4762
4763 Fix PR 10640.
4764 * dwarf2-frame.c (no_dwarf_call): New function.
4765 (execute_stack_op): Set CTX->DWARF_CALL.
4766 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4767 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4768 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4769 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4770 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4771 (needs_frame_dwarf_call): New function.
4772 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4773 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4774 Update the comment. Move variables die, offset and error call to ...
4775 (follow_die_ref): ... a new function.
4776 (dwarf2_fetch_die_location_block): New function.
4777 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4778
4779 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4780
4781 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4782 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4783 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4784 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4785 this change.
4786 (struct needs_frame_baton): New field per_cu.
4787 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4788 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4789
4790 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4791
4792 * cp-support.c (make_symbol_overload_list_namespace): Only search
4793 static and global blocks.
4794 (make_symbol_overload_list_block): New function.
4795 (make_symbol_overload_list): Separate namespace search from block
4796 search.
4797 (make_symbol_overload_list_qualified): Use
4798 make_symbol_overload_list_block.
4799
4800 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4801
4802 * value.h: Created oload_search_type enum.
4803 (find_overload_match): Use oload_search_type enum.
4804 * valops.c (find_overload_match): Support combined member and
4805 non-member search.
4806 * eval.c (evaluate_subexp_standard): Calls to
4807 find_overload_match now use oload_search_type enum.
4808 (oload_method_static): Verify index is a proper value.
4809 * valarith.c (value_user_defined_cpp_op): Search for and handle
4810 both member and non-member operators.
4811 (value_user_defined_cpp_op): New function.
4812 (value_user_defined_op): New function.
4813 (value_x_unop): Use value_user_defined_op.
4814 (value_x_binop): Ditto.
4815 * cp-support.c (make_symbol_overload_list_using): Added block
4816 iteration.
4817 Add check for namespace aliases and imported declarations.
4818
4819 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4820
4821 * breakpoint.h (owner): Extend the comment.
4822
4823 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4824
4825 Clear stale specific bp_location from former whole breakpoint.
4826 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4827 code ...
4828 (free_bp_location): ... here. Rename there the called function to
4829 bpstat_remove_bp_location_callback.
4830 (bpstat_remove_breakpoint_callback): Rename to ...
4831 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4832 to struct bp_location. Change the called function to
4833 bpstat_remove_bp_location. Create new declaration for the function.
4834 (bpstat_remove_breakpoint): Rename to ...
4835 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4836 code for the new parameter type.
4837
4838 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4839
4840 * README: Make version-agnostic.
4841
4842 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4843
4844 Fix duplicate types for single DIE.
4845 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4846 set_die_type.
4847 (read_array_type): Remove type initialization. Recheck get_die_type
4848 after initial die_type. Move set_die_type before set_descriptive_type.
4849 (read_set_type): New variable domain_type. Recheck get_die_type after
4850 initial die_type. Move attr initialization later.
4851 (read_tag_pointer_type, read_tag_reference_type): New variable
4852 target_type. Recheck get_die_type after initial die_type.
4853 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4854 die_type and die_containing_type.
4855 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4856 Recheck get_die_type after initial die_type.
4857 (read_subrange_type): Recheck get_die_type after initial die_type.
4858 Move set_die_type before set_descriptive_type.
4859 (set_die_type): Extend the function comment. Call complaint if DIE has
4860 some type already set.
4861
4862 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4863
4864 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4865 for current naming of thread groups (iN, not N).
4866
4867 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4868
4869 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4870 * parse.c (operator_length): Likewise.
4871 (operator_length_standard): Likewise.
4872 * parser-defs.h (operator_length): Likewise.
4873 (operator_length_standard): Likewise.
4874 (struct exp_descriptor <operator_length>): Likewise.
4875
4876 2010-06-04 Doug Evans <dje@google.com>
4877
4878 Add support for enabling/disabling individual pretty-printers.
4879 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4880 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4881 * python/python.c (gdbpy_enabled_cst): Define.
4882 (_initialize_python): Initialize gdbpy_enabled_cst.
4883 * NEWS: Add entry.
4884
4885 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4886
4887 * breakpoint.c (update_global_location_list): Fix comment typo.
4888
4889 2010-06-04 Hui Zhu <teawater@gmail.com>
4890
4891 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4892
4893 2010-06-03 Doug Evans <dje@google.com>
4894
4895 * configure.ac: Don't fail if python is unusable when
4896 configured with --with-python=auto.
4897 * configure: Regenerate.
4898
4899 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4900
4901 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4902
4903 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4904
4905 * valprint.h (get_array_bounds): Change low and high parameter types
4906 to LONGEST *.
4907 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4908 compute bounds.
4909 (val_print_array_elements): Adapt to change above.
4910 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4911 * p-valprint.c (pascal_val_print): Likewise.
4912
4913 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4914
4915 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4916 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4917 .F08.
4918
4919 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4920
4921 Support DW_TAG_module as separate namespaces.
4922 * dwarf2read.c (typename_concat): New parameter physname.
4923 (read_module_type): New function and declaration.
4924 (scan_partial_symbols): Scan also DW_TAG_module children.
4925 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4926 to typename_concat backward compatible physname value 0.
4927 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4928 backward compatible physname value 0.
4929 (add_partial_module, read_module): Remove FIXME comment.
4930 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4931 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4932 DIEs under DW_TAG_module.
4933 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4934 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4935 && physname and return there instead of just setting NAME. Extend
4936 the main block for language_fortran. Pass physname parameter to the
4937 typename_concat call.
4938 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4939 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4940 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4941 missing from SYMBOL_SET_NAMES in the language_fortran case.
4942 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4943 variables.
4944 (read_type_die) <DW_TAG_module>: New.
4945 (MAX_SEP_LEN): Increase to 7.
4946 (typename_concat): New parameter physname. New variable lead. Support
4947 also language_fortran.
4948 * f-exp.y (yylex): Consider : also as a symbol name character class.
4949 * f-lang.c: Include cp-support.h.
4950 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4951 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4952 f_word_break_characters and f_make_symbol_completion_list.
4953 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4954 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4955 * symtab.c (symbol_init_language_specific): Support language_fortran.
4956 (symbol_find_demangled_name): New comment on language_fortran.
4957 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4958 for language_fortran.
4959 (lookup_symbol_aux_local): Check imports also for language_fortran.
4960 (default_make_symbol_completion_list): Rename to ...
4961 (default_make_symbol_completion_list_break_on): ... this name. New
4962 parameter break_on, use it.
4963 (default_make_symbol_completion_list): New stub.
4964 * symtab.h (default_make_symbol_completion_list_break_on): New
4965 prototype.
4966
4967 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4968
4969 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4970 to error.
4971
4972 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4973
4974 * dwarf2read.c (typename_concat): Add const to the variable sep.
4975
4976 2010-06-02 Tom Tromey <tromey@redhat.com>
4977
4978 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4979 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4980 type is const. Add 'def' argument. Add missing operators, remove
4981 unhandled ones.
4982 (decode_locdesc): Update.
4983 (dwarf2_always_disassemble): New global.
4984 (show_dwarf2_always_disassemble): New function.
4985 (_initialize_dwarf2_read): Add always-disassemble.
4986 (dwarf2_per_cu_offset_size): New function.
4987 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4988 (piece_end_p): New function.
4989 (locexpr_describe_location_piece): Replace 'size' argument with
4990 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4991 some constants. Remove errors.
4992 (disassemble_dwarf_expression): New function.
4993 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4994 Add 'offset_size' argument.
4995 (loclist_describe_location): Change output formatting.
4996 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4997
4998 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4999
5000 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
5001 anonymous type case.
5002
5003 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
5004
5005 * dwarf2read.c (read_subrange_type): Handle missing base type
5006 according to Dwarf-2 specifications.
5007
5008 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
5009
5010 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
5011 BINOP_EXCL.
5012 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
5013 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
5014 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
5015 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
5016 UNOP_CHMAX, UNOP_CHMIN.
5017 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
5018 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
5019 UNOP_CHMIN>: Remove opcodes.
5020
5021 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
5022
5023 * dwarf2read.c (read_func_scope): Do not complain for
5024 external function if bounds are not found.
5025
5026 2010-06-01 Pedro Alves <pedro@codesourcery.com>
5027
5028 * NEWS: Mention gdbserver fast tracepoints support.
5029
5030 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
5031
5032 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
5033 New macros.
5034 (windows_set_console_info): New function.
5035 (windows_create_inferior): Call windows_set_console_info
5036 if NEW_CONSOLE is true.
5037 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
5038 (_initialize_loadable): Initialize GetConsoleFontSize and
5039 GetCurrentConsoleFont.
5040
5041 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5042
5043 * Makefile.in (RDYNAMIC): New.
5044 (SFILES): Add proc-service.list.
5045 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
5046 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
5047 * config/arm/linux.mh: Likewise.
5048 * config/i386/linux.mh: Likewise.
5049 * config/i386/linux64.mh: Likewise.
5050 * config/ia64/linux.mh: Likewise.
5051 * config/m32r/linux.mh: Likewise.
5052 * config/m68k/linux.mh: Likewise.
5053 * config/mips/linux.mh: Likewise.
5054 * config/pa/linux.mh: Likewise.
5055 * config/powerpc/linux.mh: Likewise.
5056 * config/powerpc/ppc64-linux.mh: Likewise.
5057 * config/s390/s390.mh: Likewise.
5058 * config/sparc/linux.mh: Likewise.
5059 * config/sparc/linux64.mh: Likewise.
5060 * config/xtensa/linux.mh: Likewise.
5061 * configure.ac: New RDYNAMIC on native host and GCC.
5062 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
5063 * configure: Regenerate.
5064 * proc-service.list: New.
5065
5066 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5067
5068 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
5069 CONTENT.
5070
5071 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5072
5073 * linux-nat.c (linux_nat_wait_1): Do not call
5074 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
5075 TARGET_WAITKIND_SIGNALLED.
5076
5077 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5078
5079 * ada-lang.c (ada_inferior_data): New struct.
5080 (ada_inferior_data): New static global.
5081 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
5082 (ada_get_tsd_type): New functions.
5083 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
5084 to look the tsd type up.
5085 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
5086 event. Set ada_inferior_data.
5087
5088 2010-05-27 Pedro Alves <pedro@codesourcery.com>
5089
5090 * remote.c (unpack_varlen_hex): Remove forward declaration.
5091 (remote_console_output): Make static, and add forward declaration.
5092 * remote.h: Drop FIXME comment.
5093 (unpack_varlen_hex): Declare.
5094 (remote_console_output, remote_cisco_objfile_relocate)
5095 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
5096 Delete declarations.
5097 * tracepoint.c: Include "remote.h".
5098 (unpack_varlen_hex): Delete declaration.
5099
5100 2010-05-27 Tom Tromey <tromey@redhat.com>
5101
5102 * dwarf2loc.c (struct piece_closure) <refc>: New field.
5103 (allocate_piece_closure): Initialize refc.
5104 (copy_pieced_value_closure): Use refc.
5105 (free_pieced_value_closure): Likewise.
5106
5107 2010-05-27 Tom Tromey <tromey@redhat.com>
5108
5109 * arm-tdep.c (push_stack_item): 'contents' now const.
5110 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
5111 value_contents_writeable. Introduce new temporary.
5112
5113 2010-05-27 Tom Tromey <tromey@redhat.com>
5114
5115 * findcmd.c (parse_find_args): Use value_contents, not
5116 value_contents_raw.
5117
5118 2010-05-27 Tom Tromey <tromey@redhat.com>
5119
5120 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5121 const. Use value_contents, not value_contents_writeable.
5122
5123 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5124
5125 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5126 by call to value_contents.
5127
5128 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5129
5130 * MAINTAINERS: Add myself for write after approval privileges.
5131
5132 2010-05-26 Doug Evans <dje@google.com>
5133
5134 Allow python to find its files if moved from original location.
5135 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5136 (GDB_AC_WITH_DIR): Call it.
5137 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5138 python installation directory.
5139 * config.in: Regenerate.
5140 * configure: Regenerate.
5141 * defs.h (python_libdir): Declare.
5142 * main.c (python_libdir): Define.
5143 (captured_main): Initialize python_libdir.
5144 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5145 call Py_SetProgramName to make sure python can find its libraries
5146 and modules.
5147
5148 * configure.ac: Try to use python's distutils to fetch compilation
5149 parameters.
5150 * configure: Regenerate.
5151 * python/python-config.py: New file.
5152
5153 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5154
5155 * ser-tcp.c (net_open): Check error return from socket() call by its
5156 equality to -1 not by it being negative.
5157 (net_close): Likewise.
5158
5159 2010-05-26 Pedro Alves <pedro@codesourcery.com>
5160
5161 * NEWS: Mention the `qRelocInsn' feature.
5162 * gdbarch.sh (relocate_instruction): New.
5163 * amd64-tdep.c (rip_relative_offset): New.
5164 (append_insns): New.
5165 (amd64_relocate_instruction): New.
5166 (amd64_init_abi): Install it.
5167 * i386-tdep.c (append_insns): New.
5168 (i386_relocate_instruction): New.
5169 (i386_gdbarch_init): Install it.
5170 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5171 * gdbarch.h, gdbarch.c: Regenerate.
5172
5173 2010-05-26 Tom Tromey <tromey@redhat.com>
5174
5175 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5176 (struct dwarf2_loclist_baton) <data>: Likewise.
5177 * dwarf2loc.c (find_location_expression): Constify return type.
5178 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5179 (dwarf2_loc_desc_needs_frame): Likewise.
5180 (loclist_read_variable): Constify.
5181 (loclist_describe_location): Likewise.
5182 (loclist_tracepoint_var_ref): Likewise.
5183
5184 2010-05-25 Tom Tromey <tromey@redhat.com>
5185
5186 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5187 (dwarf_expr_frame_base_1): Likewise.
5188 (read_pieced_value): Update.
5189 (needs_frame_frame_base): Constify.
5190 (dwarf2_tracepoint_var_loc): Likewise.
5191 (dwarf2_tracepoint_var_access): Likewise.
5192 (locexpr_describe_location_piece): Likewise.
5193 (locexpr_describe_location_1): Likewise.
5194 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5195 Constify.
5196 (data): Now const.
5197 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5198 (dwarf_expr_eval, read_uleb128, read_sleb128)
5199 (dwarf2_read_address): Update.
5200 * dwarf2expr.c (dwarf_expr_eval): Constify.
5201 (read_uleb128): Likewise.
5202 (read_sleb128): Likewise.
5203 (dwarf2_read_address): Likewise.
5204 (require_composition): Likewise.
5205 (execute_stack_op): Likewise.
5206 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5207 "const gdb_byte *".
5208 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5209 Now const.
5210 (no_get_frame_base): Constify.
5211 (execute_stack_op): Likewise.
5212 (execute_cfa_program): Likewise.
5213 (read_encoded_value): Likewise.
5214
5215 2010-05-25 Doug Evans <dje@google.com>
5216
5217 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5218
5219 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5220 * event-loop.c: ... here.
5221 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5222 `error' for clarity.
5223 (tui_getc): Pass correct value for `error' parameter to
5224 tui_readline_output.
5225
5226 Add python gdb.GdbError and gdb.string_to_argv.
5227 * NEWS: Document them.
5228 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5229 the exception is gdb.GdbError. Print a second traceback if there's
5230 an error computing the error message.
5231 (gdbpy_string_to_argv): New function.
5232 * python/py-utils.c (gdbpy_obj_to_string): New function.
5233 (gdbpy_exception_to_string): New function.
5234 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5235 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5236 (gdbpy_gdberror_exc): Declare.
5237 * python/python.c (gdbpy_gdberror_exc): New global.
5238 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5239 gdb.GdbError.
5240 (GdbMethods): Add string_to_argv.
5241
5242 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5243
5244 * windows-nat.c (display_selector): Call GetLastError to give better
5245 failure explanation.
5246
5247 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5248
5249 * config.in: Regenerate.
5250
5251 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5252
5253 Code cleanup.
5254 * target.c (push_target): Return only void. Remove the return value
5255 comment.
5256 * target.h (push_target): Return only void.
5257
5258 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5259
5260 Update gnulib from latest git.
5261 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5262
5263 * gnulib/memcmp.c: Removed.
5264 * gnulib/memchr.valgrind: New.
5265 * gnulib/stddef.in.h: New.
5266 * gnulib/Makefile.am: Updated.
5267 * gnulib/memchr.c: Updated.
5268 * gnulib/memmem.c: Updated.
5269 * gnulib/stdint.in.h: Updated.
5270 * gnulib/str-two-way.h: Updated.
5271 * gnulib/string.in.h: Updated.
5272 * gnulib/wchar.in.h: Updated.
5273
5274 * gnulib/extra/link-warning.h: Removed.
5275 * gnulib/extra/c++defs.h: New.
5276 * gnulib/extra/warn-on-use.h: New.
5277 * gnulib/extra/arg-nonnull.h: Updated.
5278
5279 * gnulib/m4/extensions.m4: Updated.
5280 * gnulib/m4/gnulib-cache.m4: Updated.
5281 * gnulib/m4/gnulib-common.m4: Updated.
5282 * gnulib/m4/gnulib-comp.m4: Updated.
5283 * gnulib/m4/gnulib-tool.m4: Updated.
5284 * gnulib/m4/include_next.m4: Updated.
5285 * gnulib/m4/longlong.m4: Updated.
5286 * gnulib/m4/memchr.m4: Updated.
5287 * gnulib/m4/memmem.m4: Updated.
5288 * gnulib/m4/stdint.m4: Updated.
5289 * gnulib/m4/string_h.m4: Updated.
5290 * gnulib/m4/memcmp.m4: Removed.
5291 * gnulib/m4/onceonly_2_57.m4: Removed.
5292 * gnulib/m4/00gnulib.m4: New.
5293 * gnulib/m4/mmap-anon.m4: New.
5294 * gnulib/m4/multiarch.m4: New.
5295 * gnulib/m4/onceonly.m4: New.
5296 * gnulib/m4/stddef_h.m4: New.
5297 * gnulib/m4/warn-on-use.m4: New.
5298 * gnulib/m4/wchar.m4: Removed.
5299 * gnulib/m4/wchar_h.m4: New.
5300 * gnulib/m4/wchar_t.m4: New.
5301 * gnulib/m4/wint_t.m4: New.
5302
5303 * aclocal.m4: Regenerate.
5304 * config.in: Likewise.
5305 * configure: Likewise.
5306 * gnulib/Makefile.in: Likewise.
5307
5308 2010-05-21 Tom Tromey <tromey@redhat.com>
5309
5310 * dwarf2loc.c (extract_bits_primitive): New function.
5311 (extract_bits): Likewise.
5312 (insert_bits): Likewise.
5313 (copy_bitwise): Likewise.
5314 (read_pieced_value): Do all operations in bits.
5315 (write_pieced_value): Likewise.
5316 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5317 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5318 Always use xrealloc to resize piece array.
5319 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5320 <DW_OP_piece>: Update.
5321 <DW_OP_bit_piece>: New case.
5322
5323 2010-05-21 Tom Tromey <tromey@redhat.com>
5324
5325 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5326 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5327 * dwarf2expr.h (enum dwarf_value_location)
5328 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5329 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5330 (add_piece): Handle empty piece.
5331 (execute_stack_op) <DW_OP_piece>: Handle
5332 DWARF_VALUE_OPTIMIZED_OUT.
5333
5334 2010-05-21 Tom Tromey <tromey@redhat.com>
5335
5336 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5337 evaluate_subexp, not evaluate_subexp_with_coercion.
5338
5339 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5340
5341 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5342 attribute.
5343
5344 2010-05-21 Tom Tromey <tromey@redhat.com>
5345
5346 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5347 offset.
5348 (write_pieced_value): Likewise.
5349
5350 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5351
5352 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5353 and DW_TAG_volatile_type.
5354 (new_symbol): Likewise.
5355
5356 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5357
5358 * p-valprint.c (pascal_val_print): Call get_array_bounds
5359 to obtain the number of elements in an array.
5360
5361 2010-05-19 Doug Evans <dje@google.com>
5362
5363 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5364
5365 * python.c (source_python_script): Add comment.
5366 (source_python_script_for_objfile): Remove unnecessary call to
5367 gdbpy_print_stack.
5368
5369 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5370 Sergio Durigan Junior <sergiodj@redhat.com>
5371
5372 Code cleanup.
5373 * parse.c (exp_iterate): Use operator_length wrapper function.
5374
5375 2010-05-18 Michael Snyder <msnyder@vmware.com>
5376
5377 * ada-lang.c: White space.
5378 * ada-typeprint.c: White space.
5379 * ada-valprint.c: White space.
5380 * addrmap.c: White space.
5381 * auxv.c: White space.
5382 * ax-gdb.c: White space.
5383
5384 2010-05-18 Hui Zhu <teawater@gmail.com>
5385
5386 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5387 for oldfp.
5388 (inferior_call_waitpid): Move make_cleanup out of check.
5389 Check the return of waitpid.
5390 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5391
5392 2010-05-17 Michael Snyder <msnyder@vmware.com>
5393
5394 * tui/tui.c: White space.
5395 * tui/tui-data.c: White space.
5396 * tui/tui-disasm.c: White space.
5397 * tui/tui-file.c: White space.
5398 * tui/tui-interp.c: White space.
5399 * tui/tui-main.c: White space.
5400 * tui/tui-out.c: White space.
5401 * tui/tui-regs.c: White space.
5402 * tui/tui-source.c: White space.
5403 * tui/tui-stack.c: White space.
5404 * tui/tui-win.c: White space.
5405 * tui/tui-winsource.c: White space.
5406
5407 * procfs.c: White space.
5408
5409 * python/py-auto-load.c: White space.
5410 * python/py-block.c: White space.
5411 * python/py-breakpoint.c: White space.
5412 * python/py-cmd.c: White space.
5413 * python/py-function.c: White space.
5414 * python/py-lazy-string.c: White space.
5415 * python/py-objfile.c: White space.
5416 * python/py-param.c: White space.
5417 * python/py-prettyprint.c: White space.
5418 * python/py-progspace.c: White space.
5419 * python/py-symtab.c: White space.
5420 * python/python.c: White space.
5421 * python/py-type.c: White space.
5422 * python/py-utils.c: White space.
5423 * python/py-value.c: White space.
5424
5425 * mi/mi-cmd-break.c: White space.
5426 * mi/mi-cmd-env.c: White space.
5427 * mi/mi-cmds.c: White space.
5428 * mi/mi-cmd-stack.c: White space.
5429 * mi/mi-cmd-var.c: White space.
5430 * mi/mi-console.c: White space.
5431 * mi/mi-getopt.c: White space.
5432 * mi/mi-interp.c: White space.
5433 * mi/mi-main.c: White space.
5434 * mi/mi-out.c: White space.
5435 * mi/mi-parse.c: White space.
5436
5437 * cli/cli-cmds.c: White space.
5438 * cli/cli-decode.c: White space.
5439 * cli/cli-dump.c: White space.
5440 * cli/cli-interp.c: White space.
5441 * cli/cli-logging.c: White space.
5442 * cli/cli-script.c: White space.
5443 * cli/cli-setshow.c: White space.
5444
5445 * valarith.c: White space.
5446 * valops.c: White space.
5447 * valprint.c: White space.
5448 * value.c: White space.
5449 * varobj.c: White space.
5450 * xcoffread.c: White space.
5451 * xml-support.c: White space.
5452 * xml-tdesc.c: White space.
5453
5454 2010-05-17 Andreas Schwab <schwab@redhat.com>
5455
5456 PR gdb/11092
5457 * c-lang.c (c_printstr): Compute real length of NUL terminated
5458 string at first.
5459
5460 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5461
5462 * parse.c (parse_exp_in_context): When block is not NULL, use
5463 its associated language to parse the expression instead of
5464 the current_language.
5465
5466 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5467
5468 * jv-lang.c (java_lookup_class): Remove commented out code.
5469 (type_from_class): Likewise.
5470 (java_op_print_tab): Remove commented-out elements.
5471
5472 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5473
5474 * ada-lang.c (to_fixed_range_type): The the raw index type as
5475 argument instead of the raw type name. Remove orig_type parameter.
5476 Update calls throughout.
5477 (ada_fixup_array_indexes_type): New function.
5478 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5479 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5480 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5481 Remove name parameter.
5482 (print_array_type): Add call to ada_fixup_array_indexes_type.
5483 Update calls to print_range_type.
5484 (ada_print_type): Update calls to print_range_type.
5485
5486 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5487
5488 * dwarf2read.c (read_set_type): Set type length if
5489 DW_AT_byte_size attribute is present.
5490
5491 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5492
5493 * p-valprint.c (pascal_val_print): Handle set type if range limits
5494 are undefined but size is known.
5495
5496 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5497
5498 * procfs.c: Reformat.
5499
5500 2010-05-16 Michael Snyder <msnyder@vmware.com>
5501
5502 * target.c: White space.
5503 * target-descriptions.c: White space.
5504 * target-memory.c: White space.
5505 * thread.c: White space.
5506 * top.c: White space.
5507 * tracepoint.c: White space.
5508 * trad-frame.c: White space.
5509 * tramp-frame.c: White space.
5510 * ui-file.c: White space.
5511 * ui-out.c: White space.
5512 * user-regs.c: White space.
5513 * utils.c: White space.
5514
5515 * scm-exp.c: White space.
5516 * scm-lang.c: White space.
5517 * scm-valprint.c: White space.
5518 * sentinel-frame.c: White space.
5519 * ser-base.c: White space.
5520 * ser-go32.c: White space.
5521 * serial.c: White space.
5522 * ser-mingw.c: White space.
5523 * ser-pipe.c: White space.
5524 * ser-tcp.c: White space.
5525 * ser-unix.c: White space.
5526 * solib.c: White space.
5527 * solib-darwin.c: White space.
5528 * solib-frv.c: White space.
5529 * solib-irix.c: White space.
5530 * solib-osf.c: White space.
5531 * solib-pa64.c: White space.
5532 * solib-som.c: White space.
5533 * solib-spu.c: White space.
5534 * solib-svr4.c: White space.
5535 * solib-target.c: White space.
5536 * source.c: White space.
5537 * stabsread.c: White space.
5538 * stack.c: White space.
5539 * std-regs.c: White space.
5540 * symfile.c: White space.
5541 * symmisc.c: White space.
5542 * symtab.c: White space.
5543
5544 2010-05-16 Michael Snyder <msnyder@vmware.com>
5545
5546 * source.c (_initialize_source): Add "rev" as an abbreviation
5547 for the "reverse-search" command.
5548
5549 2010-05-16 Michael Snyder <msnyder@vmware.com>
5550
5551 * record.c: White space.
5552 * regcache.c: White space.
5553 * reggroups.c: White space.
5554 * remote-fileio.c: White space.
5555 * remote-m32r-sdi.c: White space.
5556 * remote-mips.c: White space.
5557 * remote-sim.c: White space.
5558 * remote.c: White space.
5559 (process_g_packet): Remove orphan braces.
5560
5561 2010-05-15 Michael Snyder <msnyder@vmware.com>
5562
5563 * parse.c: White space.
5564 * p-lang.c: White space.
5565 * posix-hdep.c: White space.
5566 * printcmd.c: White space.
5567 * progspace.c: White space.
5568 * prologue-value.c: White space.
5569 * psymtab.c: White space.
5570 * p-typeprint.c: White space.
5571 * p-valprint.c: White space.
5572
5573 * objc-lang.c: White space.
5574 * objfiles.c: White space.
5575 * observer.c: White space.
5576 * osabi.c: White space.
5577 * osdata.c: White space.
5578
5579 * m2-lang.c: White space.
5580 * m2-valprint.c: White space.
5581 * macrocmd.c: White space.
5582 * macroexp.c: White space.
5583 * macroscope.c: White space.
5584 * macrotab.c: White space.
5585 * main.c: White space.
5586 * maint.c: White space.
5587 * mdebugread.c: White space.
5588 * memattr.c: White space.
5589 * minsyms.c: White space.
5590 * monitor.c: White space.
5591
5592 2010-05-14 Michael Snyder <msnyder@vmware.com>
5593
5594 * jv-lang.c: White space.
5595 * jv-typeprint.c: White space.
5596 * jv-valprint.c: White space.
5597 * language.c: White space.
5598 * libunwind-frame.c: White space.
5599 * linespec.c: White space.
5600 * linux-nat.c: White space.
5601 * linux-record.c: White space.
5602 * linux-thread-db.c: White space.
5603
5604 * infcall.c: White space.
5605 * inf-child.c: White space.
5606 * infcmd.c: White space.
5607 * inferior.c: White space.
5608 * inf-loop.c: White space.
5609 * inflow.c: White space.
5610 * inline-frame.c: White space.
5611 * interps.c: White space.
5612
5613 * gcore.c: White space.
5614 * gdb.c: White space.
5615 * gdbtypes.c: White space.
5616 * gnu-nat.c: White space.
5617 * gnu-v2-abi.c: White space.
5618 * gnu-v3-abi.c: White space.
5619
5620 * findcmd.c: White space.
5621 * findvar.c: White space.
5622 * fork-child.c: White space.
5623 * frame-base.c: White space.
5624 * frame.c: White space.
5625 * frame-unwind.c: White space.
5626 * f-valprint.c: White space.
5627
5628 * elfread.c: White space.
5629 * environ.c: White space.
5630 * eval.c: White space.
5631 * event-loop.c: White space.
5632 * event-top.c: White space.
5633 * exceptions.c: White space.
5634 * exec.c: White space.
5635 * expprint.c: White space.
5636
5637 * dbxread.c: White space.
5638 * dcache.c: White space.
5639 * disasm.c: White space.
5640 * doublest.c: White space.
5641 * dsrec.c: White space.
5642 * dummy-frame.c: White space.
5643 * dwarf2expr.c: White space.
5644 * dwarf2-frame.c: White space.
5645 * dwarf2loc.c: White space.
5646 * dwarf2read.c: White space.
5647
5648 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5649
5650 PR python/11482
5651
5652 * python/py-value.c (valpy_hash): New function.
5653 (value_object_type): Register valpy_hash.
5654
5655 2010-05-14 Hui Zhu <teawater@gmail.com>
5656 Michael Snyder <msnyder@vmware.com>
5657
5658 * linux-fork.c (gdbthread.h): New include.
5659 (fork_info): Add parent_ptid.
5660 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5661 functions.
5662 (delete_checkpoint_command): Call inferior_call_waitpid.
5663 (checkpoint_command): Set parent_ptid.
5664
5665 2010-05-13 Michael Snyder <msnyder@vmware.com>
5666
5667 * dictionary.c: Re-indent to GNU coding standard.
5668
5669 * charset.c: White space.
5670 * c-lang.c: White space.
5671 * cli-out.c: White space.
5672 * coffread.c: White space.
5673 * complaints.c: White space.
5674 * completer.c: White space.
5675 * corefile.c: White space.
5676 * corelow.c: White space.
5677 * cp-abi.c: White space.
5678 * cp-namespace.c: White space.
5679 * cp-support.c: White space.
5680 * cp-valprint.c: White space.
5681 * c-typeprint.c: White space.
5682 * c-valprint.c: White space.
5683 * blockframe.c: White space.
5684 * breakpoint.c: White space.
5685 * buildsym.c: White space.
5686 * blockframe.c: White space.
5687 * bcache.c: White space.
5688 * gdbarch.sh: White space, add blank lines.
5689 * arch-utils.c: Ditto.
5690 * gdbarch.c: Regenerate.
5691 * frame.c: White space, add blank lines.
5692 * stack.c: White space, add blank lines.
5693 (initialize_stack): Remove long-dead code.
5694
5695 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5696
5697 Code cleanup.
5698 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5699 (locexpr_read_variable, loclist_read_variable): Update the callers.
5700
5701 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5702
5703 Code cleanup.
5704 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5705 Remove check of NULL returned by tag_type_to_type.
5706 (die_containing_type): Remove variable type. Remove type_die variable
5707 initialization. Remove check of NULL returned by tag_type_to_type.
5708
5709 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5710
5711 PR exp/11530.
5712 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5713 names of unnamed structures or unions.
5714
5715 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5716
5717 * procfs.c (proc_watchpoint_address): New function.
5718 (procfs_stopped_by_watchpoint): Remove useless check after
5719 find_procinfo_or_die call.
5720 (procfs_stopped_data_address): New function.
5721 (procfs_use_watchpoints): Register new watchpoint related function.
5722
5723 2010-05-11 Tom Tromey <tromey@redhat.com>
5724
5725 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5726
5727 2010-05-10 Michael Snyder <msnyder@vmware.com>
5728
5729 * utils.c: White space cleanup.
5730
5731 2010-05-10 Tom Tromey <tromey@redhat.com>
5732
5733 * eval.c (ptrmath_type_p): Add 'lang' argument.
5734 (evaluate_subexp_standard): Update.
5735 (evaluate_subexp_with_coercion): Update.
5736 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5737
5738 2010-05-10 Michael Snyder <msnyder@vmware.com>
5739
5740 * utils.c (do_fclose_cleanup) Restore local variable.
5741
5742 2010-05-09 Doug Evans <dje@google.com>
5743
5744 * record.c (init_record_core_ops): Rename record_core to record-core.
5745
5746 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5747
5748 Implement task switching on pa-hpux.
5749 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5750 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5751
5752 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5753
5754 * valops.c (find_overload_match): Add missing i18n markup.
5755
5756 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5757
5758 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5759
5760 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5761
5762 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5763 list for the obconcat call.
5764 * mdebugread.c (parse_symbol): Likewise.
5765 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5766 Likewise.
5767 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5768 New variable ap. Remove variables len and val.
5769 * symfile.h (obconcat): Likewise for the prototype.
5770
5771 2010-05-07 Michael Snyder <msnyder@vmware.com>
5772
5773 * python/python.c (execute_gdb_command): Remove unused variables.
5774 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5775 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5776 Remove unused variable.
5777 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5778 (cmdpy_completer): Remove unused variable.
5779 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5780 * python/py-function.c (fnpy_call): Remove unused variable.
5781 * python/py-objfile.c (objfile_to_objfile_object):
5782 Remove unused variable.
5783 * python/py-param.c (parmpy_init): Remove unused variable.
5784 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5785 Remove unused variable.
5786 (gdbpy_default_visualizer): Remove unused variable.
5787 * python/py-progspace.c (pspace_to_pspace_object):
5788 Remove unused variable.
5789 * python/py-symtab.c (symtab_and_line_to_sal_object):
5790 Remove unused variable.
5791 * python/py-type.c (typy_template_argument):
5792 Remove unused variable.
5793 * python/py-value.c (valpy_string): Remove unused variable.
5794 (convert_value_from_python): Remove unused variables.
5795
5796 2010-05-07 Michael Snyder <msnyder@vmware.com>
5797
5798 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5799 and use it to compute variable 't1'.
5800
5801 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5802
5803 * ada-lang.c (assign_aggregate): Remove unused variable.
5804
5805 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5806
5807 PR C++/7943:
5808 * valops.c (find_overload_match): Handle fsym == NULL case.
5809 Add int no_adl argument.
5810 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5811 when appropriate.
5812 Add int no_adl argument.
5813 (find_oload_champ_namespace): Add int no_adl argument.
5814 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5815 expression.
5816 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5817 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5818 Evaluate arguments and use them to perform ADL lookup.
5819 Pass no_adl argument to find_overload_match.
5820 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5821 * cp-support.h: Added prototype for
5822 make_symbol_overload_list_namespace.
5823 * cp-support.c (make_symbol_overload_list_namespace): New function.
5824 (make_symbol_overload_list_adl_namespace): New function.
5825 (make_symbol_overload_list_adl): New function.
5826 (make_symbol_overload_list_using): Moved code to add function to
5827 overload set to make_symbol_overload_list_namespace.
5828 * c-exp.y: create UNKNOWN_CPP_NAME token.
5829 Add parse rule for ADL functions.
5830 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5831
5832 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5833
5834 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5835 sentinel.
5836
5837 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5838
5839 Implement task switching on solaris targets.
5840 * sol-thread.c (thread_db_find_thread_from_tid)
5841 (sol_get_ada_task_ptid): New functions.
5842 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5843
5844 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5845
5846 * remote.c (remote_query_supported_append): Use reconcat.
5847 (remote_query_supported): Install a cleanup. Use reconcat.
5848
5849 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5850
5851 * gdbarch.sh (qsupported): Delete.
5852 * gdbarch.h, gdbarch.c: Regenerate.
5853 * remote.c (remote_query_supported): Remove use of
5854 gdbarch_qsupported.
5855
5856 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5857
5858 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5859 function.
5860
5861 2010-05-06 Michael Snyder <msnyder@vmware.com>
5862
5863 * xml-support.c (xinclude_start_include): Delete unused variable.
5864 (xml_process_xincludes): Delete unused variable.
5865 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5866 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5867 (tdesc_find_arch_register): Delete unused variable.
5868 (tdesc_use_registers): Delete unused variable.
5869 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5870 * inferior.c (print_inferior): Delete unused variable.
5871 * record.c (record_open_1): Delete unused variable.
5872 (record_restore): Delete unused variable.
5873 (cmd_record_save): Delete unused variable.
5874 * gcore.c (derive_heap_segment): Delete unused variable.
5875 (objfile_find_memory_regions): Use unused variable.
5876 * jit.c (jit_inferior_init): Delete unused variable.
5877 * progspace.c (clone_program_space): Delete unused variable.
5878 (pspace_empty_p): Delete unused variable.
5879
5880 * frame-unwind.c (frame_unwind_find_by_frame):
5881 Delete unused variable.
5882 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5883 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5884 (method_name_from_physname): Delete unused variable.
5885 (cp_func_name): Delete unused variable.
5886 (cp_validate_operator): Delete unused variable.
5887 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5888 Delete unused variable.
5889 * trad-frame.c (trad_frame_get_prev_register):
5890 Delete unused variable.
5891 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5892
5893 * serial.c (serial_for_fd): Delete unused variable.
5894 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5895 * top.c (execute_command): Delete unused variable.
5896 (init_main): Delete unused variable.
5897 * utils.c (do_fclose_cleanup): Delete unused variable.
5898 (do_all_inferior_continuations): Delete unused variable.
5899 (initialize_utils): Delete unused variable.
5900 (internal_problem_mode): Delete unused global.
5901 * frame.c (get_prev_frame): Delete unused global.
5902 (get_frame_locals_address): Delete unused global.
5903 (get_frame_args_address): Delete unused global.
5904
5905 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5906 (pascal_type_print_varspec_prefix): Delete unused variable.
5907 * f-typeprint.c (f_type_print_base): Delete unused variable.
5908 (f_type_print_varspec_suffix): Delete unused variable.
5909 * m2-typeprint.c (m2_print_type): Delete unused variable.
5910 (m2_long_set): Delete unused variable.
5911 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5912 * d-valprint.c (dynamic_array_type): Delete unused variable.
5913 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5914 Delete unused variable.
5915 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5916 * m2-valprint.c (m2_val_print): Delete unused variable.
5917
5918 * ui-out.c (ui_out_field_int): Delete unused variable.
5919 (ui_out_field_fmt_int): Delete unused variable.
5920 * varobj.c (varobj_list_children): Delete unused variable.
5921 (varobj_set_value): Delete unused variable.
5922 (install_new_value_visualizer): Delete unused variable.
5923 (varobj_set_visualizer): Delete unused variable.
5924 (varobj_update): Delete unused variable.
5925 (varobj_editable_p): Delete unused variable.
5926 (c_value_of_root): Delete unused variable.
5927 (cplus_describe_child): Delete unused variable.
5928
5929 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5930 (decode_constrained_packed_array_type): Delete unused variable.
5931 (add_defn_to_vec): Delete unused variable.
5932 (symbol_completion_match): Delete unused variable.
5933 (value_tag_from_contents_and_address): Delete unused variable.
5934 (ada_evaluate_subexp): Delete unused variable.
5935 * c-lang.c (classify_type): Delete unused variable.
5936 * f-lang.c (f_printstr): Delete unused variable.
5937 * objc-lang.c (objc_printstr): Delete unused variable.
5938 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5939 * jv-lang.c (type_from_class): ifdef unused variable.
5940 (java_class_name_from_physname): Delete unused variable.
5941 * m2-lang.c (m2_printstr): Delete unused variable.
5942
5943 * objfiles.c (objfile_relocate): Delete unused variable.
5944 * maint.c (_initialize_maint_cmds): Delete unused variable.
5945 * demangle.c (_initialize_demangler): Delete unused variable.
5946 * corefile.c (reopen_exec_file): Delete unused variable.
5947 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5948 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5949
5950 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5951 * memattr.c (mem_delete): Delete unused variable.
5952 (invalidate_target_mem_regions): Delete unused variable.
5953 * mem-break.c (default_memory_insert_breakpoint):
5954 Delete unused variable.
5955 * target.c (target_get_osdata): Delete unused variable.
5956 * parse.c (length_of_subexp): Delete unused variable.
5957 (prefixify_subexp): Delete unused variable.
5958 (exp_iterate): Delete unused variable.
5959 * reverse.c (delete_bookmark_command): Delete unused variable.
5960
5961 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5962 * macroexp.c (gather_arguments): Delete unused variable.
5963 (substitute_args): Delete unused variable.
5964 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5965 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5966 (_initialize_gdbarch): Delete unused variable.
5967 * gdbarch.c, gdbarch.h: Regenerate.
5968 * arch-utils.c (initialize_current_architecture):
5969 Delete unused variable.
5970 (_initialize_gdbarch_utils): Delete unused variable.
5971 * gdbtypes.c (make_cv_type): Delete unused variable.
5972 (make_type_with_address_space): Delete unused variable.
5973
5974 * linespec.c (decode_compound): Delete unused variable.
5975 * dictionary.c (iterator_next_hashed): Delete unused variable.
5976 * infcall.c (call_function_by_hand): Delete unused variable.
5977 * infcmd.c (step_1): Delete unused variable.
5978 (registers_info): Delete unused variable.
5979 (attach_command): Delete unused variable.
5980 * infrun.c (follow_exec): Delete unused variable.
5981 (handle_step_into_function_backwards): Delete unused variable.
5982 (_initialize_infrun): Delete unused variable.
5983 * stack.c (parse_frame_specification_1): Delete unused variable.
5984 (frame_info): Delete unused variable.
5985 (backtrace_command_1): Delete unused variable.
5986 (catch_info): Delete unused variable.
5987
5988 * eval.c (evaluate_subexp_standard): Delete unused variable.
5989 * valops.c (value_cast_pointers): Delete unused variable.
5990 (value_dynamic_cast): Delete unused variable.
5991 (value_array): Delete unused variable.
5992 (find_overload_match): Delete unused variable.
5993 * valarith.c (value_subscript): Delete unused variable.
5994 (value_binop): Delete unused variable.
5995 * valprint.c (_initialize_valprint): Delete unused variable.
5996 * printcmd.c (print_command_1): Delete unused variable.
5997 (address_info): Delete unused variable.
5998 (printf_command): Delete unused variable.
5999
6000 * auxv.c (target_auxv_search): Delete unused variable.
6001 * blockframe.c (get_frame_block): Delete unused variable.
6002 * regcache.c (regcache_cpy): Delete unused variable.
6003 (regcache_cpy_no_passthrough): Delete unused variable.
6004 * charset.c (wchar_iterate): Delete unused variable.
6005 (find_charset_names): Delete unused variable.
6006 (_initialize_charset): Delete unused variable.
6007 * disasm.c (do_mixed_source_and_assembly):
6008 Delete unused variable.
6009 * source.c (set_default_source_symtab_and_line):
6010 Delete unused variable.
6011 (set_substitute_path_command): Delete unused variable.
6012 * value.c (preserve_values): Delete unused variable.
6013 (value_from_double): Delete unused variable.
6014
6015 2010-05-05 Michael Snyder <msnyder@vmware.com>
6016
6017 * psymtab.c (lookup_partial_symbol): Delete unused variable.
6018 (find_last_source_symtab_from_partial): Delete unused variable.
6019 * symfile.c (place_section): Delete unused variable.
6020 (default_symfile_offsets): Delete unused variable.
6021 (get_debug_link_info): Delete unused variable.
6022 (find_separate_debug_file_by_debuglink): Delete unused variable.
6023 (add_symbol_file_command): Delete unused variable.
6024 (symfile_find_segment_sections): Delete unused variable.
6025 * symmisc.c (free_symtab): Delete unused variable.
6026 (dump_symtab_1): Delete unused variable.
6027 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
6028 (find_pc_sect_symtab): Delete unused variable.
6029 (skip_prologue_using_lineinfo): Delete unused variable.
6030 (sources_info): Delete unused variable.
6031 (completion_list_add_name): Delete unused variable.
6032 (expand_line_sal): Delete unused variable.
6033
6034 * breakpoint.c (validate_commands_for_breakpoint):
6035 Delete unused variables.
6036 (insert_catchpoint): Delete unused variable.
6037 (update_watchpoint): Delete unused variable.
6038 (insert_bp_location): Delete unused variable.
6039 (insert_breakpoint_locations): Delete unused variable.
6040 (remove_breakpoint_1): Delete unused variable.
6041 (software_breakpoint_inserted_here_p): Delete unused variable.
6042 (watchpoints_triggered): Delete unused variable.
6043 (bpstat_check_watchpoint): Delete unused variable.
6044 (bpstat_stop_status): Delete unused variable.
6045 (print_one_breakpoint_location): Delete unused variable.
6046 (allocate_bp_location): Delete unused variable.
6047 (create_breakpoint): Delete unused variable.
6048 (watch_command_1): Delete unused variable.
6049 (catch_exception_command_1): Delete unused variable.
6050 (catch_ada_exception_command): Delete unused variable.
6051 (delete_breakpoint): Delete unused variable.
6052 (breakpoint_re_set_one): Delete unused variable.
6053 (do_enable_breakpoint): Delete unused variable.
6054
6055 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6056
6057 * amd64-tdep.c: Include disasm.h.
6058 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
6059 (amd64_insn_length): Moved to disasm.c and renamed.
6060 (fixup_riprel): Adjust.
6061 * disasm.c (do_ui_file_delete): New.
6062 (gdb_insn_length): New.
6063 (gdb_buffered_insn_length_fprintf)
6064 (gdb_buffered_insn_length_init_dis)
6065 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
6066 renamed.
6067 * disasm.h (gdb_insn_length): Declare.
6068 (gdb_buffered_insn_length): Declare.
6069
6070 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6071
6072 * remote.c (clear_threads_parsing_context): New.
6073 (remote_threads_info): Delete unused null_cleanup. Install a
6074 cleanup to clear the threads_parsing_context in case parsing
6075 throws.
6076
6077 2010-05-05 Michael Snyder <msnyder@vmware.com>
6078
6079 * c-exp.y (parse_string_or_char): Delete unused variable.
6080 (c_lex): Delete unused variable.
6081 * cp-name-parser.y (cpname_lex): Delete unused variable.
6082 * ada-exp.y (find_primitive_type): Delete unused variable.
6083 (write_var_or_type): Delete unused variable.
6084 * jv-exp.y (java_parse): Delete unused variable.
6085 (push_expression_name): Delete unused variable.
6086 * p-exp.y (pascal_lex): Delete unused variable.
6087
6088 2010-05-05 Pedro Alves <pedro@codesourcery.com>
6089
6090 * remote.c (remote_threads_info): Really revert previous previous
6091 change.
6092
6093 2010-05-05 Michael Snyder <msnyder@vmware.com>
6094
6095 * elfread.c (elf_symtab_read): Delete unused variable.
6096 (find_separate_debug_file_by_buildid): Delete unused variables.
6097 (elf_symfile_read): Delete unused variable.
6098
6099 * coffread.c (coff_symfile_read): Delete unused variables.
6100
6101 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
6102 (read_pe_exported_syms): Delete unused variable.
6103
6104 * stabsread.c (define_symbol): Delete unused variable.
6105
6106 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
6107 (process_psymtab_comp_unit): Delete unused variable.
6108 (dwarf2_build_psymtabs_hard): Delete unused variable.
6109 (load_partial_comp_unit): Delete unused variable.
6110 (create_all_comp_units): Delete unused variable.
6111 (scan_partial_symbols): Delete unused variable.
6112 (add_partial_symbol): Delete unused variable.
6113 (add_partial_namespace): Delete unused variable.
6114 (add_partial_enumeration): Delete unused variable.
6115 (load_full_comp_unit): Delete unused variable.
6116 (process_full_comp_unit): Delete unused variable.
6117 (read_file_scope): Delete unused variable.
6118 (read_type_unit_scope): Delete unused variable.
6119 (process_structure_scope): Delete unused variable.
6120 (process_enumeration_scope): Delete unused variable.
6121 (read_tag_ptr_to_member_type): Delete unused variable.
6122 (read_typedef): Delete unused variable.
6123 (read_partial_die): Delete unused variable.
6124 (decode_locdesc): Delete unused variable.
6125 (zeroed_partial_die): Delete unused global variable.
6126
6127 * tui/tui-interp.c (_initialize_tui_interp):
6128 Delete unused variable.
6129 * tui/tui-regs.c tui_display_registers_from):
6130 Delete unused variable.
6131 (tui_check_register_values): Delete unused variable.
6132 (tui_register_format): Delete unused variable.
6133 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
6134 * tui/tui-windata.c (tui_display_data_from_line):
6135 Delete unused variables.
6136 (tui_vertical_data_scroll): Delete unused variables.
6137
6138 2010-05-05 Michael Snyder <msnyder@vmware.com>
6139
6140 * remote.c (remote_threads_info): Revert questionable part of
6141 the previous change.
6142
6143 2010-05-05 Michael Snyder <msnyder@vmware.com>
6144
6145 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6146 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6147 (mi_cmd_var_list_children): Delete unused variable.
6148 (varobj_update_one): Delete unused variable.
6149 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
6150 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
6151 Delete unused variable.
6152 (mi_cmd_stack_list_variables): Delete unused variable.
6153 (list_args_or_locals): Delete unused variable.
6154 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
6155 Delete unused variables.
6156 (mi_cmd_file_list_exec_source_files): Delete unused variable.
6157 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
6158 Delete unused variable.
6159 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6160 (mi_cmd_interpreter_exec): Delete unused variable.
6161 (mi_on_normal_stop): Delete unused variable.
6162 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6163 (print_one_inferior): Delete unused variables.
6164 (mi_execute_command): Delete unused variable.
6165 (mi_cmd_execute): Delete unused variable.
6166 (timestamp): Delete unused variable.
6167
6168 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6169 (restore_binary_file): Delete unused variable.
6170 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6171 * cli/cli-script.c (define_command): Delete unused variables.
6172 (recurse_read_control_structure): Delete unused variable.
6173 (script_from_file): Delete unused variable.
6174 * cli/cli-cmds.c (complete_command): Delete unused variable.
6175 (disassemble_command): Delete unused variable.
6176
6177 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6178 * tracepoint.c (delete_trace_variable_command):
6179 Delete unused variables.
6180 (encode_actions_1): Delete unused variables.
6181 (start_tracing): Delete unused variable.
6182 (trace_status_mi): Delete unused variable.
6183 (tfind_1): Delete unused variable.
6184 (trace_find_pc_command): Delete unused variable.
6185 (trace_find_line_command): Delete unused variables.
6186 (trace_find_range_command): Delete unused variables.
6187 (trace_find_outside_command): Delete unused variables.
6188 (parse_tracepoint_definition): Delete unused variables.
6189 (tfile_fetch_registers): Delete unused variable.
6190
6191 * dcache.c (dcache_init): Delete unused variable.
6192 (dcache_info): Delete unused variable.
6193
6194 * remote.c (remote_threads_info): Delete unused variable.
6195 (process_stop_reply) :Delete unused variable.
6196 (remote_get_trace_status): Delete unused variables.
6197
6198 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6199 (thread_from_lwp): Delete unused variable.
6200 (enable_thread_event_reporting): Delete unused variable.
6201 (check_for_thread_db): Delete unused variables.
6202 (thread_db_find_new_threads_2): Delete unused variable.
6203
6204 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6205 (checkpoint_command): Delete unused variable.
6206 (linux_fork_context): Delete unused variables.
6207
6208 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6209 (linux_tracefork_child): Delete unused variable.
6210 (linux_child_follow_fork): Delete unused variable.
6211 (linux_nat_detach): Delete unused variable.
6212 (linux_handle_extended_wait): Delete unused variable.
6213 (linux_nat_has_pending_sigint): Delete unused variable.
6214 (linux_nat_find_memory_regions): Delete unused variable.
6215 (linux_nat_make_corefile_notes): Delete unused variables.
6216 (linux_nat_info_proc_cmd): Delete unused variable.
6217 (linux_proc_pending_signals): Delete unused variable.
6218 (linux_nat_stop_lwp): Delete unused variables.
6219 (_initialize_linux_nat): Delete unused variable.
6220
6221 * ser-pipe.c (pipe_ops): Delete unused global variable.
6222
6223 * linux-record.c (record_linux_system_call):
6224 Delete unused variables.
6225
6226 * corelow.c (core_xfer_partial): Delete unused variables.
6227
6228 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6229 (svr4_solib_create_inferior_hook): Add ifdef around
6230 conditionally-used variable declarations.
6231
6232 * solib.c (solib_find): Delete unused variable.
6233 (free_so_symbols): Delete unused variable.
6234 (info_sharedlibrary_command): Delete unused variable.
6235 (reload_shared_libraries_1): Delete unused variable.
6236 (_initialize_solib): Delete unused variable.
6237
6238 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6239 (i386_collect_xstateregset): Delete unused variable.
6240 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6241
6242 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6243 Delete unused variable 'type'.
6244
6245 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6246
6247 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6248 ada-lang.c: Remove comment mentioning these macros.
6249 * m2-exp.y: Delete commented out code.
6250
6251 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6252
6253 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6254 for array types.
6255 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6256
6257 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6258
6259 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6260 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6261 ATTRIBUTE_UNUSED.
6262 (cleanup_kernel_helper_return): Likewise.
6263 * arm-tdep.c (copy_unmodified): Likewise.
6264 (copy_preload): Likewise.
6265 (copy_copro_load_store): Likewise.
6266 (cleanup_branch): Likewise.
6267 (copy_b_bl_blx): Likewise.
6268 (copy_bx_blx_reg): Likewise.
6269 (copy_alu_imm): Likewise.
6270 (copy_alu_reg): Likewise.
6271 (copy_alu_shifted_reg): Likewise.
6272 (cleanup_load): Likewise.
6273 (cleanup_store): Likewise.
6274 (cleanup_block_load_pc): Likewise.
6275 (cleanup_svc): Likewise.
6276 (copy_undef): Likewise.
6277 (copy_unpred): Likewise.
6278 * remote.c (register_remote_support_xml): Likewise.
6279
6280 2010-05-05 Hui Zhu <teawater@gmail.com>
6281
6282 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6283
6284 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6285
6286 * remote.c (register_remote_support_xml)
6287 (remote_query_supported_append, remote_query_supported): Add cast
6288 to NULL used as sentinel.
6289 * tracepoint.c (tvariables_info_1): Likewise.
6290 * utils.c (add_internal_problem_command): Likewise.
6291
6292 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6293
6294 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6295 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6296 registers gracefully.
6297
6298 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6299
6300 * exec.c (print_section_info): Display entry point without arch
6301 specific parts.
6302
6303 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6304
6305 PR exp/11349.
6306 * printcmd.c (x_command): Only dereference once implicitly for
6307 TYPE_CODE_REF.
6308
6309 2010-05-03 Doug Evans <dje@google.com>
6310
6311 * event-loop.c (gdb_timer): Delete unused global.
6312 (create_timer): Update.
6313
6314 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6315
6316 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6317 CURRENT->DECLARATION case.
6318 * cp-support.h (struct using_direct): Provide extended comment.
6319
6320 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6321
6322 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6323 HPPABSD_SIZEOF_GREGS.
6324 (HPPAOBSD_SIZEOF_FPREGS): New define.
6325 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6326 (hppaobsd_supply_fpregset): New function.
6327 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6328 (hppaobsd_fpregset): New variable.
6329 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6330 (_initialize_hppabsd_tdep): Remove spurious blank line.
6331
6332 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6333
6334 PR pascal/11349.
6335 * p-valprint.c (pascal_value_print): Always dereference a value with
6336 type code TYPE_CODE_REF.
6337
6338 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6339
6340 * remote.c (remote_notice_signals): New.
6341 (remote_start_remote): In non-stop mode, update the remote end on
6342 which signals it can silently pass.
6343 (init_remote_ops): Install remote_notice_signals.
6344
6345 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6346
6347 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6348 * command.h (error_no_arg): ... here. Remove NORETURN, change
6349 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6350 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6351 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6352 (internal_verror, internal_error, nomem): Remove NORETURN, change
6353 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6354 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6355 (throw_vfatal, throw_error): Remove NORETURN.
6356 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6357 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6358 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6359 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6360 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6361 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6362 NORETURN.
6363 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6364 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6365 ATTRIBUTE_NORETURN.
6366 * target.c (tcomplain): Likewise.
6367 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6368 ATTRIBUTE_NORETURN.
6369 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6370 (internal_error, perror_with_name, nomem): Remove NORETURN.
6371 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6372 ATTRIBUTE_NORETURN.
6373
6374 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6375
6376 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6377 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6378 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6379 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6380 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6381 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6382 * complaints.h (complaint, internal_complaint): Likewise.
6383 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6384 (ATTR_FORMAT): Remove.
6385 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6386 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6387 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6388 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6389 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6390 (internal_error, internal_vwarning, internal_warning, warning)
6391 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6392 * disasm.c (fprintf_disasm): Likewise.
6393 * exceptions.c (throw_it): Likewise.
6394 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6395 (throw_error): Likewise.
6396 * language.h (type_error, range_error): Likewise.
6397 * linespec.c (cplusplus_error): Likewise.
6398 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6399 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6400 * monitor.c (monitor_debug): Likewise.
6401 * parser-defs.h (parser_fprintf): Likewise.
6402 * serial.h (serial_printf): Likewise.
6403 * tui/tui-hooks.c (tui_query_hook): Likewise.
6404 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6405 (uo_message): Likewise.
6406 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6407 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6408 Likewise.
6409 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6410
6411 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6412
6413 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6414 (cli_table_header, cli_begin, cli_end, cli_field_int)
6415 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6416 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6417 Delete forward declarations.
6418 (cli_ui_out_impl): Move below the callbacks.
6419 (_initialize_cli_out): Delete.
6420
6421 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6422
6423 * README: Use consistent `GDB' and `GDBserver' spellings.
6424
6425 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6426
6427 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6428
6429 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6430
6431 * infrun.c (prepare_for_detach): In non-stop, context switch to
6432 the thread that got the event before handling the event.
6433
6434 2010-04-30 Tom Tromey <tromey@redhat.com>
6435
6436 * symtab.c (symbol_set_names): Fix typo.
6437
6438 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6439
6440 * python/py-param.c (parm_constants): Avoid ARI warning
6441 by adding ARI comment.
6442 (parmpy_init): Likewise.
6443
6444 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6445
6446 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6447 and created type for re-use.
6448
6449 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6450
6451 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6452
6453 2010-04-29 Doug Evans <dje@google.com>
6454
6455 * ser-base.h (reschedule): Delete prototype.
6456 * ser-base.c (reschedule): Make static.
6457
6458 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6459
6460 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6461 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6462 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6463 EABI.
6464 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6465 use.
6466
6467 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6468
6469 PR gdb/11557
6470
6471 * regcache.c (registers_changed): Rename to ...
6472 (registers_changed_ptid): ... this, and only delete register cache
6473 entries matching the ptid filter argument.
6474 (registers_changed): Reimplement on top of registers_changed_ptid.
6475 * regcache.h (registers_changed_ptid): Declare.
6476 * target.c (target_resume): Flush register caches.
6477
6478 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6479 Tom Tromey <tromey@redhat.com>
6480 Thiago Jung Bauermann <bauerman@br.ibm.com>
6481
6482 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6483 (SUBDIR_PYTHON_SRCS): Likewise.
6484 (py-parameter.o): New rule.
6485 * python/py-parameter.c: New file.
6486 * python/python-internal.h (gdbpy_initialize_parameter)
6487 (gdbpy_parameter, gdbpy_parameter_value)
6488 (gdbpy_parse_command_name): Declare.
6489 * python/py-cmd.c (parse_command_name): Rename to
6490 gdbpy_parse_command_name.
6491 (gdbpy_parse_command_name): Accept a starting list parameter and
6492 use over cmdlist.
6493 (cmdpy_init): Use gdbpy_parse_command_name.
6494 * python/python.c (parameter_to_python): Rename to
6495 gdbpy_parameter_to_python. Accept enum var_types and value.
6496 (gdbpy_parameter): Use gdbpy_parameter_value.
6497 (_initialize_python): Call gdbpy_initialize_parameters.
6498
6499 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6500
6501 * MAINTAINERS: Add myself for write after approval privileges.
6502
6503 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6504
6505 D language support.
6506 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6507 (COMMON_OBS): Add d-lang.o d-valprint.o.
6508 (HFILES_NO_SRCDIR): Add d-lang.h.
6509 * NEWS: Mention D language support.
6510 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6511 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6512 * d-lang.c: New file.
6513 * d-lang.h: New file.
6514 * d-valprint.c: New file.
6515 * defs.h (enum language): Add language_d.
6516 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6517 * language.c (binop_result_type, integral_type, character_type)
6518 (string_type, boolean_type, structured_type): Add language_d.
6519 * symfile.c (init_filename_language_table): Add language_d.
6520 * symtab.c: Include d-lang.h.
6521 (symbol_init_language_specific, symbol_find_demangled_name)
6522 (symbol_natural_name, lookup_symbol_in_language)
6523 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6524
6525 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6526
6527 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6528
6529 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6530
6531 * symfile.c (init_filename_language_table): Register .dg files
6532 with language_ada.
6533
6534 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6535
6536 * gdbtypes.h (struct main_type): Expand comment about target_type
6537 field.
6538
6539 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6540 Tristan Gingold <gingold@adacore.com>
6541
6542 * symfile.c (reread_symbols): Also search for file in libraries.
6543 Update comment.
6544
6545 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6546
6547 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6548 in terms of configuration.
6549
6550 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6551
6552 * objfiles.c: Include solist.h.
6553 (free_all_objfiles): New variable so. Check stale solist objfiles.
6554 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6555 and no_shared_libraries.
6556
6557 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6558
6559 ARI warning fix.
6560 * python/py-auto-load.c (source_section_scripts): Remove trailing
6561 new-line in i18n string.
6562
6563 2010-04-26 Doug Evans <dje@google.com>
6564
6565 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6566
6567 2010-04-26 Tom Tromey <tromey@redhat.com>
6568
6569 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6570 command list.
6571
6572 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6573
6574 Removal of config/i386/nm-i386sol2.h native configuration file.
6575 * config/i386/nm-i386sol2.h: Remove file.
6576 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6577 * config/i386/sol2-64.mh: Idem.
6578 * config/djgpp/fnchange.lst: Remove reference to that file.
6579 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6580
6581 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6582
6583 PR breakpoints/11531.
6584 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6585 macro definition and related comment.
6586 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6587 (resume): Remove code and comment related to this macro.
6588
6589 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6590
6591 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6592 Fix whitespace.
6593
6594 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6595
6596 * defs.h: Adjust comment.
6597 * filesystem.h, filesystem.c: New files.
6598 * Makefile.in (SFILES): Add filesystem.c.
6599 (COMMON_OBS): Add filesystem.o.
6600 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6601 different target and host path flavours.
6602 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6603 has_dos_based_file_system on the gdbarch.
6604 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6605 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6606 * i386-tdep.c (i386_go32_init_abi): Ditto.
6607 * gdbarch.sh (has_dos_based_file_system): New.
6608 * gdbarch.h, gdbarch.c: Regenerate.
6609 * NEWS: Mention improved support for remote targets with DOS-based
6610 filesystems. Mention new `set/show target-file-system-kind'
6611 commands.
6612
6613 2010-04-23 Stan Shebs <stan@codesourcery.com>
6614
6615 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6616 comments.
6617 (struct agent_reqs): Remove.
6618 (ax_reg_mask): Declare.
6619 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6620 (free_agent_expr): Free reg_mask.
6621 (ax_print): Add scope and register mask info.
6622 (ax_reqs): Remove agent_reqs argument, use agent expression
6623 fields, and move part of register mask computation to...
6624 (ax_reg_mask): New function.
6625 * ax-gdb.c (gen_trace_static_fields): Call it.
6626 (gen_traced_pop): Ditto.
6627 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6628 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6629 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6630 (gen_eval_for_expr): Ditto, and require an rvalue.
6631 (agent_command): Call ax_reqs.
6632 (agent_eval_command): Ditto.
6633 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6634 (validate_action_line): Ditto.
6635 (collect_symbol): Ditto.
6636 (encode_actions_1): Ditto.
6637
6638 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6639 Paul Pluzhnikov <ppluzhnikov@google.com>
6640 Jan Kratochvil <jan.kratochvil@redhat.com>
6641
6642 Fix deadlock on looped list of loaded shared objects.
6643 * solib-svr4.c (LM_PREV): New function.
6644 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6645 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6646 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6647 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6648
6649 2010-04-23 Doug Evans <dje@google.com>
6650
6651 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6652 python.
6653 * configure: Regenerate.
6654 * main.c: #include "python/python.h".
6655 (captured_main): Defer loading auto-loaded scripts until after
6656 local_gdbinit has been sourced.
6657 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6658 (load_auto_scripts_for_objfile): New function.
6659 (auto_load_new_objfile): Call it.
6660 * python/python.h (gdbpy_global_auto_load): Declare.
6661 (load_auto_scripts_for_objfile): Declare.
6662
6663 Add support for auto-loading scripts from .debug_gdb_scripts section.
6664 * NEWS: Add entry for .debug_gdb_scripts.
6665 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6666 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6667 (py-auto-load.o): New rule.
6668 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6669 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6670 * python/py-auto-load.c: New file.
6671 * python/python-internal.h: #include <stdio.h>.
6672 (set_python_list, show_python_list): Declare.
6673 (gdbpy_initialize_auto_load): Declare.
6674 (source_python_script_for_objfile): Declare.
6675 * python/python.c: Remove #include of observer.h.
6676 (gdbpy_auto_load): Moved to py-auto-load.c.
6677 (GDBPY_AUTO_FILENAME): Ditto.
6678 (gdbpy_new_objfile): Delete.
6679 (source_python_script_for_objfile): New function.
6680 (set_python_list, show_python_list): Make externally visible.
6681 (_initialize_python): Move "auto-load" command to py-auto-load.c
6682 and observer_attach_new_objfile to py-auto-load.c.
6683
6684 2010-04-23 Jerome Guitton <guitton@adacore.com>
6685
6686 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6687 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6688 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6689 New constants.
6690 (alpha_heuristic_analyze_probing_loop): New function.
6691 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6692 and handle cases when a stack probe loop is generated.
6693 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6694 (alpha_mdebug_max_frame_size_exceeded): New function.
6695 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6696 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6697 Return 0 when the maximum debuggable frame size has been exceeded.
6698
6699 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6700
6701 Fix ARI warning.
6702 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6703
6704 2010-04-20 Chris Moller <cmoller@redhat.com>
6705
6706 PR 10179
6707
6708 * symtab.c (rbreak_command): Added code to include a filename
6709 specification in the rbreak argument.
6710 * NEWS: Added a brief description of filename-qualified rbreak.
6711
6712 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6713
6714 Fix crashes on dangling display expressions.
6715 * ada-lang.c (ada_operator_check): New function.
6716 (ada_exp_descriptor): Fill-in the field operator_check.
6717 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6718 * jv-lang.c (exp_descriptor_java): Likewise.
6719 * m2-lang.c (exp_descriptor_modula2): Likewise.
6720 * scm-lang.c (exp_descriptor_scm): Likewise.
6721 * parse.c (exp_descriptor_standard): Likewise.
6722 (operator_check_standard): New function.
6723 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6724 * parser-defs.h (struct exp_descriptor): New field operator_check.
6725 (operator_check_standard, exp_uses_objfile): New declarations.
6726 * printcmd.c: Remove the inclusion of solib.h.
6727 (display_uses_solib_p): Remove the function.
6728 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6729 and exp_uses_objfile instead of display_uses_solib_p.
6730 * solist.h (struct so_list) <objfile>: New comment.
6731 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6732 * symtab.h (lookup_objfile_from_block): New declaration.
6733 (struct general_symbol_info) <obj_section>: Extend the comment.
6734
6735 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6736 Thiago Jung Bauermann <bauerman@br.ibm.com>
6737
6738 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6739 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6740 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6741 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6742 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6743 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6744 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6745 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6746 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6747 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6748 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6749 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6750 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6751 Define, in case <ptrace.h> doesn't provide it.
6752 (booke_debug_info): New variable.
6753 (max_slots_number): Ditto.
6754 (hw_break_tuple): New struct.
6755 (thread_points): Ditto.
6756 (ppc_threads): New variable.
6757 (PPC_DEBUG_CURRENT_VERSION): New define.
6758 (have_ptrace_new_debug_booke): New function.
6759 (ppc_linux_check_watch_resources): Renamed to ...
6760 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6761 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6762 (booke_cmp_hw_point): New function.
6763 (booke_find_thread_points_by_tid): Ditto.
6764 (booke_insert_point): Ditto.
6765 (booke_remove_point): Ditto.
6766 (ppc_linux_insert_hw_breakpoint): Ditto.
6767 (ppc_linux_remove_hw_breakpoint): Ditto.
6768 (get_trigger_type): Ditto.
6769 (ppc_linux_insert_watchpoint): Handle BookE processors.
6770 (ppc_linux_remove_watchpoint): Ditto.
6771 (ppc_linux_new_thread): Ditto.
6772 (ppc_linux_thread_exit): New function..
6773 (ppc_linux_stopped_data_address): Handle BookE processors.
6774 (ppc_linux_watchpoint_addr_within_range): Ditto.
6775 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6776 to_remove_hw_breakpoint fields of the target operations struct.
6777 Add observe for the thread_exit event.
6778
6779 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6780
6781 * i386-linux-nat.c (regmap): Removed.
6782 (fetch_register): Replace regmap with
6783 i386_linux_gregset_reg_offset.
6784 (store_register): Likewise.
6785 (supply_gregset): Likewise.
6786 (fill_gregset): Likewise.
6787
6788 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6789 global.
6790
6791 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6792
6793 2010-04-22 Chris Moller <cmoller@redhat.com>
6794
6795 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6796 method of popping recursion-detection stack with a method based on
6797 obstack_object_size(). (Similar to the PR9167 patch below, but for
6798 the static array obstack rather than the static member obstack.)
6799
6800 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6801
6802 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6803 (_initialize_amd64_linux_nat): Replace
6804 amd64_linux_gregset64_reg_offset with
6805 amd64_linux_gregset_reg_offset.
6806
6807 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6808 global.
6809
6810 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6811
6812 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6813
6814 PR stabs/11479.
6815 * stabsread.c (set_length_in_type_chain): New function.
6816 (read_struct_type): Call set_length_in_type_chain function.
6817 (read_enum_type): Idem.
6818
6819 2010-04-21 Stan Shebs <stan@codesourcery.com>
6820 Nathan Sidwell <nathan@codesourcery.com>
6821
6822 * tracepoint.c (trace_save): Open in binary mode.
6823
6824 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6825
6826 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6827 fields.
6828 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6829 builtin_char32 fields.
6830 * printcmd.c (decode_format): Set char size to '\0'
6831 for strings unless explicit size is given.
6832 (print_formatted): Correct calculation of NEXT_ADDRESS
6833 for 16 or 32 bit strings.
6834 (do_examine): Do not force byte size for strings.
6835 Use builtin_char16 and builtin_char32 types to display
6836 16 or 32 bit-wide strings.
6837 (x_command): Set LAST_SIZE to 'b' for string type.
6838
6839 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6840
6841 PR corefiles/11523
6842 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6843 XCR0 first.
6844
6845 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6846 there is no .reg-xstate section.
6847 (i386_linux_core_read_description): Check XCR0 first.
6848
6849 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6850
6851 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6852 for len <= 8.
6853
6854 2010-04-21 Chris Moller <cmoller@redhat.com>
6855
6856 PR 9167
6857 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6858 method of popping recursion-detection stack with a method based on
6859 obstack_object_size().
6860
6861 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6862
6863 PR pascal/11492.
6864 * p-valprint.c (pascal_val_print): Fix default printing of integer
6865 arrays.
6866
6867 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6868
6869 Fix compilation warning on gcc-4.1.2.
6870 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6871 local variable`pc' to zero.
6872
6873 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6874
6875 Implement thread support with core files on alpha-tru64.
6876 * dec-thread.c (dec_thread_find_new_threads): New function,
6877 extracted from resync_thread_list.
6878 (resync_thread_list): Add OPS parameter. Replace extracted-out
6879 code by call to dec_thread_find_new_threads.
6880 (dec_thread_wait): Update call to resync_thread_list.
6881 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6882
6883 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6884
6885 * ada-lang.c (value_pointer): New function.
6886 (make_array_descriptor): Call value_pointer to convert addresses to
6887 pointers.
6888
6889 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6890
6891 * rs6000-aix-tdep.c: #include exceptions.h.
6892 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6893 while reading the memory at ADDR, then ADDR cannot be a function
6894 descriptor.
6895
6896 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6897
6898 * ada-typeprint.c (ada_print_typedef): New function.
6899 * ada-lang.h (ada_print_typedef): Add declaration.
6900 * ada-lang.c (ada_language_defn): set la_print_typdef field
6901 to ada_print_typedef.
6902
6903 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6904
6905 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6906
6907 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6908
6909 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6910 (iterate_over_mappings): Adjust function profile. Add declaration.
6911 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6912 Adjust accordingly.
6913
6914 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6915
6916 * procfs.c (solib_mappings_callback): Move function up to avoid
6917 a compiler warning.
6918
6919 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6920
6921 * procfs.c (find_signalled_thread, find_stop_signal): Move
6922 these functions down to define them only when used.
6923
6924 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6925
6926 * valprint.c (common_val_print): Fix the value before extracting
6927 its contents.
6928 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6929 * ada-lang.h (ada_to_fixed_value): New function declaration.
6930 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6931 to avoid code duplication and fix a bug in the handling of
6932 fixed types contents.
6933
6934 2010-04-20 Tom Tromey <tromey@redhat.com>
6935
6936 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6937 (read_partial_die): Likewise.
6938 (dwarf_attr_name): Likewise.
6939
6940 2010-04-20 Chris Moller <cmoller@redhat.com>
6941
6942 PR 10867
6943
6944 * cp-valprint.c (global): Adding new static array recursion
6945 detection obstack.
6946 (cp_print_value_fields, cp_print_static_field): Added new static
6947 array recursion detection code.
6948
6949 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6950
6951 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6952 general-purpose register set should be 68 instead of 144.
6953 (i386_linux_sse_regset_sections): Likewise.
6954 (i386_linux_avx_regset_sections): Likewise.
6955
6956 2010-04-20 Stan Shebs <stan@codesourcery.com>
6957 Nathan Sidwell <nathan@codesourcery.com>
6958
6959 * dwarf2loc.c (struct axs_var_loc): New struct.
6960 (dwarf2_tracepoint_var_loc): New function.
6961 (dwarf2_tracepoint_var_access): New function.
6962 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6963 with DW_OP_piece.
6964 (locexpr_describe_location_piece): New function.
6965 (locexpr_describe_location_1): New function.
6966 (locexpr_describe_location): Call it, update signature.
6967 (loclist_describe_location): Rewrite to loop over locations,
6968 update signature.
6969 * symtab.h (struct symbol_computed_ops): Add address to
6970 describe_location arguments, return void.
6971 * printcmd.c (address_info): Get context PC, pass to computed
6972 location description.
6973 * tracepoint.c (scope_info): Ditto.
6974 * ax-gdb.c (trace_kludge): Export.
6975
6976 2010-04-20 Tom Tromey <tromey@redhat.com>
6977
6978 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6979 (struct dwarf2_cie) <segment_size>: New field.
6980 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6981 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6982 DW_FORM_exprloc.
6983 (read_attribute_value): Handle DW_FORM_flag_present,
6984 DW_FORM_sec_offset, DW_FORM_exprloc.
6985 (dump_die_shallow): Likewise.
6986 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6987 (dwarf2_const_value): Handle DW_FORM_exprloc.
6988 (attr_form_is_block): Likewise.
6989 (struct line_header) <maximum_ops_per_instruction>: New field.
6990 (dwarf_decode_line_header): Set new field.
6991 (dwarf_decode_lines): Handle new field.
6992
6993 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6994
6995 * f-exp.y: Add new production to recognize the `logical*8' type.
6996 (LOGICAL_S8_KEYWORD): New token.
6997 * f-lang.c (enum f_primitive_types)
6998 <f_primitive_type_logical_s8>: New field.
6999 (f_language_arch_info): Handling `logical*8' type.
7000 (build_fortran_types): Building `logical*8' type.
7001 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
7002
7003 2010-04-19 Doug Evans <dje@google.com>
7004
7005 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
7006 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
7007 (pipe_close): Ditto.
7008
7009 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7010
7011 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
7012
7013 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7014
7015 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
7016 type to void function.
7017
7018 2010-04-19 Stan Shebs <stan@codesourcery.com>
7019 Vladimir Prus <vladimir@codesourcery.com>
7020
7021 * tracepoint.c (tfind_1): Add missing newline, report exit from
7022 tfind mode as such.
7023 * target.c (update_current_target): Make default
7024 to_trace_find return -1.
7025
7026 2010-04-19 Mike Frysinger <vapier@gentoo.org>
7027
7028 * objc-lang.c (find_methods): Move symname check up.
7029
7030 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7031
7032 * ada-lang.c (print_recreate_exception)
7033 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
7034 not "catch unhandled".
7035
7036 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7037
7038 PR breakpoints/8554.
7039
7040 Implement `save-breakpoints'.
7041
7042 * breakpoint.c (save_cmdlist): New.
7043 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
7044 to save_cmdlist.
7045 (print_recreate_catch_fork): New.
7046 (catch_fork_breakpoint_ops): Install it.
7047 (print_recreate_catch_vfork): New.
7048 (catch_vfork_breakpoint_ops): Install it.
7049 (print_recreate_catch_syscall): New.
7050 (catch_syscall_breakpoint_ops): Install it.
7051 (print_recreate_catch_exec): New.
7052 (catch_exec_breakpoint_ops): Install it.
7053 (print_recreate_exception_catchpoint): New.
7054 (gnu_v3_exception_catchpoint_ops): Install it.
7055 (save_breakpoints): New, based on tracepoint_save_command, but
7056 handle all breakpoint types.
7057 (save_breakpoints_command): New.
7058 (tracepoint_save_command): Rename to...
7059 (save_tracepoints_command): ... this, and reimplement using
7060 save_breakpoints.
7061 (save_command): New.
7062 (_initialize_breakpoints): Install the "save" command prefix.
7063 Install the "save breakpoints" command. Make "save-tracepoints" a
7064 deprecated alias for "save tracepoints".
7065 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
7066 * ada-lang.c (print_recreate_exception): New.
7067 (print_recreate_catch_exception): New.
7068 (catch_exception_breakpoint_ops): Install it.
7069 (print_recreate_catch_exception_unhandled): New.
7070 (catch_exception_unhandled_breakpoint_ops): Install it.
7071 (print_recreate_catch_assert): New.
7072 (catch_assert_breakpoint_ops): Install it.
7073
7074 * NEWS: Mention the new `save breakpoints' command. Mention the
7075 new `save tracepoints' alias and that `save-tracepoints' is now
7076 deprecated.
7077
7078 2010-04-18 Pedro Alves <pedro@codesourcery.com>
7079
7080 PR tui/9217
7081
7082 * tui/tui-out.c: Include cli-out.h.
7083 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7084 (tui_begin, tui_end, tui_field_int, tui_field_skip)
7085 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
7086 (tui_message, tui_wrap_hint, tui_flush): Delete forward
7087 declarations.
7088 (struct ui_out_data): Rename to...
7089 (struct tui_ui_out_data): ... this. Remove `stream' and
7090 `suppress_output' fields, and inherit cli_ui_out_data.
7091 (tui_out_data): New typedef.
7092 (tui_ui_out_impl): Don't initialize fields staticaly.
7093 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7094 (tui_begin, tui_end): Delete.
7095 (tui_field_int): Adjust to delegate most work to the base type.
7096 (tui_field_skip): Delete.
7097 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
7098 delegate most work to the base type.
7099 (tui_spaces): Delete.
7100 (tui_text): Adjust to delegate most work to the base type.
7101 (tui_message): Delete.
7102 (tui_wrap_hint): Delete.
7103 (tui_flush): Delete.
7104 (out_field_fmt): Delete.
7105 (field_separator): Delete.
7106 (tui_out_new): Adjust to initialize the base type.
7107 (_initialize_tui_out): Initialize tui_ui_out_impl.
7108 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
7109 cli_ui_out_data.
7110 (cli_out_data): Adjust.
7111 (cli_ui_out_impl): Make extern.
7112 (cli_table_header, cli_field_int, cli_field_skip): Use
7113 uo_field_string instead of cli_field_string.
7114 (cli_redirect): Adjust to use cli_out_data.
7115 (cli_out_data_ctor): New.
7116 (cli_out_new): Use it.
7117 * cli-out.h (struct ui_file): Remove forward declaration.
7118 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7119 (cli_ui_out_impl): Declare.
7120 (cli_out_data_ctor): Declare.
7121 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7122 (uo_field_string): No longer static.
7123 (ui_out_data): Change return type to void pointer.
7124 (ui_out_new): Change `data' parameter type to void pointer.
7125 * ui-out.h (struct ui_out_data): Don't forward declare.
7126 (ui_out_data): Change return type to void pointer.
7127 (ui_out_new): Change `data' parameter type to void pointer.
7128 (uo_field_string): Declare.
7129
7130 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7131
7132 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7133 instead of always false.
7134
7135 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7136
7137 PR corefiles/11511
7138 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7139 orig_rax.
7140
7141 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7142
7143 * breakpoint.c (watchpoints_triggered): Use
7144 is_hardware_watchpoint.
7145 (watchpoints_triggered): Ditto.
7146 (bpstat_check_location): Use is_watchpoint and
7147 is_hardware_watchpoint.
7148 (bpstat_check_watchpoint): Use is_watchpoint and
7149 is_hardware_watchpoint.
7150 (bpstat_stop_status): Fix comment.
7151 (user_settable_breakpoint): Use is_watchpoint.
7152 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7153 (disable_watchpoints_before_interactive_call_start): Use
7154 is_watchpoint.
7155 (enable_watchpoints_after_interactive_call_stop): Use
7156 is_watchpoint.
7157 (clear_command): Use is_watchpoint.
7158 (do_enable_breakpoint): Use is_watchpoint.
7159
7160 2010-04-16 Mike Frysinger <vapier@gentoo.org>
7161
7162 * solib-frv.c (enable_break1_done): Delete.
7163 (enable_break2): Do not check enable_break1_done. Move the
7164 enable_break2_done setting and call to
7165 remove_solib_event_breakpoints() to the end. Return without
7166 warning when the contents of _dl_debug_addr are 0.
7167 (enable_break): Do not set enable_break1_done.
7168 (frv_clear_solib): Likewise.
7169
7170 2010-04-16 Kevin Buettner <kevinb@redhat.com>
7171
7172 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7173 instead of an error if no PLT entry is found. Return a
7174 potentially useful result.
7175 (m32c_m16c_pointer_to_address): Add code to search for function
7176 address when no .plt entry is found.
7177
7178 2010-04-16 Stan Shebs <stan@codesourcery.com>
7179
7180 * tracepoint.c (trace_variable_command): Run a cleanup.
7181
7182 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7183
7184 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7185
7186 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7187
7188 Support for Windows OS Thread Information Block.
7189 * NEWS: Document new feature.
7190 * remote.c (PACKET_qGetTIBAddr): New enum element.
7191 (remote_get_tib_address): New function.
7192 (init_remote_ops): Set to_get_tib_address field
7193 to remote_get_tib_address.
7194 (_initialize_remote): Add add_packet_config_cmd
7195 for PACKET_qGetTIBAddr.
7196 * target.c (update_current_target): Set default value for
7197 new to_get_tib_address field.
7198 * target.h (target_ops): New field to_get_tib_address.
7199 (target_get_tib_address): New macro.
7200 * windows-nat.c (thread_info): Add thread_local_base field.
7201 (windows_add_thread): Add tlb argument of type 'void *'.
7202 (fake_create_process): Adapt windows_add_thread call.
7203 (get_windows_debug_event): Idem.
7204 (windows_get_tib_address): New function.
7205 (init_windows_ops): Set to_get_tib_address field
7206 to remote_get_tib_address.
7207 (_initialize_windows_nat): Replace info_w32_cmdlist
7208 initialization by a call to init_w32_command_list.
7209 (info_w32_command, info_w32_cmdlist): Removed from here...
7210 to windows-tdep.c file.
7211 * windows-tdep.h (info_w32_cmdlist): Declare.
7212 (init_w32_command_list): New external function
7213 declaration.
7214 * windows-tdep.c: Add several headers.
7215 (info_w32_cmdlist): to here, made global.
7216 (thread_information_32): New struct.
7217 (thread_information_64): New struct.
7218 (TIB_NAME): New char array.
7219 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7220 (maint_display_all_tib): New static variable.
7221 (windows_get_tlb_type): New function.
7222 (tlb_value_read, tlb_value_write): New functions.
7223 (tlb_value_funcs): New static struct.
7224 (tlb_make_value): New function.
7225 (display_one_tib): New function.
7226 (display_tib): New function.
7227 (show_maint_show_all_tib):New function.
7228 (info_w32_command): Moved from windows-nat.c.
7229 (init_w32_command_list): New function.
7230 (_initialize_windows_tdep): New function.
7231 New "maint set/show show-all-tib" command
7232 New "$_tlb" internal variable.
7233
7234 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7235
7236 * tui/tui-regs.c (tui_display_register): Add comment about
7237 a couple of casts.
7238 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7239
7240 2010-04-15 Stan Shebs <stan@codesourcery.com>
7241
7242 * frame.c: Include tracepoint.h.
7243 (get_current_frame): Allow a trace frame to be an alternate source
7244 of stack frame data.
7245 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7246 it won't succeed.
7247
7248 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7249
7250 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7251 flags.
7252 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7253
7254 2010-04-15 Doug Evans <dje@google.com>
7255
7256 * NEWS: Add entry for python program space support.
7257 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7258 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7259 (py-progspace.o): New rule.
7260 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7261 function.
7262 (find_pretty_printer_from_progspace): New function.
7263 (find_pretty_printer_from_gdb): New function.
7264 (find_pretty_printer): Rewrite.
7265 * python/py-progspace.c: New file.
7266 * python/python-internal.h (program_space): Add forward decl.
7267 (pspace_to_pspace_object, pspy_get_printers): Declare.
7268 (gdbpy_initialize_pspace): Declare.
7269 * python/python.c: #include "progspace.h".
7270 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7271 (_initialize_python): Call gdbpy_initialize_pspace.
7272 (GdbMethods): Add current_progspace, progspaces.
7273
7274 Add -s option to source command.
7275 * NEWS: Document new option.
7276 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7277 Delete from_tty and cleanupp args. Split filep arg into file and
7278 full_pathp. New arg search_path.
7279 (source_script_from_stream): New function.
7280 (source_script_with_search): New function.
7281 (source_script): Rewrite.
7282 (source_command): Parse "-s" option.
7283 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7284 * python/python.c (source_python_script): Make file arg a const char *.
7285 Don't call fclose, leave for caller.
7286 * python/python.h (source_python_script): Update.
7287
7288 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7289 Pedro Alves <pedro@codesourcery.com>
7290
7291 Avoid rereading shared libraries that haven't changed.
7292
7293 * solib.c (free_so_symbols): New function, from ...
7294 (free_so): ... here. Call it.
7295 (solib_read_symbols): Don't warn here if symbols have already been
7296 loaded.
7297 (solib_add): Warn here instead, if a pattern was specified.
7298 (reload_shared_libraries_1): New.
7299 (reload_shared_libraries): Rewrite to not fetch the library list.
7300
7301 2010-04-14 Doug Evans <dje@google.com>
7302
7303 * source.c (openp): Strip DOS drive letter if present before
7304 concatenating string to search path.
7305
7306 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7307
7308 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7309 * objfiles.c (gdb_bfd_close_or_warn): New.
7310 * corelow.c: Include objfiles.h
7311 (core_close): Use gdb_bfd_close_or_warn.
7312 * elfread.c (build_id_verify): Ditto.
7313 * exec.c (exec_close, exec_close_1): Ditto.
7314
7315 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7316 Pedro Alves <pedro@codesourcery.com>
7317
7318 Group errors for many missing shared libraries.
7319
7320 * solist.h (struct so_list): Remove from_tty.
7321 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7322 (solib_map_sections): Take so_list argument. Return 0 if we
7323 failed to open a BFD. Add target sections here.
7324 (symbol_add_stub): Delete.
7325 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7326 not from_tty copied from the so_list. Don't warn a second time
7327 for a missing library.
7328 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7329 add to the section table here. Print out a single warning for all
7330 missing libraries.
7331 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7332 flags.
7333
7334 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7335
7336 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7337 error/warning messages. Capitalize and use complete sentences.
7338 (blpy_block_syms_iternext): Likewise.
7339 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7340 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7341 (frame_info_to_frame_object, frapy_read_var)
7342 (gdbpy_frame_stop_reason_string): Likewise.
7343 * python/py-lazy-string.c (stpy_convert_to_value)
7344 (gdbpy_create_lazy_string_object): Likewise.
7345 * python/py-objfile.c (objfpy_set_printers): Likewise.
7346 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7347 * python/python.c (parameter_to_python): Likewise.
7348 * python/py-type.c (typy_range, typy_target): Likewise.
7349 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7350 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7351
7352
7353 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7354
7355 PR python/11381
7356
7357 * python/py-prettyprint.c (pretty_print_one_value): Test for
7358 Py_None.
7359 (print_string_repr): Test for Py_None. Set flags accordingly.
7360 Return value depending on return type.
7361 (print_children): Take a value indicating whether data was printed
7362 before this function was called. Alter output accordingly.
7363 (apply_val_pretty_printer): Capture return value from
7364 print_string_repr and pass to print_children.
7365
7366 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7367
7368 PR corefiles/11481
7369 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7370 register note sections.
7371 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7372 New variables.
7373 (i386_linux_init_abi): Install list of supported register note
7374 sections that matches the target description.
7375
7376 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7377
7378 * remote.c (remote_get_noisy_reply): Don't error out on empty
7379 replies.
7380 (remote_start_remote): Update and merge tracepoints and trace
7381 state variables as long as the target supports tracepoints.
7382 (remote_trace_init): Fix prototype.
7383 (remote_download_trace_state_variable): Validate reply.
7384 (remote_trace_set_readonly_regions): Fix prototype.
7385 (remote_trace_start): Fix prototype. Check for empty reply.
7386 (remote_get_trace_status): Small cleanup.
7387 (remote_trace_stop): Fix prototype. Check for empty reply.
7388 (remote_trace_find): Check for empty reply.
7389 (remote_save_trace_data): Validate reply.
7390 (remote_set_disconnected_tracing): Check for empty reply, and
7391 validate reply.
7392 (remote_set_circular_trace_buffer): Ditto.
7393
7394 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7395
7396 Suppress unused value warning during compilation.
7397 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7398 calls to void.
7399 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7400
7401 2010-04-12 Stan Shebs <stan@codesourcery.com>
7402
7403 * tracepoint.c (tfile_xfer_partial): Check read result.
7404
7405 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7406
7407 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7408 * remote-sim.c (gdbsim_files_info): Likewise.
7409
7410 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7411
7412 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7413 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7414 variable.
7415 (fetch_vfp_registers): New function to fetch VFP registers.
7416 (store_vfp_registers): New function to store VFP registers.
7417 (arm_linux_fetch_inferior_registers): Add support for VFP
7418 registers.
7419 (arm_linux_store_inferior_registers): Likewise.
7420 (arm_linux_read_description): Likewise.
7421 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7422 until we need it.
7423
7424 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7425
7426 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7427 tdep.
7428 (amd64_collect_xstateregset): Likewise.
7429
7430 2010-04-09 Stan Shebs <stan@codesourcery.com>
7431
7432 * tracepoint.c (trace_status_mi): Report frames created.
7433
7434 * tracepoint.c (trace_dump_command): Include default-collect
7435 expressions.
7436
7437 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7438
7439 * symtab.c (find_function_start_sal): Never return SAL pointing
7440 before function start address, even if line info is missing.
7441
7442 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7443
7444 * NEWS: Mention tracepoints support.
7445
7446 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7447
7448 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7449 circular trace buffer statuses.
7450
7451 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7452
7453 * config/djgpp/fnchange.lst: Fix typo in translations for
7454 symbol-without-target_section.exp and symbol-without-target_section.c.
7455
7456 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7457
7458 * breakpoint.c (condition_command): Pass condition expression to
7459 set_breakpoint_condition stripped from breakpoint number.
7460
7461 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7462 Thiago Jung Bauermann <bauerman@br.ibm.com>
7463 Tom Tromey <tromey@redhat.com>
7464
7465 * breakpoint.c (condition_command): Simplify. Move condition
7466 setting code to ...
7467 (set_breakpoint_condition): ... here. New function.
7468 * breakpoint.h (set_breakpoint_condition): Declare.
7469 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7470 (SUBDIR_PYTHON_SRCS): Likewise.
7471 (py-breakpoint.o): New rule.
7472 * python/py-breakpoint.c: New file.
7473 * python/python-internal.h (gdbpy_breakpoints)
7474 (gdbpy_initialize_breakpoints): Declare.
7475 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7476
7477 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7478
7479 * regformats/regdat.sh: Include server.h. Don't include
7480 regcache.h.
7481
7482 2010-04-08 Stan Shebs <stan@codesourcery.com>
7483 Pedro Alves <pedro@codesourcery.com>
7484
7485 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7486 and circular_buffer.
7487 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7488 * tracepoint.c (trace_status_command): Display target's status for
7489 disconnected tracing and circular buffer.
7490 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7491 query for non-disconnected-tracing case, remove the stop_tracing
7492 call.
7493 (tfile_open): Clear disconnected and circular buffer status.
7494 (trace_save): Save disconnected and circular buffer status.
7495 (parse_trace_status): Parse disconnected and circular buffer status,
7496 also recognize disconnected as a stop reason.
7497 * remote.c (remote_set_disconnected_tracing): Only set
7498 QTDisconnected if the remote end supports disconnected tracing.
7499 Warn otherwise, if trying to enable disconnected tracing.
7500 * infcmd.c (detach_command): Update disconnect_tracing call.
7501 * cli/cli-cmds.c (quit_command): Ditto.
7502
7503 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7504
7505 * i387-tdep.c (i387_collect_xsave): Replace abort with
7506 internal_error.
7507
7508 2010-04-08 Stan Shebs <stan@codesourcery.com>
7509
7510 * breakpoint.c (default_collect_info): New function.
7511 (breakpoints_info): Call it.
7512 (maintenance_info_breakpoints): Ditto.
7513 (tracepoints_info): Ditto.
7514
7515 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7516
7517 * i387-tdep.c (i387_collect_xsave): Re-indent.
7518
7519 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7520
7521 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7522 if HAVE_PTRACE_GETFPXREGS is defined.
7523 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7524 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7525
7526 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7527 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7528 if .reg-xfp section doesn't exist.
7529 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7530
7531 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7532
7533 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7534 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7535 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7536 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7537 (i386_gdbarch_init): Update comments.
7538 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7539
7540 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7541
7542 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7543
7544 * features/Makefile (i386/i386-mmx-expedite): New.
7545 (i386/i386-mmx-linux-expedite): Likewise.
7546 ($(outdir)/i386/i386-mmx.dat): Likewise.
7547 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7548
7549 * features/i386/i386-mmx-linux.c: New.
7550 * features/i386/i386-mmx-linux.xml: Likewise.
7551 * features/i386/i386-mmx.c: Likewise.
7552 * features/i386/i386-mmx.xml: Likewise.
7553 * regformats/i386/i386-mmx-linux.dat: Likewise.
7554 * regformats/i386/i386-mmx.dat: Likewise.
7555
7556 * features/Makefile (WHICH): Add i386/i386-mmx and
7557 i386/i386-mmx-linux.
7558
7559 2010-04-08 Doug Evans <dje@google.com>
7560
7561 * source.c (openp): Skip $cdir in PATH.
7562
7563 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7564
7565 PR python/11417
7566 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7567 a NULL address.
7568 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7569 address and a zero length.
7570
7571 2010-04-08 Hui Zhu <teawater@gmail.com>
7572
7573 * i386-tdep.c (i386_process_record): Add support for insn
7574 rdtsc.
7575
7576 2010-04-07 Doug Evans <dje@google.com>
7577
7578 * python/python.c (source_python_script): Use ensure_python_env
7579 to prepare environment for script.
7580
7581 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7582
7583 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7584 <sys/uio.h> and "i386-xstate.h".
7585 (PTRACE_GETREGSET): New.
7586 (PTRACE_SETREGSET): Likewise.
7587 (have_ptrace_getregset): Likewise.
7588 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7589 registers.
7590 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7591 registers.
7592 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7593 (amd64_linux_store_inferior_registers): Likewise.
7594 (amd64_linux_read_description): Check and enable AVX target
7595 descriptions.
7596
7597 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7598 and "features/i386/amd64-avx-linux.c".
7599 (amd64_linux_regset_sections): New.
7600 (amd64_linux_core_read_description): Check and enable AVX
7601 target description.
7602 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7603 set_gdbarch_core_regset_sections.
7604 (_initialize_amd64_linux_tdep): Call
7605 initialize_tdesc_amd64_avx_linux.
7606
7607 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7608 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7609 (tdesc_amd64_avx_linux): New.
7610 (amd64_linux_update_xstateregset): Likewise.
7611
7612 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7613 (amd64_ymm_names): New.
7614 (amd64_ymmh_names): Likewise.
7615 (amd64_register_name): Likewise.
7616 (amd64_supply_xstateregset): Likewise.
7617 (amd64_collect_xstateregset): Likewise.
7618 (amd64_supply_xsave): Likewise.
7619 (amd64_collect_xsave): Likewise.
7620 (AMD64_NUM_REGS): Removed.
7621 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7622 %xmmN if AVX is available.
7623 (amd64_pseudo_register_name): Support pseudo YMM registers.
7624 (amd64_regset_from_core_section): Support .reg-xstate section.
7625 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7626 and ymm0h_regnum. Call set_gdbarch_register_name.
7627 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7628
7629 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7630 AMD64_YMM15H_REGNUM.
7631 (AMD64_NUM_REGS): New.
7632 (amd64_supply_xsave): Likewise.
7633 (amd64_collect_xsave): Likewise.
7634 (amd64_register_name): Removed.
7635 (amd64_register_type): Likewise.
7636
7637 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7638
7639 * i387-tdep.c: Include "i386-xstate.h".
7640 (XSAVE_XSTATE_BV_ADDR): New.
7641 (xsave_avxh_offset): Likewise.
7642 (XSAVE_AVXH_ADDR): Likewise.
7643 (i387_supply_xsave): Likewise.
7644 (i387_collect_xsave): Likewise.
7645
7646 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7647 (I387_YMM0H_REGNUM): Likewise.
7648 (I387_YMMENDH_REGNUM): Likewise.
7649 (i387_supply_xsave): Likewise.
7650 (i387_collect_xsave): Likewise.
7651
7652 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7653
7654 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7655 <sys/uio.h> and "i386-xstate.h".
7656 (PTRACE_GETREGSET): New.
7657 (PTRACE_SETREGSET): Likewise.
7658 (fetch_xstateregs): Likewise.
7659 (store_xstateregs): Likewise.
7660 (GETXSTATEREGS_SUPPLIES): Likewise.
7661 (regmap): Include 8 upper YMM registers.
7662 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7663 state.
7664 (i386_linux_store_inferior_registers): Likewise.
7665 (i386_linux_read_description): Check and enable AVX target
7666 descriptions.
7667
7668 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7669 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7670 (i386_linux_regset_sections): Add ".reg-xstate".
7671 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7672 (i386_linux_core_read_xcr0): New.
7673 (i386_linux_core_read_description): Check and enable AVX target
7674 description.
7675 (i386_linux_init_abi): Set xsave_xcr0_offset.
7676 (_initialize_i386_linux_tdep): Call
7677 initialize_tdesc_i386_avx_linux.
7678
7679 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7680 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7681 (i386_linux_core_read_xcr0): New.
7682 (tdesc_i386_avx_linux): Likewise.
7683 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7684
7685 * i386-tdep.c: Include "i386-xstate.h" and
7686 "features/i386/i386-avx.c".
7687 (i386_ymm_names): New.
7688 (i386_ymmh_names): Likewise.
7689 (i386_ymmh_regnum_p): Likewise.
7690 (i386_ymm_regnum_p): Likewise.
7691 (i386_xmm_regnum_p): Likewise.
7692 (i386_register_name): Likewise.
7693 (i386_ymm_type): Likewise.
7694 (i386_supply_xstateregset): Likewise.
7695 (i386_collect_xstateregset): Likewise.
7696 (i386_sse_regnum_p): Removed.
7697 (i386_pseudo_register_name): Support pseudo YMM registers.
7698 (i386_pseudo_register_type): Likewise.
7699 (i386_pseudo_register_read): Likewise.
7700 (i386_pseudo_register_write): Likewise.
7701 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7702 %xmmN if AVX is available.
7703 (i386_regset_from_core_section): Support .reg-xstate section.
7704 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7705 (i386_process_record): Replace i386_sse_regnum_p with
7706 i386_xmm_regnum_p.
7707 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7708 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7709 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7710 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7711 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7712 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7713 Set ymm0_regnum.
7714 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7715
7716 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7717 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7718 i386_ymm_type.
7719 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7720 (I386_AVX_NUM_REGS): New.
7721 (i386_xmm_regnum_p): Likewise.
7722 (i386_ymm_regnum_p): Likewise.
7723 (i386_ymmh_regnum_p): Likewise.
7724
7725 * common/i386-xstate.h: New.
7726
7727 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7728
7729 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7730
7731 * features/Makefile (WHICH): Add i386/i386-avx,
7732 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7733 (i386/i386-avx-expedite): New.
7734 (i386/i386-avx-linux-expedite): Likewise.
7735 (i386/x86-64-avx-expedite):Likewise.
7736 (i386/x86-64-avx-linux-expedite): Likewise.
7737 ($(outdir)/i386/i386-avx.dat): New dependency.
7738 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7739 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7740 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7741
7742 * features/i386/32bit-avx.xml: New.
7743 * features/i386/64bit-avx.xml: Likewise.
7744 * features/i386/i386-avx-linux.c: Likewise.
7745 * features/i386/i386-avx-linux.xml: Likewise.
7746 * features/i386/i386-avx.c: Likewise.
7747 * features/i386/i386-avx.xml: Likewise.
7748 * features/i386/x86-64-avx-linux.c: Likewise.
7749 * features/i386/x86-64-avx-linux.xml: Likewise.
7750 * features/i386/x86-64-avx.c: Likewise.
7751 * features/i386/x86-64-avx.xml: Likewise.
7752 * regformats/i386/i386-avx-linux.dat: Likewise.
7753 * regformats/i386/i386-avx.dat: Likewise.
7754 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7755 * regformats/i386/x86-64-avx.dat: Likewise.
7756
7757 2010-04-07 Doug Evans <dje@google.com>
7758
7759 * top.c (source_file_name): Make const char *.
7760 * top.h (source_file_name): Update.
7761 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7762 const char *.
7763 (script_from_file): Change `file' arg to const char *.
7764 * cli/cli-script.h (script_from_file): Update.
7765
7766 2010-04-06 Doug Evans <dje@google.com>
7767
7768 * cli/cli-cmds.c (source_command): Run cleanups.
7769
7770 2010-04-06 Stan Shebs <stan@codesourcery.com>
7771
7772 * defs.h (char_ptr): Move typedef here from...
7773 * ada-lang.c (char_ptr): Remove.
7774 * charset.c (char_ptr): Remove.
7775 * tracepoint.h (struct uploaded_string): Remove.
7776 (struct uploaded_tp): Use vectors for string arrays.
7777 * tracepoint.c (trace_save): Use vectors of actions.
7778 (parse_tracepoint_definition): Ditto.
7779 (get_uploaded_tp): Clear vectors.
7780 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7781 (next_cmd): Change to an int.
7782 (read_next_cmd): Use vector of command strings.
7783
7784 2010-04-06 Doug Evans <dje@google.com>
7785
7786 * top.h (source_script, cd_command): Delete.
7787 * main.c: #include "cli/cli-cmds.h"
7788
7789 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7790
7791 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7792 type in bytes, not bits.
7793
7794 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7795
7796 * stabsread.c (define_symbol): Add support for char
7797 and string constants.
7798
7799 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7800
7801 Remove remaining "%ll" uses.
7802 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7803 hex_string call.
7804 * rs6000-nat.c (rs6000_ptrace64): Idem.
7805 * solib-pa64.c (pa64_current_sos): Idem.
7806 * solib-spu.c (spu_current_sos): Idem.
7807 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7808 plongest call.
7809 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7810 phex (VAR, 8) call.
7811 * sh64-tdep.c (sh64_show_media_regs): Idem.
7812
7813 2010-04-05 Stan Shebs <stan@codesourcery.com>
7814
7815 * tracepoint.c: Include gdbcore.h.
7816 (tfile_xfer_partial): Return partial results, also try reading
7817 from executable.
7818 (tfile_has_all_memory): New function.
7819 (init_tfile_ops): Use it.
7820
7821 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7822
7823 PR gdb/10736:
7824 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7825 the changes in data-directory.
7826 (init_sysinfo): Reload the syscall XML file if the data-directory
7827 has changed.
7828
7829 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7830
7831 Code cleanup.
7832 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7833
7834 2010-04-04 Stan Shebs <stan@codesourcery.com>
7835 Nathan Sidwell <nathan@codesourcery.com>
7836
7837 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7838 breakpoints printed.
7839 (is_hardware_watchpoint): Make argument const.
7840 (is_watchpoint): Ditto.
7841 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7842 use it everywhere.
7843 (breakpoints_info): Pass NULL to breakpoint_1.
7844 (maintenance_info_breakpoints): Ditto.
7845 (watchpoints_info): New function.
7846 (tracepoints_info): Use breakpoint_1 filter.
7847 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7848 (_initialize_breakpoint): Make "info watchpoints" its own command.
7849 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7850 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7851
7852 2010-04-04 Stan Shebs <stan@codesourcery.com>
7853
7854 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7855
7856 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7857
7858 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7859 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7860
7861 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7862
7863 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7864 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7865
7866 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7867
7868 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7869 code form.
7870
7871 2010-04-02 Hui Zhu <teawater@gmail.com>
7872
7873 * i386-tdep.c (OT_DQUAD): New enum.
7874 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7875 SSE3, SSSE3 and SSE4.
7876
7877 2010-04-02 Hui Zhu <teawater@gmail.com>
7878
7879 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7880 "*addr = 0".
7881
7882 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7883
7884 * tracepoint.c (trace_dump_actions): New, factored out from
7885 trace_dump_command, and adjusted to recurse into while-stepping's
7886 action list.
7887 (trace_dump_command): Use it.
7888
7889 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7890
7891 * breakpoint.h (struct counted_command_line): Moved definition to
7892 breakpoint.c, and forward declare.
7893 (breakpoint_commands): Declare.
7894 * breakpoint.c (struct counted_command_line): Moved here.
7895 (breakpoint_commands): New.
7896 * tracepoint.c (encode_actions): Use breakpoint_commands.
7897 * remote.c (remote_download_tracepoint): Ditto.
7898
7899 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7900
7901 * remote.c (remote_parse_stop_reply): Use hex_string instead
7902 of phex_nz for error.
7903
7904 2010-04-01 Stan Shebs <stan@codesourcery.com>
7905 Nathan Sidwell <nathan@codesourcery.com>
7906
7907 * tracepoint.h (enum actionline_type): Remove.
7908 (validate_actionline): Change return to void.
7909 * tracepoint.c (report_agent_reqs_errors): New function.
7910 (validate_actionline): Call it, change return to void, report errors
7911 more consistently.
7912 (collect_symbol): Call report_agent_reqs_errors.
7913 (encode_actions_1): Ditto.
7914 (encode_actions): Don't expect a result from validate_actionline.
7915
7916 2010-04-01 Stan Shebs <stan@codesourcery.com>
7917
7918 * tracepoint.c (trace_start_command): Confirm if trace is running.
7919 (trace_stop_command): Error if trace not running.
7920
7921 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7922
7923 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7924 (AMD64_NUM_LOWER_BYTE_REGS): New.
7925 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7926 (amd64_pseudo_register_write): Likewise.
7927 (amd64_init_abi): Set num_byte_regs to 20.
7928
7929 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7930
7931 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7932 (prev_breakpoint_count): New.
7933 (set_breakpoint_count): Adjust.
7934 (rbreak_start_breakpoint_count): New.
7935 (start_rbreak_breakpoints): Adjust.
7936 (end_rbreak_breakpoints): Adjust.
7937 (struct commands_info) <arg>: New field.
7938 (do_map_commands_command): Tweak output to include breakpoint spec
7939 range.
7940 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7941 ARG was empty on entry. Set INFO's arg.
7942 (create_breakpoint): Adjust.
7943
7944 * NEWS: Clarify `commands' changes.
7945
7946 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7947
7948 * tracepoint.c: Include stack.h.
7949 (struct add_local_symbols_data): New.
7950 (do_collect_symbol): New.
7951 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7952 iterate_over_block_local_vars.
7953 * stack.c (print_block_frame_locals): Rewrite as ...
7954 (iterate_over_block_locals): ... this. Take a callback function
7955 pointer and generic data pointer, and call that instead of
7956 print_variable_and_value.
7957 (struct print_variable_and_value_data): New.
7958 (do_print_variable_and_value): New.
7959 (iterate_over_block_local_vars): New, abstracted out from
7960 print_frame_local_vars.
7961 (print_frame_local_vars): Rewrite using
7962 iterate_over_block_local_vars.
7963 (iterate_over_block_arg_vars): New, abstracted out from
7964 print_frame_arg_vars.
7965 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7966 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7967 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7968
7969 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7970
7971 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7972 instructions. Use the PC+4 if the base of the TBB or TBH is the
7973 PC register.
7974
7975 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7976
7977 Fix crash on reading wrong function declaration DWARF.
7978 * dwarf2read.c (read_subroutine_type): New variable void_type.
7979 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7980 more close to their use.
7981
7982 2010-03-31 Stan Shebs <stan@codesourcery.com>
7983
7984 * breakpoint.c (tracepoint_save_command): Include variables,
7985 conditionals, tracepoint types, and default-collect.
7986 * tracepoint.c (save_trace_state_variables): New function.
7987 * tracepoint.h (save_trace_state_variables): Declare it.
7988
7989 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7990
7991 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7992
7993 2010-03-30 Keith Seitz <keiths@redhat.com>
7994
7995 * c-typeprint.c (c_type_print_args): Don't print "void"
7996 for java, regardless of whether it is TYPE_PROTOTYPED.
7997 Use the passed-in language instead of current_language.
7998 (c_type_print_varspec_suffix): Use current_language instead
7999 of assuming language_c.
8000 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
8001 any return type specifier from the physname.
8002
8003 2010-03-30 Pedro Alves <pedro@codesourcery.com>
8004
8005 * tui/tui-interp.c (tui_is_toplevel): New.
8006 (tui_init): Set it.
8007 (tui_allowed_p): New.
8008 * tui/tui.c (tui_enable): Check if the TUI is allowed before
8009 enabling it.
8010 * tui/tui.h (tui_allowed_p): Declare.
8011
8012 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
8013
8014 * serial.h: Include winsock2.h before windows.h.
8015
8016 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
8017
8018 * NEWS: Mention xmlRegisters= in qSupported packet.
8019
8020 * i386-tdep.c: Include "remote.h".
8021 (_initialize_i386_tdep): Call register_remote_support_xml.
8022
8023 * remote.c (remote_support_xml): New.
8024 (register_remote_support_xml): Likewise.
8025 (remote_query_supported_append): Likewise.
8026 (remote_query_supported): Support remote_support_xml.
8027
8028 * remote.h (register_remote_support_xml): New.
8029
8030 2010-03-29 Stan Shebs <stan@codesourcery.com>
8031
8032 * tracepoint.c (trace_find_line_command): Remove dead code.
8033
8034 * tracepoint.h (struct uploaded_string): New struct.
8035 (struct uploaded_tp): New fields for source strings.
8036 * breakpoint.c (this_utp, next_cmd): New globals.
8037 (read_uploaded_action): New function.
8038 (create_tracepoint_from_upload): Fill in more parts
8039 of a tracepoint.
8040 * tracepoint.c (encode_source_string): New function.
8041 (trace_save): Write out source strings, fix error checks.
8042 (parse_tracepoint_definition): Add source string parsing.
8043 * remote.c (PACKET_TracepointSource): New packet type.
8044 (remote_download_command_source): New function.
8045 (remote_download_tracepoint): Download source pieces also.
8046 (_initialize_remote): Add packet config command.
8047
8048 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
8049 expression handler.
8050
8051 * tracepoint.c (start_tracing): Check tracepoints before sending
8052 commands to target, don't start if all tracepoints disabled.
8053
8054 2010-03-28 Pedro Alves <pedro@codesourcery.com>
8055
8056 * cli/cli-script.c (process_next_line): Handle 'stepping'.
8057
8058 2010-03-26 Stan Shebs <stan@codesourcery.com>
8059
8060 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
8061
8062 2010-03-26 Tom Tromey <tromey@redhat.com>
8063
8064 * breakpoint.c (commands_command_1): Duplicate 'arg'.
8065
8066 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8067
8068 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8069 (skip_prologue_sal): Remove local definition.
8070 (resolve_sal_pc): Remove now unnecessary code.
8071 * linespec.c (minsym_found): Call skip_prologue_sal.
8072 * symtab.c (find_function_start_pc): Remove.
8073 (find_function_start_sal): Extract prologue skipping into ...
8074 (skip_prologue_sal): ... this new function. Handle code both
8075 with and without debug info. Respect SAL's explicit_pc and
8076 explicit_line flags. Inline old find_function_start_pc.
8077 * symtab.h (find_function_start_pc): Remove.
8078 (skip_prologue_sal): Add prototype.
8079
8080 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8081
8082 * dwarf2read.c (read_func_scope): Also scan specification DIEs
8083 for DW_TAG_imported_module children.
8084
8085 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8086
8087 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
8088 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
8089 * completer.c (add_struct_fields): Fix inverted logic.
8090
8091 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8092
8093 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
8094
8095 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8096
8097 * tracepoint.c (current_trace_status): Don't make sure error_desc
8098 is non-NULL here.
8099 (parse_trace_status): Release a previous error_desc string, and
8100 set it to NULL by default. If stop reason is tracepoint_error,
8101 make sure error_desc is not left NULL.
8102
8103 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8104
8105 * tracepoint.c (trace_save): Remove X from tracepoint error
8106 description.
8107
8108 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8109
8110 * tracepoint.c (parse_trace_status): Don't allow plain strings in
8111 the terror description. Don't expect an X prefix.
8112
8113 2010-03-25 Stan Shebs <stan@codesourcery.com>
8114
8115 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8116 (struct trace_status): New field error_desc.
8117 * tracepoint.c (stop_reason_names): Add terror.
8118 (current_trace_status): Ensure non-NULL error description.
8119 (trace_status_command): Add error report.
8120 (trace_status_mi): Ditto.
8121 (trace_save): Add special case for error description.
8122 (parse_trace_status): Add case for errors.
8123
8124 2010-03-25 Keith Seitz <keiths@redhat.com>
8125
8126 * dwarf2read.c (read_subroutine_type): If the compilation unit
8127 language is Java, mark any formal parameter named "this" as
8128 artificial (GCC/43521).
8129 (dwarf2_name): Add special handling for Java constructors.
8130
8131 2010-03-25 Tom Tromey <tromey@redhat.com>
8132
8133 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8134 * infrun.c (handle_inferior_event): Change initialization of
8135 stop_stack_dummy.
8136 (handle_inferior_event): Change assignment to stop_stack_dummy.
8137 (normal_stop): Update use of stop_stack_dummy.
8138 (struct inferior_status) <stop_stack_dummy>: Change type.
8139 * inferior.h (stop_stack_dummy): Update.
8140 * infcmd.c (stop_stack_dummy): Change type.
8141 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8142 function.
8143 (call_function_by_hand): Call set_std_terminate_breakpoint.
8144 Rewrite std::terminate handling.
8145 * breakpoint.h (enum bptype) <bp_std_terminate,
8146 bp_std_terminate_master>: New.
8147 (enum stop_stack_kind): New.
8148 (struct bpstat_what) <call_dummy>: Change type.
8149 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8150 Declare.
8151 * breakpoint.c (create_std_terminate_master_breakpoint): New
8152 function.
8153 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8154 Call create_std_terminate_master_breakpoint.
8155 (print_it_typical): Handle new breakpoint kinds.
8156 (bpstat_stop_status): Handle bp_std_terminate_master.
8157 (bpstat_what): Correctly set call_dummy field. Handle
8158 bp_std_terminate_master and bp_std_terminate.
8159 (print_one_breakpoint_location): Update.
8160 (allocate_bp_location): Update.
8161 (set_std_terminate_breakpoint): New function.
8162 (delete_std_terminate_breakpoint): Likewise.
8163 (create_thread_event_breakpoint): Update.
8164 (delete_command): Update.
8165 (breakpoint_re_set_one): Update.
8166 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8167
8168 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8169
8170 * symfile.c (build_section_addr_info_from_bfd): New.
8171 (build_section_addr_info_from_objfile): Base it on
8172 build_section_addr_info_from_bfd.
8173 (addrs_section_compar, addrs_section_sort): New.
8174 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8175 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8176 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8177
8178 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8179
8180 * elfread.c (find_separate_debug_file_by_buildid):
8181 Remove unused local variable.
8182
8183 2010-03-24 Tom Tromey <tromey@redhat.com>
8184
8185 PR breakpoints/9352:
8186 * NEWS: Mention changes to `commands' and `rbreak'.
8187 * symtab.c (do_end_rbreak_breakpoints): New function.
8188 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8189 end_rbreak_breakpoints.
8190 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8191 (set_breakpoint_count): Likewise. Clear last_was_multi.
8192 (multi_start, multi_end, last_was_multi): New globals.
8193 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8194 functions.
8195 (struct commands_info): New
8196 (do_map_commands_command): New function.
8197 (commands_command_1): New function.
8198 (commands_command): Use it.
8199 (commands_from_control_command): Likewise.
8200 (do_delete_breakpoint): New function.
8201 (delete_command): Use it.
8202 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8203 (do_map_disable_breakpoint): New function.
8204 (disable_command): Use it.
8205 (do_map_enable_breakpoint): New function.
8206 (enable_command): Use it.
8207 (enable_once_breakpoint): Add argument.
8208 (enable_once_command): Update.
8209 (enable_delete_breakpoint): Add argument.
8210 (enable_delete_command): Update.
8211 (break_command_really): Set last_was_multi when needed.
8212 (check_tracepoint_command): Fix formatting.
8213 (validate_commands_for_breakpoint): New function.
8214 (breakpoint_set_commands): Use it.
8215 (tracepoint_save_command): Update.
8216 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8217 Declare.
8218
8219 2010-03-24 Tom Tromey <tromey@redhat.com>
8220
8221 * breakpoint.h (struct counted_command_line): New struct.
8222 (struct breakpoint) <commands>: Change type.
8223 (struct bpstats) <commands>: Change type.
8224 <commands_left>: New field.
8225 * breakpoint.c (alloc_counted_command_line): New function.
8226 (incref_counted_command_line): Likewise.
8227 (decref_counted_command_line): Likewise.
8228 (do_cleanup_counted_command_line): Likewise.
8229 (make_cleanup_decref_counted_command_line): Likewise.
8230 (breakpoint_set_commands): Use decref_counted_command_line and
8231 alloc_counted_command_line.
8232 (commands_command): Don't error if breakpoint commands are
8233 executing.
8234 (commands_from_control_command): Likewise.
8235 (bpstat_free): Update.
8236 (bpstat_copy): Likewise.
8237 (bpstat_clear_actions): Likewise.
8238 (bpstat_do_actions_1): Likewise.
8239 (bpstat_stop_status): Likewise.
8240 (print_one_breakpoint_location): Likewise.
8241 (delete_breakpoint): Likewise.
8242 (bpstat_alloc): Initialize new field.
8243 (tracepoint_save_command): Update.
8244 * tracepoint.c (encode_actions): Update.
8245 (trace_dump_command): Update.
8246
8247 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8248
8249 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8250 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8251 (read_structure_type): For RealView, set TYPE_STUB on structures with
8252 no byte size and no children.
8253 (read_subroutine_type): Mark functions as prototyped by default.
8254 * symtab.c (producer_is_realview): New function.
8255 * symtab.h (expand_line_sal): Fix declaration formatting.
8256 (producer_is_realview): Declare.
8257
8258 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8259
8260 * arm-tdep.c (skip_prologue_function): New function.
8261 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8262 (thumb_analyze_prologue): Document return value. Recognize more
8263 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8264 Add debug output.
8265 (arm_skip_prologue): Remove call dummy check. Check the prologue
8266 for non-GNU compilers.
8267 (arm_instruction_changes_pc): New function.
8268 (arm_analyze_prologue): New function, broken out from
8269 arm_scan_prologue. Recognize more ARM instructions and skippable
8270 calls. Update comments. Handle NULL cache. Return the address
8271 of the first unrecognized instruction. Do not skip past other
8272 instructions which change control flow. Add debug output.
8273 (arm_scan_prologue): Use arm_analyze_prologue.
8274 (ARM_PC_32): Delete.
8275 (shifted_reg_val): Simplify ARM_PC_32 check.
8276
8277 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8278
8279 * tracepoint.c (tvariables_info_1): Actually compute
8280 the number of rows in the result.
8281
8282 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8283
8284 * remote.c (crc32): Constify `buf' parameter.
8285 (remote_verify_memory): New, abstracted out from...
8286 (compare_sections_command): ... this. Remove hardcoded target
8287 checks.
8288 (init_remote_ops): Install remote_verify_memory.
8289 * target.c (target_verify_memory): New.
8290 * target.h (struct target_ops) <to_verify_memory>: New field.
8291 (target_verify_memory): Declare.
8292
8293 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8294
8295 Implement -trace-save.
8296
8297 * mi-cmds.h (mi_cmds_trace_save): Declare.
8298 * mi-cmds.c (mi_cmds): Register -trace-save.
8299 * mi/mi-main.c (mi_cmd_trace_save): New.
8300 * remote.c (remote_save_trace_data): Take const parameter.
8301 * target.h (struct target_ops::to_save_trace_data): Take
8302 const parameter.
8303 * target.c (update_current_target): Adjust to the above.
8304 * tracepoint.c (trave_save): New, extracted from
8305 (trace_save_command): ...this.
8306 (tfile_trace_find): Remove message that is unnecessary now
8307 that 'tfind' reports found frame.
8308 * tracepoint.h (trace_save): Declare.
8309
8310 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8311
8312 Implement -trace-find.
8313
8314 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8315 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8316 * mi/mi-main.c (mi_cmd_trace_find): New.
8317 * target.h (struct target_ops): Document to_trace_find.
8318 * tracepoint.h (tfind_1): Declare.
8319 * tracepoint.c (finish_tfind_command): Rename to...
8320 (tfind_1): ...this.
8321 * remote.c (remote_trace_find): Return -1 if target say
8322 there's no frame. Improve error diagnostics.
8323
8324 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8325
8326 -trace-define-variable and -trace-list-variables.
8327
8328 * tracepoint.c (create_trace_state_variable): Make
8329 private copy of name, as opposed to assuming the
8330 pointer lives forever.
8331 (tvariables_info_1): New.
8332 (tvariables_info): Use the above.
8333 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8334 Declare.
8335 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8336 and -trace-list-variables.
8337 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8338 (mi_cmd_trace_list_variables): New.
8339 * mi/mi-main.c (mi_cmd_trace_define_variable)
8340 (mi_cmd_trace_list_variables): New.
8341
8342 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8343
8344 Implement -break-passcount.
8345
8346 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8347 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8348 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8349
8350 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8351
8352 -trace-start/-trace-end/-trace-status.
8353
8354 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8355 and -trace-stop.
8356 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8357 (mi_cmd_trace_stop): Declare.
8358 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8359 (mi_cmd_trace_stop): New.
8360 * tracepoint.c (start_tracing): New, extracted from...
8361 (trace_start_command): ...this.
8362 (trace_status_mi): New.
8363 * tracepoint.h (struct trace_status): Document
8364 stopping_tracepoint.
8365 (start_tracing, stop_tracing, trace_status_mi): Declare.
8366
8367 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8368
8369 Implement creating tracepoints with -break-insert.
8370
8371 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8372 to mean that tracepoint should be created.
8373
8374 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8375
8376 * breakpoint.c (check_no_tracepoint_commands): Use
8377 current spelling of 'teval'.
8378
8379 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8380
8381 Unify actions and commands
8382
8383 * defs.h (read_command_lines, read_command_lines_1): New
8384 parameters validator and closure.
8385 * tracepoint.h (struct action_line): Remove.
8386 * breakpoint.h (struct breakpoint): Remove the 'actions'
8387 field.
8388 * defs.h (enum command_control_type): New value
8389 while_stepping_control.
8390 (struct command_line): Add comments.
8391 * breakpoint.c (breakoint_is_tracepoint): New.
8392 (breakpoint_set_commands): For tracepoints,
8393 verify the commands are permissible.
8394 (check_tracepoint_commands): New.
8395 (commands_command): Require that each new line is validated using
8396 check_tracepoint_command, if we set commands for a tracepoint.
8397 (create_tracepoint_from_upload): Likewise.
8398 (print_one_breakpoint_location): Remove the code to print
8399 actions specifically.
8400 (tracepoint_save_command): Relay to print_command_lines.
8401 * cli/cli-script.c (process_next_line): New parameters validator
8402 and closure. Handle 'while-stepping'. Call validator if not null.
8403 (read_command_lines, read_command_lines1): Likewise.
8404 (recurse_read_control_structure): New parameters validator and
8405 closure. Handle while_stepping_control.
8406 (print_command_lines): Handle while-stepping.
8407 (get_command_line, define_command, document_command): Adjust.
8408 * remote.c (remote_download_tracepoint): Adjust.
8409 * tracepoint.c (make_cleanup_free_actions, read_actions)
8410 (free_actions, do_free_actions_cleanup): Remove.
8411 (trace_actions_command): Use read_command_lines.
8412 (validate_actionline): Use error in one place.
8413 (encode_actions_1): New, extracted from...
8414 (encode_actions): ...this. Also use cleanups for exception
8415 safety.
8416 (trace_dump_command): Adjust.
8417 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8418 it's tracepoint.
8419
8420 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8421
8422 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8423
8424 2010-03-22 Stan Shebs <stan@codesourcery.com>
8425
8426 * value.c (value_static_field): Be lazy about the field's value.
8427
8428 2010-03-22 Reid Kleckner <reid@kleckner.net>
8429
8430 PR gdb/11094
8431 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8432 bp_jit_event.
8433 (disable_breakpoints_in_shlibs): Likewise.
8434
8435 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8436
8437 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8438 GCC 4.1 debug info generation (GCC PR c++/28460).
8439 (determine_prefix): Likewise.
8440
8441 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8442
8443 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8444 get_current_arch.
8445 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8446
8447 2010-03-19 Stan Shebs <stan@codesourcery.com>
8448
8449 * ax-gdb.c (gen_fetch): Handle bool.
8450 (gen_usual_unary): Ditto.
8451 (gen_cast): Ditto.
8452 (gen_equal): New function.
8453 (gen_less): New function.
8454 (gen_expr_binop_rest): Call them, also return integer type from
8455 logical operations.
8456 (gen_expr): Ditto.
8457
8458 2010-03-19 Tom Tromey <tromey@redhat.com>
8459
8460 * jv-lang.c (jv_dynamics_objfile_data_key)
8461 (jv_type_objfile_data_key): New globals.
8462 (class_symtab): Move earlier.
8463 (jv_per_objfile_free): New function.
8464 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8465 parameter.
8466 Remove ancient #if 1.
8467 (add_class_symbol): Remove redundant declaration.
8468 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8469 (java_link_class_type): Mark as static. Update.
8470 (jv_clear_object_type): New function.
8471 (set_java_object_type): Likewise.
8472 (get_java_object_type): Use set_java_object_type.
8473 (is_object_type): Likewise.
8474 (_initialize_java_language): Register new objfile keys.
8475 (get_java_class_symtab): Add 'gdbarch' parameter.
8476 (add_class_symtab_symbol): Update.
8477 (type_from_class): Update.
8478
8479 2010-03-19 Stan Shebs <stan@codesourcery.com>
8480
8481 * ax-general.c (ax_const_l): Fix a sizing bug.
8482
8483 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8484
8485 GDB 7.1 released.
8486
8487 2010-03-18 Stan Shebs <stan@codesourcery.com>
8488 Pedro Alves <pedro@codesourcery.com>
8489
8490 * target.h (struct target_ops): New method
8491 to_set_circular_trace_buffer.
8492 (target_set_circular_trace_buffer): New macro.
8493 * target.c (update_current_target): Add
8494 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8495 default behavior.
8496 * remote.c (remote_set_circular_trace_buffer): New function.
8497 (init_remote_ops): Add it to vector.
8498 * tracepoint.h (struct trace_status): New field traceframes_created,
8499 change buffer_size and buffer_free to int.
8500 * tracepoint.c (circular_trace_buffer): New global.
8501 (start_tracing): Send values of disconnected tracing and circular
8502 trace buffer settings.
8503 (set_circular_trace_buffer): New function.
8504 (parse_trace_state): Handle total space and frames created.
8505 (trace_status_command): Display total space and total frames
8506 created.
8507 (trace_save): Write out new status values.
8508 (parse_trace_status): Set traceframe_count, traceframes_created,
8509 buffer_free and buffer_size to -1 by default.
8510 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8511 * NEWS: Mention the circular trace buffer option.
8512
8513 2010-03-18 Tom Tromey <tromey@redhat.com>
8514
8515 * infcmd.c (finish_command_continuation): Wrap print_return_value
8516 in TRY_CATCH.
8517
8518 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8519
8520 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8521 DIE has a name before creating the associated partial symbol.
8522 (read_func_scope): Emit a complaint if the subprogram does not
8523 have a name or when we can't extract the subprogram PC bounds.
8524
8525 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8526
8527 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8528 instead of selected frame architecture.
8529
8530 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8531
8532 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8533 a valid selected thread, and that it is not running.
8534 (advance_command): Ditto.
8535 (finish_command): Ditto.
8536
8537 2010-03-17 Stan Shebs <stan@codesourcery.com>
8538
8539 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8540
8541 * infcall.c: Include tracepoint.h.
8542 (call_function_by_hand): Disallow calls in tfind mode.
8543 * infcmd.c: Include tracepoint.h.
8544 (ensure_not_tfind_mode): New function.
8545 (continue_1): Call it.
8546 (step_1) Ditto.
8547 (jump_command): Ditto.
8548 (signal_command): Ditto.
8549 (advance_command): Ditto.
8550 (until_command): Ditto.
8551 (finish_command): Ditto.
8552 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8553
8554 * ax-gdb.h (struct axs_value): New field optimized_out.
8555 (gen_trace_for_var): Add gdbarch argument.
8556 * ax-gdb.c (gen_trace_static_fields): New function.
8557 (gen_traced_pop): Call it, add gdbarch argument.
8558 (gen_trace_for_expr): Update call to it.
8559 (gen_trace_for_var): Ditto, and report optimized-out variables.
8560 (gen_struct_ref_recursive): Check for optimized-out value.
8561 (gen_struct_elt_for_reference): Ditto.
8562 (gen_static_field): Pass gdbarch instead of expression, assume
8563 optimization if field not found.
8564 (gen_var_ref): Set the optimized_out flag.
8565 (gen_expr): Error on optimized-out variable.
8566 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8567 expressions, skip optimized-out variables with computed locations.
8568 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8569 erroring out if location expression missing.
8570 (loclist_tracepoint_var_ref): Don't error out here.
8571
8572 2010-03-17 Tom Tromey <tromey@redhat.com>
8573
8574 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8575 DWARF data is available.
8576
8577 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8578
8579 * symfile.c (generic_load): Reset breakpoints after loading.
8580
8581 2010-03-17 Tom Tromey <tromey@redhat.com>
8582
8583 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8584
8585 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8586
8587 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8588 create_breakpoint call, adjust the parameters.
8589
8590 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8591 Chandru <chandru@in.ibm.com>
8592
8593 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8594 * valarith.c (value_subscripted_rvalue): Suppress error if
8595 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8596
8597 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8598
8599 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8600
8601 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8602
8603 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8604 before doing the associated thread switch.
8605
8606 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8607
8608 * MAINTAINERS: Update my email address.
8609
8610 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8611
8612 Simplify MI breakpoint setting.
8613
8614 * breakpoint.c (break_command_really): Make nonstatic and
8615 rename to...
8616 (create_breakpoint): ...this. Rename prior function by this name
8617 to...
8618 (create_breakpoint_sal): ...this.
8619 (create_breakpoints): Rename to...
8620 (create_breakpoints_sal): ...this.
8621 (set_breakpoint): Remove.
8622 * breakpoint.h: Adjust to above changes.
8623 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8624
8625 2010-03-15 Stan Shebs <stan@codesourcery.com>
8626
8627 * ax-gdb.c: Include cp-support.h.
8628 (find_field): Remove.
8629 (gen_primitive_field): New function.
8630 (gen_struct_ref_recursive): New function.
8631 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8632 of find_field.
8633 (gen_static_field): New function.
8634 (gen_struct_elt_for_reference): New.
8635 (gen_namespace_elt): New.
8636 (gen_maybe_namespace_elt): New.
8637 (gen_aggregate_elt_ref): New.
8638 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8639
8640 2010-03-15 Tom Tromey <tromey@redhat.com>
8641
8642 * dwarf2read.c (die_needs_namespace): Also return 0 for
8643 DW_TAG_subprogram.
8644
8645 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8646
8647 PR c++/7936:
8648 * cp-support.h: Added char *declaration element to using_direct
8649 data struct.
8650 (cp_add_using): Added char *declaration argument.
8651 (cp_add_using_directive): Ditto.
8652 (cp_lookup_symbol_imports): made extern.
8653 * cp-namespace.c: Updated with the above changes.
8654 * dwarf2read.c (read_import_statement): Ditto.
8655 (read_namespace): Ditto.
8656 (read_import_statement): Support import declarations.
8657 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8658 declarations.
8659 Added support for 'declaration_only' search.
8660 (cp_lookup_symbol_namespace): Attempt to search for the name as
8661 is before consideration of imports.
8662 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8663 search at every block level search.
8664 Now takes language argument.
8665 (lookup_symbol_aux): Updated.
8666
8667 2010-03-15 Tom Tromey <tromey@redhat.com>
8668
8669 * c-exp.y (name_not_typename): Add 'operator' clause.
8670
8671 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8672
8673 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8674 * configure: Regenerate.
8675
8676 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8677
8678 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8679 and ".sdynbss". Update the comment.
8680
8681 2010-03-15 Jie Zhang <jie@codesourcery.com>
8682
8683 * MAINTAINERS: Update my email address.
8684
8685 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8686
8687 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8688
8689 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8690
8691 * charset.c [USE_WIN32API]: Include <windows.h>.
8692 (_initialize_charset): Correct type of w32_host_default_charset.
8693
8694 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8695
8696 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8697
8698 2010-03-12 Tom Tromey <tromey@redhat.com>
8699
8700 PR c++/9708:
8701 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8702 in a lexical block does not need a namespace.
8703 (new_symbol) <DW_TAG_variable>: Put extern variables on
8704 list_in_scope in all cases.
8705
8706 2010-03-12 Stan Shebs <stan@codesourcery.com>
8707
8708 * ax-gdb.c (gen_expr): Add shift expressions.
8709 (gen_expr_binop_rest): Ditto.
8710
8711 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8712
8713 * buildsym.c (finish_block): Reset using_directives pointer
8714 after block initialization.
8715
8716 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8717
8718 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8719 * i386-tdep.c (i386_word_names): Likewise.
8720
8721 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8722
8723 * target.c (memory_xfer_partial): Don't use the stack cache if
8724 inspecting trace frames.
8725 * tracepoint.c (finish_tfind_command): Invalidate the target
8726 dcache.
8727
8728 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8729
8730 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8731 for the PIC displacement, print also the displacement value.
8732 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8733
8734 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8735
8736 * remote-mips.c (close_ports, mips_initialize_cleanups)
8737 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8738 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8739 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8740 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8741 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8742 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8743 comments describing each of these functions.
8744 (mips_enter_debug, mips_exit_debug, common_open)
8745 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8746 blank line after the comment describing the function.
8747
8748 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8749
8750 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8751 parameter displacementp. Update comment.
8752 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8753 element exists. Return if svr4_exec_displacement was not successful.
8754 Update comment.
8755
8756 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8757 Daniel Jacobowitz <dan@codesourcery.com>
8758
8759 * solib-svr4.c (read_program_header): Support type == -1 to read
8760 all program headers.
8761 (read_program_headers_from_bfd): New function.
8762 (svr4_static_exec_displacement): Remove and move the comment ...
8763 (svr4_exec_displacement): ... here. Remove variable found. New
8764 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8765 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8766 targets using read_program_headers_from_bfd. Remove the call of
8767 svr4_static_exec_displacement.
8768
8769 2010-03-10 Tom Tromey <tromey@redhat.com>
8770
8771 * dwarf2read.c (struct pubnames_header): Remove.
8772 (_PUBNAMES_HEADER): Remove.
8773 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8774 (struct aranges_header): Remove.
8775 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8776 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8777 (PUBNAMES_SECTION): Remove.
8778 (ARANGES_SECTION): Remove.
8779 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8780 (dwarf2_build_psymtabs): Remove dead code.
8781 (dwarf2_build_psymtabs_easy): Remove.
8782
8783 2010-03-10 Tom Tromey <tromey@redhat.com>
8784
8785 * elfread.c (elf_symfile_read): Don't call
8786 dwarf2_build_frame_info.
8787 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8788 (struct dwarf2_per_objfile) <objfile>: New field.
8789 (dwarf2_has_info): Now idempotent. Set objfile field.
8790 (dwarf2_read_section): Check and set readin field. Call
8791 posix_madvise.
8792 (dwarf2_build_psymtabs): Don't read all sections.
8793 (read_type_comp_unit_head): Read types section.
8794 (create_debug_types_hash_table): Likewise.
8795 (init_cu_die_reader): Add asserts.
8796 (process_type_comp_unit): Add assert.
8797 (dwarf2_build_psymtabs_hard): Read info section.
8798 (load_partial_comp_unit): Add assert.
8799 (create_all_comp_units): Read info section.
8800 (load_full_comp_unit): Likewise.
8801 (dwarf2_ranges_read): Read ranges section.
8802 (dwarf2_record_block_ranges): Add assert.
8803 (dwarf2_read_abbrevs): Read abbrev section.
8804 (read_indirect_string): Read str section.
8805 (dwarf_decode_line_header): Read line section.
8806 (read_signatured_type_at_offset): Read types section.
8807 (dwarf_decode_macros): Read macinfo section.
8808 (dwarf2_symbol_mark_computed): Read loc section.
8809 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8810 dwarf2_build_frame_info.
8811 (dwarf2_build_frame_info): Unconditionally set
8812 dwarf2_frame_objfile_data on the objfile.
8813 * configure.ac: Check for posix_madvise.
8814 * config.in, configure: Rebuild.
8815
8816 2010-03-10 Tom Tromey <tromey@redhat.com>
8817
8818 * xcoffread.c (xcoff_start_psymtab): Update.
8819 (xcoff_end_psymtab): Update.
8820 * psymtab.c (allocate_psymtab): Remove dead code.
8821 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8822 void*.
8823 * mdebugread.c (parse_partial_symbols): Update.
8824 (new_psymtab): Likewise.
8825 * dwarf2read.c (process_psymtab_comp_unit): Update.
8826 (psymtab_to_symtab_1): Update.
8827 * dbxread.c (start_psymtab): Update.
8828 (end_psymtab): Likewise.
8829
8830 2010-03-10 Tom Tromey <tromey@redhat.com>
8831
8832 * xcoffread.c: Include psymtab.h.
8833 (xcoff_sym_fns): Update.
8834 * symtab.h (struct partial_symbol): Remove.
8835 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8836 (struct partial_symtab): Remove.
8837 (PSYMTAB_TO_SYMTAB): Remove.
8838 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8839 (find_pc_sect_psymtab): Remove.
8840 (find_pc_sect_symtab_via_partial): Declare.
8841 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8842 (find_main_psymtab): Remove.
8843 (find_main_filename): Declare.
8844 (fixup_psymbol_section): Remove.
8845 (fixup_section): Declare.
8846 * symtab.c: Include psymtab.h.
8847 (lookup_symtab): Use lookup_symtab method.
8848 (lookup_partial_symtab): Remove.
8849 (find_pc_sect_psymtab_closer): Remove.
8850 (find_pc_sect_psymtab): Remove.
8851 (find_pc_sect_symtab_via_partial): New function.
8852 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8853 (fixup_section): No longer static.
8854 (fixup_psymbol_section): Remove.
8855 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8856 (lookup_global_symbol_from_objfile): Likewise.
8857 (lookup_symbol_aux_psymtabs): Remove.
8858 (lookup_symbol_aux_quick): New function.
8859 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8860 (lookup_partial_symbol): Remove.
8861 (basic_lookup_transparent_type_quick): New function.
8862 (basic_lookup_transparent_type): Use it.
8863 (find_main_psymtab): Remove.
8864 (find_main_filename): New function.
8865 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8866 (find_line_symtab): Use expand_symtabs_with_filename method.
8867 (output_partial_symbol_filename): New function.
8868 (sources_info): Use map_partial_symbol_filenames.
8869 (struct search_symbols_data): New type.
8870 (search_symbols_file_matches): New function.
8871 (search_symbols_name_matches): Likewise.
8872 (search_symbols): Use expand_symtabs_matching method.
8873 (struct add_name_data): Rename from add_macro_name_data.
8874 (add_macro_name): Update.
8875 (add_partial_symbol_name): New function.
8876 (default_make_symbol_completion_list): Use
8877 map_partial_symbol_names.
8878 (struct add_partial_symbol_name): New type.
8879 (maybe_add_partial_symtab_filename): New function.
8880 (make_source_files_completion_list): Use
8881 map_partial_symbol_filenames.
8882 (expand_line_sal): Use expand_symtabs_with_filename method.
8883 * symmisc.c: Include psymtab.h.
8884 (print_objfile_statistics): Use print_stats method.
8885 (dump_objfile): Use dump method.
8886 (dump_psymtab, maintenance_print_psymbols)
8887 (maintenance_info_psymtabs, maintenance_check_symtabs)
8888 (extend_psymbol_list): Remove.
8889 * symfile.h (struct quick_symbol_functions): New struct.
8890 (struct sym_fns) <qf>: New field.
8891 (sort_pst_symbols): Remove.
8892 (increment_reading_symtab): Declare.
8893 * symfile.c: Include psymtab.h.
8894 (compare_psymbols, sort_pst_symbols): Remove.
8895 (psymtab_to_symtab): Remove.
8896 (increment_reading_symtab): New function.
8897 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8898 method.
8899 (set_initial_language): Use find_main_filename.
8900 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8901 (free_named_symtabs): Remove unused code.
8902 (start_psymtab_common, add_psymbol_to_bcache)
8903 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8904 Remove.
8905 * stack.c: Include psymtab.h, symfile.h.
8906 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8907 * source.h (psymtab_to_fullname): Don't declare.
8908 * source.c: Include psymtab.h.
8909 (select_source_symtab): Use find_last_source_symtab method.
8910 (forget_cached_source_info): Use forget_cached_source_info
8911 method.
8912 (find_and_open_source): No longer static.
8913 (psymtab_to_fullname): Remove.
8914 * somread.c: Include psymtab.h.
8915 (som_sym_fns): Update.
8916 * psympriv.h: New file.
8917 * psymtab.h: New file.
8918 * psymtab.c: New file.
8919 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8920 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8921 * objfiles.c: Include psymtab.h.
8922 (objfile_relocate1): Use relocate method.
8923 (objfile_has_partial_symbols): Use has_symbols method.
8924 * mipsread.c: Include psymtab.h.
8925 (ecoff_sym_fns): Update.
8926 * mi/mi-cmd-file.c: Include psymtab.h.
8927 (print_partial_file_name): New function.
8928 (mi_cmd_file_list_exec_source_files): Use
8929 map_partial_symbol_filenames.
8930 * mdebugread.c: Include psympriv.h.
8931 * machoread.c: Include psympriv.h.
8932 (macho_sym_fns): Update.
8933 * m2-exp.y (yylex): Use lookup_symtab.
8934 * elfread.c: Include psympriv.h.
8935 (elf_sym_fns): Update.
8936 * dwarf2read.c: Include psympriv.h.
8937 * dbxread.c: Include psympriv.h.
8938 (aout_sym_fns): Update.
8939 * cp-support.c: Include psymtab.h.
8940 (read_in_psymtabs): Remove.
8941 (make_symbol_overload_list_qualified): Use
8942 expand_symtabs_for_function method.
8943 * coffread.c: Include psympriv.h.
8944 (coff_sym_fns): Update.
8945 * blockframe.c: Include psymtab.h.
8946 (find_pc_partial_function): Use find_pc_sect_symtab method.
8947 * ada-lang.h (ada_update_initial_language): Update.
8948 * ada-lang.c: Include psymtab.h.
8949 (ada_update_initial_language): Remove 'main_pst' argument.
8950 (ada_lookup_partial_symbol): Remove.
8951 (struct ada_psym_data): New type.
8952 (ada_add_psyms): New function.
8953 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8954 (struct add_partial_datum): New type.
8955 (ada_add_partial_symbol_completions): New function.
8956 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8957 (ada_exception_support_info_sniffer): Update.
8958 * Makefile.in (SFILES): Add psymtab.c.
8959 (COMMON_OBS): Add psymtab.o.
8960 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8961
8962 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8963
8964 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8965
8966 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8967
8968 PR C++/11236:
8969 * cp-namespace.c (cp_add_using): Deleted.
8970 (cp_add_using_directive): Use obstack allocations.
8971 Merged the function cp_add_using into this one.
8972 Added 'struct obstack *' argument.
8973 (cp_scan_for_anonymous_namespaces): Updated.
8974 * cp-support.h: Updated.
8975 * dwarf2read.c (read_import_statement): Updated.
8976 (read_namespace): Updated.
8977
8978 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8979
8980 * windows-nat.c (cygwin_conv_path): Remove old macro.
8981
8982 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8983
8984 * breakpoint.c (condition_command): Handle watchpoint conditions.
8985 (is_hardware_watchpoint): Add comment.
8986 (is_watchpoint): New.
8987 (update_watchpoint): Don't reparse the watchpoint's condition
8988 unless necessary.
8989 (WP_IGNORE): New.
8990 (watchpoint_check): Use it.
8991 (bpstat_check_watchpoint): Handle it.
8992 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8993 conditions in a frame where it makes sense.
8994 (watch_command_1): Store the innermost block of the condition
8995 expression.
8996 (delete_breakpoint): Delete the watchpoint condition expression.
8997 * breakpoint.h (struct bp_location) <cond>: Update comment.
8998 (struct breakpoint): New field `cond_exp_valid_block'.
8999
9000 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9001
9002 Adjust handling of Ada DIEs after dwarf2_physname patch.
9003 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
9004
9005 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
9006 Pierre Muller <muller@ics.u-strasbg.fr>
9007
9008 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
9009 from/to posix/win32.
9010 (windows_make_so): Use non-Cygwin 1.7 specific function.
9011 (windows_create_inferior): Make sure that cygallargs points to
9012 original args in non Cygwin 1.7. case.
9013
9014 2010-03-09 Michael Snyder <msnyder@vmware.com>
9015
9016 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
9017 after target_read_memory to get host byte order.
9018 (i386_process_record): Ditto.
9019
9020 2010-03-09 Keith Seitz <keiths@redhat.com>
9021
9022 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
9023 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
9024 print out const or volatile qualifiers, too.
9025 (c_type_print_args): Add parameters show_artificial and language.
9026 Skip artificial parameters when requested.
9027 Use the appropriate language printer.
9028 (c_type_print_varspec): Tell c_type_print_args to skip artificial
9029 parameters and pass language_c.
9030 * dwarf2read.c (die_list): New file global.
9031 (struct partial_die_info): Update comments for name field.
9032 (pdi_needs_namespace): Renamed to ...
9033 (die_needs_namespace): ... this. Rewrite.
9034 (dwarf2_linkage_name): Remove.
9035 (add_partial_symbol): Do not predicate the call to
9036 partial_die_full_name based on pdi_needs_namespace.
9037 Remove call to cp_check_possible_namespace_symbols and associated
9038 outdated comments.
9039 (guess_structure_name): Do not inspect child subprogram DIEs.
9040 (dwarf2_fullname): Update comments.
9041 Use die_needs_namespace to assist in computing the name.
9042 (read_func_scope): Use dwarf2_name to get the DIE's name.
9043 Use dwarf2_physname to get the "linkage name" of the DIE.
9044 (dwarf2_add_member_field): Use dwarf2_physname instead of
9045 dwarf2_linkage_name.
9046 (read_structure_type): For structs and classes, set TYPE_NAME, too.
9047 (determine_class): Remove.
9048 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
9049 except Ada.
9050 (new_symbol): Unconditionally call dwarf2_name.
9051 Compute the "linkage name" using dwarf2_physname.
9052 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
9053 When determining to scan for anonymous C++ namespaces, ignore
9054 the linkage name.
9055 (dwarf2_physname): New function.
9056 (dwarf2_full_name): Move content to new function and call
9057 that.
9058 (dwarf2_compute_name): "New" function.
9059 (_initialize_dwarf2_read): Initialize die_list.
9060 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
9061 physname.
9062 (gnu_v3_print_method_ptr): Use the physname for virtual methods
9063 without a demangled name.
9064 Print out type information for non-virtual methods.
9065 * linespec.c (decode_line_1): Force ANY string using "::" (or
9066 "." for java) to use decode_compound, and clean up any stray quoting.
9067 If we found a file symtab, re-evaluate whether the remainder is_quoted.
9068 (decode_compound): Stop consuming at an open parenthesis.
9069 Keep template parameters.
9070 Keep any overload information.
9071 Keep keywords like "const".
9072 Remove paren_pointer.
9073 Move is_quoted check from set_flags to here.
9074 Remove #if 0 code from 2000. Ten years is long enough.
9075 (find_method): Before comparing symbol names, canonicalize the string
9076 from the user.
9077 If a specific overload is requested, find it. Otherwise throw an error.
9078 (find_method_overload_end): New function.
9079 (set_flags): Remove.
9080 (decode_compound): Assume that parentheses are matched.
9081 It's a lot easier.
9082 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
9083 to cplus_demangle.
9084 * linespec.c (decode_line_1): Keep important keywords like
9085 "const" and "volatile".
9086 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
9087 * typeprint.h (c_type_print_args): Add declaration.
9088 * ui-file.c (do_ui_file_obsavestring): New function.
9089 (ui_file_obsavestring): New function.
9090 * ui-file.h (ui_file_obsavestring): Add declaration.
9091 * valops.c (find_overload_match): Resolve the object to
9092 a non-pointer type.
9093 If the object is a data member, search the object for the member
9094 and return with staticp set.
9095 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
9096 Do not attempt to extract a function name from non-function types.
9097 If the extracted function name and the original name are the same,
9098 we don't have a C++ method.
9099
9100 From Jan Kratochvil <jan.kratochvil@redhat.com>:
9101 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
9102
9103 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
9104 and arguments from symbol lookups.
9105 * ax-gdb.c (gen_expr): Likewise.
9106 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
9107 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
9108 lookup_possible_namespace_symbol): Likewise.
9109 * cp-support.c (read_in_psymtabs): Likewise.
9110 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
9111 * language.h (la_lookup_symbol_nonlocal): Likewise.
9112 * scm-valprint.c (scm_inferior_print): Likewise.
9113 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9114 * solib-svr.c (elf_lookup_lib): Likewise.
9115 * solib.c (show_auto_solib_add): Likewise.
9116 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9117 * symmisc.c (maintenance_check_symtabs): Likewise.
9118 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9119 lookup_symbol_aux_local, lookup_symbol_aux_block,
9120 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9121 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9122 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9123 basic_lookup_transparent_type, find_main_psymtab,
9124 lookup_block_symbol): Likewise.
9125 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9126 lookup_symbol_global, lookup_symbol_aux_block,
9127 lookup_symbol_partial_symbol, lookup_block_symbol,
9128 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9129
9130 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9131
9132 * python/python-internal.h: Include symtab.h.
9133
9134 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9135 Pierre Muller <muller@ics.u-strasbg.fr>
9136
9137 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9138 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9139 indentation.
9140
9141 2010-03-08 Tom Tromey <tromey@redhat.com>
9142
9143 * breakpoint.c (breakpoint_1): Add "QUIT".
9144
9145 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9146 Pedro Alves <pedro@codesourcery.com>
9147
9148 * solib.c (solib_find): Replace extension if
9149 solib_symbols_extension is set in the target gdbarch.
9150 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9151 solib_symbols_extension to "sym".
9152 * gdbarch.sh (solib_symbols_extension): New variable.
9153 (pstring): New function.
9154 * gdbarch.h, gdbarch.c: Regenerate.
9155
9156 2010-03-08 Tom Tromey <tromey@redhat.com>
9157
9158 PR cli/9591:
9159 * NEWS: Update.
9160 * utils.c: Include main.h.
9161 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9162 (defaulted_query): Use default answer if `batch_flag'.
9163 * main.h (batch_flag): Declare.
9164 * main.c (batch_flag): New global.
9165 (captured_main): Remove 'batch'. Update.
9166
9167 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9168
9169 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9170 and Kevin Buettner:
9171
9172 * remote-mips.c (rockhopper_ops): New target_ops struct.
9173 (MON_ROCKHOPPER): New mips_monitor_type.
9174 (read_hex_value): New function.
9175 (mips_request): Send 8-byte values with a 'T' packet. Read the
9176 packet argument as a string and use read_hex_value to parse it.
9177 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9178 (rockhopper_open): New function.
9179 (mips_wait): Read the PC, FP and SP fields as strings. Use
9180 read_hex_value to parse them and mips_set_register to commit them.
9181 (mips_set_register): New function.
9182 (mips_fetch_registers): Do not cast register value to "unsigned"
9183 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9184 (mips_store_registers): Use a 'T' packet to set registers when
9185 using MON_ROCKHOPPER.
9186 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9187 and expect the total to be printed before the entry address.
9188 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9189
9190 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9191
9192 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9193 Change return value to int. Store value fetched in location
9194 addressed by `val'. Use function's return value as success
9195 or failure indicator. Adjust all callers.
9196
9197 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9198
9199 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9200
9201 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9202 Hui Zhu <teawater@gmail.com>
9203
9204 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9205 tmp_to_stopped_data_address.
9206 (record_open): Reset tmp_to_stopped_by_watchpoint and
9207 tmp_to_stopped_data_address.
9208 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9209 to_stopped_data_address.
9210
9211 2010-03-08 Hui Zhu <teawater@gmail.com>
9212
9213 * i386-tdep.c (i386_process_record): Initialize regnum.
9214
9215 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9216
9217 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9218 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9219
9220 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9221
9222 Memory error when reading wrong core file.
9223 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9224 errors while reading the inferior memory, and return zero if
9225 an exception was raised.
9226
9227 2010-03-07 Michael Snyder <msnyder@vmware.com>
9228
9229 * record.c (record_restore): Rename tmpu8 to rectype.
9230
9231 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9232 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9233
9234 (i386_record_push): Rename local tmpulongest to addr.
9235
9236 (i386_process_record): Rename local tmpulongest to addr.
9237
9238 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9239 addr64.
9240
9241 Rename local variable tmpu8 to opcode8 and regnum.
9242
9243 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9244
9245 * remote.c (remote_get_ada_task_ptid): New function.
9246 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9247
9248 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9249
9250 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9251 block. Define helper macros to reduce ifdefs in code.
9252 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9253 size. Call unadorned GetModuleFileNameEx rather than
9254 GetModuleFileNameEx*.
9255 (windows_make_so): Use __PMAX to denote maximum buffer size and
9256 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9257 appropriate.
9258 (get_image_name): Use __PMAX to denote maximum buffer size.
9259 (handle_load_dll): Likewise.
9260 (windows_pid_to_exec_file): Likewise.
9261 (windows_create_inferior): Add many accommodations for older Cygwin and
9262 non-Cygwin.
9263 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9264 __USEWIDE conditional.
9265 (bad_GetModuleFileNameExA): Likewise.
9266 (_initialize_loadable): Just use real function names without the dyn_
9267 part since they are defined earlier.
9268
9269 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9270 Tom Tromey <tromey@redhat.com>
9271
9272 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9273 (parse_escape): Likewise.
9274 * python/py-utils.c (unicode_to_target_string): Update.
9275 (unicode_to_target_python_string): Update.
9276 (target_string_to_unicode): Update.
9277 * printcmd.c (printf_command): Update.
9278 * p-exp.y (yylex): Update.
9279 * objc-exp.y (yylex): Update.
9280 * mi/mi-parse.c: Include charset.h.
9281 (mi_parse_escape): New function.
9282 (mi_parse_argv): Use it.
9283 * jv-exp.y (yylex): Update.
9284 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9285 function.
9286 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9287 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9288 * gdbarch.c: Rebuild.
9289 * gdbarch.h: Rebuild.
9290 * defs.h (parse_escape): Update.
9291 * cli/cli-setshow.c: Include arch-utils.h.
9292 (do_setshow_command): Update.
9293 * cli/cli-cmds.c (echo_command): Update.
9294 * charset.h (target_charset, target_wide_charset): Update.
9295 * charset.c: Include arch-utils.h.
9296 (target_charset_name): Default to "auto".
9297 (target_wide_charset_name): Likewise.
9298 (show_target_charset_name): Handle "auto".
9299 (show_target_wide_charset_name): Likewise.
9300 (be_le_arch): New global.
9301 (set_be_le_names): Add 'gdbarch' argument.
9302 (validate): Likewise. Don't call set_be_le_names.
9303 (set_charset_sfunc, set_host_charset_sfunc)
9304 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9305 Update.
9306 (target_charset): Add 'gdbarch' argument.
9307 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9308 (auto_target_charset_name): New global.
9309 (default_auto_charset, default_auto_wide_charset): New functions.
9310 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9311 for target charsets. Copy result of nl_langinfo. Use GetACP if
9312 USE_WIN32API.
9313 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9314 remove 'byte_order' argument. Update.
9315 (classify_type): Likewise.
9316 (c_emit_char): Update.
9317 (c_printchar): Update.
9318 (c_printstr): Update.
9319 (c_get_string): Update.
9320 (evaluate_subexp_c): Update.
9321 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9322 Declare.
9323 * python/python.c (gdbpy_target_charset): New function.
9324 (gdbpy_target_wide_charset): Likewise.
9325 (GdbMethods): Update.
9326 * NEWS: Update.
9327
9328 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9329
9330 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9331 off high address bits.
9332
9333 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9334
9335 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9336 address as UnsignedLongLong, not LongLong.
9337
9338 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9339 Pedro Alves <pedro@codesourcery.com>
9340
9341 * remote-mips.c (gdbthread.h): Include.
9342 (remote_mips_ptid): Declare.
9343 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9344 (common_open): Set inferior_ptid, add it as an inferior, and
9345 as a thread too. Delete FIXME comment regarding start_remote().
9346 (mips_close): Invoke generic_mourn_inferior().
9347 (mips_kill): Make sure that target_mourn_inferior is invoked.
9348 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9349 it's now invoked from mips_close().
9350 (mips_load): Don't null out inferior_ptid. Don't call
9351 clear_symtab_users().
9352 (mips_thread_alive, mips_pid_to_str): New functions.
9353 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9354 to_thread_alive and to_pid_to_str operations.
9355
9356 2010-03-04 Tom Tromey <tromey@redhat.com>
9357
9358 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9359 in DWARF 3 and later.
9360 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9361
9362 2010-03-04 Keith Seitz <keiths@redhat.com>
9363
9364 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9365 If the filename portion of the linespec was quoted, recheck the
9366 remainder for additional quoting.
9367 (locate_first_half): Skip over completer chars, too.
9368
9369 2010-03-04 Tom Tromey <tromey@redhat.com>
9370
9371 * printcmd.c (printf_command): Pass dummy argument to
9372 printf_filtered.
9373
9374 2010-03-04 Doug Evans <dje@google.com>
9375
9376 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9377 unwound_fp.
9378
9379 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9380
9381 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9382
9383 * breakpoint.c (update_watchpoint): Create a sentinel location if
9384 the software watchpoint isn't watching any memory.
9385 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9386
9387 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9388
9389 * utils.c (fputs_maybe_filtered): Check if there's already a top
9390 level interpreter before dereferencing it. If there isn't one,
9391 don't paginate either.
9392
9393 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9394
9395 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9396 the state right when single stepping.
9397 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9398 Get the next PC along with the instruction state.
9399 (thumb_get_next_pc): Remove.
9400 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9401
9402 2010-03-04 Hui Zhu <teawater@gmail.com>
9403
9404 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9405
9406 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9407
9408 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9409 top level interpreter is MI.
9410
9411 2010-03-03 Stan Shebs <stan@codesourcery.com>
9412
9413 * remote.c (remote_download_tracepoint): Iterate over locations.
9414 * tracepoint.c (validate_actionline): Ditto.
9415 (encode_actions): Add location argument.
9416 (trace_dump_command): Check all locations to see if stepping
9417 frame.
9418
9419 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9420 Eli Zaretskii <eliz@gnu.org>
9421
9422 * NEWS: Add X86 general purpose registers section.
9423
9424 2010-03-03 Tom Tromey <tromey@redhat.com>
9425
9426 PR mi/11098:
9427 * varobj.c (install_new_value): Handle case where new print_value
9428 is NULL.
9429
9430 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9431
9432 PR gdb/11345:
9433 * printcmd.c (printf_command): Print end of format string using
9434 printf_filtered.
9435
9436 2010-03-02 Tom Tromey <tromey@redhat.com>
9437
9438 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9439 * defs.h (read_command_lines_1): Add missing 'void'.
9440 * cli/cli-script.c (recurse_read_control_structure): Add missing
9441 'void'.
9442 (read_next_line): Likewise.
9443 (read_command_lines_1): Likewise.
9444
9445 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9446
9447 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9448 store backchain as part of prologue.
9449
9450 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9451
9452 * progspace.c (update_address_spaces): Update inferior address spaces
9453 also.
9454
9455 2010-03-02 Doug Evans <dje@google.com>
9456
9457 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9458 lowpc,highpc args to addrmap_set_empty.
9459
9460 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9461
9462 * amd64-tdep.c (amd64_byte_names): New.
9463 (amd64_word_names): Likewise.
9464 (amd64_dword_names): Likewise.
9465 (amd64_pseudo_register_name): Likewise.
9466 (amd64_pseudo_register_read): Likewise.
9467 (amd64_pseudo_register_write): Likewise.
9468 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9469 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9470 set_gdbarch_pseudo_register_write and
9471 set_tdesc_pseudo_register_name. Don't call
9472 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9473
9474 * i386-tdep.c (i386_num_mmx_regs): Removed.
9475 (i386_num_pseudo_regs): Likewise.
9476 (i386_byte_names): New.
9477 (i386_word_names): Likewise.
9478 (i386_byte_regnum_p): Likewise.
9479 (i386_word_regnum_p): Likewise.
9480 (i386_mmx_regnum_p): Updated.
9481 (i386_pseudo_register_name): Make it global. Handle byte and
9482 word pseudo-registers.
9483 (i386_pseudo_register_read): Likewise.
9484 (i386_pseudo_register_write): Likewise.
9485 (i386_pseudo_register_type): Handle byte, word and dword
9486 pseudo-registers
9487 (i386_register_reggroup_p): Don't include pseudo
9488 registers, except for MXX, in any register groups. Don't
9489 include pseudo byte, word, dword registers in general_reggroup.
9490 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9491 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9492 pseudo-registers after word pseudo-registers. Call
9493 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9494
9495 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9496 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9497 eax_regnum.
9498 (i386_byte_regnum_p): New.
9499 (i386_word_regnum_p): Likewise.
9500 (i386_dword_regnum_p): Likewise.
9501 (i386_pseudo_register_name): Likewise.
9502 (i386_pseudo_register_read): Likewise.
9503 (i386_pseudo_register_write): Likewise.
9504
9505 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9506
9507 * target-descriptions.c (tdesc_type): Remove
9508 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9509 (tdesc_predefined_types): Likewise.
9510 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9511 if flag name is empty.
9512 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9513
9514 * features/i386/32bit-core.xml: Define i386_eflags.
9515 * features/i386/64bit-core.xml: Likewise.
9516
9517 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9518 * features/i386/64bit-sse.xml: Likewise.
9519
9520 * features/i386/amd64-linux.c: Regenerated.
9521 * features/i386/amd64.c: Likewise.
9522 * features/i386/i386-linux.c: Likewise.
9523 * features/i386/i386.c: Likewise.
9524
9525 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9526
9527 * gdbtypes.c (append_composite_type_field_raw): New.
9528 (append_composite_type_field_aligned): Use the new function.
9529 * gdbtypes.h (append_composite_type_field_raw): Declare.
9530 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9531 (struct tdesc_type_flag): New type.
9532 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9533 kind. Add size to u.u. Add u.f for flags.
9534 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9535 (tdesc_free_type): Likewise.
9536 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9537 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9538 (tdesc_add_bitfield, tdesc_add_flag): New.
9539 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9540 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9541 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9542 current_type. Add current_type_size and current_type_is_flags.
9543 (tdesc_start_union): Clear the new fields.
9544 (tdesc_start_struct, tdesc_start_flags): New.
9545 (tdesc_start_field): Handle struct fields, including bitfields.
9546 (field_attributes): Make type optional. Add start and end.
9547 (union_children): Rename to struct_union_children.
9548 (union_attributes): Rename to struct_union_attributes. Add optional
9549 size.
9550 (flags_attributes): New.
9551 (feature_children): Add struct and flags.
9552 * features/gdb-target.dtd: Add flags and struct to features.
9553 Make field type optional. Add field start and end.
9554
9555 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9556
9557 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9558 (amd64_linux_read_description): Likewise.
9559 (_initialize_amd64_linux_nat): Set to_read_description to
9560 amd64_linux_read_description.
9561
9562 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9563 (amd64_linux_register_name): Removed.
9564 (amd64_linux_register_type): Likewise.
9565 (amd64_linux_core_read_description): New.
9566 (amd64_linux_init_abi): Set target description to
9567 tdesc_amd64_linux if needed. Support orig_rax in target
9568 description. Don't call set_gdbarch_register_name nor
9569 set_gdbarch_register_type. Call
9570 set_gdbarch_core_read_description.
9571 (_initialize_amd64_linux_tdep): Call
9572 initialize_tdesc_amd64_linux.
9573
9574 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9575
9576 * amd64-tdep.c: Include "features/i386/amd64.c".
9577 (amd64_register_names): Removed.
9578 (amd64_register_name): Likewise.
9579 (amd64_register_type): Likewise.
9580 (amd64_init_abi): Set num_core_regs and register_names. Set
9581 target description to tdesc_amd64 if needed. Don't call
9582 set_gdbarch_register_name nor set_gdbarch_register_type.
9583 (_initialize_amd64_tdep): New.
9584
9585 * i386-linux-nat.c (i386_linux_read_description): New.
9586 (_initialize_i386_linux_nat): Set to_read_description to
9587 i386_linux_read_description.
9588
9589 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9590 (i386_linux_register_name): Removed.
9591 (i386_linux_core_read_description): New.
9592 (i386_linux_read_description): Likewise.
9593 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9594 Set target description to tdesc_i386_linux if needed. Support
9595 orig_eax. Set register_reggroup_p. Call
9596 set_gdbarch_core_read_description.
9597 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9598
9599 * i386-linux-tdep.h (tdesc_i386_linux): New.
9600
9601 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9602 with I387_NUM_REGS.
9603
9604 * i386-tdep.c: Include "features/i386/i386.c".
9605 (i386_register_names): Make it const.
9606 (i386_mmx_names): Likewise.
9607 (i386_num_register_names): Removed.
9608 (i386_register_name): Likewise.
9609 (i386_eflags_type): Likewise.
9610 (i386_mxcsr_type): Likewise.
9611 (i386_sse_type): Likewise.
9612 (i386_register_type): Likewise.
9613 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9614 (i386_pseudo_register_name): New.
9615 (i386_pseudo_register_type): Likewise.
9616 (i386_mmx_type): Make it static.
9617 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9618 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9619 call set_gdbarch_register_name nor set_gdbarch_register_type.
9620 Set register_reggroup_p. Set target description to tdesc_i386
9621 if needed. Call set_tdesc_pseudo_register_type,
9622 set_tdesc_pseudo_register_name and tdesc_use_registers.
9623 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9624 initialize_tdesc_x86_64.
9625
9626 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9627 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9628 register_names, tdesc and register_reggroup_p.
9629 (I386_NUM_FREGS): Removed.
9630 (i386_eflags_type): Likewise.
9631 (i386_mxcsr_type): Likewise.
9632 (i386_mmx_type): Likewise.
9633 (i386_sse_type): Likewise.
9634 (i386_register_name): Likewise.
9635 (i386_regnum): Add I386_MXCSR_REGNUM.
9636 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9637
9638 * i387-tdep.h (I387_NUM_REGS): New.
9639
9640 * regformats/i386/i386-linux.dat: Generated.
9641 * regformats/i386/i386.dat: Likewise.
9642 * regformats/i386/amd64-linux.dat: Likewise.
9643 * regformats/i386/amd64.dat: Likewise.
9644
9645 * regformats/reg-i386-linux.dat: Removed.
9646 * regformats/reg-i386.dat: Likewise.
9647 * regformats/reg-x86-64-linux.dat: Likewise.
9648 * regformats/reg-x86-64.dat: Likewise.
9649
9650 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9651
9652 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9653 cygwin_conv_path API rather than the deprecated
9654 cygwin_conv_to_full_posix_path.
9655 * windows-nat.c:
9656 (GetModuleFileNameExA): Undefine for Cygwin.
9657 (GetModuleFileNameExW): Define for Cygwin.
9658 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9659 Call GetModuleFileNameExW and convert path to POSIX using
9660 cygwin_conv_path.
9661 (windows_make_so): Always define p. Drop unused variable m.
9662 Don't use Win32 functions to check file existance, rather use
9663 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9664 Use canonicalize_file_name to get full path.
9665 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9666 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9667 use correct target buffer size in call to WideCharToMultiByte.
9668 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9669 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9670 (windows_create_inferior): Convert all paths and arguments to wchar_t
9671 and use CreateProcessW on Cygwin.
9672 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9673 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9674 (bad_GetModuleFileNameExW): Define for Cygwin.
9675 (_initialize_loadable): Load GetModuleFileNameExW into
9676 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9677
9678 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9679
9680 PR python/11036
9681 * python/py-frame.c (frapy_read_var): Add block argument and logic
9682 to cope with user provided blocks.
9683
9684 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9685
9686 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9687 New comment.
9688
9689 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9690
9691 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9692 (COMMON_OBS): ... to here since it's used unconditionally.
9693 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9694 (SFILES): To here.
9695
9696 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9697
9698 * mips-linux-tdep.c: Update struct sigframe comments.
9699 (SIGFRAME_CODE_OFFSET): Delete macro.
9700 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9701 this_frame's sp.
9702 (mips_linux_n32n64_sigframe_init): Same.
9703
9704 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9705
9706 * remote-mips.c (mips_load): Don't use pseudo-register when
9707 invalidating regcache.
9708
9709 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9710
9711 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9712
9713 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9714
9715 * NEWS: Add "New targets" section, and mention ARM Symbian
9716 support.
9717
9718 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9719
9720 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9721 add ADDR_SIZE member.
9722 (allocate_piece_closure): Update.
9723 (copy_pieced_value_closure): Likewise.
9724 (dwarf2_evaluate_loc_desc): Likewise.
9725 (read_pieced_value): Use DWARF address size instead of
9726 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9727
9728 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9729 Tom Tromey <tromey@redhat.com>
9730
9731 * python/py-type.c (typy_lookup_typename): Add in block argument.
9732 If provided restrict lookup to specified blocks.
9733 (gdbpy_lookup_type): Likewise.
9734 (typy_lookup_type): Likewise.
9735
9736 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9737
9738 Symbian config
9739
9740 gdb/
9741 * arm-symbian-tdep.c: New.
9742 * configure.tgt (arm*-*-symbianelf*): New target.
9743 (*-*-symbianelf*): New OS.
9744 * osabi.c (gdb_osabi_names): Add Symbian.
9745 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9746 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9747 (ALLDEPFILES): Add arm-symbian-tdep.c.
9748
9749 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9750
9751 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9752
9753 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9754
9755 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9756
9757 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9758 Tom Tromey <tromey@redhat.com>
9759 Thiago Jung Bauermann <bauerman@br.ibm.com>
9760
9761 * python/python.c (_initialize_python): Call
9762 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9763 gdbpy_initialize_blocks.
9764 * python/python-internal.h: Declare struct symbol, block and
9765 symtab_and_line. Declare block_object_type and
9766 symbol_object_type
9767 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9768 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9769 (symbol_to_symbol_object, block_to_block_object)
9770 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9771 (gdbpy_initialize_blocks ): Declare.
9772 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9773 (frapy_select): Add methods.
9774 (frapy_read_var): Add symbol branch.
9775 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9776 py-block.
9777 (SUBDIR_PYTHON_SRCS): Likewise.
9778 (py-symbol.o): New rule.
9779 (py-symtab.o): Likewise.
9780 (py-block.o): Likewise.
9781 * python/py-symbol.c: New file.
9782 * python/py-symtab.c: Likewise.
9783 * python/py-block.c: Likewise.
9784
9785 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9786
9787 PR gdb/11321
9788
9789 * inferior.h (prepare_for_detach): Declare.
9790 (struct inferior) <detaching>: New field.
9791 * infrun.c (prepare_for_detach): New.
9792 (handle_inferior_event) <random signal>: Don't stop if detaching.
9793 * target.c (target_detach): Call prepare_for_detach.
9794
9795 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9796
9797 Per-process displaced stepping queue.
9798
9799 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9800 (displaced_step_gdbarch, displaced_step_closure,
9801 (displaced_step_original, displaced_step_copy): Move globals to
9802 this...
9803 (struct displaced_step_inferior_state): ... new structure.
9804 (displaced_step_inferior_states): New global.
9805 (get_displaced_stepping_state, add_displaced_stepping_state)
9806 (remove_displaced_stepping_state, infrun_inferior_exit): New
9807 functions.
9808 (displaced_step_clear): Add displaced_step_inferior_state
9809 parameter, and adjust to handle it.
9810 (displaced_step_clear_cleanup): Parameter is now a
9811 displaced_step_inferior_state. Adjust.
9812 (displaced_step_prepare): Adjust.
9813 (displaced_step_fixup, displaced_step_fixup)
9814 (infrun_thread_ptid_changed, resume): Adjust.
9815 (init_wait_for_inferior): Don't call displaced_step_clear.
9816 (infrun_thread_stop_requested): Rewrite.
9817 (_initialize_infrun): Install infrun_inferior_exit as
9818 inferior_exit observer.
9819
9820 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9821
9822 * inferior.h (ptid_match): Declare.
9823 * infrun.c (ptid_match): New.
9824 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9825 (handle_notification): Add debug output.
9826 * linux-nat.c (ptid_match): Delete.
9827
9828 2010-02-24 David S. Miller <davem@davemloft.net>
9829
9830 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9831 * syscalls/sparc-linux.xml: New.
9832 * syscalls/sparc64-linux.xml: New.
9833 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9834 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9835 (sparc32_linux_get_syscall_number): New function.
9836 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9837 syscall number fetcher.
9838 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9839 (sparc64_linux_get_syscall_number): New function.
9840 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9841 syscall number fetcher.
9842
9843 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9844
9845 Multiexec MI
9846
9847 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9848 * inferior.c (add_inferior_silent): Notify inferior_added
9849 observer.
9850 (delete_inferior_1): Notify inferior_removed observer.
9851 (exit_inferior_1): Pass inferior, not pid, to observer.
9852 (inferior_appeared): Likewise.
9853 (add_inferior_with_spaces): New.
9854 (add_inferior_command): Use the above.
9855 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9856 Declare.
9857
9858 * inflow.c (inflow_inferior_exit): Likewise.
9859 * jit.c (jit_inferior_exit_hook): Likewise.
9860
9861 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9862 remove-inferior.
9863 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9864 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9865 (report_initial_inferior): New.
9866 (mi_inferior_removed): Register the above. Make sure
9867 inferior_added observer is called on the first inferior.
9868 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9869 inferior number, not pid.
9870 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9871 affected.
9872 * mi/mi-main.c (current_context): New.
9873 (proceed_thread_callback): Use typed closure.
9874 Proceed everything if pid is 0. Most implementation split into
9875 (proceed_thread): ... this.
9876 (run_one_inferior): New.
9877 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9878 Adjust for multiexec behaviour.
9879 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9880 (mi_cmd_execute): Handle the 'thread-group' option here.
9881 Do some extra checks.
9882 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9883 options.
9884 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9885
9886 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9887
9888 Make -exec-run a proper MI commands.
9889
9890 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9891 * mi/mi-cmds.c (mi_cmds): Adjust.
9892 * mi/mi-main.c (mi_cmd_exec_run): New.
9893
9894 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9895 Stan Shebs <stan@codesourcery.com>
9896
9897 * tracepoint.h (set_traceframe_number)
9898 (cleanup_restore_current_traceframe): Declare.
9899 * tracepoint.c (set_traceframe_number): New.
9900 (struct current_traceframe_cleanup): New.
9901 (do_restore_current_traceframe_cleanup)
9902 (restore_current_traceframe_cleanup_dtor)
9903 (make_cleanup_restore_current_traceframe): New.
9904 * infrun.c: Include tracepoint.h.
9905 (fetch_inferior_event): Switch out and in of tfind mode.
9906
9907 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9908
9909 * breakpoint.c (breakpoint_init_inferior): Also delete
9910 bp_shlib_event breakpoints.
9911 * solib-frv.c (enable_break): Remove call to
9912 remove_solib_event_breakpoints.
9913 * solib-svr4.c (enable_break): Ditto.
9914 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9915 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9916 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9917 * solib-spu.c (spu_enable_break): Ditto.
9918
9919 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9920
9921 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9922
9923 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9924
9925 * varobj.c (varobj_update): Avoid non-constants in initializers.
9926
9927 2010-02-23 Tom Tromey <tromey@redhat.com>
9928
9929 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9930 handle big-endian values.
9931 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9932
9933 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9934
9935 PR9605
9936
9937 gdb/
9938 * breakpoint.c (insert_bp_location): If inserting the read
9939 watchpoint failed, fallback to an access watchpoint.
9940 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9941 if the value changed, if not watching the same memory for writes.
9942 (watchpoint_locations_match): Add comment.
9943 (update_global_location_list): Copy the location's watchpoint type.
9944 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9945 handle read watchpoints here.
9946 (i386_insert_watchpoint): Read watchpoints aren't supported.
9947 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9948 packets.
9949 * target.h (target_insert_watchpoint): Update description.
9950
9951 2010-02-19 Tom Tromey <tromey@redhat.com>
9952
9953 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9954 * m2-typeprint.c (m2_print_type): Update.
9955 * gdbtypes.c (recursive_dump_type): Update.
9956 (copy_type_recursive): Update.
9957 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9958 (c_type_print_base): Update.
9959 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9960 Remove.
9961 (struct cplus_struct_type) <ntemplate_args>: Remove.
9962 <struct template_arg>: Remove.
9963 <is_dynamic>: Move earlier.
9964 (TYPE_TEMPLATE_ARGS): Remove.
9965 (TYPE_NTEMPLATE_ARGS): Remove.
9966 (TYPE_TEMPLATE_ARG): Remove.
9967
9968 2010-02-19 Tom Tromey <tromey@redhat.com>
9969
9970 PR c++/8693, PR c++/9496:
9971 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9972 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9973 write_dollar_variable. Don't try to classify NAME tokens.
9974 (token_and_value): New type.
9975 (token_fifo, popping, name_obstack): New globals.
9976 (classify_name): New function.
9977 (classify_inner_name): Likewise.
9978 (yylex): Likewise.
9979 (VARIABLE): Now has type sval.
9980 (exp : VARIABLE): Call write_dollar_variable.
9981 (qualified_name): Use TYPENAME, not typebase. Add production for
9982 multiple "::" instances.
9983 (variable): Use name_not_typename.
9984 (qualified_type): Remove.
9985 (typebase): Update.
9986
9987 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9988
9989 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9990 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9991 found by bfd_get_section_by_name.
9992 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9993
9994 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9995
9996 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9997 7.0 section" into "Changes in 7.1".
9998
9999 2010-02-19 Joel Brobecker <brobecker@adacore.com>
10000
10001 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
10002 * version.in: Bump version to 7.1.50.20100219-cvs.
10003
10004 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
10005
10006 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
10007 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
10008
10009 2010-02-17 Tom Tromey <tromey@redhat.com>
10010
10011 * NEWS: Add Python API Improvements section.
10012
10013 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
10014
10015 * NEWS: Correct typo.
10016
10017 2010-02-17 Tom Tromey <tromey@redhat.com>
10018
10019 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
10020
10021 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10022
10023 * symfile.c (build_section_addr_info_from_objfile): Include sections
10024 only if they are SEC_ALLOC or SEC_LOAD.
10025
10026 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
10027
10028 PR shlibs/11293
10029 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
10030 of ULONGEST for address size.
10031
10032 2010-02-17 Tom Tromey <tromey@redhat.com>
10033
10034 * NEWS: Add C++ improvements section.
10035
10036 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
10037
10038 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
10039 PyThreadState_Swap): Avoid "statement with no effect" warning.
10040
10041 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10042
10043 * solib-svr4.c (enable_break <target_auxv_search>): New variable
10044 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
10045
10046 2010-02-17 Tristan Gingold <gingold@adacore.com>
10047 Petr Hluzin <petr.hluzin@gmail.com>
10048
10049 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
10050 gdb_assert. Fix info->size for SIG prologue.
10051
10052 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10053
10054 * infcmd.c (show_inferior_tty_command): Check for NULL.
10055 Correct output message.
10056
10057 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10058
10059 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
10060 FUNCTION contains parentheses. Improve removal of a trailing
10061 single quote.
10062
10063 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10064
10065 * gcore.c (do_bfd_delete_cleanup): New function.
10066 (gcore_command): Use it. Discard the cleanup after success.
10067 (gcore_copy_callback): Delete dead code.
10068
10069 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10070
10071 * symfile.c (addr_info_make_relative): Always use
10072 find_lowest_section.
10073
10074 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
10075
10076 * NEWS: Added entry for namespace fixes.
10077
10078 2010-02-15 Tom Tromey <tromey@redhat.com>
10079
10080 * dwarf2read.c (guess_structure_name): Allocate name on the
10081 objfile obstack.
10082
10083 2010-02-15 Tom Tromey <tromey@redhat.com>
10084
10085 * c-typeprint.c (c_type_print_base): Reverse order of test.
10086
10087 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10088
10089 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
10090 initialize it from ELF BFD. Extend the prelink condition by it.
10091
10092 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10093
10094 * defs.h (parse_pid_to_attach): New.
10095 * utils.c (parse_pid_to_attach): New.
10096 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
10097 * gnu-nat.c (gnu_attach): Likewise.
10098 * nto-procfs.c (procfs_attach): Likewise.
10099 * procfs.c (procfs_attach): Likewise.
10100 * windows-nat.c (windows_attach): Likewise.
10101 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
10102 * inf-ttrace.c (inf_ttrace_attach): Likewise.
10103 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
10104 check.
10105
10106 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
10107
10108 * MAINTAINERS: Add myself for write after approval privileges.
10109
10110 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10111
10112 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10113 block.
10114
10115 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10116
10117 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10118 only if INFO_VERBOSE.
10119
10120 2010-02-12 Tomas Holmberg <th@virtutech.com>
10121
10122 * mi/mi-main.c: Added the --reverse flag to the following MI
10123 commands: exec-continue, exec-finish, exec-next, exec-step,
10124 exec-next-instruction, exec-step-instruction. This is to
10125 support reverse execution over the MI interface to gdb.
10126
10127 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10128
10129 * tracepoint.c (_initialize_tracepoint): Specify that the address
10130 range of `tfind outsize' is exclusive, and that the address range
10131 of `tfind range' is inclusive, in the commands' help strings.
10132
10133 2010-02-12 Joel Brobecker <brobecker@adacore.com>
10134
10135 Spurious "dll not found" error messages on x64-windows.
10136 * windows-nat.c: Add include of complaints.h.
10137 (handle_unload_dll): Change dll-not-found error into a complaint.
10138
10139 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10140
10141 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10142 bp_tracepoint and bp_fast_tracepoint, not
10143 bp_loc_software_breakpoint.
10144 (update_global_location_list): Tracepoints are never duplicates of
10145 anything.
10146
10147 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10148
10149 * breakpoint.c (break_command_really): Change return type to int.
10150 Return false if no breakpoint was created, true otherwise.
10151 (trace_command): Don't set the tracepoint count if no tracepoint
10152 was created.
10153 (ftrace_command): Ditto.
10154 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10155 created in the breakpoints table.
10156
10157 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10158 Ulrich Weigand <uweigand@de.ibm.com>
10159
10160 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10161
10162 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10163
10164 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10165 the offset value isn't of integral type.
10166
10167 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10168
10169 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10170 New.
10171
10172 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10173
10174 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10175 non-subscriptable types.
10176 * valarith.c (binop_types_user_defined_p): New, abstracted out
10177 from ...
10178 (binop_user_defined_p): ... this.
10179 * value.h (binop_types_user_defined_p): Declare.
10180
10181 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10182
10183 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10184 Merge uploaded TSVs before merging uploaded tracepoints.
10185
10186 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10187
10188 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10189
10190 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10191
10192 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10193 whitespace character after a dot in comment.
10194 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10195 Likewise.
10196 (list_args_or_locals): For the 'all' (that is
10197 -stack-list-variables) case, always output list of tuples.
10198 Output 'arg' field if variable is argument.
10199
10200 2010-02-10 Tom Tromey <tromey@redhat.com>
10201
10202 * parser-defs.h (parser_debug): Declare.
10203 * parse.c (_initialize_parse): Install "debug parser" set/show
10204 command.
10205 (parser_debug): New global.
10206 (show_parserdebug): New function.
10207 * c-exp.y (c_parse): Set yydebug.
10208
10209 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10210
10211 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10212 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10213 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10214 i386_mxcsr.
10215 (tdesc_find_type): New.
10216 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10217 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10218
10219 * target-descriptions.h (tdesc_find_type): New.
10220
10221 2010-02-10 Michael Snyder <msnyder@vmware.com>
10222
10223 * gdb-gdb.py: Comment fix.
10224
10225 2010-02-09 Tristan Gingold <gingold@adacore.com>
10226
10227 * machoread.c (macho_symfile_relocate): New function.
10228 (macho_sym_fns): Use macho_symfile_relocate instead of
10229 default_symfile_relocate.
10230 (macho_oso_data): New type.
10231 (current_oso): New variable.
10232 (macho_add_oso_symfile): Do not compute section_addr_info, but
10233 instead set vma of sections.
10234 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10235 Set and clear current_oso.
10236
10237 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10238
10239 Wrong type description for tagged type parameter.
10240 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10241 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10242 reference to a tagged type.
10243
10244 2010-02-09 Tristan Gingold <gingold@adacore.com>
10245
10246 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10247 brothers of the parent.
10248
10249 2010-02-08 Tom Tromey <tromey@redhat.com>
10250
10251 PR c++/8017:
10252 * value.h: Update.
10253 * valops.c (search_struct_field): Make 'name' const.
10254 (search_struct_method): Likewise.
10255 (find_method_list): Make 'method' const.
10256 (value_struct_elt): Make 'name' and 'err' const.
10257 (value_find_oload_method_list): Make 'method' const.
10258 (find_overload_match): Make 'name' const.
10259 * eval.c (evaluate_subexp_standard): New locals function,
10260 function_name.
10261 <OP_FUNCALL>: Handle OP_SCOPE specially.
10262
10263 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10264
10265 * infrun.c (handle_inferior_event): Do not look up regcache
10266 for exited processes.
10267
10268 2010-02-08 Chris Moller <moller@mollerware.com>
10269
10270 PR gdb/10728
10271 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10272 warn if found, and assume length = 1.
10273
10274 2010-02-08 Chris Moller <cmoller@redhat.com>
10275
10276 PR gdb/9067
10277 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10278 (cp_print_static_field) Fix use of obstacks.
10279
10280 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10281
10282 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10283 resumed LWPs as resumed.
10284 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10285 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10286 of throwing an internal error. If an LWP of a process we're not
10287 waiting for reports a signal, don't force collecting a SIGSTOP,
10288 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10289 go through all LWPs cancelling breakpoints in non-stop mode.
10290 (resume_stopped_resumed_lwps): New.
10291 (linux_nat_wait): Use it.
10292
10293 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10294
10295 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10296 i386/amd64 and i386/amd64-linux.
10297 (i386/i386-expedite): New.
10298 (i386/i386-linux-expedite): Likewise.
10299 (i386/amd64-expedite):Likewise.
10300 (i386/amd64-linux-expedite): Likewise.
10301 ($(outdir)/i386/i386-linux.dat): Likewise.
10302 ($(outdir)/i386/amd64.dat): Likewise.
10303 ($(outdir)/i386/amd64-linux.dat): Likewise.
10304
10305 * features/i386/32bit-core.xml: New.
10306 * features/i386/32bit-linux.xml: Likewise.
10307 * features/i386/32bit-sse.xml: Likewise.
10308 * features/i386/64bit-core.xml: Likewise.
10309 * features/i386/64bit-linux.xml: Likewise.
10310 * features/i386/64bit-sse.xml: Likewise.
10311 * features/i386/i386-linux.xml: Likewise.
10312 * features/i386/i386.xml: Likewise.
10313 * features/i386/amd64-linux.xml: Likewise.
10314 * features/i386/amd64.xml: Likewise.
10315 * features/i386/i386-linux.c: Likewise.
10316 * features/i386/i386.c: Likewise.
10317 * features/i386/amd64-linux.c: Likewise.
10318 * features/i386/amd64.c: Likewise.
10319
10320 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10321
10322 PR c++/7935:
10323 * cp-support.h: Added char* alias element to using_direct data
10324 struct.
10325 (cp_add_using): Added char* alias argument.
10326 (cp_add_using_directive): Ditto.
10327 * cp-namespace.c: Updated with the above changes.
10328 (cp_lookup_symbol_imports): Check for aliases.
10329 * dwarf2read.c (read_import_statement): Figure out local alias
10330 for the import and pass it on to cp_add_using.
10331 (read_namespace): Pass alias argument to cp_add_using.
10332
10333 2010-02-05 Hui Zhu <teawater@gmail.com>
10334
10335 * defs.h (gdb_bfd_errmsg): New extern.
10336 * exec.c (exec_file_attach): Change bfd_errmsg to
10337 gdb_bfd_errmsg.
10338 * utils.c (AMBIGUOUS_MESS1): New macro.
10339 (AMBIGUOUS_MESS2): New macro.
10340 (gdb_bfd_errmsg): New function.
10341
10342 2010-02-04 Doug Evans <dje@google.com>
10343
10344 * solib-svr4.c (enable_break): Add comment.
10345
10346 2010-02-04 Anthony Green <green@moxielogic.com>
10347
10348 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10349 gracefully.
10350
10351 2010-02-04 Tom Tromey <tromey@redhat.com>
10352
10353 * valops.c (search_struct_field): Account for
10354 value_embedded_offset. Fix check for virtual base past the end of
10355 the object. Use value_copy when making a slice of the value.
10356
10357 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10358
10359 PR tui/9622
10360 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10361 only if gdb_stdout is a tty.
10362
10363 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10364
10365 * target-descriptions.c: Include "osabi.h".
10366 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10367 OSABI.
10368
10369 2010-02-04 Tristan Gingold <gingold@adacore.com>
10370
10371 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10372 (macho_symtab_read): Adjust calls to macho_add_oso.
10373 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10374 (macho_symfile_read): Adjust call to macho_oso_symfile.
10375 (macho_new_init): Move this function after declarations.
10376 (macho_symfile_init): Ditto.
10377 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10378 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10379
10380 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10381
10382 Include MI command in remotelog.
10383
10384 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10385
10386 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10387
10388 * remote.c (remote_state): Remove gdbarch.
10389 (init_remote_state): Don't set gdbarch.
10390 (remote_query_supported): Pass target_gdbarch instead of
10391 rs->gdbarch to gdbarch_qsupported.
10392
10393 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10394
10395 * gdbarch.sh: Add qsupported.
10396
10397 * gdbarch.c: Regenerated.
10398 * gdbarch.h: Likewise.
10399
10400 * remote.c (remote_state): Add gdbarch.
10401 (init_remote_state): Set gdbarch.
10402 (remote_query_supported): Support gdbarch_qsupported.
10403
10404 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10405
10406 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10407 __FreeBSD_kernel_version.
10408
10409 2010-02-03 Tristan Gingold <gingold@adacore.com>
10410
10411 * symfile.h (struct sym_fns): Add sym_relocate field.
10412 (default_symfile_relocate): New prototype.
10413 (symfile_relocate_debug_section): First argument is now an objfile.
10414 * symfile.c (default_symfile_relocate): Rename from
10415 symfile_relocate_debug_section, first argument is now an objfile.
10416 (symfile_relocate_debug_section): New function.
10417 * coffread.c (coff_sym_fns): Set sym_relocate field.
10418 * somread.c (som_sym_fns): Ditto.
10419 * mipsread.c (ecoff_sym_fns): Ditto.
10420 * machoread.c (macho_sym_fns): Ditto.
10421 * elfread.c (elf_sym_fns): Ditto.
10422 * dwarf2read.c (dwarf2_read_section): Ditto.
10423 * xcoffread.c (xcoff_sym_fns): Ditto.
10424 * dbxread.c (aout_sym_fns): Ditto.
10425 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10426 (elfstab_build_psymtabs): Ditto.
10427
10428 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10429
10430 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10431
10432 2010-02-02 Tom Tromey <tromey@redhat.com>
10433
10434 * valops.c (value_cast_structs): Try downcasting using the RTTI
10435 type.
10436
10437 2010-02-02 Tom Tromey <tromey@redhat.com>
10438
10439 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10440 (gnuv2_baseclass_offset): Now static.
10441 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10442 * gnu-v2-abi.h: Remove.
10443
10444 2010-02-02 Tom Tromey <tromey@redhat.com>
10445
10446 * m2-typeprint.c (m2_record_fields): Don't use
10447 TYPE_DECLARED_TYPE.
10448 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10449 (struct main_type) <flag_declared_class>: New field.
10450 (struct cplus_struct_type) <declared_type>: Remove.
10451 <ntemplate_args>: Move earlier.
10452 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10453 (DECLARED_TYPE_TEMPLATE): Remove.
10454 (TYPE_DECLARED_TYPE): Remove.
10455 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10456 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10457 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10458 TYPE_DECLARED_TYPE.
10459
10460 2010-02-02 Tom Tromey <tromey@redhat.com>
10461
10462 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10463 * valops.c (search_struct_field): Compute nbases after calling
10464 CHECK_TYPEDEF.
10465 (check_field): Call CHECK_TYPEDEF.
10466 * cp-valprint.c (cp_print_value): Pass correct address to
10467 baseclass_offset. Fix check for virtual base past the end of the
10468 object. Don't offset address passed to cp_print_value_fields or
10469 apply_val_pretty_printer.
10470 (cp_print_value_fields): Fix call to val_print.
10471 (cp_print_value_fields_rtti): New function.
10472 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10473 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10474 val_print.
10475 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10476 offset to address.
10477 * language.h (struct language_defn) <la_val_print>: Document.
10478 * c-lang.h (cp_print_value_fields_rtti): Declare.
10479
10480 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10481
10482 PR libc/11214:
10483 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10484 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10485 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10486
10487 2010-02-01 Michael Matz <matz@suse.de>
10488 Daniel Jacobowitz <dan@codesourcery.com>
10489
10490 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10491 functions use a frame pointer.
10492
10493 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10494
10495 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10496 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10497 * config/djgpp/fnchange.lst: Add translations for
10498 symbol-without-target_section.exp and symbol-without-target_section.c.
10499
10500 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10501
10502 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10503 (remote_breakpoint_for_pc): Correct invalid_p check.
10504 * gdbarch.c: Regenerated.
10505
10506 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10507
10508 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10509 arm_pc_is_thumb.
10510 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10511 (extend_buffer_earlier): New function.
10512 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10513 (arm_adjust_breakpoint_address): New function.
10514 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10515
10516 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10517
10518 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10519 (arm_linux_thumb2_le_breakpoint): New constants.
10520 (arm_linux_init_abi): Set thumb2_breakpoint and
10521 thumb2_breakpoint_size.
10522 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10523 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10524 Implement support for single stepping through IT blocks if
10525 a 32-bit Thumb breakpoint instruction is available.
10526 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10527 is available, use it when needed.
10528 (arm_remote_breakpoint_from_pc): New function.
10529 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10530 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10531 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10532
10533 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10534
10535 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10536 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10537 * gdbarch.c, gdbarch.h: Regenerated.
10538 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10539 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10540 gdbarch_remote_breakpoint_from_pc.
10541
10542 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10543
10544 * infrun.c (prepare_to_proceed): Handle other signals which might
10545 match a breakpoint.
10546 (handle_inferior_event): Move the check for unusual breakpoint
10547 signals earlier.
10548
10549 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10550
10551 amd64 - function returning record with field straddling 2 registers.
10552 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10553 a record of length <= 16 in which a field straddles the two
10554 eightbytes.
10555
10556 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10557
10558 Implement return values on amd64-windows.
10559 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10560 (amd64_windows_return_value): New function.
10561 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10562 amd64_windows_return_value.
10563
10564 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10565
10566 amd64-windows: 32 bytes allocated on stack by caller for integer
10567 parameter registers.
10568 * i386-tdep.h (struct gdbarch_tdep): Add new field
10569 integer_param_regs_saved_in_caller_frame.
10570 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10571 tdep->integer_param_regs_saved_in_caller_frame to 1.
10572 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10573 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10574
10575 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10576
10577 amd64-windows: memory args passed by pointer during function calls.
10578 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10579 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10580 where tdep->memory_args_by_pointer is non-zero.
10581 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10582 tdep->memory_args_by_pointer to 1.
10583
10584 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10585
10586 amd64-windows: Integer parameters in function calls.
10587 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10588 amd64-tdep.c.
10589 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10590 call_dummy_integer_regs, and classify.
10591 * amd64-tdep.h (amd64_classify): Add declaration.
10592 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10593 (amd64_reg_class): Delete, moved to i386-tdep.h.
10594 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10595 Replace call to amd64_classify by call to tdep->classify.
10596 (amd64_push_arguments): Get the list of registers to use for
10597 passing integer parameters from the gdbarch tdep structure,
10598 rather than using a hardcoded one. Replace calls to amd64_classify
10599 by calls to tdep->classify.
10600 (amd64_push_dummy_call): Get the register number used for
10601 the "hidden" argument from tdep->call_dummy_integer_regs.
10602 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10603 and tdep->call_dummy_integer_regs. Set tdep->classify.
10604 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10605 (amd64_windows_dummy_call_integer_regs): New static global.
10606 (amd64_windows_classify): New function.
10607 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10608 tdep->call_dummy_integer_regs and tdep->classify.
10609
10610 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10611
10612 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10613 for the new regcache. All callers updated.
10614 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10615 (get_thread_arch_regcache): Do not set aspace here.
10616 * regcache.h (regcache_xmalloc): Update declaration.
10617
10618 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10619 regcache_xmalloc updated.
10620
10621 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10622
10623 Another -Wunused-function error in procfs.c (sparc-solaris)
10624 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10625 Only define if SYS_syssgi is defined.
10626 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10627 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10628 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10629 is itself defined.
10630
10631 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10632
10633 * windows-nat.c (windows_initialization_done): New variable.
10634 (get_windows_debug_event): Issue error when process dies before
10635 completely initializing.
10636 (do_initial_windows_stuff): Set flag to indicate when we are done with
10637 the initial steps of attaching to the child.
10638
10639 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10640
10641 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10642
10643 2010-01-27 Doug Evans <dje@google.com>
10644
10645 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10646
10647 * breakpoint.c (bpstat_stop_status): Delete useless code.
10648
10649 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10650
10651 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10652 objfile via SYMBOL_SYMTAB.
10653
10654 2010-01-26 Tom Tromey <tromey@redhat.com>
10655
10656 PR exp/7643:
10657 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10658 coerce_array on result.
10659
10660 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10661
10662 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10663 search_parent argument.
10664 (cp_add_using): Initialize 'searched' field.
10665 (reset_directive_searched): New function.
10666 * cp-support.h: Add 'searched' field to using_direct struct.
10667 (cp_lookup_symbol_imports): Ditto.
10668 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10669 Perform recursive search.
10670 Implement non parent search.
10671 * valops.c (value_maybe_namespace_elt): Updated.
10672
10673 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10674
10675 PR gdb/10929:
10676 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10677 scopes which contain using directives even if they contain no
10678 declarations.
10679 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10680 la_lookup_symbol_nonlocal.
10681 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10682 cp_lookup_symbol_namespace.
10683 (cp_lookup_symbol_namespace): Perform an import lookup at every
10684 block level.
10685 (cp_lookup_symbol_imports): New function.
10686 (cp_lookup_symbol_in_namespace): New function.
10687
10688 2010-01-25 Tom Tromey <tromey@redhat.com>
10689
10690 PR gdb/11049:
10691 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10692 result.
10693
10694 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10695
10696 * configure.ac: Only use host_os part when disabling TUI on osf.
10697 Use test to check variables, prefix strings with x.
10698 * configure: Regenerate.
10699
10700 * solib-osf.c (osf_current_sos): Initialize tail.
10701
10702 2010-01-25 gingold <gingold@adacore.com>
10703
10704 * windows-nat.c (windows_continue): Use %x to print thread id.
10705 (get_windows_debug_event): Ditto.
10706
10707 2010-01-22 Tom Tromey <tromey@redhat.com>
10708
10709 PR symtab/11199:
10710 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10711 type and arguments. Use smash_to_methodptr_type.
10712 (read_structure_type): Call quirk_gcc_member_function_pointer
10713 later.
10714 * gdbtypes.h (smash_to_methodptr_type): Declare.
10715 * gdbtypes.c (smash_to_methodptr_type): New function.
10716 (lookup_methodptr_type): Use it.
10717
10718 2010-01-21 Tom Tromey <tromey@redhat.com>
10719
10720 PR symtab/11198:
10721 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10722 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10723 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10724 (glibc_skip_solib_resolver): Use
10725 lookup_minimal_symbol_and_objfile.
10726
10727 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10728
10729 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10730 WIN32 targets.
10731
10732 2010-01-20 Tom Tromey <tromey@redhat.com>
10733
10734 PR backtrace/10770:
10735 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10736 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10737 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10738 dwarf_stack_values, not CORE_ADDRs.
10739 (execute_stack_op): Change DW_OP_div and comparison operators to
10740 use signed operands.
10741
10742 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10743
10744 Per-inferior args and tty and environment.
10745
10746 * infcmd.c (inferior_args): Rename to ...
10747 (inferior_args_scratch): ... this.
10748 (inferior_io_terminal): Rename to ...
10749 (inferior_io_terminal_scratch): ... this.
10750 (inferior_argc, inferior_argv): Remove.
10751 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10752 inside current_inferior().
10753 (set_inferior_tty_command, show_inferior_tty_command): New.
10754 (get_inferior_args, set_inferior_args): Store inside
10755 current_inferior().
10756 (notice_args_set): Likewise and rename to...
10757 (set_args_command): ... this.
10758 (set_inferior_args_vector): Likewise.
10759 (notice_args_read): Rename to...
10760 (show_args_command): ...new.
10761 (tty_command): Remove.
10762 (run_command_1): Don't free old args, as they are freed by
10763 set_inferior_arg now.
10764 (run_no_args_command): Likewise.
10765 (inferior_environ): Remove.
10766 (run_command_1): Use environment of the current inferior.
10767 (environment_info, set_environment_command)
10768 (unset_environment_command, path_info, path_command): Likewise.
10769 (_initialize_infcmd): Adjust for function and variable renames.
10770 Do not init inferior_environ.
10771 * inferior.h (set_inferior_arg): Adjust prototype.
10772 (struct inferior): New fields args, argc, argv, terminal, environment.
10773 (inferior_environ): Remove declaration.
10774 * inferior.c (free_inferior): Free new fields.
10775 (add_inferior_silent): Initialize 'environment' field.
10776 * main.c (captured_main): Set arguments only after the initial
10777 inferior has been created. Set set_inferior_io_terminal,
10778 not tty_command.
10779 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10780 inferior.
10781 (_initialize_mi_cmd_env): Adjust for disappearance of global
10782 inferior_environ.
10783 * solib.c (solib_find): Use environment of the current inferior.
10784
10785 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10786
10787 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10788 HAVE_PYTHON.
10789 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10790
10791 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10792
10793 Get rid of ada-lang.c:function_name_from_pc.
10794 * ada-lang.c: Add "stack.h" #include.
10795 (function_name_from_pc): Delete.
10796 (is_known_support_routine): Replace call to function_name_from_pc
10797 by call to find_frame_funname.
10798 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10799
10800 2010-01-19 Tom Tromey <tromey@redhat.com>
10801
10802 PR c++/11026:
10803 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10804 objfile obstack.
10805
10806 2010-01-19 Tom Tromey <tromey@redhat.com>
10807
10808 * top.c (stop_sig, float_handler, do_nothing): Remove.
10809
10810 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10811
10812 * breakpoint.c (watchpoint_check): Check the call
10813 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10814 Extend the comment.
10815 * config/djgpp/fnchange.lst: Add translations for
10816 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10817 watchpoint-cond-gone-stripped.c.
10818
10819 2010-01-19 Tom Tromey <tromey@redhat.com>
10820
10821 PR c++/8000:
10822 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10823 into parent scope, and enumerator into grandparent scope.
10824
10825 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10826
10827 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10828
10829 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10830
10831 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10832 i[34567]86-*-solaris2.1[0-9]*.
10833 * configure.tgt: Likewise.
10834
10835 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10836
10837 * NEWS: Document the source command enhancement allowing it
10838 to load Python scripts. Document the "set/show script-extension"
10839 commands.
10840
10841 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10842
10843 Add -Wunused-function to compile flags.
10844 * configure.ac: Add -Wunused-function to build_warnings.
10845 * configure: Regenerate.
10846
10847 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10848
10849 "delete" ada-lex.c:input function, not used.
10850 * ada-lex.l: #define YY_NO_INPUT.
10851
10852 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10853
10854 Delete free_named_symtabs and associated cleanup.
10855 * symfile.h (free_named_symtabs): Delete declaration.
10856 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10857 (cashier_psymtab): Comment function out.
10858 Delete declaration.
10859 (free_named_symtabs): Delete.
10860 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10861 * dbxread.c (end_psymtab): Likewise.
10862 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10863 * exec.c (exec_close_1): Ditto.
10864 * xcoffread.c (xcoff_end_psymtab): Likewise.
10865
10866 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10867
10868 * stack.c (print_block_frame_labels): Comment function out.
10869
10870 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10871
10872 Delete unused or undefined functions.
10873 * breakpoint.c (ep_parse_optional_filename): Delete.
10874 * dcache.c (dcache_write_line): Remove declaration.
10875 * infrun.c (build_infrun): Remove declaration.
10876 * tracepoint.c (tracepoint_save_command): Remove declaration.
10877 * linux-nat.c (init_lwp_list): Delete. No longer used.
10878 * event-loop.c (check_async_signal_handlers): Delete declaration.
10879 * infrun.c (init_execution_control_state): Delete.
10880 (proceed): Update comment to avoid mentioning
10881 init_execution_control_state.
10882 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10883 * ada-lang.c (ada_to_static_fixed_value): Delete.
10884 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10885 * cp-namespace.c (cp_copy_usings): Delete.
10886 * xml-syscall.c (xml_number_of_syscalls): Delete.
10887 * progspace.c (find_program_space_by_num): Delete.
10888 * inflow.c (handle_sigio): Delete declaration.
10889 * hppa-tdep.c (hppa_alignof): Delete.
10890 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10891 (mipsnbsd_core_osabi_sniffer): Delete.
10892
10893 2010-01-18 Tom Tromey <tromey@redhat.com>
10894
10895 PR c++/9680:
10896 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10897 (CONST_CAST): New tokens.
10898 (exp): Add new productions.
10899 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10900 reinterpret_cast.
10901 (is_cast_operator): New function.
10902 (yylex): Handle cast operators specially.
10903 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10904 UNOP_REINTERPRET_CAST>: New cases.
10905 * expprint.c (print_subexp_standard): Likewise.
10906 (op_name_standard): Likewise.
10907 (dump_subexp_body_standard): Likewise.
10908 * parse.c (operator_length_standard): Likewise.
10909 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10910 UNOP_REINTERPRET_CAST.
10911 * gdbtypes.c (class_types_same_p): New function.
10912 (is_ancestor): Use it.
10913 (is_public_ancestor): New function.
10914 (is_unique_ancestor_worker): Likewise.
10915 (is_unique_ancestor): Likewise.
10916 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10917 (is_unique_ancestor): Declare.
10918 * valops.c (value_reinterpret_cast): New function.
10919 (dynamic_cast_check_1): Likewise.
10920 (dynamic_cast_check_2): Likewise.
10921 (value_dynamic_cast): Likewise.
10922 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10923
10924 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10925
10926 Fix build failure when building without Python support.
10927 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10928 is not defined.
10929
10930 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10931
10932 Use XVS field type instead of doing a parallel lookup.
10933 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10934 if it is a reference type instead of doing a type lookup using
10935 the XVS field name.
10936
10937 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10938
10939 Trust PAD types instead of using PAD___XVS.
10940 * ada-lang.c (trust_pad_over_xvs): New static variable.
10941 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10942 parallel XVS type, follow the XVS type instead of the PAD type.
10943 (unwrap_value): Make sure that there is no parallel XVE type
10944 before returning the value as is.
10945 (set_ada_list, show_ada_list): New static variables.
10946 (set_ada_command, show_ada_command): New functions.
10947 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10948 Add new "set/show ada trust-PAD-over-XVS" setting.
10949
10950 2010-01-18 Tom Tromey <tromey@redhat.com>
10951 Thiago Jung Bauermann <bauerman@br.ibm.com>
10952
10953 Allow "source" to load python scripts.
10954 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10955 * python/python.c (source_python_script): New function.
10956 * python/python.h (source_python_script): Add declaration.
10957 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10958 (script_ext_off, script_ext_soft, script_ext_strict)
10959 (script_ext_enums, script_ext_mode): New static constants.
10960 (show_script_ext_mode, find_and_open_script): New functions.
10961 (source_script): Enhance to handle Python scripts.
10962 (init_cli_cmds): Add set/show script-extension commands.
10963
10964 2010-01-16 Stan Shebs <stan@codesourcery.com>
10965
10966 * tracepoint.h (struct trace_status): Use unsigned long long
10967 instead of size_t.
10968 * tracepoint.c (trace_status_command): Fix printf directive.
10969 (trace_save_command): Check fwrite returns, fix printf directive.
10970 (trace_filename): New global.
10971 (tfile_open): Set it, check read returns.
10972 (tfile_close): Free trace_filename.
10973 (tfile_get_traceframe_address): Check read returns.
10974 (tfile_trace_find): Ditto.
10975 (tfile_fetch_registers): Ditto.
10976 (tfile_xfer_partial): Ditto.
10977 (tfile_get_trace_state_variable_value): Ditto.
10978
10979 2010-01-15 Stan Shebs <stan@codesourcery.com>
10980
10981 Add trace file support.
10982 * tracepoint.h (enum trace_stop_reason): New enum.
10983 (struct trace_status): New struct.
10984 (parse_trace_status): Declare.
10985 (struct uploaded_tp): Move here from remote.c,
10986 add fields for actions.
10987 (struct uploaded_tsv): New struct.
10988 * tracepoint.c (tfile_ops): New target vector.
10989 (trace_fd): New global.
10990 (tfile_open): New function.
10991 (tfile_close): New function.
10992 (tfile_files_info): New function.
10993 (tfile_get_trace_status): New function.
10994 (tfile_get_traceframe_address): New function.
10995 (tfile_trace_find): New function.
10996 (tfile_fetch_registers): New function.
10997 (tfile_xfer_partial): New function.
10998 (tfile_get_trace_state_variable_value): New function.
10999 (init_tfile_ops): New function.
11000 (_initialize_tracepoint): Call it, add tfile target.
11001 (trace_status): New global.
11002 (current_trace_status): New function.
11003 (trace_running_p): Remove, change all users to get from
11004 current_trace_status()->running.
11005 (get_trace_status): Remove.
11006 (trace_status_command): Call target_get_trace_status directly,
11007 report more detail including tracing stop reasons.
11008 (trace_find_command): Always allow tfind on a file.
11009 (trace_find_pc_command): Ditto.
11010 (trace_find_tracepoint_command): Ditto.
11011 (trace_find_line_command): Ditto.
11012 (trace_find_range_command): Ditto.
11013 (trace_find_outside_command): Ditto.
11014 (trace_frames_offset, cur_offset): Declare as off_t.
11015 (trace_regblock_size): Rename from reg_size, update users.
11016 (parse_trace_status): New function.
11017 (tfile_interp_line): New function.
11018 (disconnect_or_stop_tracing): Ensure current trace
11019 status before asking what to do.
11020 (stop_reason_names): New global.
11021 (trace_save_command): New command.
11022 (get_uploaded_tp): Move here from remote.c.
11023 (find_matching_tracepoint): Ditto.
11024 (merge_uploaded_tracepoints): New function.
11025 (parse_trace_status): Use stop_reason_names.
11026 (_initialize_tracepoint): Define tsave command.
11027 * target.h (target_ops): New fields to_save_trace_data,
11028 to_upload_tracepoints, to_upload_trace_state_variables,
11029 to_get_raw_trace_data, change to_get_trace_status
11030 to take a pointer to a status struct.
11031 (target_save_trace_data): New macro.
11032 (target_upload_tracepoints): New macro.
11033 (target_upload_trace_state_variables): New macro.
11034 (target_get_raw_trace_data): New macro.
11035 * target.c (update_current_target): Add new methods, change
11036 signature of to_get_trace_status.
11037 * remote.c (hex2bin): Make globally visible.
11038 (bin2hex): Ditto.
11039 (remote_download_trace_state_variable): Download name also.
11040 (remote_get_trace_status): Update parameter, use
11041 parse_trace_status.
11042 (remote_save_trace_data): New function.
11043 (remote_upload_tracepoints): New function.
11044 (remote_upload_trace_state_variables): New function.
11045 (remote_get_raw_trace_data): New function.
11046 (remote_start_remote): Use them.
11047 (_initialize_remote_ops): Add operations.
11048 * ax-gdb.c: Include breakpoint.h.
11049 * breakpoint.c (create_tracepoint_from_upload): Use
11050 break_command_really, return tracepoint, warn about unimplemented
11051 parts.
11052 * NEWS: Mention trace file addition.
11053
11054 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11055
11056 Fix compilation warning on gcc-3.4.
11057 * exec.c (print_section_info): Move the `displacement' variable
11058 initialization to its declaration.
11059
11060 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11061
11062 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
11063 comparison.
11064
11065 2010-01-15 Eric Botcazou <botcazou@adacore.com>
11066
11067 "info tasks" broken by typedefs in ATCB type definitions.
11068 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
11069 ada_check_typedef before retrieving the length of the type for
11070 regular fields.
11071
11072 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11073
11074 Do not use name-based lookup for unconstrained packed arrays.
11075 * ada-lang.c (find_parallel_type_by_descriptive_type):
11076 Limit the fallback to name-based lookups to the case where
11077 the type is a constrained packed array.
11078
11079 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11080
11081 Enhance gdb-gdb.py to handle main_type.type_specific.
11082 * gdb-gdb.py: Print the type-specific part of struct main_type.
11083
11084 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11085
11086 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
11087 * configure: Regenerate.
11088 * config.in: Regenerate.
11089 * utils.c: Include sys/resource.h.
11090 (dump_core, can_dump_core): New.
11091 (internal_vproblem): Update the comment. Check can_dump_core while
11092 setting dump_core_p. Replace two abort calls by dump_core calls.
11093
11094 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11095 Eli Zaretskii <eliz@gnu.org>
11096
11097 * NEWS: Document the PIE support.
11098
11099 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11100
11101 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
11102 (check_is_pie_binary, _initialize_linux_tdep): Remove.
11103
11104 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11105
11106 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
11107 Replace exec_entry_point call by bfd_get_start_address.
11108
11109 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11110
11111 Support Valgrind attachments broken by the PIE support.
11112 * auxv.c: Include gdbcore.h.
11113 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11114 parameters ops, object and annex. Remove their assertions.
11115 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11116 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11117 (memory_xfer_auxv): ... here.
11118 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11119 memory_xfer_auxv.
11120 * procfs.c (procfs_xfer_partial): Likewise.
11121 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11122 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11123 (svr4_solib_create_inferior_hook): Conditionalize the
11124 svr4_relocate_main_executable call.
11125
11126 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11127
11128 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11129 target_section. Find SECT in current_target_sections, gdb_assert it.
11130 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11131 New variable abfd.
11132 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11133 of separate debug info file.
11134
11135 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11136
11137 Support PIEs with no symfile_objfile.
11138 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11139 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11140
11141 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11142
11143 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11144 code part to ...
11145 (svr4_static_exec_displacement): ... a new function.
11146 (svr4_exec_displacement): New function.
11147 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11148 new_offsets using alloca now. Remove variable old_chain and changed.
11149 Call objfile_relocate unconditionally now.
11150
11151 2010-01-14 Doug Evans <dje@google.com>
11152
11153 * gdbtypes.c (arch_flags_type): Fix comment.
11154 * gdbtypes.h (arch_composite_type): Fix comment.
11155
11156 2009-01-14 Tristan Gingold <gingold@adacore.com>
11157
11158 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11159 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11160 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11161 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11162 macho_add_oso_symfile.
11163 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11164
11165 2010-01-14 Joel Brobecker <brobecker@adacore.com>
11166
11167 Tru64: Dead threads are never deleted.
11168 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11169 (dec_thread_count_gdb_threads): Fix counter increment.
11170 (dec_thread_add_gdb_thread): Fix *listp increment.
11171 (resync_thread_list): Fix bug in deletion of dead threads that
11172 caused all threads to be deleted, instead of just the dead ones.
11173
11174 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11175
11176 PR python/10705
11177
11178 * python/python-internal.h: Add lazy_string_object_type
11179 definition.
11180 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11181 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11182 * python/py-value.c (valpy_lazy_string): New function.
11183 (convert_value_from_python): Add lazy string conversion.
11184 * python/py-prettyprint.c (pretty_print_one_value): Check if
11185 return is also a lazy string.
11186 (print_string_repr): Add lazy string printing branch.
11187 (print_children): Likewise.
11188 * python/py-lazy-string.c: New file. Implement lazy strings.
11189 * python/python.c (_initialize_python): Call
11190 gdbpy_initialize_lazy_string.
11191 * varobj.c (value_get_print_value): Add lazy string printing
11192 branch. Account for encoding.
11193 * c-lang.c (c_printstr): Account for new encoding argument. If
11194 encoding is NULL, find encoding suited for type, otherwise use
11195 user encoding.
11196 * language.h (language_defn): Add encoding argument.
11197 (LA_PRINT_STRING): Likewise.
11198 * language.c (unk_lang_printstr): Update to reflect new encoding
11199 argument to language_defn.
11200 * ada-lang.h (ada_printstr): Likewise.
11201 * c-lang.h (c_printstr): Likewise.
11202 * p-lang.h (pascal_printstr);
11203 * f-lang.c (f_printstr): Likewise.
11204 * m2-lang.c (m2_printstr): Likewise.
11205 * objc-lang.c (objc_printstr): Likewise.
11206 * p-lang.c (pascal_printstr): Likewise.
11207 * scm-lang.c (scm_printstr): Likewise.
11208 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11209 encoding argument.
11210 * ada-valprint.c (ada_printstr): Likewise.
11211 * f-valprint.c (f_val_print): Likewise
11212 * m2-valprint.c (m2_val_print): Likewise.
11213 * p-valprint.c (pascal_val_print): Likewise.
11214 * expprint.c (print_subexp_standard): Likewise.
11215 * valprint.c (val_print_string): Likewise.
11216 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11217 (SUBDIR_PYTHON_SRCS): Likewise.
11218 (py-lazy-string.o): New rule.
11219
11220 2010-01-13 Doug Evans <dje@google.com>
11221
11222 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11223 uninitialized" warning from gcc on local `tree'.
11224
11225 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11226
11227 Implement core awareness.
11228
11229 * bcache.c (compare_ints): Remove
11230 (print_percentage): Use compare_positive_ints.
11231 * defs.h (compare_positive_ints): Declare.
11232 * linux-nat.h (struct lin_lwp): New field core.
11233 (linux_nat_core_of_thread_1): Declare.
11234 * linux-nat.c (add_lwp): Init the 'core' field.
11235 (linux_nat_wait_1): Record the core.
11236 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11237 (linux_nat_add_target): Register the above.
11238 * linux-thread-db.c (update_thread_core): New.
11239 (thread_db_find_new_threads): Update core information for
11240 every thread.
11241 * remote.c (struct private_thread_info): New.
11242 (free_private_thread_info, demand_private_info): New.
11243 (PACKET_qXfer_threads, use_osdata_threads): New.
11244 (struct thread_item, threads_parsing_context
11245 (start_thread, end_thread, thread_attributes)
11246 (thread_children, threads_children, threads_elements): New.
11247 (remote_threads_info): Try qXfer:threads before anything
11248 else.
11249 (remote_protocol_packets): Register qXfer:threads.
11250 (remote_open_1): Init use_osdata_threads.
11251 (struct stop_reply): New field 'core'.
11252 (remote_parse_stop_reply): Parse core number.
11253 (process_stop_reply): Record core number.
11254 (remote_xfer_partial): Handle qXfer:threads.
11255 (remote_core_of_thread): New.
11256 (init_remote_ops): Register remote_core_of_thread.
11257 (_initialize_remote): Register qXfer:read.
11258 * target.c (target_core_of_thread): New
11259 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11260 (struct target_ops): New field to_core_of_threads.
11261 (target_core_of_thread): Declare.
11262 * gdbthread.h (struct thread_info): New field private_dtor.
11263 * thread.c (print_thread_info): Report the core.
11264 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11265 * utils.c (compare_positive_ints): New.
11266 * features/threads.dtd: New.
11267 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11268 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11269 (do_nothing, free_vector_of_osdata_items)
11270 (splay_tree_int_comparator, free_splay_tree): New.
11271 (print_one_inferior_data): Implemented printing of selected
11272 inferiors. Collect and print cores.
11273 (output_cores): New.
11274 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11275 thread groups together with --available.
11276
11277 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11278
11279 * configure: Regenerate (for _STRUCTURED_PROC).
11280
11281 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11282
11283 Delete dead function.
11284 * ada-lang.c (extract_string): Delete. No longer used.
11285
11286 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11287
11288 Fix -Wunused warning in dec-thread.c.
11289 * dec-thread.c (dec_thread_count_gdb_threads)
11290 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11291
11292 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11293
11294 * ada-valprint.c (ada_print_floating): Remove trailing space.
11295
11296 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11297
11298 Add support for DW_AT_GNAT_descriptive_type.
11299 * gdbtypes.h (enum type_specific_kind): New enum.
11300 (struct main_type) [type_specific_field]: New component.
11301 [type_specific]: Add new component "gnat_stuff".
11302 (struct gnat_aux_type): New type.
11303 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11304 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11305 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11306 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11307 (TYPE_SPECIFIC_FIELD): New macros.
11308 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11309 type does not hold any cplus-specific data.
11310 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11311 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11312 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11313 cplus-specific data.
11314 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11315 Set new component TYPE_SPECIFIC_FIELD (type).
11316 (gnat_aux_default): New constant.
11317 (allocate_gnat_aux_type): New function.
11318 (init_type): Add initialization the type-specific stuff for
11319 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11320 (print_gnat_stuff): New function.
11321 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11322 specific data. Adjust code that prints the contents of the
11323 type-specific union using the TYPE_SPECIFIC_FIELD value.
11324 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11325 the type cplus stuff for Ada types.
11326 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11327 Error out if these routines are called with an Ada type.
11328 (read_structure_type, read_array_type, read_subrange_type):
11329 Add call to set_descriptive_type.
11330 (set_die_type): Initialize the gnat-specific data if necessary.
11331 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11332 New functions.
11333 * ada-lang.c (decode_constrained_packed_array_type): Use
11334 decode_constrained_packed_array_type instead of doing a standard
11335 lookup to locate a parallel type.
11336 (find_parallel_type_by_descriptive_type): New function.
11337 (ada_find_parallel_type_with_name): New function.
11338 (ada_find_parallel_type): Reimplement using
11339 ada_find_parallel_type_with_name.
11340 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11341 to check if type has a cplus stuff.
11342 * linespec.c (total_number_of_methods): Likewise.
11343 * mdebugread.c (new_type): Likewise.
11344
11345 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11346
11347 * NEWS: Document the 0b binary number prefix parsing.
11348
11349 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11350
11351 * objfiles.c (objfile_relocate1): Change the return type to int.
11352 Describe the new return value. Return non-zero if data changed.
11353 (objfile_relocate): New variable changed. Set it. Call
11354 breakpoint_re_set depending on CHANGED.
11355
11356 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11357
11358 Implement binary numbers parsing.
11359 * c-exp.y (parse_number): New case 'b' and 'B'.
11360
11361 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11362 Tristan Gingold <gingold@adacore.com>
11363
11364 * solib.c (info_sharedlibrary_command): Replace
11365 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11366 objfile_has_symbols.
11367
11368 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11369
11370 * NEWS: Document the improvements made to the mips-irix port.
11371
11372 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11373
11374 Fix the documentation of valprint.c:value_print.
11375 * valprint.c (value_print): Update the function description to
11376 mention that the syntax of the output follows the current_language,
11377 not necessarily C.
11378
11379 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11380
11381 Fix displacement of separate debug info files.
11382 * objfiles.c (objfile_relocate): Rename to ...
11383 (objfile_relocate1): ... here and make it static. Extend the comment.
11384 (objfile_relocate): New function.
11385 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11386 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11387 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11388 allocated using alloca.
11389 * symfile.c (copy_section_addr_info): Remove.
11390 (build_section_addr_info_from_objfile): Make it global. New variables
11391 addr_bit and mask, use them.
11392 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11393 (copy_section_addr_info): Remove.
11394
11395 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11396
11397 Signal unwinder for mips-irix N32.
11398 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11399 tramp-frame.h.
11400 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11401 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11402 (SIGCONTEXT_LO_OFF): New macros.
11403 (mips_irix_n32_tramp_frame_init): New function.
11404 (mips_irix_n32_tramp_frame): New static constant.
11405 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11406
11407 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11408
11409 Breakpoint in shared library does not work on mips-irix.
11410 * procfs.c: #include "observer.h".
11411 (procfs_inferior_created): New function, moving here the code
11412 which unsets the syssgi syscall-exit notifications.
11413 (procfs_create_inferior): Remove the code which unsets the syssgi
11414 syscall-exit notifications. It is too early to do this here.
11415 (_initialize_procfs): Attach the procfs_inferior_created observer.
11416
11417 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11418
11419 Wrong return convention for arrays (mips-irix).
11420 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11421 128 bits or smaller are returned the same way as structs
11422 and unions of the the same size.
11423
11424 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11425
11426 Cannot set the PC on mips-irix.
11427 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11428 register number, no the cooked one.
11429
11430 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11431
11432 Error while loading core file on mips-irix.
11433 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11434 if debugging from a core file.
11435
11436 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11437
11438 GDB hangs when attaching to process on mips-irix.
11439 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11440 attaching to a process.
11441
11442 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11443
11444 Use the correct breakpoint instruction on mips-irix.
11445 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11446 containing the correct breakpoint instruction to use on mips-irix.
11447 Use it when the osabi is GDB_OSABI_IRIX.
11448
11449 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11450
11451 -Wunused warning in procfs.c (mips-irix only).
11452 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11453 throughout instead of using praddset and prdelset respectively.
11454
11455 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11456
11457 GDB crash while stepping into function.
11458 * infrun.c (handle_inferior_event): Refetch the current frame
11459 after handling what.main_action, in case that pointer became
11460 dangling.
11461
11462 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11463
11464 Fix build failure of solaris-hosted cross debuggers.
11465 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11466
11467 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11468
11469 Fix build failure on sparc-solaris.
11470 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11471
11472 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11473
11474 Move some symfile code into subroutines.
11475 * symfile.h (relative_addr_info_to_section_offsets)
11476 (addr_info_make_relative): New prototypes.
11477 * symfile.c (default_symfile_offsets): Move a part to ...
11478 (relative_addr_info_to_section_offsets): ... this new function.
11479 (default_symfile_offsets): Call it.
11480 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11481 this part to ...
11482 (addr_info_make_relative): ... this new function.
11483
11484 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11485
11486 Add from_tty to solib_create_inferior_hook.
11487 * infcmd.c (post_create_inferior): Move solib_add after
11488 solib_create_inferior_hook. Pass from_tty to
11489 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11490 0 from_tty and comment why.
11491 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11492 * linux-nat.c (linux_child_follow_fork): Likewise.
11493 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11494 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11495 from_tty.
11496 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11497 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11498 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11499 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11500 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11501 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11502 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11503 Pass it to svr4_so_ops.solib_create_inferior_hook.
11504 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11505 from_tty.
11506 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11507 solib_add.
11508 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11509 enable_break.
11510 * solib-target.c (solib_target_solib_create_inferior_hook): New
11511 parameter from_tty.
11512 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11513 it to ops->solib_create_inferior_hook.
11514 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11515 Move solib_add after solib_create_inferior_hook, call it now with
11516 from_tty as 0. New comment there.
11517 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11518 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11519 Likewise.
11520
11521 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11522
11523 Fix multiexec race.
11524 * infrun.c (handle_inferior_event): Use get_thread_regcache
11525 with events ptid, not get_current_regcache.
11526
11527 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11528
11529 GDB crash with empty executable name (MinGW).
11530 * source.c (openp): Add assert that parameter string is not NULL.
11531 if parameter string is an empty string, then return with a failure
11532 immediately.
11533
11534 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11535
11536 Get rid of support for VAX Floats.
11537 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11538 (ada_vax_float_print_function): Delete.
11539 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11540 (ada_vax_float_print_function): Delete.
11541 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11542 (ada_print_type): Remove support for VAX floats.
11543 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11544
11545 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11546
11547 * stabsread.c (read_args): Handle zero arguments.
11548
11549 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11550
11551 Cannot find in-tree libiconv.a after reconfigure.
11552 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11553 that we can use, then cache the path to this archive.
11554 * configure: Regenerate.
11555
11556 2010-01-07 Stan Shebs <stan@codesourcery.com>
11557
11558 Make tracepoint operations go through target vector.
11559 * target.h (enum trace_find_type): New enum.
11560 (struct target_ops): New fields to_trace_init,
11561 to_download_tracepoint, to_download_trace_state_variable,
11562 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11563 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11564 to_set_disconnected_tracing.
11565 (target_trace_init): New macro.
11566 (target_download_tracepoint): New macro.
11567 (target_download_trace_state_variable): New macro.
11568 (target_trace_start): New macro.
11569 (target_trace_set_readonly_regions): New macro.
11570 (target_get_trace_status): New macro.
11571 (target_trace_stop): New macro.
11572 (target_trace_find): New macro.
11573 (target_get_trace_state_variable_value): New macro.
11574 (target_set_disconnected_tracing): New macro.
11575 * target.c (update_current_target): Inherit and set defaults for
11576 tracepoint operations.
11577 * tracepoint.c (default_collect): Make globally visible.
11578 (target_is_remote): Remove, along with all calls.
11579 (tvariables_info): Call target_get_trace_state_variable_value.
11580 (remote_set_transparent_ranges): Remove.
11581 (trace_start_command): Call target_trace_init,
11582 target_download_tracepoint, etc.
11583 (download_tracepoint): Remove.
11584 (trace_stop_command): Simplify.
11585 (stop_tracing): Call target_trace_stop.
11586 (get_trace_status): Call target_get_trace_status.
11587 (trace_status_command): Add case for targets that cannot trace.
11588 (finish_tfind_command): Change to take numerical arguments, call
11589 target_trace_find.
11590 (trace_find_command): Update call to finish_tfind_command.
11591 (trace_find_pc_command): Ditto.
11592 (trace_find_tracepoint_command): Ditto.
11593 (trace_find_line_command): Ditto.
11594 (trace_find_range_command): Ditto.
11595 (trace_find_outside_command): Ditto.
11596 (set_disconnected_tracing_value): Call
11597 target_set_disconnected_tracing.
11598 * remote.c: Add protocol encoding bits from tracepoint.c.
11599 (trace_error): Move from tracepoint.c.
11600 (remote_get_noisy_reply): Ditto.
11601 (free_actions_list_cleanup_wrapper): Ditto.
11602 (free_actions_list): Ditto.
11603 (remote_trace_init): New function.
11604 (remote_download_tracepoint): New function.
11605 (remote_download_trace_state_variable): New function.
11606 (remote_trace_set_readonly_regions): New function.
11607 (remote_trace_start): New function.
11608 (remote_get_trace_status): New function.
11609 (remote_trace_stop): New function.
11610 (remote_trace_find): New function.
11611 (remote_download_trace_state_variable): New function.
11612 (remote_set_disconnected_tracing): New function.
11613 (init_remote_ops): Add tracepoint operations.
11614
11615 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11616
11617 2010-01-07 Tristan Gingold <gingold@adacore.com>
11618
11619 * symfile.c (build_section_addr_info_from_objfile): New function.
11620 (symbol_file_add_separate): Don't use offsets from objfile but
11621 built an addr info.
11622
11623 2010-01-06 Stan Shebs <stan@codesourcery.com>
11624
11625 Support disconnected tracing.
11626 * infcmd.c (detach_command): Ask whether to stop tracing.
11627 * cli/cli-cmds.c (quit_command): Ditto.
11628 * breakpoint.h (struct breakpoint): New field number_on_target.
11629 * breakpoint.c (create_tracepoint_from_upload): New function.
11630 (get_tracepoint_by_number_on_target): New function.
11631 * remote.c (struct remote): New field disconnected_tracing.
11632 (remote_disconnected_tracing_feature): New function.
11633 (remote_protocol_features): Add DisconnectedTracing.
11634 (struct uploaded_tp): New struct.
11635 (uploaded_tps): New global.
11636 (get_uploaded_tp): New function.
11637 (find_matching_tracepoint): New function.
11638 (remote_get_tracing_state): New function.
11639 (remote_start_remote): Call it.
11640 * tracepoint.c (disconnected_tracing): New global.
11641 (trace_start_command): Initialize number_on_target.
11642 (stop_tracing): New function, split out from...
11643 (trace_stop_command): Call stop_tracing.
11644 (get_trace_status): New function, split out from...
11645 (trace_status_command): Call get_trace_status, add info on
11646 disconnection behavior.
11647 (disconnect_or_stop_tracing): New function.
11648 (finish_tfind_command): Translate from number on target.
11649 (trace_find_tracepoint_command): Translate to number on target.
11650 (send_disconnected_tracing_value): New function.
11651 (set_disconnected_tracing): New function.
11652 (_initialize_tracepoint): Add disconnected-tracing variable.
11653 * NEWS: Mention disconnected tracing.
11654
11655 2010-01-06 Tristan Gingold <gingold@adacore.com>
11656
11657 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11658 parameter to main_objfile. Iterate on all separate debug objfiles.
11659 * symfile.h (symbol_file_add_separate)
11660 (find_separate_debug_file_by_debuglink): Remove parameter names.
11661 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11662 (reread_symbols): Use free_objfile_separate_debug.
11663 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11664 Adjust comment.
11665 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11666 (free_objfile_separate_debug): New prototypes.
11667 * objfiles.c (objfile_separate_debug_iterate): New function.
11668 (add_separate_debug_objfile, free_objfile_separate_debug): New
11669 functions.
11670 (free_objfile): Use free_objfile_separate_debug. Adjust for
11671 multiple separate debug objfile.
11672 (objfile_has_symbols): Adjust comment. Iterate on all separate
11673 debug objfiles.
11674 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11675 debug objfile.
11676 (lookup_minimal_symbol_text): Ditto.
11677 (lookup_minimal_symbol_by_pc_name): Ditto.
11678 (lookup_minimal_symbol_solib_trampoline): Ditto.
11679 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11680 debug objfiles.
11681
11682 2010-01-05 Stan Shebs <stan@codesourcery.com>
11683
11684 Add fast tracepoints.
11685 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11686 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11687 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11688 * breakpoint.c (tracepoint_type): New function.
11689 (ALL_TRACEPOINTS): Use it.
11690 (should_be_inserted): Ditto.
11691 (bpstat_check_location): Ditto.
11692 (print_one_breakpoint_location): Ditto.
11693 (user_settable_breakpoint): Ditto.
11694 (set_breakpoint_location_function): Ditto.
11695 (disable_breakpoints_in_shlibs): Ditto.
11696 (delete_trace_command): Ditto.
11697 (print_it_typical): Add bp_fast_tracepoint case.
11698 (bpstat_what): Ditto.
11699 (print_one_breakpoint_location): Ditto.
11700 (allocate_bp_location): Ditto.
11701 (mention): Ditto.
11702 (breakpoint_re_set_one): Ditto.
11703 (disable_command): Ditto.
11704 (enable_command): Ditto.
11705 (check_fast_tracepoint_sals): New function.
11706 (break_command_really): Call it.
11707 (ftrace_command): New function.
11708 (_initialize_breakpoint): Add ftrace command.
11709 * gdbarch.sh (fast_tracepoint_valid_at): New.
11710 * gdbarch.h, gdbarch.c: Regenerate.
11711 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11712 (i386_gdbarch_init): Use it.
11713 * remote.c (struct remote_state): New field fast_tracepoints.
11714 (PACKET_FastTracepoints): New packet config type.
11715 (remote_fast_tracepoint_feature): New function.
11716 (remote_protocol_features): Add FastTracepoints.
11717 (remote_supports_fast_tracepoints): New function.
11718 (_initialize_remote): Add FastTracepoints.
11719 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11720 * NEWS: Mention fast tracepoints.
11721
11722 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11723
11724 * gdb-gdb.py: New file.
11725
11726 2010-01-05 Michael Snyder <msnyder@vmware.com>
11727
11728 * infrun.c (handle_inferior_event): Fix typo in comment.
11729
11730 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11731
11732 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11733
11734 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11735
11736 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11737 and s390x-linux64.
11738 (s390-linux32-expedite): Define.
11739 (s390-linux64-expedite): Define.
11740 (s390x-linux64-expedite): Define.
11741 * features/s390-acr.xml: New file.
11742 * features/s390-fpr.xml: New file.
11743 * features/s390-core32.xml: New file.
11744 * features/s390-core64.xml: New file.
11745 * features/s390x-core64.xml: New file.
11746 * features/s390-linux32.xml: New file.
11747 * features/s390-linux64.xml: New file.
11748 * features/s390x-linux64.xml: New file.
11749 * features/s390-linux32.c: New generated file.
11750 * features/s390-linux64.c: New generated file.
11751 * features/s390x-linux64.c: New generated file.
11752
11753 * regformats/s390-linux32.dat: New generated file.
11754 * regformats/s390-linux64.dat: New generated file.
11755 * regformats/s390x-linux64.dat: New generated file.
11756 * regformats/reg-s390.dat: Remove.
11757 * regformats/reg-s390x.dat: Remove.
11758
11759 * s390-nat.c: Include "auxv.h" and <elf.h>.
11760 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11761 (s390_target_wordsize): New function.
11762 (s390_auxv_parse): Likewise.
11763 (s390_get_hwcap): Likewise.
11764 (s390_read_description): Likewise.
11765 (_initialize_s390_nat): Install s390_auxv_parse and
11766 s390_read_description.
11767
11768 * s390-tdep.c: Include "features/s390-linux32.c",
11769 "features/s390-linux64.c", and "features/s390x-linux64.c".
11770 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11771 (s390_register_call_saved): New function.
11772 (s390_register_name): Remove.
11773 (s390_register_type): Remove.
11774 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11775 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11776 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11777 (s390_pseudo_register_name): New function.
11778 (s390_pseudo_register_type): New function.
11779 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11780 Handle full GPR pesudos and varying pseudo register numbers.
11781 (s390_pseudo_register_write): Likewise
11782 (s390x_pseudo_register_read): Remove.
11783 (s390x_pseudo_register_write): Likewise.
11784 (s390_register_group): Remove.
11785 (s390_pseudo_register_group): New function.
11786 (s390_regmap_gregset): Add GPR upper halves.
11787 (s390x_regmap_gregset): Likewise.
11788 (s390_regmap_fpregset): Likewise.
11789 (s390_regmap_upper): New global variable.
11790 (s390_upper_regset): New global variable.
11791 (s390_upper_regset_sections): New global variable.
11792 (s390_regset_from_core_section): Handle GPR upper halves.
11793 (s390_core_read_description): New function.
11794 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11795 register information. Handle varying pseudo register numbers.
11796 (s390_backchain_frame_unwind_cache): Likewise.
11797 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11798 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11799 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11800 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11801 Handle varying pseudo register numbers.
11802 (s390_unwind_pc): Handle varying pseudo register numbers.
11803 (s390_dwarf2_prev_register): New function.
11804 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11805 register information. Handle varying pseudo register numbers.
11806 Install s390_dwarf2_prev_register to unwind full GPRs.
11807 (s390_gdbarch_init): Handle target descriptions. Assign varying
11808 pseudo register numbers. Install s390_adjust_frame_regnum.
11809 (_initialize_s390_tdep): Initialize target descriptions.
11810
11811 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11812 (S390_NUM_REGS): Redefine to include upper half registers.
11813 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11814 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11815 (tdesc_s390_linux32): Add declaration.
11816 (tdesc_s390_linux64): Likewise.
11817 (tdesc_s390x_linux64): Likewise.
11818
11819 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11820
11821 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11822 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11823 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11824 (ppc_linux_vmx_regset_sections): Likewise.
11825 (ppc_linux_fp_regset_sections): Likewise.
11826
11827 * corelow.c (get_core_register_section): Constify arguments.
11828 (get_core_registers): Use gdbarch_core_regset_sections instead
11829 of hard-coded platform-specific register section names.
11830
11831 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11832
11833 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11834 a register, assume the least-significant part is used.
11835 (write_pieced_value): Likewise.
11836
11837 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11838
11839 * printcmd.c: Include "arch-utils.h".
11840 (do_one_display): Re-parse expression if current architecture changed.
11841
11842 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11843 Joel Brobecker <brobecker@adacore.com>
11844
11845 * gdbtypes.c (check_typedef): New comment on type length.
11846 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11847 comment on type length.
11848 (value_primitive_field): Keep the original TYPE value, new comment.
11849
11850 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11851
11852 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11853 p_start. Change != comparisons to > and < comparisons.
11854
11855 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11856
11857 * cli/cli-script.c (process_next_line): Check P2 overrun.
11858
11859 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11860
11861 Update the copyright hearder to add year 2010 for most GDB files.
11862
11863 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11864
11865 Fix build failure in inf-ptrace.c.
11866 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11867
11868 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11869
11870 * top.c (print_gdb_version): Update copyright year.
11871
11872 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11873
11874 Fix break *FUN'address thread NUM.
11875 * ada-lex.l (task): Expand rule to also match the thread keyword.
11876
11877 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11878
11879 Fix break *FUN'address task NUM.
11880 * ada-lex.l (task): New rule.
11881 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11882 been built before using it.
11883
11884 For older changes see ChangeLog-2009.
11885 \f
11886 Local Variables:
11887 mode: change-log
11888 left-margin: 8
11889 fill-column: 74
11890 version-control: never
11891 coding: utf-8
11892 End:
This page took 0.291497 seconds and 4 git commands to generate.