gdb:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-12-14 Joel Brobecker <brobecker@adacore.com>
2
3 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
4 and __fp_scr respectively throughout.
5 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
6 Python using GCC on IRIX.
7 * configure: Regenerate.
8
9 2010-12-13 Kevin Buettner <kevinb@redhat.com>
10
11 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
12 when attaching, on the names in bkpt_names: _start, __start, and
13 main.
14
15 2010-12-12 Stan Shebs <stan@codesourcery.com>
16
17 * value.c (value_of_internalvar): Add case for trace state
18 variables.
19
20 2010-12-12 Doug Evans <dje@google.com>
21
22 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
23 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
24 section. Delete members lines full_names. Rename read_lines to
25 no_file_data.
26 (quick_file_names): New struct.
27 (hash_file_name_entry, eq_file_name_entry): New functions.
28 (delete_file_name_entry, create_quick_file_names_table): New functions.
29 (dwarf2_read_index): Initialize quick_file_names_table.
30 (dw2_get_file_names): Renamed from dw2_require_line_header.
31 Return pointer to quick_file_names entry. All callers updated.
32 (dw2_get_real_path): Renamed from dw2_require_full_path.
33 Replace per_cu arg with pointer to quick_file_names entry.
34 All callers updated.
35 (dw2_free_cached_file_names): New function.
36 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
37 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
38 the OBJF_READNOW case.
39 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
40
41 2010-12-12 Mark Kettenis <kettenis@gnu.org>
42
43 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
44 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
45
46 2010-12-12 Mark Kettenis <kettenis@gnu.org>
47
48 * sparc-tdep.c: Fix typo in comment.
49
50 2010-12-10 Doug Evans <dje@google.com>
51
52 * dwarf2read.c: Whitespace cleanup, plus comment additions.
53 No code changes.
54
55 2010-12-10 Tom Tromey <tromey@redhat.com>
56
57 * NEWS: Document exception-handling change.
58
59 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
60
61 * mi/mi-parse.c (mi_parse): Wrong error message.
62
63 2010-12-09 Doug Evans <dje@google.com>
64
65 * symfile.h (quick_symbol_functions): Clarify usage of
66 map_symbol_filenames.
67
68 2010-12-09 Tom Tromey <tromey@redhat.com>
69
70 * mi/mi-parse.h (mi_parse): Update.
71 * mi/mi-parse.c (mi_parse_cleanup): New function.
72 (mi_parse): Add 'token' argument. Throw exception on error.
73 * mi/mi-main.c (mi_print_exception): New function.
74 (mi_execute_command): Use mi_print_exception. Catch exceptions
75 from mi_parse.
76
77 2010-12-09 Tom Tromey <tromey@redhat.com>
78
79 PR c++/9593:
80 * thread.c (clear_thread_inferior_resources): Call
81 delete_longjmp_breakpoint.
82 * infrun.c (handle_inferior_event): Handle exception breakpoints.
83 (handle_inferior_event): Likewise.
84 (insert_exception_resume_breakpoint): New function.
85 (check_exception_resume): Likewise.
86 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
87 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
88 (step_1): Set thread's initiating frame.
89 (until_next_continuation): New function.
90 (until_next_command): Support exception breakpoints.
91 (finish_command_continuation): Delete longjmp breakpoint.
92 (finish_forward): Support exception breakpoints.
93 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
94 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
95 bp_exception_master>: New constants.
96 (struct bpstat_what) <is_longjmp>: New field.
97 (set_longjmp_breakpoint): Update.
98 * breakpoint.c (create_exception_master_breakpoint): New function.
99 (update_breakpoints_after_exec): Handle bp_exception_master. Call
100 create_exception_master_breakpoint.
101 (print_it_typical): Handle bp_exception_master, bp_exception.
102 (bpstat_stop_status): Handle bp_exception_master.
103 (bpstat_what): Handle bp_exception_master, bp_exception,
104 bp_exception_resume.
105 (bptype_string): Likewise.
106 (print_one_breakpoint_location): Likewise.
107 (allocate_bp_location): Likewise.
108 (set_longjmp_breakpoint): Handle exception breakpoints. Change
109 interface.
110 (delete_longjmp_breakpoint): Handle exception breakpoints.
111 (mention): Likewise.
112 (struct until_break_command_continuation_args) <thread_num>: New
113 field.
114 (until_break_command_continuation): Call
115 delete_longjmp_breakpoint.
116 (until_break_command): Support exception breakpoints.
117 (delete_command): Likewise.
118 (breakpoint_re_set_one): Likewise.
119 (breakpoint_re_set): Likewise.
120
121 2010-12-08 Doug Evans <dje@google.com>
122
123 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
124
125 * gdbtypes.c (check_typedef): Tweak comment.
126
127 PR symtab/12302
128 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
129 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
130 (struct addrmap_index_data): New struct.
131 (add_address_entry): Remove arg `pst', new args `start', `end'.
132 (add_address_entry_worker, write_address_map): New functions.
133 (write_psymtabs_to_index): Address table generation moved to
134 write_address_map. Build a table mapping psymtab to CU index
135 to pass to it.
136
137 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
138 name to perror.
139
140 * symfile.h (quick_symbol_functions): Clarify usage of
141 expand_symtabs_with_filename.
142 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
143 comp units, ignore type units.
144
145 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
146
147 2010-12-07 Doug Evans <dje@google.com>
148
149 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
150 gdb_realpath.
151
152 PR python/12227
153 * NEWS: Mention -data-directory.
154 * main.c (captured_main): Recognize -data-directory.
155
156 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
157
158 * mi/mi-parse.c (mi_parse): Missing else.
159
160 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
161
162 * configure.tgt: Accept microblaze*-*-linux* for linux target
163 and microblaze*-*-* for as target.
164
165 2010-12-02 Keith Seitz <keiths@redhat.com>
166
167 * linespec.c (find_method): Move name canonicalization outside
168 the loop.
169 Be paranoid and use a cleanup.
170
171 2010-12-01 Doug Evans <dje@google.com>
172
173 * dwarf2read.c (save_gdb_index_command): Add comment.
174
175 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
176
177 * valops.c (value_assign): Returned value is never lazy. If a
178 C++ class type is returned, fix incorrect enclosing type / embedded
179 offset. If internal variable is returned, allocate new internalvar
180 value using value_of_internalvar.
181
182 * NEWS: Document changes in behavior of "print x = 0" and similar
183 expressions.
184
185 2010-11-29 Doug Evans <dje@google.com>
186
187 * python/lib/gdb/printing.py (register_pretty_printer): Change
188 printer-name:subprinter-name to printer-name;subprinter-name.
189 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
190 Ditto.
191 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
192
193 2010-11-29 Tom Tromey <tromey@redhat.com>
194
195 * opencl-lang.c (lval_func_check_synthetic_pointer): New
196 function.
197 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
198 New fields.
199 (value_bits_synthetic_pointer): Declare.
200 * value.c (value_bits_synthetic_pointer): New function.
201 * valprint.c (valprint_check_validity): Handle synthetic
202 pointers.
203 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
204 * valarith.c (value_ptradd): Use set_value_component_location.
205 * p-valprint.c (pascal_object_print_value_fields): Handle
206 synthetic pointers.
207 * jv-valprint.c (java_print_value_fields): Handle synthetic
208 pointers.
209 * dwarf2read.c (dwarf_stack_op_name): Add
210 DW_OP_GNU_implicit_pointer.
211 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
212 arguments. Handle location lists.
213 (fill_in_loclist_baton): New function.
214 (dwarf2_symbol_mark_computed): Use it.
215 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
216 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
217 arguments.
218 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
219 find_location_expression. No longer static. Update all callers.
220 (dwarf_expr_frame_pc): New function.
221 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
222 all callers.
223 (struct piece_closure) <per_cu>: New field.
224 (allocate_piece_closure): Add per_cu argument.
225 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
226 (check_pieced_value_bits): Remove validity argument, add check_for
227 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
228 (check_pieced_value_validity, check_pieced_value_invalid):
229 Update.
230 (check_pieced_synthetic_pointer): New function.
231 (get_frame_address_in_block_wrapper): New function.
232 (indirect_pieced_value): New function.
233 (pieced_value_funcs): Update.
234 (invalid_synthetic_pointer): New function.
235 (dwarf2_evaluate_loc_desc_full): Rename from
236 dwarf2_evaluate_loc_desc. Add byte_offset argument.
237 (dwarf2_evaluate_loc_desc): Rewrite.
238 (dwarf2_loc_desc_needs_frame): Set new field on context.
239 (get_ax_pc): New function.
240 (disassemble_dwarf_expression): Handle
241 DW_OP_GNU_implicit_pointer.
242 * dwarf2expr.h (enum dwarf_value_location)
243 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
244 (struct dwarf_expr_context) <get_frame_pc>: New field.
245 (struct dwarf_expr_piece) <v.ptr>: New field.
246 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
247 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
248 * dwarf2-frame.c (no_get_frame_pc): New function.
249 (execute_stack_op): Set new field on context.
250 * cp-valprint.c (cp_print_value_fields): Handle synthetic
251 pointers.
252
253 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
254
255 PR python/12199
256
257 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
258
259 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
260
261 Fix step_resume_breakpoint unsaved during an infcall.
262 * gdbthread.h (struct thread_control_state): Move here field
263 step_resume_breakpoint ...
264 (struct thread_info): ... from here.
265 * infrun.c (save_infcall_control_state): Reset
266 control.step_resume_breakpoint to NULL.
267 (restore_infcall_control_state, discard_infcall_control_state): Delete
268 control.step_resume_breakpoint.
269 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
270 the moved field.
271
272 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
273
274 Rename and move inferior_thread_state and inferior_status.
275 * gdbthread.h (struct thread_control_state): New struct, move fields
276 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
277 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
278 stop_step and stop_bpstat here from struct thread_info.
279 (struct thread_suspend_state): New struct, move field stop_signal here
280 from struct thread_info.
281 (struct thread_info): Move the fields above from this struct.
282 * inferior.h: Move the inferior_thread_state and inferior_status
283 declarations comment to their definitions at infrun.c.
284 (struct inferior_control_state): New struct, move field stop_soon from
285 struct inferior here.
286 (struct inferior_suspend_state): New empty struct.
287 (struct inferior): New fields control and suspend. Move out field
288 stop_soon.
289 * infrun.c (struct inferior_thread_state): Rename to ...
290 (infcall_suspend_state): ... here. Replace field stop_signal by
291 fields thread_suspend and inferior_suspend.
292 (save_inferior_thread_state): Rename to ...
293 (save_infcall_suspend_state): ... here. New variable inf. Update the
294 code for new fields.
295 (restore_inferior_thread_state): Rename to ...
296 (restore_infcall_suspend_state): ... here. New variable inf. Update
297 the code for new fields.
298 (do_restore_inferior_thread_state_cleanup): Rename to ...
299 (do_restore_infcall_suspend_state_cleanup): ... here.
300 (make_cleanup_restore_inferior_thread_state): Rename to ...
301 (make_cleanup_restore_infcall_suspend_state): ... here.
302 (discard_inferior_thread_state): Rename to ...
303 (discard_infcall_suspend_state): ... here.
304 (get_inferior_thread_state_regcache): Rename to ...
305 (get_infcall_suspend_state_regcache): ... here.
306 (struct inferior_status): Rename to ...
307 (struct infcall_control_state): ... here. Replace fields
308 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
309 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
310 stop_step, stop_bpstat and stop_soon by fields thread_control and
311 inferior_control.
312 (save_inferior_status): Rename to ...
313 (save_infcall_control_state): ... here. Update the code for new
314 fields.
315 (restore_inferior_status): Rename to ...
316 (restore_infcall_control_state): ... here. Update the code for new
317 fields.
318 (do_restore_inferior_status_cleanup): Rename to ...
319 (do_restore_infcall_control_state_cleanup): ... here.
320 (make_cleanup_restore_inferior_status): Rename to ...
321 (make_cleanup_restore_infcall_control_state): ... here.
322 (discard_inferior_status): Rename to ...
323 (discard_infcall_control_state): ... here.
324 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
325 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
326 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
327 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
328 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
329 references to the moved fields and renamed functions.
330
331 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
332
333 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
334 the comment.
335 (save_inferior_thread_state): Reset tp->stop_signal.
336
337 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
338
339 * infcall.c (call_function_by_hand): Remove variable
340 caller_state_cleanup.
341
342 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
343
344 PR breakpoints/12217
345
346 * breakpoint.c (is_marker_spec): Check for NULL.
347
348 2010-11-25 Pedro Alves <pedro@codesourcery.com>
349
350 * breakpoint.h: No longer include python.h or python-internal.h.
351 (struct breakpoint_object): Forward declare.
352 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
353 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
354 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
355 PyObject pointer.
356 (gdbpy_breakpoint_created): Remove casts around py_bp_object
357 accesses.
358
359 2010-11-24 Joel Brobecker <brobecker@adacore.com>
360
361 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
362 only if HAVE_ELF is defined.
363
364 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
365
366 Code cleanup.
367 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
368 (save_inferior_status) <stepping_over_breakpoint>
369 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
370 trap_expected.
371 (struct inferior_status) <step_resume_break_address>: Remove.
372
373 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
374
375 Code cleanup.
376 * infrun.c (struct inferior_status, save_inferior_status)
377 (restore_inferior_status): Group and reorder the fields, comment their
378 groups.
379
380 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
381
382 Code cleanup.
383 * dictionary.c
384 (struct dict_vector) <iter_match_first, iter_match_next>
385 (iter_match_first_hashed, iter_match_next_hashed)
386 (iter_match_first_linear, iter_match_next_linear)
387 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
388 (iter_match_next_hashed, iter_match_first_linear)
389 (iter_match_next_linear): Use symbol_compare_ftype.
390 * dictionary.h: Include symfile.h.
391 (dict_iter_match_first, dict_iter_match_next): Use
392 symbol_compare_ftype.
393 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
394 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
395 (map_matching_symbols_psymtab): Likewise.
396 * symfile.h (symbol_compare_ftype): New typedef.
397 (struct quick_symbol_functions) <map_matching_symbols): Use
398 symbol_compare_ftype.
399
400 2010-11-23 Tom Tromey <tromey@redhat.com>
401
402 * configure: Rebuild.
403 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
404
405 2010-11-19 Tom Tromey <tromey@redhat.com>
406
407 * Makefile.in (SUBDIRS): Add doc.
408 * configure: Rebuild.
409 * configure.ac: Don't configure in doc. Create doc/Makefile.
410
411 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
412
413 PR python/12212
414
415 * python/py-inferior.c (find_thread_object): Check if PIDGET
416 returns 0.
417
418 010-11-22 Joel Brobecker <brobecker@adacore.com>
419
420 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
421
422 2010-11-22 Joel Brobecker <brobecker@adacore.com>
423
424 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
425 Return the original type if the main type portions match rather
426 than when the type themselves match.
427
428 2010-11-22 Joel Brobecker <brobecker@adacore.com>
429
430 * ada-lang.c (ada_template_to_fixed_record_type_1):
431 For dynamic fields, check the field size against the maximum
432 object size.
433
434 2010-11-22 Joel Brobecker <brobecker@adacore.com>
435
436 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
437 function.
438 (mips_irix_n32_stack_tramp_frame): New static global.
439 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
440 list of unwinder.
441
442 2010-11-22 Jerome Guitton <guitton@adacore.com>
443
444 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
445 ATCB symbols.
446
447 2010-11-22 Joel Brobecker <brobecker@adacore.com>
448
449 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
450 if type1 is a typedef.
451
452 2010-11-22 Joel Brobecker <brobecker@adacore.com>
453
454 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
455 "_finalizer" to the list.
456
457 2010-11-22 Joel Brobecker <brobecker@adacore.com>
458
459 * symfile.c: Remove all "#if 0"/"#endif" blocks.
460
461 2010-11-22 Joel Brobecker <brobecker@adacore.com>
462
463 * symfile.c: Add missing second space after period in various comments.
464
465 2010-11-22 Joel Brobecker <brobecker@adacore.com>
466
467 * ada-typeprint.c (print_array_type): Fix formatting in comment.
468 (print_selected_record_field_types): Fix formatting in function
469 documentation.
470
471 2010-11-22 Joel Brobecker <brobecker@adacore.com>
472
473 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
474 in name of "show ravenscar" prefix command name.
475
476 2010-11-22 Joel Brobecker <brobecker@adacore.com>
477
478 * ravenscar-thread.c (show_ravenscar_task_switching_command):
479 Add missing '\n' in output.
480
481 2010-11-22 Joel Brobecker <brobecker@adacore.com>
482
483 * ravenscar-thread.c (running_thread_name): Change value.
484 (read_thread_id): Remove advance declaration.
485 (get_running_thread_msymbol): New function.
486 (has_ravenscar_runtime): Use get_running_thread_msymbol to
487 compute msym_running_thread.
488 (get_running_thread_id): Renames read_thread_id. Slight modifications
489 to not take any argument anymore, using get_running_thread_msymbol
490 to determine which symbol to use instead.
491 (ravenscar_running_thread): Use get_running_thread_id instead of
492 read_thread_id.
493
494 2010-11-22 Joel Brobecker <brobecker@adacore.com>
495
496 * ravenscar-sparc-thread.c (supply_register_at_address):
497 Fix passing of buf in call to regcache_raw_supply.
498
499 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
500
501 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
502
503 2010-11-22 Tom Tromey <tromey@redhat.com>
504
505 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
506
507 2010-11-19 Keith Seitz <keiths@redhat.com>
508
509 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
510 Remove extraneous '/' after $(DESTDIR).
511 (PYTHON_INSTALL_DIR): Likewise.
512
513 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
514
515 Fix stale memory references.
516 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
517 xfree, new comment.
518
519 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
520 Tom Tromey <tromey@redhat.com>
521
522 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
523 (.PHONY): Remove for .y outputs.
524
525 2010-11-19 Will Drewry <wad@google.com>
526 Tavis Ormandy <taviso@google.com>
527 Jan Kratochvil <jan.kratochvil@redhat.com>
528
529 * dwarf2read.c (decode_locdesc): Enforce location description stack
530 boundaries.
531
532 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
533
534 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
535 instruction is found.
536
537 2010-11-17 Tom Tromey <tromey@redhat.com>
538
539 * value.c (value_entirely_optimized_out): Check the
540 'check_any_valid' field.
541
542 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
543
544 * ada-lang.c (modify_general_field): Remove.
545 (make_array_descriptor): Replace all modify_general_field calls by
546 modify_field.
547 * value.c (modify_field): Update comment. New variable bytesize.
548 Normalize BITPOS. Initialize BYTESIZE, use it.
549
550 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
551
552 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
553 elements after xfree.
554
555 2010-11-16 Tom Tromey <tromey@redhat.com>
556
557 * gdb-add-index.sh: Really remove.
558
559 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
560
561 Code cleanup.
562 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
563 (init_one_comp_unit): ... this one.
564 (prepare_one_comp_unit): New prototype.
565 (dw2_require_line_header, process_psymtab_comp_unit): Use
566 init_one_comp_unit.
567 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
568 (load_partial_comp_unit): Remove variable attr. Use
569 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
570 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
571 prepare_one_comp_unit.
572 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
573 Use prepare_one_comp_unit.
574 (alloc_one_comp_unit): Rename to ...
575 (init_one_comp_unit): ... here and remove there calloc, new parameter
576 cu.
577 (prepare_one_comp_unit): New function.
578
579 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
580
581 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
582 possible used of uninitialized variable.
583
584 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
585
586 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
587 (rs6000_gdbarch_init): Call it.
588
589 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
590
591 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
592 instructions if debugging an E500 binary.
593
594 2010-11-12 Tom Tromey <tromey@redhat.com>
595
596 * varobj.c (value_get_print_value): Rearrange. Pass stream to
597 apply_varobj_pretty_printer.
598 * c-lang.c: Include exceptions.h.
599 (c_get_string): Throw MEMORY_ERROR when appropriate.
600 * python/py-prettyprint.c (enum string_repr_result): New.
601 (print_stack_unless_memory_error): New function.
602 (print_string_repr): Change return type. Use
603 print_stack_unless_memory_error.
604 (print_children): Use print_stack_unless_memory_error.
605 (apply_val_pretty_printer): Update. Don't print children if
606 string representation threw an exception.
607 (apply_varobj_pretty_printer): Add 'stream' argument. Use
608 print_stack_unless_memory_error.
609 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
610 globals.
611 (_initialize_python): Initialize them.
612 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
613 gdbpy_convert_exception.
614 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
615 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
616 (gdbpy_convert_exception): Declare.
617 (apply_varobj_pretty_printer): Update.
618 * python/py-utils.c (gdbpy_convert_exception): New function.
619
620 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
621
622 * mi/mi-main.c (mi_cmd_target_detach): Accept new
623 thread-group id format.
624
625 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
626
627 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
628
629 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
630
631 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
632 NULL.
633 (BPPY_SET_REQUIRE_VALID): Ditto.
634 (bpnum_is_valid): Delete function.
635 (bppy_get_visibility): New function.
636 (bppy_new): Parse for, and validate internal keyword. Pass
637 internal keyword to breakpoint or watchpoint functions.
638 (build_bp_list): New function.
639 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
640 iterate_over_breakpoints.
641 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
642 look-aside vector.
643 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
644 to internal breakpoint chain.
645
646 * breakpoint.c (set_breakpoint_number): New function.
647 (breakpoint_1): Check if breakpoint number is more than zero.
648 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
649 (create_breakpoint_sal): Take a new parameter called internal.
650 Call set_breakpoint_number with internal parameter. Do not
651 mention internal breakpoints. All callers updated.
652 (create_breakpoint): Ditto.
653 (create_breakpoints_sal): Ditto.
654 (watch_command_1): Ditto.
655 (watch_command_wrapper): Take a new parameter called internal.
656 All callers updated.
657 (rwatch_command_wrapper): Ditto.
658 (awatch_command_wrapper): Ditto.
659 (save_breakpoints): Update breakpoint save condition check.
660 (iterate_over_breakpoints): New function.
661 * breakpoint.h: Add conditional python includes. Add py_bp_object
662 and comment to struct breakpoint. Update all callers.
663 * defs.h: Add PyObject definition for GDB builds without Python.
664
665 2010-11-10 Doug Evans <dje@google.com>
666
667 * python/lib/gdb/command/pretty_printers.py
668 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
669
670 * value.c (set_value_enclosing_type): Renamed from
671 value_change_enclosing_type. All callers updated.
672 * value.h (set_value_enclosing_type): Update.
673 * valops.c (value_full_object): Always return a copy if we need to
674 make changes to the input value.
675
676 2010-11-09 Pedro Alves <pedro@codesourcery.com>
677
678 * breakpoint.c (watch_command_1): Get a pointer of the lazy
679 version of the expression's value, even if reading the value from
680 memory fails. When creating a -location watchpoint, get the
681 value's address from the lazy value pointer.
682
683 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
684
685 * infrun.c (restore_inferior_thread_state): Use
686 discard_inferior_thread_state to free the data.
687 (discard_inferior_thread_state): xfree also siginfo_data.
688
689 2010-11-05 Doug Evans <dje@google.com>
690
691 Make gdb.parameter("directories") work.
692 New command "set directories".
693 * NEWS: Document them.
694 * source.c (set_directories_command): New function.
695 (show_directories_1): Renamed from show_directories.
696 All callers updated.
697 (show_directories_command): New function.
698 (_initialize_source): Install "directories" as a set/show
699 variable instead of just a show command.
700
701 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
702
703 * NEWS: Mention OpenCL C language support.
704 * Makefile.in (SFILES): Add opencl-lang.c.
705 (COMMON_OBS): Add opencl-lang.o.
706 * opencl-lang.c: New File
707 * defs.h (enum language): Add language_opencl.
708 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
709 IBM XL C OpenCL compiler.
710 * c-lang.h: Include "parser-defs.h".
711 (evaluate_subexp_c): Declare.
712 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
713 (c_op_print_tab): Add declaration.
714 * eval.c (binop_promote): Handle language_opencl.
715 * c-exp.y: Lookup the primitive types instead of referring to the
716 builtins.
717
718 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
719
720 Fix configure --enable-plugins --without-python.
721 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
722 * configure: Regenerate.
723
724 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
725
726 * solib.c (solib_read_symbols): Call exception_fprintf even without
727 FROM_TTY. Print also so->so_name.
728
729 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
730
731 * gdbtypes.h (struct rank): Created subrank.
732 * gdbtypes.c: Initialized subrank for all
733 'BADNESS' constants.
734 (distance_to_ancestor): New function.
735 (is_ancestor): Use distance_to_ancestor.
736 (is_public_ancestor): Ditto.
737 (sum_ranks): Handle subrank.
738 (compare_ranks): Ditto.
739 (rank_one_type): Subrank base conversions.
740
741 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
742
743 * gdbtypes.h: Create struct rank.
744 Convert all 'BADNESS' macros to const struct rank declarations.
745 (sum_ranks): New function.
746 (compare_ranks): New function.
747 * valops.c (find_oload_champ): Updated.
748 (classify_oload_match): Use compare_ranks.
749 Improved comments.
750 (compare_parameters): Use compare_ranks.
751 * gdbtypes.c: Initialize 'BADNESS' constants.
752 (sum_ranks): New function.
753 (compare_ranks): New function.
754 (compare_badness): Use compare_ranks.
755 (rank_function): Use global constants instead of literals.
756 (rank_one_type): Ditto.
757 Return struct rank.
758 Use sum_ranks.
759
760 2010-11-04 Doug Evans <dje@google.com>
761
762 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
763 (find_pretty_printer): Fix comments.
764
765 2010-11-04 Hui Zhu <teawater@gmail.com>
766
767 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
768
769 2010-11-03 Joel Brobecker <brobecker@adacore.com>
770
771 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
772 and `len' declaration and computation inside block where they
773 are being used.
774
775 2010-11-03 Joel Brobecker <brobecker@adacore.com>
776
777 * valprint.c (val_print_array_elements): Put back handling of
778 empty arrays.
779
780 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
781
782 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
783 DIE and set the length of the type.
784 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
785 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
786 return 0 if the corresponding bounds of the type are undefined.
787 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
788 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
789 (val_print_array_elements): Use get_array_bounds to compute the number
790 of array elements instead of dividing the length of the array by the
791 length of the element types.
792 * valarith.c (vector_binop): Likewise.
793 * valops.c (value_cast): Likewise.
794 * c-valprint.c (c_val_print): Likewise.
795 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
796
797 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
798
799 * valarith.c (value_pos, value_neg, value_complement): Handle
800 vector types.
801 * valops.c (value_one): Likewise.
802
803 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
804
805 * value.h (value_non_lval): Declare.
806 * value.c (value_non_lval): New function.
807 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
808 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
809 non-lvalue.
810
811 2010-11-02 Doug Evans <dje@google.com>
812
813 New python module gdb.printing, and new commands info pretty-printer,
814 enable pretty-printer, disable pretty-printer.
815 * NEWS: Mention them.
816 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
817 gdb/command/__init__.py, gdb/command/pretty_printers.py.
818 * python/lib/gdb/__init__.py: Install pretty-printer commands.
819 * python/lib/gdb/printing.py: New file.
820 * python/lib/gdb/command/__init__.py: New file.
821 * python/lib/gdb/command/pretty_printers.py: New file.
822
823 2010-11-02 Tom Tromey <tromey@redhat.com>
824
825 * NEWS: Mention Guile removal.
826 * defs.h (enum language) <language_scm>: Remove.
827 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
828 scm-valprint.c.
829 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
830 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
831 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
832 Remove.
833
834 2010-11-02 Doug Evans <dje@google.com>
835
836 * top.c: #include "python/python.h".
837 (gdb_init): Add a comment regarding initialize_all_files.
838 Call finish_python_initialization at the end.
839 * python/python.h (finish_python_initialization): Declare.
840 * python/python.c (finish_python_initialization): New function.
841 (_initialize_python): Move python-implemented initialization there
842 and call it.
843 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
844
845 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
846
847 Revert:
848 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
849 Pedro Alves <pedro@codesourcery.com>
850 * gdbthread.h (currently_stepping): New declaration.
851 * infrun.c (currently_stepping): Remove the forward declaration.
852 (currently_stepping): Make it global.
853 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
854 variables tp and step, initialized them. Pass STEP to to_resume.
855 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
856 * remote.c (currently_stepping_callback): New.
857 (remote_vcont_resume)
858 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
859 New variable tp. Call currently_stepping_callback and step such
860 thread.
861
862 2010-11-01 Hui Zhu <teawater@gmail.com>
863
864 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
865
866 2010-10-28 Hui Zhu <teawater@gmail.com>
867
868 * tracepoint.c (trace_save): Change utp->actions to
869 utp->step_actions.
870
871 2010-10-26 Joel Brobecker <brobecker@adacore.com>
872
873 * (_FILE_OFFSET_BITS): Fix typo in comment.
874
875 2010-10-26 Joel Brobecker <brobecker@adacore.com>
876
877 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
878 (PyEval_InitThreads): Remove duplicate. Define as nothing.
879 (PyEval_ReleaseLock): Define as nothing.
880
881 2010-10-26 Joel Brobecker <brobecker@adacore.com>
882
883 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
884 by call to FILENAME_CMP.
885
886 2010-10-26 Joel Brobecker <brobecker@adacore.com>
887
888 * dictionary.c (dict_hash): Move assignment out of if condition.
889
890 2010-10-22 Jie Zhang <jie@codesourcery.com>
891
892 * Makefile.in (install): Remove dependency of install-only and
893 recursively invoke make for install-only.
894 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
895 (install): Pass FLAGS_TO_PASS when recursively make install-only.
896
897 2010-10-20 Hui Zhu <teawater@gmail.com>
898
899 * tracepoint.c (tfile_get_traceframe_address): Call
900 extract_signed_integer.
901 (tfile_trace_find): Call extract_signed_integer and
902 extract_unsigned_integer. Change data_size to unsigned int.
903 (tfile_fetch_registers): Call extract_unsigned_integer.
904 (tfile_xfer_partial): Ditto.
905 (tfile_get_trace_state_variable_value): Call
906 extract_signed_integer and extract_unsigned_integer.
907
908 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
909
910 * remote.c (remote_get_threadlist): If we got empty
911 response, bail out immediately, and don't emit any
912 warnings.
913
914 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
915
916 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
917 for "mov pc, REG" as well.
918 (thumb_instruction_changes_pc): Likewise.
919
920 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
921
922 PR C++/11500:
923 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
924 * eval.c (evaluate_subexp_standard): Check for overload of
925 'operator->'.
926 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
927 (value_x_unop): Ditto.
928 * valops.c: Include "exceptions.h".
929 (find_overload_match): Throw NOT_FOUND_ERROR.
930 (value_struct_elt): Ditto.
931
932 2010-10-19 Tom Tromey <tromey@redhat.com>
933
934 * python/py-cmd.c (cmdpy_function): Unreference exception state.
935
936 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
937
938 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
939 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
940 for conversion.
941 Make all other conversions illegal.
942
943 2010-10-18 Doug Evans <dje@google.com>
944
945 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
946 assumptions of when this case happens. Print "<unnamed typedef>".
947
948 2010-10-18 Tom Tromey <tromey@redhat.com>
949
950 * valprint.c (val_print_string): Pass 'encoding' to
951 LA_PRINT_STRING.
952
953 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
954
955 Fix the `stopped language detection' testcase for gcc-4.5.
956 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
957 * symfile.c (set_initial_language): Move variable filename to a more
958 inner block. Prefer LANGUAGE_OF_MAIN.
959 * symtab.c (language_of_main): New variable.
960 (set_main_name): Always reset LANGUAGE_OF_MAIN.
961 * symtab.h (language_of_main): New declaration.
962
963 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
964 Pedro Alves <pedro@codesourcery.com>
965
966 * gdbthread.h (currently_stepping): New declaration.
967 * infrun.c (currently_stepping): Remove the forward declaration.
968 (currently_stepping): Make it global.
969 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
970 variables tp and step, initialized them. Pass STEP to to_resume.
971 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
972 * remote.c (currently_stepping_callback): New.
973 (remote_vcont_resume)
974 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
975 New variable tp. Call currently_stepping_callback and step such
976 thread.
977
978 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
979
980 * infrun.c (follow_exec): Replace symbol_file_add_main by
981 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
982 breakpoint_re_set.
983 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
984 clear_symtab_users.
985 * objfiles.c (free_all_objfiles): Likewise.
986 * remote-m32r-sdi.c (m32r_load): Likewise.
987 * solib-som.c (som_solib_create_inferior_hook): Likewise.
988 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
989 clear_symtab_users with ADD_FLAGS.
990 (reread_symbols): Use parameter 0 for clear_symtab_users.
991 (clear_symtab_users): New parameter add_flags. Do not call
992 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
993 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
994 * symtab.h (clear_symtab_users): New parameter add_flags.
995
996 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
997
998 Fix GCC false warning.
999 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1000
1001 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1002
1003 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1004 display of type of method arguments.
1005
1006 2010-10-15 Tom Tromey <tromey@redhat.com>
1007
1008 PR python/11948:
1009 * varobj.c (value_get_print_value): Use val_print_string to print
1010 lazy strings.
1011 * python/py-prettyprint.c (print_string_repr): Use
1012 val_print_string to print lazy strings. Fix cleanup logic.
1013 (print_children): Likewise.
1014 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1015 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1016 Change return type to 'void', add 'addr' argument.
1017 * value.h (val_print_string): Update.
1018 * valprint.c (val_print_string): Add 'encoding' argument.
1019 * printcmd.c (print_formatted): Update.
1020 * p-valprint.c (pascal_val_print): Update.
1021 * m2-valprint.c (print_unpacked_pointer): Update.
1022 (m2_print_array_contents): Likewise.
1023 * jv-valprint.c (java_value_print): Update.
1024 * f-valprint.c (f_val_print): Update.
1025 * c-valprint.c (c_val_print): Update.
1026 * auxv.c (fprint_target_auxv): Update.
1027
1028 2010-10-15 Doug Evans <dje@google.com>
1029 Jan Kratochvil <jan.kratochvil@redhat.com>
1030
1031 PR exp/12117
1032 * gdbtypes.c (check_typedef): Clean up function comment.
1033 Keep track of instance flags as we strip typedefs and create a new
1034 type to preserve them if necessary.
1035 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1036
1037 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1038
1039 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1040
1041 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1042
1043 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1044 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1045 to...
1046 (types_equal): ...here. And changed it as follows:
1047 Outside of typedefs type must be of the same TYPE_CODE.
1048 When compairing two pointers or references they are equal if their
1049 targets are equal.
1050 Correct pointer conversions.
1051
1052 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1053
1054 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1055 having fields without names.
1056
1057 2010-10-13 Tom Tromey <tromey@redhat.com>
1058
1059 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1060
1061 2010-10-13 Doug Evans <dje@google.com>
1062
1063 New python module gdb.types.
1064 * NEWS: Document it.
1065 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1066 * python/lib/gdb/types.py: New file.
1067
1068 * c-typeprint.c: Whitespace cleanup.
1069 (cp_type_print_method_args): Remove unnecessary forward decl.
1070 (cp_type_print_derivation_info): Ditto.
1071 (c_type_print_varspec_prefix): Mark as static at definition.
1072 (c_type_print_modifier): Fix arg descriptions.
1073
1074 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1075
1076 * python/py-breakpoint.c (bppy_set_condition): New comment.
1077 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1078 failed PyUnicode_Decode.
1079 (cmdpy_completer): Skip element for failed
1080 python_string_to_host_string.
1081 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1082 * python/py-frame.c (frapy_read_var): Extend the function comment.
1083 * python/py-function.c (fnpy_init): Return -1 on failed
1084 python_string_to_host_string.
1085 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1086 the function comment.
1087 (infpy_search_memory): Extend the function comment. Remove the
1088 PyErr_SetString call on already set error state.
1089 * python/py-param.c (set_parameter_value): Extend the function
1090 comment. Return -1 on failed python_string_to_host_string, twice.
1091 (set_attr): Extend the function comment.
1092 (compute_enum_values): Extend the function comment. New variable
1093 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1094 failed python_string_to_host_string.
1095 (get_doc_string): Call gdbpy_print_stack on failed
1096 python_string_to_host_string.
1097 (parmpy_init): Extend the function comment.
1098 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1099 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1100 failed python_string_to_host_string.
1101 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1102 (valpy_binop, valpy_richcompare): Extend the function comment.
1103 * python/python.c
1104 (struct python_env) <error_type, error_value, error_traceback>: New
1105 fields.
1106 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1107 (ensure_python_env): Call PyErr_Fetch.
1108 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1109 failed convert_value_from_python.
1110 (value_get_print_value): Call gdbpy_print_stack on failed
1111 python_string_to_target_python_string.
1112
1113 2010-10-12 Tom Tromey <tromey@redhat.com>
1114
1115 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1116
1117 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1118
1119 * gdbtypes.c (do_is_ancestor): New function.
1120 (is_ancestor): Use do_is_ancestor.
1121 (is_public_ancestor): Use do_is_ancestor.
1122
1123 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1124
1125 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1126
1127 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1128
1129 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1130
1131 2010-10-11 Doug Evans <dje@google.com>
1132
1133 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1134 the address space id too.
1135
1136 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 Fix attaching to re-prelinked executables on ppc64.
1139 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1140 initialize it, try to adjust FILESZ field by it.
1141
1142 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1143
1144 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1145 messages if info_verbose.
1146
1147 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1148
1149 * valops.c (value_cast): Handle vector types.
1150 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1151
1152 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1153
1154 * arm-tdep.c (thumb_expand_immediate): New function.
1155 (thumb_instruction_changes_pc): Likewise.
1156 (thumb2_instruction_changes_pc): Likewise.
1157 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1158 prologue parsing. Improved support for optimized code.
1159 (thumb_scan_prologue): Do not reply on line-number information,
1160 use same heuristics as arm_scan_prologue insead.
1161 (skip_prologue_function): Accept functions
1162 "__tls_get_addr" and "__aeabi_read_tp".
1163
1164 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1165 Daniel Jacobowitz <dan@codesourcery.com>
1166
1167 * arm-tdep.c (thumb_in_function_epilogue_p)
1168 (arm_in_function_epilogue_p): New.
1169 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1170 gdbarch_in_function_epilogue_p callback.
1171
1172 2010-10-07 Doug Evans <dje@google.com>
1173
1174 * cc-with-index.sh (output_file): Default to a.out.
1175
1176 * dwarf2read.c (mapped_index): Rename member index_table to
1177 symbol_table and index_table_slots to symbol_table_slots.
1178 All uses updated.
1179 (create_symbol_hash_table): Renamed from create_index_table.
1180 All callers updated.
1181 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1182 (write_hash_table): Rename local index_table to symbol_hash_table.
1183
1184 * addrmap.h (addrmap_foreach_fn): New typedef.
1185 (addrmap_foreach): Declare.
1186 * addrmap.c (struct addrmap_funcs): New member foreach.
1187 (addrmap_foreach): New function.
1188 (addrmap_fixed_foreach): New function.
1189 (addrmap_fixed_funcs): Update.
1190 (struct mutable_foreach_data): New struct.
1191 (addrmap_mutable_foreach_worker): New function.
1192 (addrmap_mutable_foreach): New function.
1193 (addrmap_mutable_funcs): Update.
1194
1195 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1196
1197 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1198 more cases.
1199
1200 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1201
1202 * ada-lang.c (full_match): Declare.
1203 (ada_match_name): Rename to match_name (we should avoid prefixing static
1204 symbols with "ada_").
1205 (match_name): New name for ada_match_name.
1206 (struct ada_psym_data): Remove and replace with...
1207 (struct match_data): User data for map_matching_symbols.
1208 (ada_add_psyms): Remove.
1209 (aux_add_nonlocal_symbols): New function, used as callback for
1210 map_matching_symbols.
1211 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1212 symbols.
1213 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1214 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1215 Rework to use map_matching_symbols instead of map_ada_symtabs.
1216 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1217 * psymtab.c: Include dependency on dictionary.h.
1218 (match_partial_symbol): New function.
1219 (ada_lookup_partial_symbol): Remove.
1220 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1221 (map_matching_symbols_psymtab): New function.
1222 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1223 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1224
1225 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1226
1227 * ada-lang.c (ada_match_name): Use new API for wild_match.
1228 (wild_match): Change API to be consistent with that of strcmp_iw;
1229 return 0 for a match, and switch operand order.
1230 (full_match): New function.
1231 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1232 matching to allow use of hashing.
1233 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1234 iter_name_next ot iter_match_first, iter_match_next.
1235 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1236 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1237 (iter_name_first_linear): Replace with iter_match_first_linear.
1238 (iter_name_next_linear): Replace with iter_match_next_linear.
1239 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1240 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1241 (dict_iter_match_first): New function.
1242 (dict_iter_match_next): New function.
1243 (dict_hash): New function.
1244 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1245 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1246
1247 2010-10-06 Doug Evans <dje@google.com>
1248
1249 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1250
1251 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1252
1253 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1254
1255 2010-10-06 Doug Evans <dje@google.com>
1256
1257 * Makefile.in (REQUIRED_SUBDIRS): New var.
1258 (subdir_do): Verify required subdir Makefiles exist.
1259
1260 Create subdir data-directory.
1261 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1262 data-directory/Makefile.in.
1263 (SUBDIRS): Add data-directory.
1264 (all): Remove xml-syscall-copy dependency.
1265 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1266 stamp-syscalls.
1267 (xml-syscall-install): Moved to data-directory/Makefile.in as
1268 install-syscalls.
1269 (install-only): Remove xml-syscall-install dependency.
1270 (all-data-directory): New rule.
1271 (data-directory/Makefile): New rule.
1272 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1273 * configure: Regenerate.
1274 * data-directory/Makefile.in: New file.
1275 * python/lib/gdb/__init__.py: New file.
1276
1277 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1278
1279 Fix ARI warnings in advance_wild_match.
1280 * ada-lang.c (advance_wild_match): Delete local variable t2.
1281 Adjust code accordingly. Minor reformatting.
1282
1283 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1284
1285 * gdbtypes.h (struct main_type): Remove flag_nottext.
1286 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1287 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1288 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1289 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1290 of TYPE_FLAG_NOTTEXT.
1291 (init_type): Remove the initialization of the flag_nottext field.
1292 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1293 TYPE_FLAG_NOTTEXT.
1294 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1295
1296 2010-10-04 Doug Evans <dje@google.com>
1297
1298 * cc-with-index.sh: New file.
1299
1300 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1301 function comment.
1302 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1303 (create_cus_from_index, create_addrmap_from_index): Ditto.
1304 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1305 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1306 (dw2_do_expand_symtabs_matching): Ditto.
1307 (eq_strtab_entry, create_strtab, add_string): Ditto.
1308 (hash_strtab_entry): Ditto.
1309 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1310 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1311 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1312 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1313 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1314 (write_psymtabs_to_index): Ditto.
1315
1316 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1317
1318 * ada-lang.c: #include "value.h".
1319 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1320 arguments. Implement using value_allocate_space_in_inferior
1321 instead of allocating memory from the stack.
1322 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1323 calls to ensure_lval.
1324 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1325 calls to make_array_descriptor and ensure_lval.
1326 * ada-lang.h (ada_convert_actual): Update declaration.
1327 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1328
1329 2010-10-04 Doug Evans <dje@google.com>
1330
1331 * python/python.c (_initialize_python): Define new function
1332 GdbSetPythonDirectory in python. Use it to update sys.path and
1333 gdb.__path__.
1334
1335 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1336
1337 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1338 incorporating and generalizing print_record_field_types.
1339 (print_record_field_types): Change return value and update comment.
1340 Re-implement using print_selected_record_field_types.
1341 (print_choices): Print "=>" here.
1342 Handle case of unencoded variant branch.
1343 (print_variant_clauses): Reformat comment.
1344 Special-case unencoded variant branch.
1345
1346 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1347
1348 * ada-lang.c (wild_match): Reimplement.
1349 Change API to eliminate unused length argument, reverse arguments and
1350 make 0 the 'true' return value.
1351 (advance_wild_match): New auxiliary function for wild_match to improve
1352 readability.
1353 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1354 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1355 API for wild_match.
1356 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1357 wild_match.
1358 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1359
1360 2010-10-01 Doug Evans <dje@google.com>
1361
1362 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1363 for `save gdb-index' command.
1364
1365 2010-10-01 Tom Tromey <tromey@redhat.com>
1366
1367 * symfile.h (allocate_symtab): Update.
1368 * symfile.c (allocate_symtab): Make 'filename' const.
1369 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1370 (add_psymbol_to_list): Likewise.
1371 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1372 const.
1373 (add_psymbol_to_list): Update.
1374 * mdebugread.c (new_symtab): Make 'name' const.
1375 (psymtab_to_symtab_1): Make 'filename' const.
1376 * elfread.c (elfstab_offset_sections): Update.
1377 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1378 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1379 (psymtab_include_file_name): Update.
1380 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1381 * buildsym.h (start_subfile): Update.
1382 * buildsym.c (start_subfile): Make arguments const.
1383
1384 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1385
1386 * fork-child.c (breakup_args): Fix crash if shell forking is
1387 disabled at compile time.
1388
1389 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1390
1391 * ada-lang.c (desc_bounds): Add handling of the case where
1392 the P_BOUNDS field is a pointer to a stub.
1393 (desc_data_target_type): Same for P_ARRAY field.
1394 (ada_check_typedef): Strip the typedef layers from the type
1395 found by ada_find_any_type.
1396
1397 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1398
1399 * sparc-tdep.c (sparc32_frame_align): New function.
1400 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1401 * sparc64-tdep.c (sparc64_frame_align): New function.
1402 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1403
1404 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1405
1406 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1407
1408 2010-09-30 Tom Tromey <tromey@redhat.com>
1409
1410 * symfile.h (struct sym_fns) <next>: Remove.
1411 (add_symtab_fns): Update.
1412 * symfile.c (sym_fns_ptr): New typedef.
1413 (symtab_fns): Now a VEC.
1414 (add_symtab_fns): Update. Change argument type.
1415 (find_sym_fns): Update. Change return type.
1416 (get_symfile_segment_data): Update.
1417 * objfiles.h (struct objfile) <sf>: Now const.
1418 * somread.c (som_sym_fns): Now const. Update.
1419 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1420 * mipsread.c (ecoff_sym_fns): Now const. Update.
1421 * machoread.c (macho_sym_fns): Now const. Update.
1422 * elfread.c (elf_sym_fns): Now const. Update.
1423 (elf_sym_fns_gdb_index): Likewise.
1424 * dbxread.c (aout_sym_fns): Now const. Update.
1425 * coffread.c (coff_sym_fns): Now const. Update.
1426
1427 2010-09-30 Tom Tromey <tromey@redhat.com>
1428
1429 * value.c (value_primitive_field): Take 'offset' into account for
1430 packed field.
1431
1432 2010-09-30 Tom Tromey <tromey@redhat.com>
1433
1434 * completer.c (count_struct_fields): Handle anonymous structs and
1435 unions.
1436 (add_struct_fields): Likewise.
1437
1438 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1439
1440 Fix printing parameters of inlined functions.
1441 * ada-lang.c (is_known_support_routine)
1442 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1443 for find_frame_funname.
1444 * python/py-frame.c (frapy_name): Likewise.
1445 * stack.c (find_frame_funname): New parameter funcp. Update the
1446 function comment. Fill it in.
1447 (print_frame): New variable func. Initialize it by
1448 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1449 FUNC as the parameter of print_args_stub.
1450 * stack.h (find_frame_funname): New parameter funcp. Remove the
1451 function declaration comment.
1452
1453 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1454
1455 PR corefiles/12071.
1456 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1457 tp. Iterate INFERIOR_LIST and call target_has_execution.
1458
1459 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1460
1461 Fix GDB crash on inferior calls with self-referencing classes.
1462 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1463 member fields.
1464
1465 2010-09-29 Doug Evans <dje@google.com>
1466
1467 Workaround for gcc/45682.
1468 * dwarf2read.c (partial_die_info): New fields fixup_called,
1469 linkage_name.
1470 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1471 Move definition next to use. Use linkage_name to determine if class
1472 is in a namespace. All callers updated.
1473 (fixup_partial_die): Return early if already called.
1474 Set fixup_called when done.
1475 (guess_full_die_structure_name): New function.
1476 (determine_prefix): Call it for class/struct/union dies if c++ and
1477 .debug_types section is present and parent is DW_TAG_compile_unit.
1478
1479 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1480
1481 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1482 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1483
1484 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1485
1486 * NEWS: Announce Ravenscar Profile support.
1487
1488 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1489 Jerome Guitton <guitton@adacore.com>
1490
1491 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1492 New files.
1493 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1494 ravenscar-sparc-thread.o to gdb_target_obs.
1495
1496 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1497
1498 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1499 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1500
1501 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1502
1503 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1504 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1505 skip_main_prologue method.
1506
1507 2010-09-27 Tom Tromey <tromey@redhat.com>
1508
1509 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1510 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1511 Only emit a given psymbol once.
1512 (struct signatured_type_index_data) <psyms_seen>: New field.
1513 (write_one_signatured_type): Update.
1514 (cleanup_htab): New function.
1515 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1516 version to 3.
1517 (save_gdb_index_command): Update index documentation.
1518
1519 2010-09-27 Tom Tromey <tromey@redhat.com>
1520
1521 * bcache.c (expand_hash_table): Use hash_function, not hash.
1522
1523 2010-09-27 Tom Tromey <tromey@redhat.com>
1524
1525 * gdb_wchar.h: Change minimum libiconv to 0x108.
1526
1527 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1528
1529 Fix lost siginfo_t for inferior calls.
1530 * infrun.c
1531 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1532 (save_inferior_thread_state): New variables regcache, gdbarch and
1533 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1534 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1535 using REGCACHE.
1536 (restore_inferior_thread_state): New variables regcache and gdbarch.
1537 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1538 REGCACHE. Free also SIGINFO_DATA.
1539
1540 2010-09-24 Tom Tromey <tromey@redhat.com>
1541
1542 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1543 MAYBE_SWAPs.
1544 (dw2_map_symbol_names): Likewise.
1545
1546 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1547
1548 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1549 discard_cleanups do_cleanups.
1550
1551 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1552
1553 PR gdb/11842
1554
1555 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1556 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1557 si_code is < 0. Check for si_code == SI_TIMER before checking for
1558 si_code < 0.
1559
1560 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1561
1562 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1563
1564 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1565
1566 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1567 debugging a core file.
1568
1569 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1570
1571 Code cleanup.
1572 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1573 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1574 xfree.
1575 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1576 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1577 Remove.
1578 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1579 Remove the conditional.
1580 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1581
1582 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1583
1584 * main.c: Include objfiles.h.
1585 (captured_main): New variable objfile. Call
1586 load_auto_scripts_for_objfile for ALL_OBJFILES.
1587
1588 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1589
1590 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1591 DW_TAG_constant.
1592
1593 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1594
1595 * dwarf2read.c (scan_partial_symbols): Add handling of
1596 DW_TAG_constant DIEs.
1597 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1598
1599 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1600
1601 * configure.ac: Add support for --enable-gdbserver.
1602 * configure: Regenerate.
1603
1604 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1605
1606 PR C++/12028
1607 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1608 'old_cleanups' reassignment.
1609
1610 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1611
1612 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1613 characters.
1614
1615 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1616
1617 PR mi/11407
1618 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1619 read_var_value and common_val_print and print a warning.
1620
1621 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1622
1623 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1624 keep the list in alphabetical order. Use longer e-mail address.
1625
1626 2010-09-15 Tom Tromey <tromey@redhat.com>
1627
1628 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1629
1630 2010-09-15 Tom Tromey <tromey@redhat.com>
1631
1632 * charset.c (iconv_open): New define.
1633 (iconv): Likewise.
1634 (iconv_close): Likewise.
1635 (phony_iconv_open): Add "phony_" prefix.
1636 (phony_iconv_close): Likewise.
1637 (phony_iconv): Likewise.
1638 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1639 Change how INTERMEDIATE_ENCODING is defined.
1640
1641 2010-09-15 Doug Evans <dje@google.com>
1642
1643 * dwarf2read.c (struct die_info): Fix comment.
1644
1645 2010-09-15 Alan Modra <amodra@gmail.com>
1646
1647 PR 4606
1648 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1649 than setting SEC_NEVER_LOAD on sections that need not be copied.
1650
1651 2010-09-14 Tom Tromey <tromey@redhat.com>
1652
1653 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1654 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1655 Declare.
1656 * symfile.h (extend_psymbol_list): Remove.
1657 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1658 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1659 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1660
1661 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1662
1663 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1664 Update the comment.
1665
1666 2010-09-14 Tom Tromey <tromey@redhat.com>
1667
1668 PR symtab/8399:
1669 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1670 for unrecognized frame base expression.
1671
1672 2010-09-14 Tom Tromey <tromey@redhat.com>
1673
1674 PR exp/11803:
1675 * value.c (value_static_field): Use value_of_variable.
1676
1677 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1678
1679 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1680 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1681
1682 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1683
1684 PR symtab/11992:
1685 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1686 UNKNOWN_CPP_NAME.
1687
1688 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1689
1690 * NEWS: Add x86-lynxos to the list of platforms supported by
1691 gdbserver.
1692
1693 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1694
1695 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1696
1697 2010-09-13 Tom Tromey <tromey@redhat.com>
1698
1699 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1700
1701 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1702
1703 * i386-tdep.c (i386_ymm_type): Set type name to
1704 builtin_type_vec256i.
1705
1706 2010-09-12 Michael Snyder <msnyder@vmware.com>
1707
1708 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1709
1710 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1711
1712 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1713
1714 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1715
1716 * amd64-tdep.c (amd64_register_name): Removed.
1717 (amd64_init_abi): Don't call set_gdbarch_register_name.
1718
1719 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1720
1721 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1722
1723 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1724 Paul Bolle <pebolle@tiscali.nl>
1725
1726 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1727 * cli-logging.c (struct saved_output_files) <targerr>: New.
1728 (set_logging_redirect, pop_output_files, handle_redirections):
1729 Redirect also gdb_stdtargerr.
1730 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1731 declarations.
1732 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1733 also gdb_stdtargerr.
1734 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1735 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1736 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1737 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1738 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1739 New functions.
1740
1741 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1742
1743 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1744 to display a host address.
1745 * monitor.c (monitor_read_memory): Likewise.
1746 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1747
1748 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1749
1750 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1751 `CORE_ADDRESS' as it might contain target addresses.
1752
1753 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1754
1755 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1756 before cast to pointer to avoid warning.
1757
1758 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1759
1760 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1761 type to be signed.
1762
1763 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1764
1765 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1766 anonymous class partial DIEs.
1767
1768 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1769
1770 * dwarf2read.c (dwarf2_compute_name): Check that the first
1771 argument is a pointer.
1772
1773 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1774
1775 * dwarf2read.c (read_func_scope, read_structure_type)
1776 (read_common_block): Check for a NULL return from new_symbol.
1777
1778 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1779
1780 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1781
1782 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1783
1784 * dwarf2read.c (read_structure_type): Move processing of
1785 fields and member functions from here...
1786 (process_structure_scope): ... to here.
1787
1788 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1789
1790 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1791 the domain type.
1792 (gnuv3_make_method_ptr): Likewise.
1793
1794 2010-09-08 Tom Tromey <tromey@redhat.com>
1795
1796 * breakpoint.c (create_breakpoint): Add missing _().
1797
1798 2010-09-08 Doug Evans <dje@google.com>
1799
1800 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1801
1802 2010-09-08 Tom Tromey <tromey@redhat.com>
1803
1804 Revert:
1805 2010-09-01 Tom Tromey <tromey@redhat.com>
1806 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1807 symtab.h: Revert earlier change.
1808
1809 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1810
1811 * psymtab.c (add_psymbol_to_bcache): Initialize
1812 obj_section.
1813 memset psymbol.ginfo.value to 0.
1814
1815 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1816
1817 * infrun.c (resume): Extend comment on ignoring single-step
1818 requests on vfork parents waiting for a vfork-done.
1819
1820 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1821 Pedro Alves <pedro@codesourcery.com>
1822
1823 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1824 is NULL.
1825 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1826 target_signal type.
1827 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1828 calling strsignal. Use enum target_signal type for saved_signo.
1829 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1830 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1831 target_signal_to_host before calling strsignal.
1832 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1833 TARGET_SIGNAL_0.
1834
1835 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1836 Jan Kratochvil <jan.kratochvil@redhat.com>
1837
1838 * common/signals.c (ANY): Remove.
1839 (SET): No longer use ANY.
1840
1841 2010-09-06 Yao Qi <yao@codesourcery.com>
1842
1843 * infrunc(resume): When inferior is waiting_for_vfork_done,
1844 clear step and don't use displaced stepping.
1845
1846 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1847
1848 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1849 value specially.
1850
1851 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1852
1853 Code cleanup - split print_stop_reason.
1854 * infrun.c (enum inferior_stop_reason): Remove.
1855 (print_stop_reason): Remove by splitting into ...
1856 (print_exited_reason, print_signal_exited_reason)
1857 (print_no_history_reason, print_signal_received_reason)
1858 (print_end_stepping_range_reason): ... these new functions. Update
1859 the preceding comment.
1860 (handle_inferior_event): Change the calls to print_exited_reason,
1861 print_signal_exited_reason, print_no_history_reason,
1862 print_signal_received_reason, print_end_stepping_range_reason.
1863 (handle_step_into_function, handle_step_into_function_backward):
1864 Change the calls to print_end_stepping_range_reason.
1865
1866 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1867
1868 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1869 * cli-out.c: Include vec.h.
1870 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1871 variable stream, initialize it, use it.
1872 (cli_redirect): New function comment. Replace the stream and
1873 original_stream fields by the new streams field. Remove the
1874 original_stream != NULL conditional, assert error on NULL instead.
1875 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1876 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1877 original_stream fields by the new streams field.
1878 (cli_out_set_stream): Replace the stream field by the new streams
1879 field.
1880 * cli-out.h: Include vec.h.
1881 (ui_filep): New typedef, call DEF_VEC_P for it.
1882 (struct cli_ui_out_data): Replace the stream and original_stream
1883 fields by the new streams field.
1884 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1885 NULL first. Extend the comment.
1886 (handle_redirections): Call ui_out_redirect with output.
1887 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1888 calls outside of the TRY_CATCH block.
1889
1890 2010-09-03 Joel Brobecker <brobecker@adacore.com>
1891
1892 GDB 7.2 released.
1893
1894 2010-09-02 Joel Brobecker <brobecker@adacore.com>
1895
1896 Back out the following change:
1897 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1898 | * record.c (set_record_pic_cmdlist,
1899 | show_record_pic_cmdlist): New variables.
1900 | (set_record_pic_command,
1901 | show_record_pic_command): New functions.
1902 | (record_pic_function, record_pic_line, record_pic_enum,
1903 | set_record_pic_type, record_pic_hide_nofunction,
1904 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1905 | (record_pic_fputs): New function.
1906 | (function_list, node_list, edge_list): New struct.
1907 | (function_list, node_list, edge_list): New variables.
1908 | (record_pic_cleanups, record_pic_node,
1909 | record_pic_edge, cmd_record_pic): New functions.
1910 | (_initialize_record): Add new commands for record pic.
1911
1912 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1913
1914 * config.in, configure: Regenerated.
1915 * configure.ac: Check for waitpid.
1916 * ser-pipe.c (pipe_close): Wait for the program to exit.
1917
1918 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1919
1920 * cli/cli-logging.c: Include gdb_assert.h.
1921 (set_logging_overwrite): New function.
1922 (logging_redirect): New comment.
1923 (logging_no_redirect_file, set_logging_redirect)
1924 (pop_output_files) <logging_no_redirect_file>: New.
1925 (handle_redirections) <!logging_redirect>: New variable
1926 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1927 discard cleanup for the close of former OUTPUT. Set
1928 LOGGING_NO_REDIRECT_FILE.
1929 (handle_redirections) <logging_redirect>: gdb_assert
1930 LOGGING_NO_REDIRECT_FILE.
1931 (show_logging_command) <logging_redirect handling>: Adjust messages
1932 for SAVED_FILENAME not NULL.
1933 (_initialize_cli_logging): Install set_logging_overwrite and
1934 set_logging_redirect.
1935
1936 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1937
1938 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1939
1940 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1941
1942 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1943 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1944 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1945 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1946
1947 2010-09-02 Yao Qi <yao@codesourcery.com>
1948
1949 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1950 number from a WIFSIGNALED status.
1951
1952 2010-09-01 Tom Tromey <tromey@redhat.com>
1953
1954 * symtab.h (lookup_type_symbol): Declare.
1955 * symtab.c (lookup_symbol_in_language_full): Rename from
1956 lookup_symbol_in_language. Add 'for_type' argument.
1957 (lookup_symbol_in_language): New function.
1958 (lookup_type_symbol): Likewise.
1959 (lookup_symbol_aux): Add 'for_type' argument.
1960 (match_symbol_aux): New function.
1961 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1962 (match_transparent_type): New function.
1963 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1964 * symfile.h (struct quick_symbol_functions)
1965 <pre_expand_symtabs_matching>: Remove.
1966 <expand_one_symtab_matching>: New field.
1967 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1968 (pre_expand_symtabs_matching_psymtabs): Remove.
1969 (psym_functions): Update.
1970 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1971 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1972 (dw2_pre_expand_symtabs_matching): Remove.
1973 (dw2_expand_one_symtab_matching): New function.
1974 (dwarf2_gdb_index_functions): Update.
1975
1976 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1977
1978 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1979
1980 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1981
1982 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1983 as a feature reported by -list-target-features.
1984
1985 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1986
1987 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1988 (powerpc-32.o, powerpc-32.c): New rules.
1989 (clean): Also remove powerpc-32.c.
1990 * regformats/rs6000/powerpc-32.dat: Generate.
1991
1992 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1993
1994 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1995 psymbol_bcache_init.
1996 * psymtab.h (psymbol_bcache_init): New function prototype.
1997 (psymbol_bcache_free): New function prototype.
1998 (psymbol_bcache_get_bcache): New function prototype.
1999 * psymtab.c (psymbol_bcache_init): New function.
2000 (psymbol_bcache_free): New function.
2001 (psymbol_bcache_full): New function.
2002 (psymbol_bcache_get_bcache): New function.
2003 (add_psymbol_to_bcache): use psymbol_bcache_full.
2004 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2005 psymbol_bcache.
2006 * symmisc.c (print_symbol_bcache_statistics): Updated.
2007 (print_objfile_statistics): Updated.
2008 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2009 psymbol_cache.
2010 (free_objfile): Use psymbol_bcache_free.
2011
2012 2010-08-31 Tom Tromey <tromey@redhat.com>
2013
2014 PR c++/11961:
2015 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2016 Don't set TYPE_NAME on the type.
2017
2018 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2019
2020 * infrun.c (set_exec_direction_func): Error out if target does not
2021 support reverse execution.
2022
2023 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 Make linux_get_siginfo_type `type *' unique.
2026 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2027 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2028 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2029 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2030 (_initialize_linux_tdep): New.
2031
2032 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2033
2034 Code cleanup.
2035 * defs.h (find_memory_region_ftype): New typedef.
2036 (exec_set_find_memory_regions): Use it.
2037 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2038 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2039 * gcore.c (objfile_find_memory_regions): Likewise.
2040 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2041 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2042 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2043 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2044 find_memory_region_ftype.
2045 (insert_dbx_link_bpt_in_region): Likewise.
2046 (iterate_over_mappings): Likewise. Drop the comment part about the
2047 function prototype.
2048 (find_memory_regions_callback): Use find_memory_region_ftype.
2049 (proc_find_memory_regions): Likewise.
2050 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2051 find_memory_region_ftype.
2052 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2053 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2054
2055 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2056
2057 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2058 'static partial_symbol psymbol'.
2059 (psymbol_hash): New function.
2060 (psymbol_compare): New function.
2061 * bcache.c (hash_continue): New.
2062 (hash): Use hash_continue.
2063 * bcache.c: Add hash_function and compare_function
2064 pointers to bcache struct.
2065 (bcache_full): Use bcache->hash_function, and
2066 bcache->compare_function.
2067 (bcache_compare): New function.
2068 (bcache_xmalloc): Take hash_function and
2069 compare_function arguments and initialize the
2070 bcach's pointers.
2071 Updated comment.
2072 * objfiles.c (allocate_objfile): Updated.
2073 * symfile.c (reread_symbols): Updated.
2074 * python/py-type.c (typy_richcompare): Updated.
2075
2076 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2077 Tom Tromey <tromey@redhat.com>
2078
2079 PR python/11792:
2080 * python/py-value.c (valpy_get_dynamic_type): New function.
2081 (value_object_getset): Add "dynamic_type".
2082 (valpy_get_type): Fail on error.
2083
2084 2010-08-30 Yao Qi <yao@codesourcery.com>
2085
2086 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2087 (arm_linux_syscall_next_pc): New.
2088 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2089 (arm_linux_init_abi): Initialize syscall_next_pc.
2090 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2091 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2092 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2093 Declare arm_frame_is_thumb.
2094
2095 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2096
2097 Code cleanup.
2098 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2099 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2100 code.
2101 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2102 calls of bpstat_alloc. Remove explicit bs chain termination.
2103
2104 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2105
2106 Code cleanup.
2107 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2108 (my_waitpid): Likewise.
2109
2110 2010-08-27 Doug Evans <dje@google.com>
2111
2112 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2113 as appropriate.
2114
2115 2010-08-27 Tom Tromey <tromey@redhat.com>
2116
2117 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2118 TYPE_FIELD_IGNORE_BITS.
2119
2120 2010-08-27 Doug Evans <dje@google.com>
2121
2122 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2123 the order they're defined in. munmap .debug_types buffer.
2124
2125 2010-08-26 Doug Evans <dje@google.com>
2126
2127 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2128 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2129 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2130 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2131 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2132 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2133 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2134 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2135 (write_psymtabs_to_index): Ditto.
2136
2137 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2138
2139 * NEWS: Mention libthread_db debugging with core files.
2140
2141 2010-08-26 Doug Evans <dje@google.com>
2142
2143 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2144 forward decl. Pass pst->dirname to dwarf_decode_lines.
2145 (psymtab_include_file_name): New function.
2146 (dwarf_decode_lines): Call it. Update comments.
2147
2148 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2149
2150 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2151 compilation unit being different from target die's.
2152
2153 2010-08-24 Doug Evans <dje@google.com>
2154
2155 PR symtab/11942
2156 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2157 debug_types_type_hash.
2158 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2159 All uses updated.
2160 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2161 appropriate type_hash table. All callers updated.
2162 (allocate_signatured_type_table): Renamed from
2163 allocate_signatured_type_hash_table. All callers updated.
2164 (create_signatured_type_table_from_index): Renamed from
2165 create_signatured_type_hash_from_index. All callers updated.
2166 (read_die_type): Add comment. Move actual reading to ...
2167 (read_die_type_1): ... here. New function.
2168 (follow_die_ref_or_sig): Tweak comment.
2169 (set_die_type): Rewrite to use appropriate choice of
2170 debug_info_type_hash or debug_types_type_hash.
2171 (get_die_type_at_offset): New function.
2172 (get_die_type): Call it.
2173
2174 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2175
2176 * python/py-type.c (typy_richcompare): Initialize worklist.
2177
2178 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2179 Kazu Hirata <kazu@codesourcery.com>
2180 Jonathan Larmour <jifl@eCosCentric.com>
2181
2182 * arm-tdep.c: Include features/arm-with-m.c.
2183 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2184 call this function.
2185 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2186 Check is_m after force-mode.
2187 (arm_gdbarch_init): Check the binary before the target description.
2188 Add check for M profile attribute. If we have an M-profile device,
2189 but no target register description, use arm-with-m. Recognize the
2190 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2191 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2192 * arm-tdep.h (XPSR_T): Define.
2193 (struct gdbarch_tdep): Add is_m member.
2194 * features/arm-m-profile.xml, features/arm-with-m.c,
2195 features/arm-with-m.xml: New files.
2196
2197 2010-08-23 Doug Evans <dje@google.com>
2198
2199 * dwarf2read.c (read_structure_type): Add comment.
2200 (read_enumeration_type): Add comment.
2201 (process_enumeration_scope): Move definition of some locals
2202 closer to their use.
2203 (read_namespace_type): Add comment.
2204 (set_die_type): Fix typo in comment.
2205
2206 2010-08-23 Tom Tromey <tromey@redhat.com>
2207
2208 PR python/11145:
2209 * python/py-value.c: Include expression.h.
2210 (valpy_do_cast): New function.
2211 (valpy_cast): Use it.
2212 (valpy_dynamic_cast): New function.
2213 (valpy_reinterpret_cast): Likewise.
2214 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2215
2216 2010-08-23 Tom Tromey <tromey@redhat.com>
2217
2218 PR python/11391:
2219 * python/py-value.c (valpy_nonzero): Don't throw error for other
2220 Value types.
2221
2222 2010-08-23 Tom Tromey <tromey@redhat.com>
2223
2224 PR python/10676:
2225 * python/py-type.c: Include bcache.h, vec.h.
2226 (struct type_equality_entry): New.
2227 (compare_strings): New function.
2228 (check_types_equal): Likewise.
2229 (check_types_worklist): Likewise.
2230 (typy_richcompare): Likewise.
2231 (type_object_type): Set tp_richcompare field.
2232
2233 2010-08-23 Tom Tromey <tromey@redhat.com>
2234
2235 PR python/10953:
2236 * python/py-type.c (typy_fields): Call check_typedef.
2237 (typy_template_argument): Add TRY_CATCH.
2238
2239 2010-08-23 Tom Tromey <tromey@redhat.com>
2240
2241 PR python/11915:
2242 * python/py-type.c (typy_array): New function.
2243 (type_object_methods): Add "array".
2244
2245 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2246
2247 * python/python.c: Include "serial.h".
2248 (gdbpy_event_fds): Change type to `struct serial *' a array from
2249 int array.
2250 (gdbpy_run_events): Change parameters. Use serial_readchar in
2251 place of read.
2252 (gdbpy_post_event): Use serial_write in place of write.
2253 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2254 serial_async in place of add_file_handler.
2255
2256 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2257
2258 * serial.h (gdb_pipe, serial_pipe): Declare.
2259 * serial.c (serial_interface_lookup): Take a const char pointer.
2260 (serial_fdopen): Rename to ...
2261 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2262 Call the OPS' fdopen function if there is one.
2263 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2264 (serial_pipe): New.
2265 (struct serial_ops) <fdopen>: New field.
2266
2267 * ser-mingw.c (free_pipe_state):
2268 (free_pipe_state): Close output on non-pex pipes.
2269 (pipe_windows_fdopen): New.
2270 (gdb_pipe): New.
2271 (_initialize_ser_windows): Register pipe_windows_fdopen.
2272 * ser-go32.c (gdb_pipe): New.
2273 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2274 no state pointer.
2275 (pipe_ops): Delete.
2276 (gdb_pipe): New.
2277
2278 2010-08-20 Keith Seitz <keiths@redhat.com>
2279
2280 PR symtab/11465:
2281 * dwarf2read.c (struct delayed_method_info): New struct.
2282 (struct dwarf2_cu): Add vector method_list.
2283 (scan_partial_symbols): Count methods for union, class, structure,
2284 and interface types.
2285 (add_to_method_list): New function.
2286 (free_delayed_list): New function.
2287 (compute_delayed_physnames): New function.
2288 (process_full_comp_unit): Make a cleanup for the CU's delayed
2289 physname list, compute the delayed physnames, and free the
2290 the list.
2291 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2292 of the physname until after the CU is read.
2293
2294 * dwarf2read.c (read_structure_type): Check if the current
2295 DIE's type was already completed after dwarf2_full_name
2296 was called.
2297
2298 2010-08-19 Stan Shebs <stan@codesourcery.com>
2299
2300 * NEWS: Mention some additional changes.
2301
2302 2010-08-19 Tom Tromey <tromey@redhat.com>
2303
2304 * Makefile.in (install-python): Add DESTDIR.
2305
2306 2010-08-19 Doug Evans <dje@google.com>
2307
2308 PR exp/11926
2309 * parser-defs.h (parse_float, parse_c_float): Declare.
2310 * parse.c (parse_float, parse_c_float): New function.
2311 * c-exp.y (parse_number): Call parse_c_float.
2312 * objc-exp.y (parse_number): Ditto.
2313 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2314 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2315
2316 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2317
2318 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2319 the arguments in the correct order.
2320 * symtab.c (maybe_add_partial_symtab_filename): Declare
2321 the arguments in the correct order.
2322
2323 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2324
2325 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2326 initialize it by null_frame_id, wrap its usage by get_frame_id,
2327 frame_id_p and frame_find_by_id.
2328
2329 2010-08-18 Tom Tromey <tromey@redhat.com>
2330
2331 PR python/11900:
2332 * configure: Rebuild.
2333 * configure.ac: Add install-python to CONFIG_INSTALL.
2334 * Makefile.in (install-python): New.
2335
2336 2010-08-18 Doug Evans <dje@google.com>
2337
2338 * gdb_assert.h (gdb_assert_not_reached): New macro.
2339 (gdb_assert_fail): Fix typo in comment.
2340 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2341 gdb_assert (0).
2342 * darwin-nat.c (darwin_check_new_threads): Ditto.
2343 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2344 (munmap_section_buffer): Ditto.
2345 * m32c-tdep.c (make_types): Ditto.
2346 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2347 * macroexp.c (get_character_constant): Ditto.
2348 (get_string_literal): Ditto.
2349 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2350 (mep_pseudo_cr_index, mep_register_type): Ditto.
2351 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2352 (mep_get_insn, mep_analyze_prologue): Ditto.
2353 * objfiles.c (qsort_cmp): Ditto.
2354 * prologue-value.c (pv_is_identical): Ditto.
2355 * record.c (record_get_loc): Ditto.
2356 * value.c (value_static_field): Ditto.
2357 * xtensa-tdep.c (call0_track_op): Ditto.
2358
2359 2010-08-18 Tom Tromey <tromey@redhat.com>
2360
2361 PR symtab/11919:
2362 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2363 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2364 name-copying lower. Document exception behavior.
2365 * completer.c (expression_completer): Catch exceptions from
2366 parse_field_expression.
2367
2368 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2369
2370 PR corefile/8210
2371
2372 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2373 workaround on core files.
2374 (try_thread_db_load_1): Don't try enabling thread event reporting
2375 on core files.
2376 (thread_db_load): Allow thread_db on core files.
2377 (attach_thread): Don't check thread signals on core files, nor try
2378 really attaching to the thread, nor enabling thread event event
2379 reporting.
2380 (thread_db_detach): Don't try disabing thread event reporting or
2381 removing thread event breakpoints when debugging a core file.
2382 (find_new_threads_callback): Don't try enabling thread event
2383 reporting on core files.
2384 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2385 debugging a core file.
2386 (thread_db_find_new_threads): Don't update thread
2387 cores (processors) when debugging a core (dump).
2388
2389 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2390
2391 PR corefile/8210
2392
2393 * corelow.c (add_to_thread_list): Don't use
2394 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2395 (get_core_register_section): Don't use
2396 gdbarch_core_reg_section_encodes_pid.
2397
2398 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2399 * gdbarch.h, gdbarch.c: Regenerate.
2400 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2401 gdbarch_core_reg_section_encodes_pid.
2402 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2403 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2404 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2405
2406 2010-08-18 Yao Qi <yao@codesourcery.com>
2407
2408 * MAINTAINERS : Add myself under Write After Approval.
2409
2410 2010-08-17 Tom Tromey <tromey@redhat.com>
2411
2412 * NEWS: Mention template parameter support.
2413
2414 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2415
2416 PR breakpoints/11371
2417
2418 * breakpoint.c (decref_bp_location): Assert the reference count is
2419 sane.
2420
2421 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2422
2423 PR breakpoints/11371
2424
2425 * breakpoint.c (breakpoint_init_inferior): Decrement the
2426 location's reference count instead of deleting right away.
2427 (bpstat_free): Decrement the location's reference count. Make
2428 static.
2429 (bpstat_copy): Increment the location's reference count.
2430 (bpstat_find_breakpoint): Adjust.
2431 (bpstat_num): Adjust.
2432 (print_it_typical): Adjust. Use the breakpoint pointer in the
2433 bpstat instead of the location's owner.
2434 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2435 Adjust to record the location's owner in the bpstat.
2436 (watchpoint_check): Use the breakpoint pointer in the bpstat
2437 instead of the location's owner.
2438 (bpstat_check_breakpoint_conditions): Don't handle
2439 bp_watchpoint_scope here. Use the breakpoint pointer in the
2440 bpstat instead of the location's owner.
2441 (bpstat_stop_status): Defer inferior function calls to after
2442 building the bpstat list. Handle bp_watchpoint_scope here. Use
2443 the breakpoint pointer in the bpstat instead of the location's
2444 owner.
2445 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2446 the location's owner.
2447 (free_bp_location): Don't walk bpstats clearing locations.
2448 (incref_bp_location): New.
2449 (decref_bp_location): New.
2450 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2451 instead of the location's owner.
2452 (update_global_location_list): Clear the location's owner, and
2453 decrement the location's reference count instead of deleting it
2454 right away.
2455 (breakpoint_retire_moribund): Decrement the location's reference
2456 count instead of deleting it right away.
2457 (bpstat_remove_bp_location): Delete.
2458 (bpstat_remove_breakpoint): New.
2459 (bpstat_remove_bp_location_callback): Delete.
2460 (bpstat_remove_breakpoint_callback): New.
2461 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2462 clearing references to the breakpoint that is being deleted.
2463
2464 * breakpoint.h (struct bp_location) <refc>: New field.
2465 <owner>: Update comments.
2466 (bpstat_free): Delete declaration.
2467 (struct bpstats): Change the type of the breakpoint_at field to
2468 struct breakpoint point, from struct bp_location pointer. Add new
2469 field bp_location_at.
2470
2471 2010-08-16 Tom Tromey <tromey@redhat.com>
2472
2473 * NEWS: Fix typo.
2474
2475 2010-08-16 Tom Tromey <tromey@redhat.com>
2476
2477 * NEWS: Mention watch -location.
2478
2479 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2480
2481 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2482 EXP_STRING_REPARSE to EXP_STRING.
2483 (watch_command_1): Set also EXP_STRING_REPARSE.
2484 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2485 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2486 Update comment for exp_string.
2487
2488 2010-08-16 Tom Tromey <tromey@redhat.com>
2489
2490 * value.c (release_value): Clear 'next' pointer.
2491 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2492 (watch_command_wrapper): Update.
2493 (watch_maybe_just_location): New function.
2494 (watch_command): Update.
2495 (rwatch_command_wrapper): Update.
2496 (rwatch_command): Update.
2497 (awatch_command_wrapper): Update.
2498 (awatch_command): Update.
2499 (check_for_argument): New function.
2500 (_initialize_breakpoint): Update help text.
2501
2502 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2503
2504 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2505 typedef'ed function types correctly.
2506
2507 2010-08-13 Tom Tromey <tromey@redhat.com>
2508
2509 * python/python-internal.h (gdbpy_get_hook_function): Don't
2510 declare.
2511
2512 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2513
2514 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2515 static.
2516
2517 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2518
2519 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2520 the format strings to be compatible with Python 2.4.
2521
2522 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2523
2524 Easier and more stubborn MI memory read commands.
2525
2526 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2527 and data-write-memory-bytes.
2528 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2529 (mi_cmd_data_write_memory_bytes): New.
2530 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2531 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2532 New.
2533 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2534 * target.c (target_read_until_error): Remove.
2535 (read_whatever_is_readable, free_memory_read_result_vector)
2536 (read_memory_robust): New.
2537 * target.h (target_read_until_error): Remove.
2538 (struct memory_read_result, free_memory_read_result_vector)
2539 (read_memory_robust): New.
2540
2541 2010-08-13 Hui Zhu <teawater@gmail.com>
2542
2543 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2544 (read_comp_unit): Initialize back_to.
2545
2546 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2547 Pedro Alves <pedro@codesourcery.com>
2548
2549 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2550 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2551 (struct partial_die_info) <has_template_arguments>: New field.
2552 <num_attrs>: Change type to unsigned char.
2553 <building_fullname>: New field.
2554 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2555 allocate a CU if we don't have one already. Add a cleanup for the
2556 CU.
2557 (partial_die_full_name): Handle template arguments not in
2558 DW_AT_name.
2559 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2560 (load_full_comp_unit): Only allocate a CU if we don't have one
2561 already.
2562 (do_ui_file_peek_last): New.
2563 (dwarf2_compute_name): Handle template parameters not in
2564 DW_AT_name.
2565 (read_comp_unit): Read and free abbrevs if not read yet.
2566 (load_partial_dies): Handle template arguments not in DW_AT_name.
2567 (find_partial_die): If we have a CU, but no a partial dies yet,
2568 also read in the CU.
2569 (dwarf2_const_value_attr): New, abstracted out from
2570 dwarf2_const_value.
2571 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2572 dwarf2_const_value_attr.
2573 (determine_prefix): Detect and break loops created by RCVT's debug
2574 info.
2575 (maybe_queue_comp_unit): Bail out early if reading partial
2576 symbols.
2577 (follow_die_offset): Load full CU if we have no dies.
2578 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2579 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2580
2581 2010-08-11 Tom Tromey <tromey@redhat.com>
2582 Phil Muldoon <pmuldoon@redhat.com>
2583
2584 * python/python.c (gdbpy_run_events): New function.
2585 (gdbpy_post_event): Likewise.
2586 (gdbpy_initialize_events): Likewise.
2587 (_initialize_python): Call gdbpy_initialize_events.
2588
2589 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2590
2591 * gdb/valarith.c (vector_binop): New function.
2592 (scalar_binop): Likewise.
2593 (value_binop): Call scalar_binop or vector_binop depending on the types.
2594 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2595 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2596 to pointers.
2597 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2598
2599 2010-08-11 Brad Roberts <braddr@puremagic.com>
2600
2601 * d-lang.c (extract_identifiers): Handle multiple digits.
2602
2603 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2604
2605 Code cleanup.
2606 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2607 Rename to dummy_frame_unwind.
2608 (dummy_frame_unwind): Remove.
2609 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2610 * frame-unwind.c (frame_unwind_init): Use address of
2611 dummy_frame_unwind and inline_frame_unwind.
2612 * frame.c (create_sentinel_frame): Use address of
2613 sentinel_frame_unwind.
2614 * inline-frame.c (inline_frame_unwinder): Rename to
2615 inline_frame_unwind.
2616 (inline_frame_unwind): Remove.
2617 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2618 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2619 sentinel_frame_unwind.
2620 (sentinel_frame_unwind): Remove.
2621 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2622 struct.
2623
2624 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2625
2626 Code cleanup.
2627 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2628 and returned value. New comment from frame-unwind.h.
2629 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2630 Extend the comment.
2631 * frame.c (get_frame_id, frame_unwind_register_value)
2632 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2633 (get_frame_type, frame_unwind_arch): Do not use the return value of
2634 frame_unwind_find_by_frame.
2635
2636 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2637 Thiago Jung Bauermann <bauerman@br.ibm.com>
2638 Tom Tromey <tromey@redhat.com>
2639
2640 * python/python.c (gdbpy_solib_address): New function.
2641 (gdbpy_decode_line): Likewise.
2642
2643 2010-08-10 Tom Tromey <tromey@redhat.com>
2644
2645 Revert gdb-add-index addition:
2646 * Makefile.in (install-only): Don't install gdb-add-index.
2647 * gdb-add-index.sh: Remove.
2648
2649 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2650
2651 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2652 `target_has_execution' check with `to_has_memory' check.
2653 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2654 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2655 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2656
2657 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2658
2659 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2660 (resume_siggnal, resume_step): Move these static globals...
2661 (struct sim_inferior_data): ...into this new struct.
2662 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2663 New static globals.
2664 (gdb_callback, callbacks_initialized): Move these globals to
2665 a point earlier in the file.
2666 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2667 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2668 (gdbsim_close_inferior, gdbsim_resume_inferior)
2669 (gdbsim_stop_inferior): New functions.
2670 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2671 New constants.
2672 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2673 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2674 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2675 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2676 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2677 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2678 new local variable `sim_data' in each of these functions. Use
2679 `sim_data' to reference former globals `program_loaded',
2680 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2681 `resume_step'.
2682 (gdbsim_open): Remove local variable `argv'. Put results of call
2683 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2684 make a cleanup for it. Free it though when a sim instance cannot
2685 be obtained.
2686 (gdbsim_close): Free sim_argv and null it out as appropriate.
2687 Close sim instances in all inferiors.
2688 (gdbsim_cntrl_c): Stop all inferiors.
2689 (gdbsim_wait):
2690 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2691
2692 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2693
2694 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2695 function after symbol construction is complete.
2696 Do the same for template symbol addition to template_symbols list.
2697
2698 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2699
2700 * symtab.c (symbol_get_demangled_name): Remove assertion and
2701 return NULL when language_specific.cplus_specific is not initialized.
2702 * stabsread.c (define_symbol): Set the name before calling
2703 cp_scan_for_anonymous_namespaces.
2704
2705 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2706
2707 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2708 SYMBOL_SET_LANGUAGE.
2709 (symbol_init_language_specific): Renamed to symbol_set_language.
2710 * symtab.c (symbol_init_language_specific): Removed redundant check
2711 for language_cplus.
2712 Renamed to symbol_set_language.
2713 * stabsread.c (define_symbol): Updated.
2714 (read_enum_type): Updated
2715 * psymtab.c (add_psymbol_to_bcache): Updated.
2716 * minsyms.c (install_minimal_symbols): Updated.
2717 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2718 SYMBOL_LANGUAGE to set the language.
2719 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2720 * mdebugread.c (new_symbol): Ditto.
2721 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2722 * dwarf2read.c (new_symbol_full): Ditto.
2723 * jv-lang.c (add_class_symbol): Ditto.
2724
2725 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2726
2727 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2728 (make_cleanup_restore_page_info)
2729 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2730 * gdbcmd.h (execute_command_to_string): New declaration.
2731 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2732 (make_cleanup_restore_ui_file): Move to utils.c
2733 (execute_gdb_command) <to_string>: Move ...
2734 * top.c (execute_command_to_string): ... here. Call
2735 set_batch_flag_and_make_cleanup_restore_page_info.
2736 * utils.c (make_cleanup_restore_integer): New source file blank line.
2737 (make_cleanup_restore_uinteger): New.
2738 (struct restore_ui_file_closure, do_restore_ui_file)
2739 (make_cleanup_restore_ui_file): Move here from python/python.c.
2740 (init_page_info) <batch_flag>
2741 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2742 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2743
2744 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2745
2746 * thread.c (add_thread_silent): Use null_ptid instead of
2747 minus_one_ptid while getting rid of stale inferior_ptid.
2748
2749 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2750
2751 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2752 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2753 (decode_frame_entry_1): Remove redundant setting of
2754 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2755 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2756 on examined frame section. Add comment to explain why.
2757 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2758 comment to explain usage.
2759 * gdbarch.c: Regenerate.
2760 * gdbarch.h: Regenerate.
2761
2762 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2763
2764 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2765
2766 Code cleanup.
2767 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2768 a more inner block.
2769
2770 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2771
2772 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2773 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2774 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2775 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2776 linux-tdep.o to gdb_target_obs.
2777
2778 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2779
2780 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2781 argument.
2782
2783 2010-08-05 Hui Zhu <teawater@gmail.com>
2784
2785 * mips-linux-tdep.c(regset.h): New include.
2786 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2787 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2788 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2789 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2790 mips_linux_regset_from_core_section): New functions.
2791 (fetch_core_registers, regset_core_fns): Deleted.
2792 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2793 Deleted regset_core_fns.
2794 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2795 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2796 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2797 and fpregset64.
2798
2799 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2800
2801 * s390-tdep.c: Include linux-tdep.h.
2802 (s390_gdbarch_init): Call linux_init_abi.
2803
2804 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2805
2806 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2807 instead of printing "Thread" here.
2808 * linux-tdep.c: Include inferior.h.
2809 (linux_core_pid_to_str): New.
2810 (linux_init_abi): New.
2811 * linux-tdep.h (linux_init_abi): Declare.
2812 * alpha-linux-tdep.c: Include linux-tdep.h.
2813 (alpha_linux_init_abi): Call linux_init_abi.
2814 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2815 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2816 * frv-linux-tdep.c: Include linux-tdep.h
2817 (frv_linux_init_abi): Call linux_init_abi.
2818 * hppa-linux-tdep.c: Include linux-tdep.h
2819 (hppa_linux_init_abi): Call linux_init_abi.
2820 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2821 * ia64-linux-tdep.c: Include linux-tdep.h.
2822 (ia64_linux_init_abi): Call linux_init_abi.
2823 * m32r-linux-tdep.c: Include linux-tdep.h.
2824 (m32r_linux_init_abi): Call linux_init_abi.
2825 * m68klinux-tdep.c: Include linux-tdep.h.
2826 (m68k_linux_init_abi): Call linux_init_abi.
2827 * microblaze-linux-tdep.c: Include linux-tdep.h.
2828 (microblaze_linux_init_abi): Call linux_init_abi.
2829 * mips-linux-tdep.c: Include linux-tdep.h.
2830 (mips_linux_init_abi): Call linux_init_abi.
2831 * mn10300-linux-tdep.c: Include linux-tdep.h.
2832 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2833 'gdbinfo' parameter to 'info'.
2834 * ppc-linux-tdep.c: Include linux-tdep.h.
2835 (ppc_linux_init_abi): Call linux_init_abi.
2836 * sh-linux-tdep.c: Include linux-tdep.h.
2837 (sh_linux_init_abi): Call linux_init_abi.
2838 * sparc-linux-tdep.c: Include linux-tdep.h.
2839 (sparc32_linux_init_abi): Call linux_init_abi.
2840 * sparc64-linux-tdep.c: Include linux-tdep.h.
2841 (sparc64_linux_init_abi): Call linux_init_abi.
2842 * xtensa-linux-tdep.c: Include linux-tdep.h.
2843 (xtensa_linux_init_abi): Call linux_init_abi.
2844 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2845 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2846 callback.
2847
2848 2010-08-03 Doug Evans <dje@google.com>
2849
2850 * breakpoint.c (bpdisp_text): Constify bpdisps.
2851 * solib-svr4.c (solib_break_names): Constify.
2852 (bkpt_names, main_name_list): Constify.
2853 (match_main): Constify soname arg.
2854 (bfd_lookup_symbol): Remove unnecessary forward decl.
2855 Constify symname arg.
2856 (enable_break): Constify bkpt_namep.
2857 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2858 (symtab_symbol_info): Constify classnames.
2859
2860 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2861
2862 * NEWS: Document Python value inferior function calls.
2863
2864 2010-08-02 Doug Evans <dje@google.com>
2865
2866 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2867
2868 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2869
2870 * linux-thread-db.c (libthread_db_debug): New variable.
2871 (thread_db_find_new_threads_silently): Control verbosity with it.
2872 (try_thread_db_load_1, try_thread_db_load): Likewise.
2873 (find_new_threads_once): Likewise.
2874 (_initialize_thread_db): Set/show it.
2875
2876 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2877
2878 * common/signals.c (signals): Move the content to signals.def.
2879 Include it. Remove the INDENT comments.
2880
2881 2010-07-30 Tom Tromey <tromey@redhat.com>
2882
2883 * Makefile.in (install-only): Install gdb-add-index.
2884 * gdb-add-index.sh: New file.
2885
2886 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2887
2888 * MAINTAINERS: Add myself for write after approval privileges.
2889
2890 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2891
2892 * symfile.c (addr_section_name): New function.
2893 (addrs_section_compar): Use it.
2894 (addr_info_make_relative): Use it. Move variable sect_name into a more
2895 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2896
2897 2010-07-30 Tom Tromey <tromey@redhat.com>
2898
2899 * configure: Rebuild.
2900 * configure.ac: Add missing case for Python 2.7.
2901
2902 2010-07-29 DJ Delorie <dj@redhat.com>
2903
2904 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2905 conditions.
2906
2907 2010-07-29 Pedro Alves <pedro@codesourcery.com>
2908
2909 * PROBLEMS: Remove mention of all problems.
2910
2911 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2912
2913 PR build/11848
2914 * configure.ac: Check for wresize.
2915 * configure, config.in: Regenerate.
2916 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2917 with HAVE_WRESIZE.
2918
2919 2010-07-28 Tom Tromey <tromey@redhat.com>
2920
2921 PR python/11060:
2922 * python/py-type.c (typy_legacy_template_argument): New function,
2923 extracted from typy_template_argument.
2924 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2925 value when needed.
2926
2927 2010-07-28 Oleg Nesterov <oleg@redhat.com>
2928
2929 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2930
2931 2010-07-27 Tom Tromey <tromey@redhat.com>
2932
2933 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2934
2935 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2936
2937 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2938 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2939
2940 2010-07-28 Tom Tromey <tromey@redhat.com>
2941
2942 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2943
2944 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2945
2946 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2947 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2948
2949 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2950
2951 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2952 down, just before the block that parse the breakpoint addr_string.
2953
2954 2010-07-28 Tom Tromey <tromey@redhat.com>
2955
2956 PR c++/9946:
2957 * symfile.c (reread_symbols): Clear template_symbols.
2958 * symtab.h (struct symbol) <is_cplus_template_function>: New
2959 field.
2960 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2961 (struct template_symbol): New.
2962 * symtab.c (lookup_symbol_aux_local): Use
2963 cp_lookup_symbol_imports_or_template.
2964 * objfiles.h (struct objfile) <template_symbols>: New field.
2965 * objfiles.c (relocate_one_symbol): New function.
2966 (objfile_relocate1): Use it. Relocate isolated symbols.
2967 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2968 template_arguments>: New fields.
2969 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2970 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2971 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2972 (lookup_typename): Update.
2973 * gdbtypes.c (lookup_typename): Constify "block" argument.
2974 * dwarf2read.c: Include vec.h.
2975 (symbolp): New typedef.
2976 (read_func_scope): Read template arguments. Allocate a
2977 template_symbol when needed.
2978 (read_structure_type): Read template arguments.
2979 (new_symbol_full): New function, from new_symbol. Handle
2980 DW_TAG_template_type_param and DW_TAG_template_value_param.
2981 (new_symbol): Rewrite as wrapper.
2982 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2983 * cp-namespace.c: Include language.h.
2984 (search_symbol_list): New function.
2985 (cp_lookup_symbol_imports_or_template): Likewise.
2986
2987 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2988
2989 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2990 the command window to the new size and position.
2991
2992 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2993
2994 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2995 coordinates.
2996
2997 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2998
2999 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3000 after a detecting a resize.
3001 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3002 call.
3003
3004 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3005
3006 * configure.ac: Check for resize_term.
3007 * configure, config.in: Regenerate.
3008
3009 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3010
3011 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3012
3013 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3014
3015 * dwarf2read.c (read_string): Rename to ...
3016 (read_direct_string): ... this.
3017 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3018 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3019
3020 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3021
3022 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3023 (count_events_callback, select_event_lwp_callback)
3024 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3025
3026 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3027
3028 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3029 (_initialize_ia64_linux_nat): Install it.
3030 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3031 (linux_nat_set_status_is_event): New.
3032 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3033 cancel_breakpoints_callback, linux_nat_filter_event)
3034 (linux_nat_wait_1): Use linux_nat_status_is_event.
3035 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3036
3037 2010-07-27 Tom Tromey <tromey@redhat.com>
3038
3039 * NEWS: Mention labels, .gdb_index.
3040
3041 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3042
3043 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3044 "start,+length" form of arguments.
3045 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3046 since GDB 7.1"; and merge two separated paragraphs of disassemble
3047 description in "Changes in GDB 7.0".
3048
3049 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3050
3051 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3052 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3053 (fputs_maybe_filtered): Do not do filtering also on
3054 ! INPUT_FROM_TERMINAL_P.
3055
3056 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3057
3058 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3059 in warning message.
3060
3061 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3062
3063 * python/py-value.c (valpy_call): New Function.
3064
3065 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3066
3067 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3068 types_list_elements variables.
3069
3070 2010-07-26 Tom Tromey <tromey@redhat.com>
3071
3072 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3073 TLS with DW_OP_const4u or DW_OP_const8u.
3074
3075 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3076
3077 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3078 VSX registers contents.
3079
3080 2010-07-26 Jerome Guitton <guitton@adacore.com>
3081
3082 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3083 its adress is null. Add comment to explain why.
3084 (new_symbol): Ditto.
3085
3086 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3087
3088 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3089 the host signal first.
3090
3091 2010-07-23 Tom Tromey <tromey@redhat.com>
3092
3093 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3094 type_comp_units>: New fields.
3095 (dw2_get_cu): New function.
3096 (create_cus_from_index): Remove unused argument.
3097 (create_signatured_type_hash_from_index): New function.
3098 (create_addrmap_from_index): Update.
3099 (dwarf2_read_index): Handle version 2.
3100 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3101 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3102 (dw2_print_stats, dw2_expand_all_symtabs)
3103 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3104 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3105 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3106 (allocate_signatured_type_hash_table): New function.
3107 (add_signatured_type_cu_to_list): Likewise.
3108 (create_debug_types_hash_table): Use them. Set type_comp_units.
3109 (read_signatured_type): Ensure section data is available.
3110 (add_address_entry): Don't record empty ranges.
3111 (struct signatured_type_index_data): New.
3112 (write_one_signatured_type): New function.
3113 (write_psymtabs_to_index): Write type CUs.
3114 (save_gdb_index_command): Update comment.
3115 (process_type_comp_unit): Move inititalization of
3116 from_debug_types...
3117 (create_debug_types_hash_table): ... here.
3118
3119 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3122 cleanup and generating of gdb script to it.
3123 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3124 and terminal size. Convert $tmpfile to a series of -ex-es.
3125
3126 2010-07-23 Keith Seitz <keiths@redhat.com>
3127
3128 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3129 hook for STATIC_BLOCK types, too.
3130
3131 2010-07-23 Keith Seitz <keiths@redhat.com>
3132
3133 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3134 and vector definition.
3135
3136 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3137
3138 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3139
3140 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3141
3142 * dwarf2read.c: Include completer.h.
3143 (save_gdb_index_command): Use matching usage command name.
3144 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3145 Set filename_completer for it.
3146
3147 2010-07-22 Tom Tromey <tromey@redhat.com>
3148
3149 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3150 type signature's per-CU data.
3151
3152 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3153
3154 * NEWS: Mention target reported shared libraries support by
3155 default.
3156
3157 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3158
3159 PR symtab/11827
3160
3161 Revert:
3162 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3163 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3164 and DW_TAG_volatile_type.
3165 (new_symbol): Likewise.
3166
3167 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3168
3169 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3170 function symbols before overload resolution.
3171
3172 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3173
3174 * breakpoint.c (bptype_string): New, abstracted out from
3175 print_one_breakpoint_location.
3176 (print_one_breakpoint_location): Adjust.
3177 (breakpoint_1): Adjust the type column width dynamically.
3178
3179 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3180
3181 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3182 a gdb_assert call, new comment.
3183
3184 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3185
3186 * linux-nat.c (linux_handle_extended_wait): Handle case when
3187 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3188
3189 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3190
3191 Code cleanup.
3192 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3193 linux_nat_wait_1. Use always LP->STATUS afterwards.
3194
3195 2010-07-20 Hui Zhu <teawater@gmail.com>
3196
3197 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3198 (inf_ptrace_attach): Ditto.
3199
3200 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3201
3202 Make core files the process_stratum.
3203 * corefile.c (core_target): New variable.
3204 (core_file_command): Remove variable t, use core_target.
3205 * corelow.c (core_ops): Make it static.
3206 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3207 * defs.h (make_cleanup_unpush_target): New prototype.
3208 * gdbarch.h: Regenerate.
3209 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3210 * gdbcore.h (core_target): New declaration.
3211 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3212 variables ops_already_pushed and back_to. Use push_target,
3213 make_cleanup_unpush_target and discard_cleanups calls.
3214 * record.c (record_open): Replace core_stratum by a core_bfd check.
3215 * target.c (target_is_pushed): New function.
3216 (find_core_target): Remove.
3217 * target.h (enum strata) <core_stratum>: Remove.
3218 (target_is_pushed): New declaration.
3219 (find_core_target): Remove declaration.
3220 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3221 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3222
3223 2010-07-19 Hui Zhu <teawater@gmail.com>
3224
3225 * breakpoint.c (single_step_breakpoints_inserted): New
3226 function.
3227 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3228 * infrun.c (maybe_software_singlestep): Add check code.
3229 * record.c (record_resume): Add code for software single step.
3230 (record_wait): Ditto.
3231
3232 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3233
3234 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3235 a more inner block. Remove its unused declaration initializer.
3236
3237 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3238
3239 * NEWS: Mention support for the new ptrace interface and hardware
3240 accelerated watchpoint conditions on powerpc-linux.
3241
3242 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3243
3244 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3245 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3246 and host_address_to_string() and %s for pointers.
3247 (debug_to_remove_breakpoint): Likewise.
3248 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3249 (debug_to_can_accel_watchpoint_condition): Likewise.
3250 (debug_to_stopped_data_address): Likewise.
3251 (debug_to_watchpoint_addr_within_range): Likewise.
3252 (debug_to_insert_hw_breakpoint): Likewise.
3253 (debug_to_remove_hw_breakpoint): Likewise.
3254 (debug_to_insert_watchpoint): Likewise.
3255 (debug_to_remove_watchpoint): Likewise.
3256
3257 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3258
3259 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3260 argument.
3261 (cplus_specific): New struct.
3262 * symtab.c (symbol_set_demangled_name): Updated.
3263 Use cplus_specific for cplus symbols.
3264 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3265 struct for cplus symbols.
3266 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3267 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3268 * symtab.c (symbol_init_cplus_specific): New function.
3269
3270 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3271
3272 * symtab.h (symbol_set_demangled_name): New function.
3273 (symbol_get_demangled_name): New function.
3274 * symtab.c (symbol_set_demangled_name): New function.
3275 (symbol_get_demangled_name): New function.
3276 (symbol_init_language_specific): Use demangled_name setter and getter.
3277 (symbol_set_names): Ditto.
3278 (symbol_natural_name): Ditto.
3279 (symbol_demangled_name): Ditto.
3280 * dwarf2read.c (new_symbol): Ditto.
3281
3282 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3283
3284 * symtab.h: Renamed cplus_specific to mangled_lang.
3285 * symtab.c (symbol_init_language_specific): Updated.
3286 (symbol_set_names): Updated.
3287 (symbol_natural_name): Updated.
3288 (symbol_demangled_name): Updated.
3289 * ada-lang.c (ada_decode_symbol): Updated.
3290 * dwarf2read.c (new_symbol): Updated.
3291
3292 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3293
3294 * valops.c (value_assign): Do not call to value_coerce_to_target.
3295 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3296
3297 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3298
3299 * MAINTAINERS: Add myself for write after approval privileges.
3300
3301 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3302
3303 * c-valprint.c (c_val_print): Add embedded_offset to address in
3304 call to val_print_array_elements.
3305
3306 2010-07-13 Tom Tromey <tromey@redhat.com>
3307
3308 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3309
3310 2010-07-13 Tom Tromey <tromey@redhat.com>
3311
3312 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3313 objfile.
3314
3315 2010-07-13 Tom Tromey <tromey@redhat.com>
3316
3317 * symfile.c (set_initial_language): Update.
3318 (deduce_language_from_filename): Argument type now const.
3319 * symtab.h (find_main_filename): Update.
3320 (deduce_language_from_filename): Update.
3321 * symtab.c (find_main_filename): Make result const.
3322 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3323 * psymtab.c (find_symbol_file_from_partial): Change return type.
3324 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3325 Make result const.
3326
3327 2010-07-13 Tom Tromey <tromey@redhat.com>
3328
3329 * breakpoint.c (save_cmdlist): No longer static.
3330 * gdbcmd.h (save_cmdlist): Declare.
3331 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3332 OBJF_READNOW on objfile if readnow_symbol_files.
3333 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3334 (elf_sym_fns_gdb_index): New global.
3335 * dwarf2read.c: Include exceptions.h.
3336 (offset_type): New.
3337 (struct mapped_index): New.
3338 (dwarf2_per_cu_data_ptr): New typedef.
3339 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3340 New fields.
3341 (GDB_INDEX_SECTION): New define.
3342 (struct dwarf2_per_cu_quick_data): New.
3343 (struct dwarf2_per_cu_data) <objfile>: New field.
3344 <psymtab>: Removed.
3345 <v>: New field.
3346 (byte_swap): New function.
3347 (MAYBE_SWAP): New macro.
3348 (INDEX_SUFFIX): New macro.
3349 (dw2_do_instantiate_symtab): New function.
3350 (dw2_instantiate_symtab): Likewise.
3351 (create_cus_from_index): Likewise.
3352 (create_addrmap_from_index): Likewise.
3353 (mapped_index_string_hash): Likewise.
3354 (find_slot_in_mapped_hash): Likewise.
3355 (dwarf2_read_index): Likewise.
3356 (dw2_setup): Likewise.
3357 (dw2_require_line_header): Likewise.
3358 (dw2_require_full_path): Likewise.
3359 (dw2_find_last_source_symtab): Likewise.
3360 (dw2_forget_cached_source_info): Likewise.
3361 (dw2_lookup_symtab): Likewise.
3362 (dw2_lookup_symbol): Likewise.
3363 (dw2_do_expand_symtabs_matching): Likewise.
3364 (dw2_pre_expand_symtabs_matching): Likewise.
3365 (dw2_print_stats): Likewise.
3366 (dw2_dump): Likewise.
3367 (dw2_relocate): Likewise.
3368 (dw2_expand_symtabs_for_function): Likewise.
3369 (dw2_expand_all_symtabs): Likewise.
3370 (dw2_expand_symtabs_with_filename): Likewise.
3371 (dw2_find_symbol_file): Likewise.
3372 (dw2_map_ada_symtabs): Likewise.
3373 (dw2_expand_symtabs_matching): Likewise.
3374 (dw2_find_pc_sect_symtab): Likewise.
3375 (dw2_map_symbol_names): Likewise.
3376 (dw2_map_symbol_filenames): Likewise.
3377 (dw2_has_symbols): Likewise.
3378 (dwarf2_gdb_index_functions): New global.
3379 (dwarf2_initialize_objfile): New function.
3380 (process_psymtab_comp_unit): Update.
3381 (add_partial_subprogram): Likewise.
3382 (dwarf2_psymtab_to_symtab): Likewise.
3383 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3384 (process_full_comp_unit): Update.
3385 (find_file_and_directory): New function.
3386 (read_file_scope): Use find_file_and_directory.
3387 (dwarf2_per_cu_objfile): Update.
3388 (dwarf2_per_cu_addr_size): Update.
3389 (dwarf2_per_cu_offset_size): Update.
3390 (dwarf2_free_objfile): Free the index, if needed.
3391 (dwarf2_per_objfile_free): Unmap the index, if needed.
3392 (struct strtab_entry): New.
3393 (hash_strtab_entry): New function.
3394 (eq_strtab_entry): Likewise.
3395 (create_strtab): Likewise.
3396 (add_string): Likewise.
3397 (struct symtab_index_entry): New.
3398 (struct mapped_symtab): New.
3399 (hash_symtab_entry): New function.
3400 (eq_symtab_entry): Likewise.
3401 (delete_symtab_entry): Likewise.
3402 (create_index_table): Likewise.
3403 (create_mapped_symtab): Likewise.
3404 (cleanup_mapped_symtab): Likewise.
3405 (find_slot): Likewise.
3406 (hash_expand): Likewise.
3407 (add_index_entry): Likewise.
3408 (add_indices_to_cpool): Likewise.
3409 (write_hash_table): Likewise.
3410 (add_address_entry): Likewise.
3411 (write_psymbols): Likewise.
3412 (write_obstack): Likewise.
3413 (unlink_if_set): Likewise.
3414 (write_psymtabs_to_index): Likewise.
3415 (save_gdb_index_command): Likewise.
3416 (_initialize_dwarf2_read): Install "save gdb-index"
3417 command.
3418 (create_all_comp_units): Initialize 'objfile' field of CU.
3419 (dwarf2_locate_sections): Check for .gdb_index.
3420 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3421 * symfile.h (dwarf2_initialize_objfile): Declare.
3422
3423 2010-07-13 Tom Tromey <tromey@redhat.com>
3424
3425 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3426 (basic_lookup_transparent_type): Likewise.
3427 * symfile.h (struct quick_symbol_functions)
3428 <pre_expand_symtabs_matching>: New field.
3429 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3430 (psym_functions): Update.
3431
3432 2010-07-13 Tom Tromey <tromey@redhat.com>
3433
3434 PR breakpoints/8357:
3435 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3436 * linespec.c (decode_line_1): Update comment. Call decode_label.
3437 (decode_label): New function.
3438 (symbol_found): Handle LOC_LABEL.
3439 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3440 domain. Call add_symbol_to_list.
3441
3442 2010-07-13 Tom Tromey <tromey@redhat.com>
3443
3444 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3445 * dwarf2loc.c (find_location_expression): Use
3446 dwarf2_per_cu_text_offset.
3447 (dwarf2_evaluate_loc_desc): Likewise.
3448 (dwarf2_loc_desc_needs_frame): Likewise.
3449 (compile_dwarf_to_ax): Likewise.
3450 (loclist_describe_location): Likewise.
3451 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3452 (dwarf2_per_cu_objfile): Update comment.
3453
3454 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3455
3456 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3457 * p-lang.c (pascal_printstr): Likewise.
3458
3459 2010-07-09 Tom Tromey <tromey@redhat.com>
3460
3461 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3462 'hint' if it is NULL.
3463
3464 2010-07-09 Hui Zhu <teawater@gmail.com>
3465
3466 * source.c (print_source_lines_base): Add check for noprint.
3467
3468 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3469
3470 * python/python-config.py: Resync with Python 2.7 version of this
3471 script.
3472
3473 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3474
3475 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3476
3477 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3478
3479 * NEWS: Create a new section for the next release branch.
3480 Rename the section of the current branch, now that it has
3481 been cut.
3482
3483 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3484
3485 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3486 * version.in: Bump version to 7.2.50.20100707-cvs.
3487
3488 2010-07-07 Tom Tromey <tromey@redhat.com>
3489
3490 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3491 LOC_COMPUTED symbol.
3492 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3493 (dwarf2_loc_desc_needs_frame): Likewise.
3494 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3495 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3496 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3497 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3498 'offset' argument.
3499 (struct dwarf2_frame_cache) <text_offset>: New field.
3500 (dwarf2_frame_cache): Set new field.
3501 (dwarf2_frame_prev_register): Update.
3502 (dwarf2_frame_sniffer): Update.
3503 (dwarf2_frame_base_sniffer): Update.
3504 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3505
3506 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3507 Thiago Jung Bauermann <bauerman@br.ibm.com>
3508
3509 Support for hw accelerated condition watchpoints in booke powerpc.
3510
3511 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3512 and move to eval.c. Change callers.
3513 (insert_bp_location): Pass watchpoint condition in
3514 target_insert_watchpoint.
3515 (remove_breakpoint_1) Pass watchpoint condition in
3516 target_remove_watchpoint.
3517 (watchpoint_locations_match): Call
3518 target_can_accel_watchpoint_condition.
3519 * eval.c: Include wrapper.h.
3520 (fetch_subexp_value): Moved from breakpoint.c.
3521 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3522 Formatting fix.
3523 (can_use_watchpoint_cond_accel): New function.
3524 (calculate_dvc): Likewise.
3525 (num_memory_accesses): Likewise.
3526 (check_condition): Likewise.
3527 (ppc_linux_can_accel_watchpoint_condition): Likewise
3528 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3529 check_condition and calculate_dvc.
3530 (ppc_linux_remove_watchpoint): Likewise.
3531 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3532 ppc_linux_can_accel_watchpoint_condition
3533 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3534 condition.
3535 (debug_to_remove_watchpoint): Likewise.
3536 (debug_to_can_accel_watchpoint_condition): New function.
3537 (update_current_target): Set to_can_accel_watchpoint_condition.
3538 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3539 * target.h: Add opaque declaration for struct expression.
3540 (struct target_ops) <to_insert_watchpoint>,
3541 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3542 <to_can_accel_watchpoint_condition>: New member.
3543 condition. Update all callers and implementations.
3544 (target_can_accel_watchpoint_condition): New macro.
3545 * value.c (free_value_chain): New function.
3546 * value.h (fetch_subexp_value): New prototype.
3547 (free_value_chain): Likewise.
3548
3549 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3550
3551 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3552 from gdbarch_core_regset_sections also for .reg if present.
3553
3554 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3555 section size for .reg.
3556 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3557 (ppc_linux_vmx_regset_sections): Likewise.
3558 (ppc_linux_fp_regset_sections): Likewise.
3559 (ppc64_linux_vsx_regset_sections): New variable.
3560 (ppc64_linux_vmx_regset_sections): Likewise.
3561 (ppc64_linux_fp_regset_sections): Likewise.
3562 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3563 for current word size.
3564
3565 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3566
3567 * server.c (myresume): Make static.
3568
3569 2010-07-06 Tom Tromey <tromey@redhat.com>
3570
3571 * configure, config.in: Rebuild.
3572 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3573 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3574
3575 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3576
3577 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3578 "clear".
3579
3580 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3581
3582 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3583 * gdbtypes.c (floatformats_ieee_half): New variable.
3584 * doublest.c (floatformat_from_length): Set format to
3585 gdbarch_half_format if length matches.
3586 * gdbarch.sh (half_bit): New architecture method.
3587 (half_format): Likewise.
3588 * gdbarch.h: Regenerate.
3589 * gdbarch.c: Likewise.
3590
3591 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3592 Joel Brobecker <brobecker@adacore.com>
3593
3594 Fix re-run of PIE executable, PR shlibs/11776.
3595 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3596 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3597
3598 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3599 Joel Brobecker <brobecker@adacore.com>
3600
3601 * auxv.c (memory_xfer_auxv): Update attach comment.
3602 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3603 svr4_relocate_main_executable.
3604 (svr4_solib_create_inferior_hook): Make the call to
3605 svr4_relocate_main_executable unconditional.
3606
3607 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3608 Joel Brobecker <brobecker@adacore.com>
3609
3610 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3611
3612 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3613 Joel Brobecker <brobecker@adacore.com>
3614
3615 Fix attaching to PIEs prelinked on the disk after the process was
3616 started.
3617 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3618 Verify it against bfd_get_arch_size. Try to match arbitrary
3619 displacement for the phdrs comparison.
3620
3621 2010-07-02 Tom Tromey <tromey@redhat.com>
3622
3623 PR exp/11780:
3624 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3625 value as optimized-out.
3626
3627 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3628 Thiago Jung Bauermann <bauerman@br.ibm.com>
3629
3630 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3631 represent?" question in comment. Change comment to a proper sentence.
3632
3633 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3634
3635 * c-valprint.c (c_val_print): Fix printing of character vectors.
3636
3637 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3638
3639 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3640 create_breakpoint prototype.
3641
3642 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3643
3644 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3645 usefulness suggestion of multiple breakpoints at same location.
3646
3647 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3648
3649 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3650
3651 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3652
3653 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3654 (loclist_tracepoint_var_ref): Handle optimized out values.
3655
3656 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3657
3658 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3659 unnecessary space in string.
3660 * filesystem.c (_initialize_filesystem): Ditto.
3661 * frame.c (_initialize_frame): Ditto.
3662 * infcmd.c (step_once): Ditto.
3663 * infrun.c (_initialize_infrun): Ditto.
3664 * linux-nat.c (linux_child_follow_fork): Ditto.
3665 * maint.c (maintenance_deprecate): Ditto.
3666 * memattr.c (_initialize_mem): Ditto.
3667 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3668 * monitor.c (monitor_open): Ditto.
3669 * procfs.c (procfs_xfer_memory): Ditto.
3670 * reverse.c (bookmarks_info): Ditto.
3671 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3672 * stack.c (_initialize_stack): Ditto.
3673 * tracepoint.c (_initialize_tracepoint): Ditto.
3674 * xtensa-tdep.c (xtensa_supply_gregset,
3675 xtensa_regset_from_core_section): Ditto.
3676
3677 2010-07-01 Tom Tromey <tromey@redhat.com>
3678
3679 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3680 check_all_valid.
3681 * value.c (value_entirely_optimized_out): Invert result. Update
3682 for new function name.
3683
3684 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3685
3686 Static tracepoints support.
3687
3688 * NEWS: Mention new support for static tracepoints.
3689 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3690 qXfer:statictrace:read.
3691 (New features in the GDB remote stub, GDBserver): Mention static
3692 tracepoints support using an UST based backend.
3693 (New commands): Mention "info static-tracepoint-markers" and
3694 "strace".
3695 * breakpoint.c (is_marker_spec): New.
3696 (is_tracepoint): Handle static tracepoints.
3697 (validate_commands_for_breakpoint): Static tracepoints can't do
3698 while-stepping.
3699 (static_tracepoints_here): New.
3700 (bpstat_what): Handle static tracepoints.
3701 (print_one_breakpoint_location, allocate_bp_location, mention):
3702 Ditto.
3703 (create_breakpoint_sal): Ditto.
3704 (decode_static_tracepoint_spec): New.
3705 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3706 `type_wanted'. Adjust. Handle static tracepoint marker
3707 locations.
3708 (break_command_1): Adjust.
3709 (update_static_tracepoint): New.
3710 (update_breakpoint_locations): Handle static tracepoints.
3711 (breakpoint_re_set_one): Handle static tracepoint marker
3712 locations.
3713 (disable_command, enable_command): Handle static tracepoints.
3714 (trace_command, ftrace_command): Adjust.
3715 (strace_command): New.
3716 (create_tracepoint_from_upload): Adjust.
3717 (save_breakpoints): Handle static tracepoints.
3718 (_initialize_breakpoint): Install the "strace" command.
3719 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3720 (struct breakpoint): New fields static_trace_marker_id and
3721 static_trace_marker_id_idx.
3722 (breakpoints_here_p): Declare.
3723 (create_breakpoint): Adjust.
3724 (static_tracepoints_here): Declare.
3725 * remote.c (struct remote_state) <static_tracepoints>: New field.
3726 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3727 (remote_static_tracepoint_marker_at): New.
3728 (remote_static_tracepoint_markers_by_strid): New.
3729 (remote_static_tracepoint_feature): New.
3730 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3731 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3732 (remote_supports_static_tracepoints): New.
3733 (remote_download_tracepoint): Download static tracepoints.
3734 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3735 remote_static_tracepoint_markers_by_strid.
3736 (_initialize_remote): Install set|show remote static-tracepoints,
3737 and set|show remote read-sdata-object commands.
3738 * target.c (update_current_target): Inherit and default
3739 to_static_tracepoint_marker_at, and
3740 to_static_tracepoint_markers_by_strid.
3741 * target.h (static_tracepoint_marker): Forward declare.
3742 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3743 (static_tracepoint_marker_p): New typedef.
3744 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3745 (struct target_ops): New fields to_static_tracepoint_marker_at and
3746 to_static_tracepoint_markers_by_strid.
3747 (target_static_tracepoint_marker_at)
3748 (target_static_tracepoint_markers_by_strid): New.
3749 * tracepoint.c: Include source.h.
3750 (validate_actionline): Handle $_sdata.
3751 (struct collection_list): New field strace_data.
3752 (add_static_trace_data): New.
3753 (clear_collection_list): Clear strace_data.
3754 (stringify_collection_list): Account for a possible static trace
3755 data collection.
3756 (encode_actions_1): Encode an $_sdata collection.
3757 (parse_tracepoint_definition): Handle static tracepoints.
3758 (parse_static_tracepoint_marker_definition): New.
3759 (release_static_tracepoint_marker): New.
3760 (print_one_static_tracepoint_marker): New.
3761 (info_static_tracepoint_markers_command): New.
3762 (sdata_make_value): New.
3763 (_initialize_tracepoint): Create the $_sdata convenience variable.
3764 Add the "info static-tracepoint-markers" command.
3765 Mention $_sdata in the "collect" command's help output.
3766 * tracepoint.h (struct static_tracepoint_marker): New.
3767 (parse_static_tracepoint_marker_definition)
3768 (release_static_tracepoint_marker): Declare.
3769 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3770 * python/py-breakpoint.c (bppy_new): Adjust.
3771
3772 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3773
3774 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3775 including Python.h.
3776
3777 2010-06-29 Doug Evans <dje@google.com>
3778
3779 PR gdb/11702
3780 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3781 DW_AT_external is present.
3782
3783 PR gdb/11702
3784 * NEWS: Add entry.
3785 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3786 create a symbol for the field and record the value.
3787 (new_symbol): Handle DW_TAG_member.
3788 * gdbtypes.c (field_is_static): Remove FIXME.
3789 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3790 only ignore LOC_CONST symbols that are enums.
3791
3792 * dwarf2read.c: Remove trailing whitespace.
3793
3794 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3795 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3796 (struct main_type, field loc): Delete dwarf_block.
3797 (FIELD_DWARF_BLOCK): Delete.
3798 (SET_FIELD_DWARF_BLOCK): Delete.
3799 (TYPE_FIELD_DWARF_BLOCK): Delete.
3800 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3801 Update.
3802
3803 2010-06-29 Hui Zhu <teawater@gmail.com>
3804
3805 * record.c (set_record_pic_cmdlist,
3806 show_record_pic_cmdlist): New variables.
3807 (set_record_pic_command,
3808 show_record_pic_command): New functions.
3809 (record_pic_function, record_pic_line, record_pic_enum,
3810 set_record_pic_type, record_pic_hide_nofunction,
3811 record_pic_hide_nosource, record_pic_hide_same): New variables.
3812 (record_pic_fputs): New function.
3813 (function_list, node_list, edge_list): New struct.
3814 (function_list, node_list, edge_list): New variables.
3815 (record_pic_cleanups, record_pic_node,
3816 record_pic_edge, cmd_record_pic): New functions.
3817 (_initialize_record): Add new commands for record pic.
3818
3819 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3820
3821 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3822 ALLOCATE_CPLUS_STRUCT_TYPE.
3823
3824 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3825 Tom Tromey <tromey@redhat.com>
3826 Thiago Jung Bauermann <bauerman@br.ibm.com>
3827
3828 * value.c (pack_unsigned_long): New function.
3829 (value_from_ulongest): New function.
3830 * value.h (value_from_ulongest): Declare.
3831 * python/python.c (_initialize_python): Call
3832 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3833 * python/python-internal.h: Define thread_object.
3834 (gdbpy_inferiors, gdbpy_selected_thread)
3835 (frame_info_to_frame_object, create_thread_object)
3836 (find_thread_object, find_inferior_object)
3837 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3838 (gdbpy_is_value_object, get_addr_from_python): Declare.
3839 * python/py-value.c (builtin_type_upylong): Define.
3840 (convert_value_from_python): Add logic for ulongest.
3841 (gdbpy_is_value_object): New function.
3842 * python/py-utils.c (get_addr_from_python): New function.
3843 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3844 (gdbpy_selected_frame): Use PyObject over frame_info.
3845 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3846 py-infthread.
3847 (SUBDIR_PYTHON_SRCS): Likewise.
3848 (py-inferior.o): New Rule.
3849 (py-infthread.o): New Rule.
3850 * python/py-inferior.c: New File.
3851 * python/py-infthread.c: New File.
3852
3853 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3854
3855 * c-typeprint.c (c_type_print_base): For no fields check include also
3856 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3857 * dwarf2read.c (struct typedef_field_list)
3858 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3859 (dwarf2_add_typedef): New.
3860 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3861 Copy also FI.TYPEDEF_FIELD_LIST.
3862 * gdbtypes.h (struct typedef_field)
3863 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3864 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3865 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3866
3867 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3868
3869 * cp-namespace.c (cp_lookup_nested_type): New variable
3870 concatenated_name. Turn the current return condition into a reverse
3871 one. Call also lookup_static_symbol_aux on the constructed qualified
3872 name.
3873 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3874 other files into a called ...
3875 (lookup_static_symbol_aux): ... new function here.
3876 * symtab.h (lookup_static_symbol_aux): New prototype.
3877 * valops.c (value_maybe_namespace_elt): Call also
3878 lookup_static_symbol_aux if we failed otherwise.
3879
3880 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3881
3882 Fix PR c++/11703 and PR gdb/1448.
3883 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3884 FIRST_ITER check.
3885
3886 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3887
3888 Fix modification of cplus_struct_default.
3889 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3890 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3891 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3892
3893 2010-06-28 Joel Brobecker <brobecker@adacore.com>
3894
3895 * NEWS: Add entry announcing the python directory.
3896
3897 2010-06-28 Tom Tromey <tromey@redhat.com>
3898
3899 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3900
3901 2010-06-28 Doug Evans <dje@google.com>
3902
3903 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3904 All callers updated.
3905
3906 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3907
3908 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3909 obstack_begin after each obstack_free.
3910
3911 2010-06-27 Doug Evans <dje@google.com>
3912
3913 * value.c (value_static_field): Use `switch' instead of `if'.
3914 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3915
3916 * valops.c (search_struct_field): Fix typo in error message.
3917
3918 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3919
3920 * dwarf2expr.c (execute_stack_op): Place preprocessor
3921 directives at the start of the source line.
3922
3923 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3924
3925 * defs.h (make_command_stats_cleanup): Declare.
3926 (set_display_time): Declare.
3927 (set_display_space): Declare.
3928 * event-top.c (command_handler): Use make_command_stats_cleanup.
3929 * main.c (display_time, display_space): Move definitions to utils.c.
3930 (captured_main): Use make_command_stats_cleanup to get start-up
3931 statistics.
3932 Use set_display_time and set_display_space for processing OPT_STATISTICS
3933 case.
3934 * maint.c (maintenance_time_display): Use set_display_time.
3935 (maintenance_space_display): Use set_display_space.
3936 * top.c (execute_command): Remove obsolete 'maint time' code.
3937 (command_loop): Use make_command_stats_cleanup.
3938 * utils.c (struct cmd_stats): Structure for storing initial time
3939 and space usage.
3940 (display_time, display_space): Move definitions here from utils.c.
3941 (set_display_time): New function.
3942 (set_display_space): New function.
3943 (make_command_stats_cleanup): New function.
3944 (report_command_stats): New auxiliary function for
3945 make_command_stats_cleanup.
3946
3947 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3948
3949 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3950 hosts where CORE_ADDR is long long.
3951
3952 2010-06-25 Tom Tromey <tromey@redhat.com>
3953
3954 PR python/10808:
3955 * python/python.c (execute_gdb_command): Add keywords. Accept
3956 "to_string" argument.
3957 (struct restore_ui_file_closure): New.
3958 (restore_ui_file): New function.
3959 (make_cleanup_restore_ui_file): Likewise.
3960 (GdbMethods) <execute>: Update.
3961
3962 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3963
3964 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3965 during inferior call stack frame setup.
3966
3967 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
3968
3969 * solib-spu.c: Include "exception.h".
3970 (ocl_program_data_key): New variable.
3971 (append_ocl_sos): New function.
3972 (ocl_enable_break): Likewise.
3973 (spu_current_sos): Call append_ocl_sos.
3974 (spu_solib_loaded): Call ocl_enable_break.
3975 (_initialize_spu_solib): Register ocl_program_data_key.
3976
3977 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3978
3979 * cp-support.c (reset_directive_searched): New function.
3980 (make_symbol_overload_list_using): Prevent recursive calls.
3981
3982 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3983
3984 * printcmd.c (print_variable_and_value): Print error message on
3985 caught exception.
3986
3987 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3988
3989 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3990 of stack values.
3991 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3992 "value" member.
3993 (dwarf_expr_push): Change input type to ULONGEST.
3994 (dwarf_expr_fetch): Change return type to ULONGEST.
3995 (dwarf_expr_fetch_address): Add prototype.
3996 (dwarf2_read_address): Remove prototype.
3997 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3998 Truncate stack values to ctx->addr_size bytes.
3999 (dwarf_expr_fetch): Change return value to ULONGEST.
4000 (dwarf_expr_fetch_address): New function.
4001 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4002 when appropriate. Update for struct dwarf_expr_piece changes.
4003 (dwarf2_read_address): Remove.
4004 (unsigned_address_type): Remove.
4005 (signed_address_type): Remove.
4006 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4007 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4008 values. Perform operations on ULONGEST instead of on GDB values,
4009 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4010 values and DW_OP_deref results as unsigned integers.
4011 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4012 changes.
4013 (write_pieced_value): Likewise.
4014 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4015 dwarf_expr_fetch when appropriate.
4016 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4017 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4018 instead of dwarf_expr_fetch when appropriate.
4019
4020 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4021
4022 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4023
4024 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4025
4026 * python/python.c (_initialize_python): Add new "constant"
4027 PYTHONDIR in gdb module. Insert this path at the head of
4028 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4029 exec its __init__.py script if it exists in that directory.
4030
4031 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4032
4033 * rx-tdep.c (RX_ACC_REGNUM): Define.
4034 (RX_NUM_REGS): Redefine to 26.
4035 (rx_register_name): Add register "acc". Change order of several
4036 registers. Change name of "vct" register to "fintv" to match RX
4037 documentation.
4038 (rx_register_type): Add case for RX_ACC_REGNUM.
4039
4040 2010-06-24 Tom Tromey <tromey@redhat.com>
4041
4042 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4043
4044 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4045 Tom Tromey <tromey@redhat.com>
4046
4047 Fix GDB startup on readonly filesystem.
4048 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4049
4050 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4051 Pedro Alves <pedro@codesourcery.com>
4052
4053 Fix PR 9436.
4054 * breakpoint.c (handle_jit_event): New function.
4055 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4056 jit, err, table and bs_class. New variables shlib_event, jit_event,
4057 this_action and bptype. Change bs_class assignments to this_action
4058 assignments. new unhandled bptype internal error. Move here
4059 shlib_event and jit_event handling from handle_inferior_event.
4060 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4061 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4062 BPSTAT_WHAT_CHECK_JIT.
4063 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4064 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4065 (handle_inferior_event): Reinitialize frame and gdbarch after
4066 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4067 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4068 gdbarch when frame gets reinitialized.
4069
4070 2010-06-24 Hui Zhu <teawater@gmail.com>
4071
4072 * printcmd.c (ui_printf): New function.
4073 (printf_command): Call ui_printf.
4074 (_initialize_printcmd): New command "eval".
4075
4076 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4077
4078 * infrun.c (handle_inferior_event): Handle presence of single-step
4079 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4080 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4081 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4082 * breakpoint.c (detach_single_step_breakpoints): New function.
4083 (detach_breakpoints): Call it.
4084 (cancel_single_step_breakpoints): New function.
4085 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4086
4087 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4088 (spu_gdbarch_init): Install it.
4089
4090 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4091
4092 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4093 * configure: Regenerate.
4094
4095 2010-06-22 Hui Zhu <teawater@gmail.com>
4096
4097 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4098 (i386_process_record): Ditto.
4099 * record.c (record_memory_query): New variable.
4100 (_initialize_record): New command "set record memory-query".
4101 * record.h (record_memory_query): New extern.
4102
4103 2010-06-21 Doug Evans <dje@google.com>
4104
4105 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4106 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4107 (i386_syscall_p): Change type of lengthp to int.
4108 (i386_displaced_step_fixup): Handle kernels that run one past a
4109 syscall insn.
4110 * i386-linux-tdep.c (i386_linux_init_abi): Use
4111 i386_displaced_step_copy_insn instead of
4112 simple_displaced_step_copy_insn.
4113
4114 2010-06-21 Tom Tromey <tromey@redhat.com>
4115
4116 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4117 (dwarf_type_encoding_name): Likewise.
4118
4119 2010-06-21 Tom Tromey <tromey@redhat.com>
4120
4121 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4122 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4123 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4124 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4125 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4126 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4127 * dwarf2read.c (tag_type_to_type): Create a new error type on
4128 failure.
4129 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4130 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4131
4132 2010-06-21 Michael Snyder <msnyder@vmware.com>
4133
4134 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4135 not add_abbrev_prefix_cmd, for "enable breakpoints".
4136
4137 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4138
4139 * dwarf2loc.c (find_location_expression): Add relocation offset
4140 to base-address-selection entry base addresses. Read addresses
4141 (and offsets) as signed/unsigned integers, depending on the
4142 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4143 (loclist_describe_location): Likewise.
4144 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4145 unsigned integer. Do not call dwarf2_read_address.
4146 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4147
4148 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4149
4150 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4151 value instead of hard-coded SPU_LS_SIZE.
4152 (spu_software_single_step): Likewise.
4153 * spu-tdep.h (SPU_LS_SIZE): Remove.
4154
4155 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4156
4157 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4158 limit on local store memory accesses.
4159 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4160 * spu-tdep.c (spu_lslr): Remove.
4161 (spu_pointer_to_address): Do not truncate addresses.
4162 (spu_integer_to_address): Likewise.
4163 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4164 * spu-tdep.h: Add comments.
4165 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4166 (SPU_OVERLAY_LMA): Define.
4167
4168 2010-06-18 Stan Shebs <stan@codesourcery.com>
4169
4170 * osdata.c (get_osdata): Warn separately if target does not report
4171 type list.
4172 (info_osdata_command): Allow empty type, report error if target
4173 does not return available types of OS data.
4174 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4175 types if no annex supplied.
4176
4177 * thread.c (thread_id_make_value): Make a value representing the
4178 current thread.
4179 (_initialize_thread): Create $_thread.
4180
4181 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4182
4183 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4184 last local variable declaration. No real code change.
4185
4186 2010-06-17 Tom Tromey <tromey@redhat.com>
4187
4188 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4189 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4190 temporary obstack.
4191
4192 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4193 Jan Kratochvil <jan.kratochvil@redhat.com>
4194
4195 * breakpoint.c: Include parser-defs.h.
4196 (watchpoint_exp_is_const): New function.
4197 (watch_command_1): Call watchpoint_exp_is_const to check
4198 if the expression is constant.
4199
4200 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4201
4202 * configure.ac: Check for RDYNAMIC also for cross builds.
4203 * configure: Regenerate.
4204
4205 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4206
4207 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4208 (SFILES): Remove solib-null.c, add solib-target.c.
4209 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4210 (ALLDEPFILES): Remove solib-target.c.
4211 * solib-target.c (_initialize_solib_target): Set
4212 current_target_so_ops to solib_target_so_ops if not already set.
4213 * solib-null.c: Delete.
4214
4215 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4216
4217 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4218 bytecode.
4219
4220 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4221
4222 * cp-valprint.c (cp_print_static_field): Members of
4223 dont_print_stat_array_obstack are of type "struct type *".
4224 (_initialize_cp_valprint): Likewise.
4225
4226 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4227
4228 * frame.c (frame_register_unwind): Do not access contents
4229 of "optimized out" unwound register value.
4230
4231 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4232
4233 * ada-lang.h (ada_print_type): Make varstring const.
4234 * ada-typeprint.c (print_func_type): Make name const.
4235 (ada_print_type): Make varstring const.
4236 * c-lang.h (c_print_type): Make varstring const.
4237 * c-typeprint.c (c_print_type): Likewise.
4238 * f-lang.h (f_print_type): Likewise.
4239 * f-typeprint.c (f_print_type): Likewise.
4240 * jv-lang.h (java_print_type): Likewise.
4241 * jv-typeprint.c (java_print_type): Likewise.
4242 * language.c (unk_lang_print_type): Likewise.
4243 * language.h (struct language_defn) <la_print_type>: Likewise.
4244 * m2-lang.h (m2_print_type): Likewise.
4245 * m2-typeprint.c (m2_print_type): Likewise.
4246 * p-lang.h (pascal_print_type): Likewise.
4247 * p-typeprint.c (pascal_print_type): Likewise.
4248
4249 2010-06-11 Stan Shebs <stan@codesourcery.com>
4250
4251 Add per-operation permission flags.
4252
4253 * target.h (struct target_ops): New method to_set_permissions.
4254 (target_set_permissions): New macro.
4255 (target_insert_breakpoint): Change macro to function.
4256 (target_remove_breakpoint): Ditto.
4257 (target_stop): Ditto.
4258 (may_write_registers): Declare.
4259 (may_write_memory): Declare.
4260 (may_insert_breakpoints): Declare.
4261 (may_insert_tracepoints): Declare.
4262 (may_insert_fast_tracepoints): Declare.
4263 (may_stop): Declare.
4264 * target.c (may_write_registers, may_write_registers_1): New globals.
4265 (may_write_memory, may_write_memory_1): New globals.
4266 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4267 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4268 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4269 globals.
4270 (may_stop, may_stop_1): New global.
4271 (target_xfer_partial): Test for write permission.
4272 (target_store_registers): Ditto.
4273 (target_insert_breakpoint): New function.
4274 (target_remove_breakpoint): New function.
4275 (target_stop): New function.
4276 (_initialize_targets): Add new set/show variables.
4277 (set_write_memory_permission): New function.
4278 (update_target_permissions): New function.
4279 (set_target_permissions): New function.
4280 (update_current_target): Default to_set_permissions.
4281 (_initialize_targets): Use new globals and setter function.
4282 * tracepoint.c (start_tracing): Test for permission.
4283 * inferior.h (update_observer_mode): Declare.
4284 * infrun.c (non_stop_1): Define earlier.
4285 (observer_mode, observer_mode_1): New globals.
4286 (set_observer_mode, show_observer_mode): New functions.
4287 (update_observer_mode): New function.
4288 (_initialize_infrun): Define "set observer" command.
4289 * remote.c (PACKET_QAllow): New optional packet.
4290 (remote_protocol_features): Add QAllow.
4291 (remote_set_permissions): New function.
4292 (remote_start_remote): Call it.
4293 (init_remote_ops): Add it to target vector.
4294 (_initialize_remote): Add config command for QAllow.
4295
4296 2010-06-11 Tom Tromey <tromey@redhat.com>
4297
4298 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4299 DW_AT_vtable_elem_location even when GCC extension is seen.
4300
4301 2010-06-11 Tom Tromey <tromey@redhat.com>
4302
4303 PR gdb/9977, PR exp/11636:
4304 * value.h (value_offset): Update.
4305 (struct lval_funcs) <check_validity>: New field.
4306 <copy_closure>: Make argument const.
4307 (value_computed_closure): Update.
4308 (value_contents_for_printing): Declare.
4309 (value_bits_valid): Likewise.
4310 (val_print): Likewise.
4311 (set_value_component_location): Update.
4312 (value_entirely_optimized_out): Declare.
4313 * value.c (value_offset): Argument now const.
4314 (require_not_optimized_out): New function.
4315 (value_contents_for_printing): New function.
4316 (value_contents_all): Call require_not_optimized_out.
4317 (value_contents): Likewise.
4318 (value_bits_valid): New function.
4319 (value_computed_closure): Argument now const.
4320 (set_value_component_location): Make 'whole' argument const.
4321 (value_entirely_optimized_out): New function.
4322 (value_bitsize): Argument now 'const'.
4323 (value_bitpos): Likewise.
4324 (value_type): Likewise.
4325 * valprint.h (val_print_array_elements): Update.
4326 * valprint.c (val_print): Add 'val' argument. Use
4327 valprint_check_validity.
4328 (valprint_check_validity): New function.
4329 (value_check_printable): Use value_entirely_optimized_out.
4330 (common_val_print): Update.
4331 (value_print): Likewise.
4332 (val_print_array_elements): Add 'val' argument.
4333 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4334 value_bits_valid. Reinit frame cache for lval_computed.
4335 * sh64-tdep.c (sh64_do_register): Update.
4336 * scm-valprint.c (scm_val_print): Add 'val' argument.
4337 * scm-lang.h (scm_val_print): Update.
4338 * python/python.h (apply_val_pretty_printer): Update.
4339 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4340 argument. Call set_value_component_location.
4341 * printcmd.c (print_scalar_formatted): Update.
4342 * p-valprint.c (pascal_val_print): Add 'val' argument.
4343 (pascal_object_print_value_fields): Likewise.
4344 (pascal_object_print_value): Likewise.
4345 (pascal_object_print_static_field): Update.
4346 * p-lang.h (pascal_val_print): Update.
4347 (pascal_object_print_value_fields): Update.
4348 * mt-tdep.c (mt_registers_info): Update.
4349 * mi/mi-main.c (get_register): Update.
4350 (mi_cmd_data_evaluate_expression): Use common_val_print.
4351 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4352 (m2_print_unbounded_array): Likewise.
4353 (m2_val_print): Likewise.
4354 * m2-lang.h (m2_val_print): Update.
4355 * language.h (struct language_defn) <la_val_print>: Add 'val'
4356 argument.
4357 (LA_VAL_PRINT): Likewise.
4358 * language.c (unk_lang_val_print): Add 'val' argument.
4359 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4360 (java_val_print): Likewise.
4361 * jv-lang.h (java_val_print): Add 'val' argument.
4362 * infcmd.c (default_print_registers_info): Update.
4363 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4364 (f77_print_array): Likewise.
4365 (f_val_print): Likewise.
4366 * f-lang.h (f_val_print): Add 'val' argument.
4367 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4368 value_bitpos.
4369 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4370 set_value_optimized_out.
4371 (write_pieced_value): Use value_bitsize and value_bitpos.
4372 <default>: Don't exit loop.
4373 (check_pieced_value_validity): New function.
4374 (pieced_value_funcs): Reference check_pieced_value_validity,
4375 check_pieced_value_invalid.
4376 (copy_pieced_value_closure): Update.
4377 (check_pieced_value_bits): New function.
4378 (check_pieced_value_invalid): New function.
4379 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4380 (d_val_print): Likewise.
4381 * d-lang.h (d_val_print): Update.
4382 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4383 (cp_print_value_fields_rtti): Likewise.
4384 (cp_print_value): Likewise.
4385 (cp_print_static_field): Update.
4386 * c-valprint.c (c_val_print): Add 'val' argument.
4387 (c_value_print): Update.
4388 * c-lang.h (c_val_print): Update.
4389 (cp_print_value_fields): Likewise.
4390 (cp_print_value_fields_rtti): Likewise.
4391 * ada-valprint.c (struct ada_val_print_args): Remove.
4392 (val_print_packed_array_elements): Add 'val' argument.
4393 (ada_val_print): Likewise. Rewrite.
4394 (ada_val_print_stub): Remove.
4395 (ada_val_print_array): Add 'val' argument.
4396 (ada_val_print_1): Likewise.
4397 (print_variant_part): Likewise.
4398 (ada_value_print): Update.
4399 (print_record): Add 'val' argument.
4400 (print_field_values): Likewise.
4401 * ada-lang.h (ada_val_print): Update.
4402
4403 2010-06-11 Tom Tromey <tromey@redhat.com>
4404
4405 * vec.h (VEC_cleanup): New macro.
4406 (DEF_VEC_ALLOC_FUNC_I): Update.
4407 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4408 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4409 * dwarf2loc.c (struct axs_var_loc): Remove.
4410 (unimplemented): New function.
4411 (translate_register): Likewise.
4412 (access_memory): Likewise.
4413 (compile_dwarf_to_ax): Likewise.
4414 (dwarf2_tracepoint_var_loc): Remove.
4415 (dwarf2_tracepoint_var_access): Likewise.
4416 (dwarf2_tracepoint_var_ref): Likewise.
4417 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4418 (loclist_tracepoint_var_ref): Likewise.
4419 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4420 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4421 require_composition. No longer static.
4422 (execute_stack_op): Update.
4423 * ax-gdb.h (trace_kludge): Declare.
4424
4425 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4426
4427 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4428 (should_be_inserted): Return zero also on NULL OWNER.
4429 (breakpoint_program_space_exit): New OWNER comment.
4430 (insert_breakpoint_locations): Extend comment for OWNER.
4431 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4432 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4433 New OWNER comment.
4434 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4435 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4436 (bpstat_check_location): New assert on OWNER.
4437 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4438 and B initializations to the code block. New assert on them.
4439 (print_one_breakpoint_location): New OWNER comment.
4440 (watchpoint_locations_match): Assert on OWNER.
4441 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4442 initializations to the code block. New assert on OWNER.
4443 (set_breakpoint_location_function): New assert on OWNER.
4444 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4445 (bp_location_compare, update_global_location_list)
4446 (update_global_location_list): New OWNER comment.
4447
4448 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4449
4450 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4451
4452 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4453
4454 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4455 (lin_thread_get_thread_signals): Remove prototype.
4456 (GET_THREAD_SIGNALS): Remove.
4457 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4458 * linux-thread-db.c (check_thread_signals): Directly call
4459 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4460
4461 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4462
4463 * gregset.h (GDB_FPXREGSET_T): Remove.
4464 (gdb_fpxregset_t): Likewise.
4465 (supply_fpxregset): Remove prototype.
4466 (fill_fpxregset): Likewise.
4467 * i386-linux-nat.c (supply_fpxregset): Remove.
4468 (fill_fpxregset): Likewise.
4469 (fetch_fpxregs): Inline supply_fpxregset call.
4470 (store_fpxregs): Inline fill_fpxregset call.
4471
4472 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4473 * config/i386/nm-linux.h: Remove file.
4474
4475 2010-06-09 Michael Snyder <msnyder@vmware.com>
4476
4477 * target.c (update_current_target): Fix spelling error in comment.
4478 (target_mourn_inferior): Fix spelling error in error message.
4479
4480 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4481
4482 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4483 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4484
4485 2010-06-08 Michael Snyder <msnyder@vmware.com>
4486
4487 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4488
4489 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4490
4491 * configure.ac <"${have_libpython}" != no>: New workaround of
4492 python#4434.
4493 * configure: Regenerate.
4494
4495 2010-06-08 Hui Zhu <teawater@gmail.com>
4496
4497 * record.c (record_wait): Move signal out of replay code.
4498
4499 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4500
4501 Fix PR 10640.
4502 * dwarf2-frame.c (no_dwarf_call): New function.
4503 (execute_stack_op): Set CTX->DWARF_CALL.
4504 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4505 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4506 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4507 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4508 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4509 (needs_frame_dwarf_call): New function.
4510 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4511 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4512 Update the comment. Move variables die, offset and error call to ...
4513 (follow_die_ref): ... a new function.
4514 (dwarf2_fetch_die_location_block): New function.
4515 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4516
4517 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4518
4519 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4520 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4521 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4522 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4523 this change.
4524 (struct needs_frame_baton): New field per_cu.
4525 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4526 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4527
4528 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4529
4530 * cp-support.c (make_symbol_overload_list_namespace): Only search
4531 static and global blocks.
4532 (make_symbol_overload_list_block): New function.
4533 (make_symbol_overload_list): Separate namespace search from block
4534 search.
4535 (make_symbol_overload_list_qualified): Use
4536 make_symbol_overload_list_block.
4537
4538 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4539
4540 * value.h: Created oload_search_type enum.
4541 (find_overload_match): Use oload_search_type enum.
4542 * valops.c (find_overload_match): Support combined member and
4543 non-member search.
4544 * eval.c (evaluate_subexp_standard): Calls to
4545 find_overload_match now use oload_search_type enum.
4546 (oload_method_static): Verify index is a proper value.
4547 * valarith.c (value_user_defined_cpp_op): Search for and handle
4548 both member and non-member operators.
4549 (value_user_defined_cpp_op): New function.
4550 (value_user_defined_op): New function.
4551 (value_x_unop): Use value_user_defined_op.
4552 (value_x_binop): Ditto.
4553 * cp-support.c (make_symbol_overload_list_using): Added block
4554 iteration.
4555 Add check for namespace aliases and imported declarations.
4556
4557 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4558
4559 * breakpoint.h (owner): Extend the comment.
4560
4561 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4562
4563 Clear stale specific bp_location from former whole breakpoint.
4564 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4565 code ...
4566 (free_bp_location): ... here. Rename there the called function to
4567 bpstat_remove_bp_location_callback.
4568 (bpstat_remove_breakpoint_callback): Rename to ...
4569 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4570 to struct bp_location. Change the called function to
4571 bpstat_remove_bp_location. Create new declaration for the function.
4572 (bpstat_remove_breakpoint): Rename to ...
4573 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4574 code for the new parameter type.
4575
4576 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4577
4578 * README: Make version-agnostic.
4579
4580 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4581
4582 Fix duplicate types for single DIE.
4583 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4584 set_die_type.
4585 (read_array_type): Remove type initialization. Recheck get_die_type
4586 after initial die_type. Move set_die_type before set_descriptive_type.
4587 (read_set_type): New variable domain_type. Recheck get_die_type after
4588 initial die_type. Move attr initialization later.
4589 (read_tag_pointer_type, read_tag_reference_type): New variable
4590 target_type. Recheck get_die_type after initial die_type.
4591 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4592 die_type and die_containing_type.
4593 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4594 Recheck get_die_type after initial die_type.
4595 (read_subrange_type): Recheck get_die_type after initial die_type.
4596 Move set_die_type before set_descriptive_type.
4597 (set_die_type): Extend the function comment. Call complaint if DIE has
4598 some type already set.
4599
4600 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4601
4602 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4603 for current naming of thread groups (iN, not N).
4604
4605 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4606
4607 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4608 * parse.c (operator_length): Likewise.
4609 (operator_length_standard): Likewise.
4610 * parser-defs.h (operator_length): Likewise.
4611 (operator_length_standard): Likewise.
4612 (struct exp_descriptor <operator_length>): Likewise.
4613
4614 2010-06-04 Doug Evans <dje@google.com>
4615
4616 Add support for enabling/disabling individual pretty-printers.
4617 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4618 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4619 * python/python.c (gdbpy_enabled_cst): Define.
4620 (_initialize_python): Initialize gdbpy_enabled_cst.
4621 * NEWS: Add entry.
4622
4623 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4624
4625 * breakpoint.c (update_global_location_list): Fix comment typo.
4626
4627 2010-06-04 Hui Zhu <teawater@gmail.com>
4628
4629 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4630
4631 2010-06-03 Doug Evans <dje@google.com>
4632
4633 * configure.ac: Don't fail if python is unusable when
4634 configured with --with-python=auto.
4635 * configure: Regenerate.
4636
4637 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4638
4639 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4640
4641 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4642
4643 * valprint.h (get_array_bounds): Change low and high parameter types
4644 to LONGEST *.
4645 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4646 compute bounds.
4647 (val_print_array_elements): Adapt to change above.
4648 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4649 * p-valprint.c (pascal_val_print): Likewise.
4650
4651 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4652
4653 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4654 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4655 .F08.
4656
4657 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4658
4659 Support DW_TAG_module as separate namespaces.
4660 * dwarf2read.c (typename_concat): New parameter physname.
4661 (read_module_type): New function and declaration.
4662 (scan_partial_symbols): Scan also DW_TAG_module children.
4663 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4664 to typename_concat backward compatible physname value 0.
4665 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4666 backward compatible physname value 0.
4667 (add_partial_module, read_module): Remove FIXME comment.
4668 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4669 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4670 DIEs under DW_TAG_module.
4671 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4672 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4673 && physname and return there instead of just setting NAME. Extend
4674 the main block for language_fortran. Pass physname parameter to the
4675 typename_concat call.
4676 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4677 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4678 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4679 missing from SYMBOL_SET_NAMES in the language_fortran case.
4680 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4681 variables.
4682 (read_type_die) <DW_TAG_module>: New.
4683 (MAX_SEP_LEN): Increase to 7.
4684 (typename_concat): New parameter physname. New variable lead. Support
4685 also language_fortran.
4686 * f-exp.y (yylex): Consider : also as a symbol name character class.
4687 * f-lang.c: Include cp-support.h.
4688 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4689 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4690 f_word_break_characters and f_make_symbol_completion_list.
4691 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4692 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4693 * symtab.c (symbol_init_language_specific): Support language_fortran.
4694 (symbol_find_demangled_name): New comment on language_fortran.
4695 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4696 for language_fortran.
4697 (lookup_symbol_aux_local): Check imports also for language_fortran.
4698 (default_make_symbol_completion_list): Rename to ...
4699 (default_make_symbol_completion_list_break_on): ... this name. New
4700 parameter break_on, use it.
4701 (default_make_symbol_completion_list): New stub.
4702 * symtab.h (default_make_symbol_completion_list_break_on): New
4703 prototype.
4704
4705 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4706
4707 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4708 to error.
4709
4710 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4711
4712 * dwarf2read.c (typename_concat): Add const to the variable sep.
4713
4714 2010-06-02 Tom Tromey <tromey@redhat.com>
4715
4716 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4717 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4718 type is const. Add 'def' argument. Add missing operators, remove
4719 unhandled ones.
4720 (decode_locdesc): Update.
4721 (dwarf2_always_disassemble): New global.
4722 (show_dwarf2_always_disassemble): New function.
4723 (_initialize_dwarf2_read): Add always-disassemble.
4724 (dwarf2_per_cu_offset_size): New function.
4725 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4726 (piece_end_p): New function.
4727 (locexpr_describe_location_piece): Replace 'size' argument with
4728 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4729 some constants. Remove errors.
4730 (disassemble_dwarf_expression): New function.
4731 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4732 Add 'offset_size' argument.
4733 (loclist_describe_location): Change output formatting.
4734 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4735
4736 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4737
4738 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4739 anonymous type case.
4740
4741 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4742
4743 * dwarf2read.c (read_subrange_type): Handle missing base type
4744 according to Dwarf-2 specifications.
4745
4746 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4747
4748 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4749 BINOP_EXCL.
4750 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4751 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4752 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4753 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4754 UNOP_CHMAX, UNOP_CHMIN.
4755 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4756 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4757 UNOP_CHMIN>: Remove opcodes.
4758
4759 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4760
4761 * dwarf2read.c (read_func_scope): Do not complain for
4762 external function if bounds are not found.
4763
4764 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4765
4766 * NEWS: Mention gdbserver fast tracepoints support.
4767
4768 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4769
4770 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4771 New macros.
4772 (windows_set_console_info): New function.
4773 (windows_create_inferior): Call windows_set_console_info
4774 if NEW_CONSOLE is true.
4775 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4776 (_initialize_loadable): Initialize GetConsoleFontSize and
4777 GetCurrentConsoleFont.
4778
4779 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4780
4781 * Makefile.in (RDYNAMIC): New.
4782 (SFILES): Add proc-service.list.
4783 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4784 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4785 * config/arm/linux.mh: Likewise.
4786 * config/i386/linux.mh: Likewise.
4787 * config/i386/linux64.mh: Likewise.
4788 * config/ia64/linux.mh: Likewise.
4789 * config/m32r/linux.mh: Likewise.
4790 * config/m68k/linux.mh: Likewise.
4791 * config/mips/linux.mh: Likewise.
4792 * config/pa/linux.mh: Likewise.
4793 * config/powerpc/linux.mh: Likewise.
4794 * config/powerpc/ppc64-linux.mh: Likewise.
4795 * config/s390/s390.mh: Likewise.
4796 * config/sparc/linux.mh: Likewise.
4797 * config/sparc/linux64.mh: Likewise.
4798 * config/xtensa/linux.mh: Likewise.
4799 * configure.ac: New RDYNAMIC on native host and GCC.
4800 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4801 * configure: Regenerate.
4802 * proc-service.list: New.
4803
4804 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4805
4806 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4807 CONTENT.
4808
4809 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4810
4811 * linux-nat.c (linux_nat_wait_1): Do not call
4812 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4813 TARGET_WAITKIND_SIGNALLED.
4814
4815 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4816
4817 * ada-lang.c (ada_inferior_data): New struct.
4818 (ada_inferior_data): New static global.
4819 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4820 (ada_get_tsd_type): New functions.
4821 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4822 to look the tsd type up.
4823 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4824 event. Set ada_inferior_data.
4825
4826 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4827
4828 * remote.c (unpack_varlen_hex): Remove forward declaration.
4829 (remote_console_output): Make static, and add forward declaration.
4830 * remote.h: Drop FIXME comment.
4831 (unpack_varlen_hex): Declare.
4832 (remote_console_output, remote_cisco_objfile_relocate)
4833 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4834 Delete declarations.
4835 * tracepoint.c: Include "remote.h".
4836 (unpack_varlen_hex): Delete declaration.
4837
4838 2010-05-27 Tom Tromey <tromey@redhat.com>
4839
4840 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4841 (allocate_piece_closure): Initialize refc.
4842 (copy_pieced_value_closure): Use refc.
4843 (free_pieced_value_closure): Likewise.
4844
4845 2010-05-27 Tom Tromey <tromey@redhat.com>
4846
4847 * arm-tdep.c (push_stack_item): 'contents' now const.
4848 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4849 value_contents_writeable. Introduce new temporary.
4850
4851 2010-05-27 Tom Tromey <tromey@redhat.com>
4852
4853 * findcmd.c (parse_find_args): Use value_contents, not
4854 value_contents_raw.
4855
4856 2010-05-27 Tom Tromey <tromey@redhat.com>
4857
4858 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4859 const. Use value_contents, not value_contents_writeable.
4860
4861 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4862
4863 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4864 by call to value_contents.
4865
4866 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4867
4868 * MAINTAINERS: Add myself for write after approval privileges.
4869
4870 2010-05-26 Doug Evans <dje@google.com>
4871
4872 Allow python to find its files if moved from original location.
4873 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4874 (GDB_AC_WITH_DIR): Call it.
4875 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4876 python installation directory.
4877 * config.in: Regenerate.
4878 * configure: Regenerate.
4879 * defs.h (python_libdir): Declare.
4880 * main.c (python_libdir): Define.
4881 (captured_main): Initialize python_libdir.
4882 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4883 call Py_SetProgramName to make sure python can find its libraries
4884 and modules.
4885
4886 * configure.ac: Try to use python's distutils to fetch compilation
4887 parameters.
4888 * configure: Regenerate.
4889 * python/python-config.py: New file.
4890
4891 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4892
4893 * ser-tcp.c (net_open): Check error return from socket() call by its
4894 equality to -1 not by it being negative.
4895 (net_close): Likewise.
4896
4897 2010-05-26 Pedro Alves <pedro@codesourcery.com>
4898
4899 * NEWS: Mention the `qRelocInsn' feature.
4900 * gdbarch.sh (relocate_instruction): New.
4901 * amd64-tdep.c (rip_relative_offset): New.
4902 (append_insns): New.
4903 (amd64_relocate_instruction): New.
4904 (amd64_init_abi): Install it.
4905 * i386-tdep.c (append_insns): New.
4906 (i386_relocate_instruction): New.
4907 (i386_gdbarch_init): Install it.
4908 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4909 * gdbarch.h, gdbarch.c: Regenerate.
4910
4911 2010-05-26 Tom Tromey <tromey@redhat.com>
4912
4913 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4914 (struct dwarf2_loclist_baton) <data>: Likewise.
4915 * dwarf2loc.c (find_location_expression): Constify return type.
4916 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4917 (dwarf2_loc_desc_needs_frame): Likewise.
4918 (loclist_read_variable): Constify.
4919 (loclist_describe_location): Likewise.
4920 (loclist_tracepoint_var_ref): Likewise.
4921
4922 2010-05-25 Tom Tromey <tromey@redhat.com>
4923
4924 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4925 (dwarf_expr_frame_base_1): Likewise.
4926 (read_pieced_value): Update.
4927 (needs_frame_frame_base): Constify.
4928 (dwarf2_tracepoint_var_loc): Likewise.
4929 (dwarf2_tracepoint_var_access): Likewise.
4930 (locexpr_describe_location_piece): Likewise.
4931 (locexpr_describe_location_1): Likewise.
4932 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4933 Constify.
4934 (data): Now const.
4935 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4936 (dwarf_expr_eval, read_uleb128, read_sleb128)
4937 (dwarf2_read_address): Update.
4938 * dwarf2expr.c (dwarf_expr_eval): Constify.
4939 (read_uleb128): Likewise.
4940 (read_sleb128): Likewise.
4941 (dwarf2_read_address): Likewise.
4942 (require_composition): Likewise.
4943 (execute_stack_op): Likewise.
4944 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4945 "const gdb_byte *".
4946 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4947 Now const.
4948 (no_get_frame_base): Constify.
4949 (execute_stack_op): Likewise.
4950 (execute_cfa_program): Likewise.
4951 (read_encoded_value): Likewise.
4952
4953 2010-05-25 Doug Evans <dje@google.com>
4954
4955 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4956
4957 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4958 * event-loop.c: ... here.
4959 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4960 `error' for clarity.
4961 (tui_getc): Pass correct value for `error' parameter to
4962 tui_readline_output.
4963
4964 Add python gdb.GdbError and gdb.string_to_argv.
4965 * NEWS: Document them.
4966 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4967 the exception is gdb.GdbError. Print a second traceback if there's
4968 an error computing the error message.
4969 (gdbpy_string_to_argv): New function.
4970 * python/py-utils.c (gdbpy_obj_to_string): New function.
4971 (gdbpy_exception_to_string): New function.
4972 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4973 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4974 (gdbpy_gdberror_exc): Declare.
4975 * python/python.c (gdbpy_gdberror_exc): New global.
4976 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4977 gdb.GdbError.
4978 (GdbMethods): Add string_to_argv.
4979
4980 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4981
4982 * windows-nat.c (display_selector): Call GetLastError to give better
4983 failure explanation.
4984
4985 2010-05-24 Pedro Alves <pedro@codesourcery.com>
4986
4987 * config.in: Regenerate.
4988
4989 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4990
4991 Code cleanup.
4992 * target.c (push_target): Return only void. Remove the return value
4993 comment.
4994 * target.h (push_target): Return only void.
4995
4996 2010-05-23 Pedro Alves <pedro@codesourcery.com>
4997
4998 Update gnulib from latest git.
4999 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5000
5001 * gnulib/memcmp.c: Removed.
5002 * gnulib/memchr.valgrind: New.
5003 * gnulib/stddef.in.h: New.
5004 * gnulib/Makefile.am: Updated.
5005 * gnulib/memchr.c: Updated.
5006 * gnulib/memmem.c: Updated.
5007 * gnulib/stdint.in.h: Updated.
5008 * gnulib/str-two-way.h: Updated.
5009 * gnulib/string.in.h: Updated.
5010 * gnulib/wchar.in.h: Updated.
5011
5012 * gnulib/extra/link-warning.h: Removed.
5013 * gnulib/extra/c++defs.h: New.
5014 * gnulib/extra/warn-on-use.h: New.
5015 * gnulib/extra/arg-nonnull.h: Updated.
5016
5017 * gnulib/m4/extensions.m4: Updated.
5018 * gnulib/m4/gnulib-cache.m4: Updated.
5019 * gnulib/m4/gnulib-common.m4: Updated.
5020 * gnulib/m4/gnulib-comp.m4: Updated.
5021 * gnulib/m4/gnulib-tool.m4: Updated.
5022 * gnulib/m4/include_next.m4: Updated.
5023 * gnulib/m4/longlong.m4: Updated.
5024 * gnulib/m4/memchr.m4: Updated.
5025 * gnulib/m4/memmem.m4: Updated.
5026 * gnulib/m4/stdint.m4: Updated.
5027 * gnulib/m4/string_h.m4: Updated.
5028 * gnulib/m4/memcmp.m4: Removed.
5029 * gnulib/m4/onceonly_2_57.m4: Removed.
5030 * gnulib/m4/00gnulib.m4: New.
5031 * gnulib/m4/mmap-anon.m4: New.
5032 * gnulib/m4/multiarch.m4: New.
5033 * gnulib/m4/onceonly.m4: New.
5034 * gnulib/m4/stddef_h.m4: New.
5035 * gnulib/m4/warn-on-use.m4: New.
5036 * gnulib/m4/wchar.m4: Removed.
5037 * gnulib/m4/wchar_h.m4: New.
5038 * gnulib/m4/wchar_t.m4: New.
5039 * gnulib/m4/wint_t.m4: New.
5040
5041 * aclocal.m4: Regenerate.
5042 * config.in: Likewise.
5043 * configure: Likewise.
5044 * gnulib/Makefile.in: Likewise.
5045
5046 2010-05-21 Tom Tromey <tromey@redhat.com>
5047
5048 * dwarf2loc.c (extract_bits_primitive): New function.
5049 (extract_bits): Likewise.
5050 (insert_bits): Likewise.
5051 (copy_bitwise): Likewise.
5052 (read_pieced_value): Do all operations in bits.
5053 (write_pieced_value): Likewise.
5054 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5055 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5056 Always use xrealloc to resize piece array.
5057 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5058 <DW_OP_piece>: Update.
5059 <DW_OP_bit_piece>: New case.
5060
5061 2010-05-21 Tom Tromey <tromey@redhat.com>
5062
5063 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5064 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5065 * dwarf2expr.h (enum dwarf_value_location)
5066 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5067 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5068 (add_piece): Handle empty piece.
5069 (execute_stack_op) <DW_OP_piece>: Handle
5070 DWARF_VALUE_OPTIMIZED_OUT.
5071
5072 2010-05-21 Tom Tromey <tromey@redhat.com>
5073
5074 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5075 evaluate_subexp, not evaluate_subexp_with_coercion.
5076
5077 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5078
5079 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5080 attribute.
5081
5082 2010-05-21 Tom Tromey <tromey@redhat.com>
5083
5084 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5085 offset.
5086 (write_pieced_value): Likewise.
5087
5088 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5089
5090 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5091 and DW_TAG_volatile_type.
5092 (new_symbol): Likewise.
5093
5094 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5095
5096 * p-valprint.c (pascal_val_print): Call get_array_bounds
5097 to obtain the number of elements in an array.
5098
5099 2010-05-19 Doug Evans <dje@google.com>
5100
5101 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5102
5103 * python.c (source_python_script): Add comment.
5104 (source_python_script_for_objfile): Remove unnecessary call to
5105 gdbpy_print_stack.
5106
5107 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5108 Sergio Durigan Junior <sergiodj@redhat.com>
5109
5110 Code cleanup.
5111 * parse.c (exp_iterate): Use operator_length wrapper function.
5112
5113 2010-05-18 Michael Snyder <msnyder@vmware.com>
5114
5115 * ada-lang.c: White space.
5116 * ada-typeprint.c: White space.
5117 * ada-valprint.c: White space.
5118 * addrmap.c: White space.
5119 * auxv.c: White space.
5120 * ax-gdb.c: White space.
5121
5122 2010-05-18 Hui Zhu <teawater@gmail.com>
5123
5124 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5125 for oldfp.
5126 (inferior_call_waitpid): Move make_cleanup out of check.
5127 Check the return of waitpid.
5128 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5129
5130 2010-05-17 Michael Snyder <msnyder@vmware.com>
5131
5132 * tui/tui.c: White space.
5133 * tui/tui-data.c: White space.
5134 * tui/tui-disasm.c: White space.
5135 * tui/tui-file.c: White space.
5136 * tui/tui-interp.c: White space.
5137 * tui/tui-main.c: White space.
5138 * tui/tui-out.c: White space.
5139 * tui/tui-regs.c: White space.
5140 * tui/tui-source.c: White space.
5141 * tui/tui-stack.c: White space.
5142 * tui/tui-win.c: White space.
5143 * tui/tui-winsource.c: White space.
5144
5145 * procfs.c: White space.
5146
5147 * python/py-auto-load.c: White space.
5148 * python/py-block.c: White space.
5149 * python/py-breakpoint.c: White space.
5150 * python/py-cmd.c: White space.
5151 * python/py-function.c: White space.
5152 * python/py-lazy-string.c: White space.
5153 * python/py-objfile.c: White space.
5154 * python/py-param.c: White space.
5155 * python/py-prettyprint.c: White space.
5156 * python/py-progspace.c: White space.
5157 * python/py-symtab.c: White space.
5158 * python/python.c: White space.
5159 * python/py-type.c: White space.
5160 * python/py-utils.c: White space.
5161 * python/py-value.c: White space.
5162
5163 * mi/mi-cmd-break.c: White space.
5164 * mi/mi-cmd-env.c: White space.
5165 * mi/mi-cmds.c: White space.
5166 * mi/mi-cmd-stack.c: White space.
5167 * mi/mi-cmd-var.c: White space.
5168 * mi/mi-console.c: White space.
5169 * mi/mi-getopt.c: White space.
5170 * mi/mi-interp.c: White space.
5171 * mi/mi-main.c: White space.
5172 * mi/mi-out.c: White space.
5173 * mi/mi-parse.c: White space.
5174
5175 * cli/cli-cmds.c: White space.
5176 * cli/cli-decode.c: White space.
5177 * cli/cli-dump.c: White space.
5178 * cli/cli-interp.c: White space.
5179 * cli/cli-logging.c: White space.
5180 * cli/cli-script.c: White space.
5181 * cli/cli-setshow.c: White space.
5182
5183 * valarith.c: White space.
5184 * valops.c: White space.
5185 * valprint.c: White space.
5186 * value.c: White space.
5187 * varobj.c: White space.
5188 * xcoffread.c: White space.
5189 * xml-support.c: White space.
5190 * xml-tdesc.c: White space.
5191
5192 2010-05-17 Andreas Schwab <schwab@redhat.com>
5193
5194 PR gdb/11092
5195 * c-lang.c (c_printstr): Compute real length of NUL terminated
5196 string at first.
5197
5198 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5199
5200 * parse.c (parse_exp_in_context): When block is not NULL, use
5201 its associated language to parse the expression instead of
5202 the current_language.
5203
5204 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5205
5206 * jv-lang.c (java_lookup_class): Remove commented out code.
5207 (type_from_class): Likewise.
5208 (java_op_print_tab): Remove commented-out elements.
5209
5210 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5211
5212 * ada-lang.c (to_fixed_range_type): The the raw index type as
5213 argument instead of the raw type name. Remove orig_type parameter.
5214 Update calls throughout.
5215 (ada_fixup_array_indexes_type): New function.
5216 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5217 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5218 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5219 Remove name parameter.
5220 (print_array_type): Add call to ada_fixup_array_indexes_type.
5221 Update calls to print_range_type.
5222 (ada_print_type): Update calls to print_range_type.
5223
5224 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5225
5226 * dwarf2read.c (read_set_type): Set type length if
5227 DW_AT_byte_size attribute is present.
5228
5229 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5230
5231 * p-valprint.c (pascal_val_print): Handle set type if range limits
5232 are undefined but size is known.
5233
5234 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5235
5236 * procfs.c: Reformat.
5237
5238 2010-05-16 Michael Snyder <msnyder@vmware.com>
5239
5240 * target.c: White space.
5241 * target-descriptions.c: White space.
5242 * target-memory.c: White space.
5243 * thread.c: White space.
5244 * top.c: White space.
5245 * tracepoint.c: White space.
5246 * trad-frame.c: White space.
5247 * tramp-frame.c: White space.
5248 * ui-file.c: White space.
5249 * ui-out.c: White space.
5250 * user-regs.c: White space.
5251 * utils.c: White space.
5252
5253 * scm-exp.c: White space.
5254 * scm-lang.c: White space.
5255 * scm-valprint.c: White space.
5256 * sentinel-frame.c: White space.
5257 * ser-base.c: White space.
5258 * ser-go32.c: White space.
5259 * serial.c: White space.
5260 * ser-mingw.c: White space.
5261 * ser-pipe.c: White space.
5262 * ser-tcp.c: White space.
5263 * ser-unix.c: White space.
5264 * solib.c: White space.
5265 * solib-darwin.c: White space.
5266 * solib-frv.c: White space.
5267 * solib-irix.c: White space.
5268 * solib-osf.c: White space.
5269 * solib-pa64.c: White space.
5270 * solib-som.c: White space.
5271 * solib-spu.c: White space.
5272 * solib-svr4.c: White space.
5273 * solib-target.c: White space.
5274 * source.c: White space.
5275 * stabsread.c: White space.
5276 * stack.c: White space.
5277 * std-regs.c: White space.
5278 * symfile.c: White space.
5279 * symmisc.c: White space.
5280 * symtab.c: White space.
5281
5282 2010-05-16 Michael Snyder <msnyder@vmware.com>
5283
5284 * source.c (_initialize_source): Add "rev" as an abbreviation
5285 for the "reverse-search" command.
5286
5287 2010-05-16 Michael Snyder <msnyder@vmware.com>
5288
5289 * record.c: White space.
5290 * regcache.c: White space.
5291 * reggroups.c: White space.
5292 * remote-fileio.c: White space.
5293 * remote-m32r-sdi.c: White space.
5294 * remote-mips.c: White space.
5295 * remote-sim.c: White space.
5296 * remote.c: White space.
5297 (process_g_packet): Remove orphan braces.
5298
5299 2010-05-15 Michael Snyder <msnyder@vmware.com>
5300
5301 * parse.c: White space.
5302 * p-lang.c: White space.
5303 * posix-hdep.c: White space.
5304 * printcmd.c: White space.
5305 * progspace.c: White space.
5306 * prologue-value.c: White space.
5307 * psymtab.c: White space.
5308 * p-typeprint.c: White space.
5309 * p-valprint.c: White space.
5310
5311 * objc-lang.c: White space.
5312 * objfiles.c: White space.
5313 * observer.c: White space.
5314 * osabi.c: White space.
5315 * osdata.c: White space.
5316
5317 * m2-lang.c: White space.
5318 * m2-valprint.c: White space.
5319 * macrocmd.c: White space.
5320 * macroexp.c: White space.
5321 * macroscope.c: White space.
5322 * macrotab.c: White space.
5323 * main.c: White space.
5324 * maint.c: White space.
5325 * mdebugread.c: White space.
5326 * memattr.c: White space.
5327 * minsyms.c: White space.
5328 * monitor.c: White space.
5329
5330 2010-05-14 Michael Snyder <msnyder@vmware.com>
5331
5332 * jv-lang.c: White space.
5333 * jv-typeprint.c: White space.
5334 * jv-valprint.c: White space.
5335 * language.c: White space.
5336 * libunwind-frame.c: White space.
5337 * linespec.c: White space.
5338 * linux-nat.c: White space.
5339 * linux-record.c: White space.
5340 * linux-thread-db.c: White space.
5341
5342 * infcall.c: White space.
5343 * inf-child.c: White space.
5344 * infcmd.c: White space.
5345 * inferior.c: White space.
5346 * inf-loop.c: White space.
5347 * inflow.c: White space.
5348 * inline-frame.c: White space.
5349 * interps.c: White space.
5350
5351 * gcore.c: White space.
5352 * gdb.c: White space.
5353 * gdbtypes.c: White space.
5354 * gnu-nat.c: White space.
5355 * gnu-v2-abi.c: White space.
5356 * gnu-v3-abi.c: White space.
5357
5358 * findcmd.c: White space.
5359 * findvar.c: White space.
5360 * fork-child.c: White space.
5361 * frame-base.c: White space.
5362 * frame.c: White space.
5363 * frame-unwind.c: White space.
5364 * f-valprint.c: White space.
5365
5366 * elfread.c: White space.
5367 * environ.c: White space.
5368 * eval.c: White space.
5369 * event-loop.c: White space.
5370 * event-top.c: White space.
5371 * exceptions.c: White space.
5372 * exec.c: White space.
5373 * expprint.c: White space.
5374
5375 * dbxread.c: White space.
5376 * dcache.c: White space.
5377 * disasm.c: White space.
5378 * doublest.c: White space.
5379 * dsrec.c: White space.
5380 * dummy-frame.c: White space.
5381 * dwarf2expr.c: White space.
5382 * dwarf2-frame.c: White space.
5383 * dwarf2loc.c: White space.
5384 * dwarf2read.c: White space.
5385
5386 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5387
5388 PR python/11482
5389
5390 * python/py-value.c (valpy_hash): New function.
5391 (value_object_type): Register valpy_hash.
5392
5393 2010-05-14 Hui Zhu <teawater@gmail.com>
5394 Michael Snyder <msnyder@vmware.com>
5395
5396 * linux-fork.c (gdbthread.h): New include.
5397 (fork_info): Add parent_ptid.
5398 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5399 functions.
5400 (delete_checkpoint_command): Call inferior_call_waitpid.
5401 (checkpoint_command): Set parent_ptid.
5402
5403 2010-05-13 Michael Snyder <msnyder@vmware.com>
5404
5405 * dictionary.c: Re-indent to GNU coding standard.
5406
5407 * charset.c: White space.
5408 * c-lang.c: White space.
5409 * cli-out.c: White space.
5410 * coffread.c: White space.
5411 * complaints.c: White space.
5412 * completer.c: White space.
5413 * corefile.c: White space.
5414 * corelow.c: White space.
5415 * cp-abi.c: White space.
5416 * cp-namespace.c: White space.
5417 * cp-support.c: White space.
5418 * cp-valprint.c: White space.
5419 * c-typeprint.c: White space.
5420 * c-valprint.c: White space.
5421 * blockframe.c: White space.
5422 * breakpoint.c: White space.
5423 * buildsym.c: White space.
5424 * blockframe.c: White space.
5425 * bcache.c: White space.
5426 * gdbarch.sh: White space, add blank lines.
5427 * arch-utils.c: Ditto.
5428 * gdbarch.c: Regenerate.
5429 * frame.c: White space, add blank lines.
5430 * stack.c: White space, add blank lines.
5431 (initialize_stack): Remove long-dead code.
5432
5433 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5434
5435 Code cleanup.
5436 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5437 (locexpr_read_variable, loclist_read_variable): Update the callers.
5438
5439 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5440
5441 Code cleanup.
5442 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5443 Remove check of NULL returned by tag_type_to_type.
5444 (die_containing_type): Remove variable type. Remove type_die variable
5445 initialization. Remove check of NULL returned by tag_type_to_type.
5446
5447 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5448
5449 PR exp/11530.
5450 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5451 names of unnamed structures or unions.
5452
5453 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5454
5455 * procfs.c (proc_watchpoint_address): New function.
5456 (procfs_stopped_by_watchpoint): Remove useless check after
5457 find_procinfo_or_die call.
5458 (procfs_stopped_data_address): New function.
5459 (procfs_use_watchpoints): Register new watchpoint related function.
5460
5461 2010-05-11 Tom Tromey <tromey@redhat.com>
5462
5463 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5464
5465 2010-05-10 Michael Snyder <msnyder@vmware.com>
5466
5467 * utils.c: White space cleanup.
5468
5469 2010-05-10 Tom Tromey <tromey@redhat.com>
5470
5471 * eval.c (ptrmath_type_p): Add 'lang' argument.
5472 (evaluate_subexp_standard): Update.
5473 (evaluate_subexp_with_coercion): Update.
5474 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5475
5476 2010-05-10 Michael Snyder <msnyder@vmware.com>
5477
5478 * utils.c (do_fclose_cleanup) Restore local variable.
5479
5480 2010-05-09 Doug Evans <dje@google.com>
5481
5482 * record.c (init_record_core_ops): Rename record_core to record-core.
5483
5484 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5485
5486 Implement task switching on pa-hpux.
5487 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5488 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5489
5490 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5491
5492 * valops.c (find_overload_match): Add missing i18n markup.
5493
5494 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5495
5496 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5497
5498 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5499
5500 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5501 list for the obconcat call.
5502 * mdebugread.c (parse_symbol): Likewise.
5503 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5504 Likewise.
5505 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5506 New variable ap. Remove variables len and val.
5507 * symfile.h (obconcat): Likewise for the prototype.
5508
5509 2010-05-07 Michael Snyder <msnyder@vmware.com>
5510
5511 * python/python.c (execute_gdb_command): Remove unused variables.
5512 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5513 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5514 Remove unused variable.
5515 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5516 (cmdpy_completer): Remove unused variable.
5517 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5518 * python/py-function.c (fnpy_call): Remove unused variable.
5519 * python/py-objfile.c (objfile_to_objfile_object):
5520 Remove unused variable.
5521 * python/py-param.c (parmpy_init): Remove unused variable.
5522 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5523 Remove unused variable.
5524 (gdbpy_default_visualizer): Remove unused variable.
5525 * python/py-progspace.c (pspace_to_pspace_object):
5526 Remove unused variable.
5527 * python/py-symtab.c (symtab_and_line_to_sal_object):
5528 Remove unused variable.
5529 * python/py-type.c (typy_template_argument):
5530 Remove unused variable.
5531 * python/py-value.c (valpy_string): Remove unused variable.
5532 (convert_value_from_python): Remove unused variables.
5533
5534 2010-05-07 Michael Snyder <msnyder@vmware.com>
5535
5536 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5537 and use it to compute variable 't1'.
5538
5539 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5540
5541 * ada-lang.c (assign_aggregate): Remove unused variable.
5542
5543 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5544
5545 PR C++/7943:
5546 * valops.c (find_overload_match): Handle fsym == NULL case.
5547 Add int no_adl argument.
5548 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5549 when appropriate.
5550 Add int no_adl argument.
5551 (find_oload_champ_namespace): Add int no_adl argument.
5552 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5553 expression.
5554 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5555 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5556 Evaluate arguments and use them to perform ADL lookup.
5557 Pass no_adl argument to find_overload_match.
5558 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5559 * cp-support.h: Added prototype for
5560 make_symbol_overload_list_namespace.
5561 * cp-support.c (make_symbol_overload_list_namespace): New function.
5562 (make_symbol_overload_list_adl_namespace): New function.
5563 (make_symbol_overload_list_adl): New function.
5564 (make_symbol_overload_list_using): Moved code to add function to
5565 overload set to make_symbol_overload_list_namespace.
5566 * c-exp.y: create UNKNOWN_CPP_NAME token.
5567 Add parse rule for ADL functions.
5568 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5569
5570 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5571
5572 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5573 sentinel.
5574
5575 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5576
5577 Implement task switching on solaris targets.
5578 * sol-thread.c (thread_db_find_thread_from_tid)
5579 (sol_get_ada_task_ptid): New functions.
5580 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5581
5582 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5583
5584 * remote.c (remote_query_supported_append): Use reconcat.
5585 (remote_query_supported): Install a cleanup. Use reconcat.
5586
5587 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5588
5589 * gdbarch.sh (qsupported): Delete.
5590 * gdbarch.h, gdbarch.c: Regenerate.
5591 * remote.c (remote_query_supported): Remove use of
5592 gdbarch_qsupported.
5593
5594 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5595
5596 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5597 function.
5598
5599 2010-05-06 Michael Snyder <msnyder@vmware.com>
5600
5601 * xml-support.c (xinclude_start_include): Delete unused variable.
5602 (xml_process_xincludes): Delete unused variable.
5603 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5604 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5605 (tdesc_find_arch_register): Delete unused variable.
5606 (tdesc_use_registers): Delete unused variable.
5607 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5608 * inferior.c (print_inferior): Delete unused variable.
5609 * record.c (record_open_1): Delete unused variable.
5610 (record_restore): Delete unused variable.
5611 (cmd_record_save): Delete unused variable.
5612 * gcore.c (derive_heap_segment): Delete unused variable.
5613 (objfile_find_memory_regions): Use unused variable.
5614 * jit.c (jit_inferior_init): Delete unused variable.
5615 * progspace.c (clone_program_space): Delete unused variable.
5616 (pspace_empty_p): Delete unused variable.
5617
5618 * frame-unwind.c (frame_unwind_find_by_frame):
5619 Delete unused variable.
5620 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5621 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5622 (method_name_from_physname): Delete unused variable.
5623 (cp_func_name): Delete unused variable.
5624 (cp_validate_operator): Delete unused variable.
5625 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5626 Delete unused variable.
5627 * trad-frame.c (trad_frame_get_prev_register):
5628 Delete unused variable.
5629 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5630
5631 * serial.c (serial_for_fd): Delete unused variable.
5632 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5633 * top.c (execute_command): Delete unused variable.
5634 (init_main): Delete unused variable.
5635 * utils.c (do_fclose_cleanup): Delete unused variable.
5636 (do_all_inferior_continuations): Delete unused variable.
5637 (initialize_utils): Delete unused variable.
5638 (internal_problem_mode): Delete unused global.
5639 * frame.c (get_prev_frame): Delete unused global.
5640 (get_frame_locals_address): Delete unused global.
5641 (get_frame_args_address): Delete unused global.
5642
5643 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5644 (pascal_type_print_varspec_prefix): Delete unused variable.
5645 * f-typeprint.c (f_type_print_base): Delete unused variable.
5646 (f_type_print_varspec_suffix): Delete unused variable.
5647 * m2-typeprint.c (m2_print_type): Delete unused variable.
5648 (m2_long_set): Delete unused variable.
5649 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5650 * d-valprint.c (dynamic_array_type): Delete unused variable.
5651 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5652 Delete unused variable.
5653 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5654 * m2-valprint.c (m2_val_print): Delete unused variable.
5655
5656 * ui-out.c (ui_out_field_int): Delete unused variable.
5657 (ui_out_field_fmt_int): Delete unused variable.
5658 * varobj.c (varobj_list_children): Delete unused variable.
5659 (varobj_set_value): Delete unused variable.
5660 (install_new_value_visualizer): Delete unused variable.
5661 (varobj_set_visualizer): Delete unused variable.
5662 (varobj_update): Delete unused variable.
5663 (varobj_editable_p): Delete unused variable.
5664 (c_value_of_root): Delete unused variable.
5665 (cplus_describe_child): Delete unused variable.
5666
5667 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5668 (decode_constrained_packed_array_type): Delete unused variable.
5669 (add_defn_to_vec): Delete unused variable.
5670 (symbol_completion_match): Delete unused variable.
5671 (value_tag_from_contents_and_address): Delete unused variable.
5672 (ada_evaluate_subexp): Delete unused variable.
5673 * c-lang.c (classify_type): Delete unused variable.
5674 * f-lang.c (f_printstr): Delete unused variable.
5675 * objc-lang.c (objc_printstr): Delete unused variable.
5676 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5677 * jv-lang.c (type_from_class): ifdef unused variable.
5678 (java_class_name_from_physname): Delete unused variable.
5679 * m2-lang.c (m2_printstr): Delete unused variable.
5680
5681 * objfiles.c (objfile_relocate): Delete unused variable.
5682 * maint.c (_initialize_maint_cmds): Delete unused variable.
5683 * demangle.c (_initialize_demangler): Delete unused variable.
5684 * corefile.c (reopen_exec_file): Delete unused variable.
5685 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5686 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5687
5688 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5689 * memattr.c (mem_delete): Delete unused variable.
5690 (invalidate_target_mem_regions): Delete unused variable.
5691 * mem-break.c (default_memory_insert_breakpoint):
5692 Delete unused variable.
5693 * target.c (target_get_osdata): Delete unused variable.
5694 * parse.c (length_of_subexp): Delete unused variable.
5695 (prefixify_subexp): Delete unused variable.
5696 (exp_iterate): Delete unused variable.
5697 * reverse.c (delete_bookmark_command): Delete unused variable.
5698
5699 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5700 * macroexp.c (gather_arguments): Delete unused variable.
5701 (substitute_args): Delete unused variable.
5702 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5703 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5704 (_initialize_gdbarch): Delete unused variable.
5705 * gdbarch.c, gdbarch.h: Regenerate.
5706 * arch-utils.c (initialize_current_architecture):
5707 Delete unused variable.
5708 (_initialize_gdbarch_utils): Delete unused variable.
5709 * gdbtypes.c (make_cv_type): Delete unused variable.
5710 (make_type_with_address_space): Delete unused variable.
5711
5712 * linespec.c (decode_compound): Delete unused variable.
5713 * dictionary.c (iterator_next_hashed): Delete unused variable.
5714 * infcall.c (call_function_by_hand): Delete unused variable.
5715 * infcmd.c (step_1): Delete unused variable.
5716 (registers_info): Delete unused variable.
5717 (attach_command): Delete unused variable.
5718 * infrun.c (follow_exec): Delete unused variable.
5719 (handle_step_into_function_backwards): Delete unused variable.
5720 (_initialize_infrun): Delete unused variable.
5721 * stack.c (parse_frame_specification_1): Delete unused variable.
5722 (frame_info): Delete unused variable.
5723 (backtrace_command_1): Delete unused variable.
5724 (catch_info): Delete unused variable.
5725
5726 * eval.c (evaluate_subexp_standard): Delete unused variable.
5727 * valops.c (value_cast_pointers): Delete unused variable.
5728 (value_dynamic_cast): Delete unused variable.
5729 (value_array): Delete unused variable.
5730 (find_overload_match): Delete unused variable.
5731 * valarith.c (value_subscript): Delete unused variable.
5732 (value_binop): Delete unused variable.
5733 * valprint.c (_initialize_valprint): Delete unused variable.
5734 * printcmd.c (print_command_1): Delete unused variable.
5735 (address_info): Delete unused variable.
5736 (printf_command): Delete unused variable.
5737
5738 * auxv.c (target_auxv_search): Delete unused variable.
5739 * blockframe.c (get_frame_block): Delete unused variable.
5740 * regcache.c (regcache_cpy): Delete unused variable.
5741 (regcache_cpy_no_passthrough): Delete unused variable.
5742 * charset.c (wchar_iterate): Delete unused variable.
5743 (find_charset_names): Delete unused variable.
5744 (_initialize_charset): Delete unused variable.
5745 * disasm.c (do_mixed_source_and_assembly):
5746 Delete unused variable.
5747 * source.c (set_default_source_symtab_and_line):
5748 Delete unused variable.
5749 (set_substitute_path_command): Delete unused variable.
5750 * value.c (preserve_values): Delete unused variable.
5751 (value_from_double): Delete unused variable.
5752
5753 2010-05-05 Michael Snyder <msnyder@vmware.com>
5754
5755 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5756 (find_last_source_symtab_from_partial): Delete unused variable.
5757 * symfile.c (place_section): Delete unused variable.
5758 (default_symfile_offsets): Delete unused variable.
5759 (get_debug_link_info): Delete unused variable.
5760 (find_separate_debug_file_by_debuglink): Delete unused variable.
5761 (add_symbol_file_command): Delete unused variable.
5762 (symfile_find_segment_sections): Delete unused variable.
5763 * symmisc.c (free_symtab): Delete unused variable.
5764 (dump_symtab_1): Delete unused variable.
5765 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5766 (find_pc_sect_symtab): Delete unused variable.
5767 (skip_prologue_using_lineinfo): Delete unused variable.
5768 (sources_info): Delete unused variable.
5769 (completion_list_add_name): Delete unused variable.
5770 (expand_line_sal): Delete unused variable.
5771
5772 * breakpoint.c (validate_commands_for_breakpoint):
5773 Delete unused variables.
5774 (insert_catchpoint): Delete unused variable.
5775 (update_watchpoint): Delete unused variable.
5776 (insert_bp_location): Delete unused variable.
5777 (insert_breakpoint_locations): Delete unused variable.
5778 (remove_breakpoint_1): Delete unused variable.
5779 (software_breakpoint_inserted_here_p): Delete unused variable.
5780 (watchpoints_triggered): Delete unused variable.
5781 (bpstat_check_watchpoint): Delete unused variable.
5782 (bpstat_stop_status): Delete unused variable.
5783 (print_one_breakpoint_location): Delete unused variable.
5784 (allocate_bp_location): Delete unused variable.
5785 (create_breakpoint): Delete unused variable.
5786 (watch_command_1): Delete unused variable.
5787 (catch_exception_command_1): Delete unused variable.
5788 (catch_ada_exception_command): Delete unused variable.
5789 (delete_breakpoint): Delete unused variable.
5790 (breakpoint_re_set_one): Delete unused variable.
5791 (do_enable_breakpoint): Delete unused variable.
5792
5793 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5794
5795 * amd64-tdep.c: Include disasm.h.
5796 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5797 (amd64_insn_length): Moved to disasm.c and renamed.
5798 (fixup_riprel): Adjust.
5799 * disasm.c (do_ui_file_delete): New.
5800 (gdb_insn_length): New.
5801 (gdb_buffered_insn_length_fprintf)
5802 (gdb_buffered_insn_length_init_dis)
5803 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5804 renamed.
5805 * disasm.h (gdb_insn_length): Declare.
5806 (gdb_buffered_insn_length): Declare.
5807
5808 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5809
5810 * remote.c (clear_threads_parsing_context): New.
5811 (remote_threads_info): Delete unused null_cleanup. Install a
5812 cleanup to clear the threads_parsing_context in case parsing
5813 throws.
5814
5815 2010-05-05 Michael Snyder <msnyder@vmware.com>
5816
5817 * c-exp.y (parse_string_or_char): Delete unused variable.
5818 (c_lex): Delete unused variable.
5819 * cp-name-parser.y (cpname_lex): Delete unused variable.
5820 * ada-exp.y (find_primitive_type): Delete unused variable.
5821 (write_var_or_type): Delete unused variable.
5822 * jv-exp.y (java_parse): Delete unused variable.
5823 (push_expression_name): Delete unused variable.
5824 * p-exp.y (pascal_lex): Delete unused variable.
5825
5826 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5827
5828 * remote.c (remote_threads_info): Really revert previous previous
5829 change.
5830
5831 2010-05-05 Michael Snyder <msnyder@vmware.com>
5832
5833 * elfread.c (elf_symtab_read): Delete unused variable.
5834 (find_separate_debug_file_by_buildid): Delete unused variables.
5835 (elf_symfile_read): Delete unused variable.
5836
5837 * coffread.c (coff_symfile_read): Delete unused variables.
5838
5839 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5840 (read_pe_exported_syms): Delete unused variable.
5841
5842 * stabsread.c (define_symbol): Delete unused variable.
5843
5844 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5845 (process_psymtab_comp_unit): Delete unused variable.
5846 (dwarf2_build_psymtabs_hard): Delete unused variable.
5847 (load_partial_comp_unit): Delete unused variable.
5848 (create_all_comp_units): Delete unused variable.
5849 (scan_partial_symbols): Delete unused variable.
5850 (add_partial_symbol): Delete unused variable.
5851 (add_partial_namespace): Delete unused variable.
5852 (add_partial_enumeration): Delete unused variable.
5853 (load_full_comp_unit): Delete unused variable.
5854 (process_full_comp_unit): Delete unused variable.
5855 (read_file_scope): Delete unused variable.
5856 (read_type_unit_scope): Delete unused variable.
5857 (process_structure_scope): Delete unused variable.
5858 (process_enumeration_scope): Delete unused variable.
5859 (read_tag_ptr_to_member_type): Delete unused variable.
5860 (read_typedef): Delete unused variable.
5861 (read_partial_die): Delete unused variable.
5862 (decode_locdesc): Delete unused variable.
5863 (zeroed_partial_die): Delete unused global variable.
5864
5865 * tui/tui-interp.c (_initialize_tui_interp):
5866 Delete unused variable.
5867 * tui/tui-regs.c tui_display_registers_from):
5868 Delete unused variable.
5869 (tui_check_register_values): Delete unused variable.
5870 (tui_register_format): Delete unused variable.
5871 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5872 * tui/tui-windata.c (tui_display_data_from_line):
5873 Delete unused variables.
5874 (tui_vertical_data_scroll): Delete unused variables.
5875
5876 2010-05-05 Michael Snyder <msnyder@vmware.com>
5877
5878 * remote.c (remote_threads_info): Revert questionable part of
5879 the previous change.
5880
5881 2010-05-05 Michael Snyder <msnyder@vmware.com>
5882
5883 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5884 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5885 (mi_cmd_var_list_children): Delete unused variable.
5886 (varobj_update_one): Delete unused variable.
5887 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5888 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5889 Delete unused variable.
5890 (mi_cmd_stack_list_variables): Delete unused variable.
5891 (list_args_or_locals): Delete unused variable.
5892 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5893 Delete unused variables.
5894 (mi_cmd_file_list_exec_source_files): Delete unused variable.
5895 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5896 Delete unused variable.
5897 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5898 (mi_cmd_interpreter_exec): Delete unused variable.
5899 (mi_on_normal_stop): Delete unused variable.
5900 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5901 (print_one_inferior): Delete unused variables.
5902 (mi_execute_command): Delete unused variable.
5903 (mi_cmd_execute): Delete unused variable.
5904 (timestamp): Delete unused variable.
5905
5906 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5907 (restore_binary_file): Delete unused variable.
5908 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5909 * cli/cli-script.c (define_command): Delete unused variables.
5910 (recurse_read_control_structure): Delete unused variable.
5911 (script_from_file): Delete unused variable.
5912 * cli/cli-cmds.c (complete_command): Delete unused variable.
5913 (disassemble_command): Delete unused variable.
5914
5915 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5916 * tracepoint.c (delete_trace_variable_command):
5917 Delete unused variables.
5918 (encode_actions_1): Delete unused variables.
5919 (start_tracing): Delete unused variable.
5920 (trace_status_mi): Delete unused variable.
5921 (tfind_1): Delete unused variable.
5922 (trace_find_pc_command): Delete unused variable.
5923 (trace_find_line_command): Delete unused variables.
5924 (trace_find_range_command): Delete unused variables.
5925 (trace_find_outside_command): Delete unused variables.
5926 (parse_tracepoint_definition): Delete unused variables.
5927 (tfile_fetch_registers): Delete unused variable.
5928
5929 * dcache.c (dcache_init): Delete unused variable.
5930 (dcache_info): Delete unused variable.
5931
5932 * remote.c (remote_threads_info): Delete unused variable.
5933 (process_stop_reply) :Delete unused variable.
5934 (remote_get_trace_status): Delete unused variables.
5935
5936 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5937 (thread_from_lwp): Delete unused variable.
5938 (enable_thread_event_reporting): Delete unused variable.
5939 (check_for_thread_db): Delete unused variables.
5940 (thread_db_find_new_threads_2): Delete unused variable.
5941
5942 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5943 (checkpoint_command): Delete unused variable.
5944 (linux_fork_context): Delete unused variables.
5945
5946 * linux-nat.c (linux_parent_pid): Delete unused global variable.
5947 (linux_tracefork_child): Delete unused variable.
5948 (linux_child_follow_fork): Delete unused variable.
5949 (linux_nat_detach): Delete unused variable.
5950 (linux_handle_extended_wait): Delete unused variable.
5951 (linux_nat_has_pending_sigint): Delete unused variable.
5952 (linux_nat_find_memory_regions): Delete unused variable.
5953 (linux_nat_make_corefile_notes): Delete unused variables.
5954 (linux_nat_info_proc_cmd): Delete unused variable.
5955 (linux_proc_pending_signals): Delete unused variable.
5956 (linux_nat_stop_lwp): Delete unused variables.
5957 (_initialize_linux_nat): Delete unused variable.
5958
5959 * ser-pipe.c (pipe_ops): Delete unused global variable.
5960
5961 * linux-record.c (record_linux_system_call):
5962 Delete unused variables.
5963
5964 * corelow.c (core_xfer_partial): Delete unused variables.
5965
5966 * solib-svr4.c (find_program_interpreter): Delete unused variable.
5967 (svr4_solib_create_inferior_hook): Add ifdef around
5968 conditionally-used variable declarations.
5969
5970 * solib.c (solib_find): Delete unused variable.
5971 (free_so_symbols): Delete unused variable.
5972 (info_sharedlibrary_command): Delete unused variable.
5973 (reload_shared_libraries_1): Delete unused variable.
5974 (_initialize_solib): Delete unused variable.
5975
5976 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5977 (i386_collect_xstateregset): Delete unused variable.
5978 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5979
5980 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5981 Delete unused variable 'type'.
5982
5983 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5984
5985 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
5986 ada-lang.c: Remove comment mentioning these macros.
5987 * m2-exp.y: Delete commented out code.
5988
5989 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5990
5991 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5992 for array types.
5993 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5994
5995 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5996
5997 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5998 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5999 ATTRIBUTE_UNUSED.
6000 (cleanup_kernel_helper_return): Likewise.
6001 * arm-tdep.c (copy_unmodified): Likewise.
6002 (copy_preload): Likewise.
6003 (copy_copro_load_store): Likewise.
6004 (cleanup_branch): Likewise.
6005 (copy_b_bl_blx): Likewise.
6006 (copy_bx_blx_reg): Likewise.
6007 (copy_alu_imm): Likewise.
6008 (copy_alu_reg): Likewise.
6009 (copy_alu_shifted_reg): Likewise.
6010 (cleanup_load): Likewise.
6011 (cleanup_store): Likewise.
6012 (cleanup_block_load_pc): Likewise.
6013 (cleanup_svc): Likewise.
6014 (copy_undef): Likewise.
6015 (copy_unpred): Likewise.
6016 * remote.c (register_remote_support_xml): Likewise.
6017
6018 2010-05-05 Hui Zhu <teawater@gmail.com>
6019
6020 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6021
6022 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6023
6024 * remote.c (register_remote_support_xml)
6025 (remote_query_supported_append, remote_query_supported): Add cast
6026 to NULL used as sentinel.
6027 * tracepoint.c (tvariables_info_1): Likewise.
6028 * utils.c (add_internal_problem_command): Likewise.
6029
6030 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6031
6032 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6033 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6034 registers gracefully.
6035
6036 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6037
6038 * exec.c (print_section_info): Display entry point without arch
6039 specific parts.
6040
6041 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6042
6043 PR exp/11349.
6044 * printcmd.c (x_command): Only dereference once implicitly for
6045 TYPE_CODE_REF.
6046
6047 2010-05-03 Doug Evans <dje@google.com>
6048
6049 * event-loop.c (gdb_timer): Delete unused global.
6050 (create_timer): Update.
6051
6052 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6053
6054 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6055 CURRENT->DECLARATION case.
6056 * cp-support.h (struct using_direct): Provide extended comment.
6057
6058 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6059
6060 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6061 HPPABSD_SIZEOF_GREGS.
6062 (HPPAOBSD_SIZEOF_FPREGS): New define.
6063 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6064 (hppaobsd_supply_fpregset): New function.
6065 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6066 (hppaobsd_fpregset): New variable.
6067 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6068 (_initialize_hppabsd_tdep): Remove spurious blank line.
6069
6070 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6071
6072 PR pascal/11349.
6073 * p-valprint.c (pascal_value_print): Always dereference a value with
6074 type code TYPE_CODE_REF.
6075
6076 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6077
6078 * remote.c (remote_notice_signals): New.
6079 (remote_start_remote): In non-stop mode, update the remote end on
6080 which signals it can silently pass.
6081 (init_remote_ops): Install remote_notice_signals.
6082
6083 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6084
6085 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6086 * command.h (error_no_arg): ... here. Remove NORETURN, change
6087 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6088 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6089 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6090 (internal_verror, internal_error, nomem): Remove NORETURN, change
6091 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6092 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6093 (throw_vfatal, throw_error): Remove NORETURN.
6094 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6095 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6096 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6097 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6098 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6099 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6100 NORETURN.
6101 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6102 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6103 ATTRIBUTE_NORETURN.
6104 * target.c (tcomplain): Likewise.
6105 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6106 ATTRIBUTE_NORETURN.
6107 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6108 (internal_error, perror_with_name, nomem): Remove NORETURN.
6109 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6110 ATTRIBUTE_NORETURN.
6111
6112 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6113
6114 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6115 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6116 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6117 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6118 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6119 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6120 * complaints.h (complaint, internal_complaint): Likewise.
6121 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6122 (ATTR_FORMAT): Remove.
6123 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6124 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6125 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6126 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6127 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6128 (internal_error, internal_vwarning, internal_warning, warning)
6129 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6130 * disasm.c (fprintf_disasm): Likewise.
6131 * exceptions.c (throw_it): Likewise.
6132 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6133 (throw_error): Likewise.
6134 * language.h (type_error, range_error): Likewise.
6135 * linespec.c (cplusplus_error): Likewise.
6136 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6137 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6138 * monitor.c (monitor_debug): Likewise.
6139 * parser-defs.h (parser_fprintf): Likewise.
6140 * serial.h (serial_printf): Likewise.
6141 * tui/tui-hooks.c (tui_query_hook): Likewise.
6142 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6143 (uo_message): Likewise.
6144 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6145 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6146 Likewise.
6147 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6148
6149 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6150
6151 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6152 (cli_table_header, cli_begin, cli_end, cli_field_int)
6153 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6154 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6155 Delete forward declarations.
6156 (cli_ui_out_impl): Move below the callbacks.
6157 (_initialize_cli_out): Delete.
6158
6159 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6160
6161 * README: Use consistent `GDB' and `GDBserver' spellings.
6162
6163 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6164
6165 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6166
6167 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6168
6169 * infrun.c (prepare_for_detach): In non-stop, context switch to
6170 the thread that got the event before handling the event.
6171
6172 2010-04-30 Tom Tromey <tromey@redhat.com>
6173
6174 * symtab.c (symbol_set_names): Fix typo.
6175
6176 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6177
6178 * python/py-param.c (parm_constants): Avoid ARI warning
6179 by adding ARI comment.
6180 (parmpy_init): Likewise.
6181
6182 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6183
6184 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6185 and created type for re-use.
6186
6187 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6188
6189 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6190
6191 2010-04-29 Doug Evans <dje@google.com>
6192
6193 * ser-base.h (reschedule): Delete prototype.
6194 * ser-base.c (reschedule): Make static.
6195
6196 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6197
6198 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6199 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6200 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6201 EABI.
6202 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6203 use.
6204
6205 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6206
6207 PR gdb/11557
6208
6209 * regcache.c (registers_changed): Rename to ...
6210 (registers_changed_ptid): ... this, and only delete register cache
6211 entries matching the ptid filter argument.
6212 (registers_changed): Reimplement on top of registers_changed_ptid.
6213 * regcache.h (registers_changed_ptid): Declare.
6214 * target.c (target_resume): Flush register caches.
6215
6216 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6217 Tom Tromey <tromey@redhat.com>
6218 Thiago Jung Bauermann <bauerman@br.ibm.com>
6219
6220 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6221 (SUBDIR_PYTHON_SRCS): Likewise.
6222 (py-parameter.o): New rule.
6223 * python/py-parameter.c: New file.
6224 * python/python-internal.h (gdbpy_initialize_parameter)
6225 (gdbpy_parameter, gdbpy_parameter_value)
6226 (gdbpy_parse_command_name): Declare.
6227 * python/py-cmd.c (parse_command_name): Rename to
6228 gdbpy_parse_command_name.
6229 (gdbpy_parse_command_name): Accept a starting list parameter and
6230 use over cmdlist.
6231 (cmdpy_init): Use gdbpy_parse_command_name.
6232 * python/python.c (parameter_to_python): Rename to
6233 gdbpy_parameter_to_python. Accept enum var_types and value.
6234 (gdbpy_parameter): Use gdbpy_parameter_value.
6235 (_initialize_python): Call gdbpy_initialize_parameters.
6236
6237 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6238
6239 * MAINTAINERS: Add myself for write after approval privileges.
6240
6241 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6242
6243 D language support.
6244 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6245 (COMMON_OBS): Add d-lang.o d-valprint.o.
6246 (HFILES_NO_SRCDIR): Add d-lang.h.
6247 * NEWS: Mention D language support.
6248 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6249 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6250 * d-lang.c: New file.
6251 * d-lang.h: New file.
6252 * d-valprint.c: New file.
6253 * defs.h (enum language): Add language_d.
6254 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6255 * language.c (binop_result_type, integral_type, character_type)
6256 (string_type, boolean_type, structured_type): Add language_d.
6257 * symfile.c (init_filename_language_table): Add language_d.
6258 * symtab.c: Include d-lang.h.
6259 (symbol_init_language_specific, symbol_find_demangled_name)
6260 (symbol_natural_name, lookup_symbol_in_language)
6261 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6262
6263 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6264
6265 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6266
6267 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6268
6269 * symfile.c (init_filename_language_table): Register .dg files
6270 with language_ada.
6271
6272 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6273
6274 * gdbtypes.h (struct main_type): Expand comment about target_type
6275 field.
6276
6277 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6278 Tristan Gingold <gingold@adacore.com>
6279
6280 * symfile.c (reread_symbols): Also search for file in libraries.
6281 Update comment.
6282
6283 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6284
6285 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6286 in terms of configuration.
6287
6288 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6289
6290 * objfiles.c: Include solist.h.
6291 (free_all_objfiles): New variable so. Check stale solist objfiles.
6292 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6293 and no_shared_libraries.
6294
6295 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6296
6297 ARI warning fix.
6298 * python/py-auto-load.c (source_section_scripts): Remove trailing
6299 new-line in i18n string.
6300
6301 2010-04-26 Doug Evans <dje@google.com>
6302
6303 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6304
6305 2010-04-26 Tom Tromey <tromey@redhat.com>
6306
6307 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6308 command list.
6309
6310 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6311
6312 Removal of config/i386/nm-i386sol2.h native configuration file.
6313 * config/i386/nm-i386sol2.h: Remove file.
6314 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6315 * config/i386/sol2-64.mh: Idem.
6316 * config/djgpp/fnchange.lst: Remove reference to that file.
6317 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6318
6319 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6320
6321 PR breakpoints/11531.
6322 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6323 macro definition and related comment.
6324 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6325 (resume): Remove code and comment related to this macro.
6326
6327 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6328
6329 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6330 Fix whitespace.
6331
6332 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6333
6334 * defs.h: Adjust comment.
6335 * filesystem.h, filesystem.c: New files.
6336 * Makefile.in (SFILES): Add filesystem.c.
6337 (COMMON_OBS): Add filesystem.o.
6338 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6339 different target and host path flavours.
6340 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6341 has_dos_based_file_system on the gdbarch.
6342 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6343 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6344 * i386-tdep.c (i386_go32_init_abi): Ditto.
6345 * gdbarch.sh (has_dos_based_file_system): New.
6346 * gdbarch.h, gdbarch.c: Regenerate.
6347 * NEWS: Mention improved support for remote targets with DOS-based
6348 filesystems. Mention new `set/show target-file-system-kind'
6349 commands.
6350
6351 2010-04-23 Stan Shebs <stan@codesourcery.com>
6352
6353 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6354 comments.
6355 (struct agent_reqs): Remove.
6356 (ax_reg_mask): Declare.
6357 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6358 (free_agent_expr): Free reg_mask.
6359 (ax_print): Add scope and register mask info.
6360 (ax_reqs): Remove agent_reqs argument, use agent expression
6361 fields, and move part of register mask computation to...
6362 (ax_reg_mask): New function.
6363 * ax-gdb.c (gen_trace_static_fields): Call it.
6364 (gen_traced_pop): Ditto.
6365 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6366 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6367 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6368 (gen_eval_for_expr): Ditto, and require an rvalue.
6369 (agent_command): Call ax_reqs.
6370 (agent_eval_command): Ditto.
6371 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6372 (validate_action_line): Ditto.
6373 (collect_symbol): Ditto.
6374 (encode_actions_1): Ditto.
6375
6376 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6377 Paul Pluzhnikov <ppluzhnikov@google.com>
6378 Jan Kratochvil <jan.kratochvil@redhat.com>
6379
6380 Fix deadlock on looped list of loaded shared objects.
6381 * solib-svr4.c (LM_PREV): New function.
6382 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6383 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6384 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6385 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6386
6387 2010-04-23 Doug Evans <dje@google.com>
6388
6389 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6390 python.
6391 * configure: Regenerate.
6392 * main.c: #include "python/python.h".
6393 (captured_main): Defer loading auto-loaded scripts until after
6394 local_gdbinit has been sourced.
6395 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6396 (load_auto_scripts_for_objfile): New function.
6397 (auto_load_new_objfile): Call it.
6398 * python/python.h (gdbpy_global_auto_load): Declare.
6399 (load_auto_scripts_for_objfile): Declare.
6400
6401 Add support for auto-loading scripts from .debug_gdb_scripts section.
6402 * NEWS: Add entry for .debug_gdb_scripts.
6403 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6404 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6405 (py-auto-load.o): New rule.
6406 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6407 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6408 * python/py-auto-load.c: New file.
6409 * python/python-internal.h: #include <stdio.h>.
6410 (set_python_list, show_python_list): Declare.
6411 (gdbpy_initialize_auto_load): Declare.
6412 (source_python_script_for_objfile): Declare.
6413 * python/python.c: Remove #include of observer.h.
6414 (gdbpy_auto_load): Moved to py-auto-load.c.
6415 (GDBPY_AUTO_FILENAME): Ditto.
6416 (gdbpy_new_objfile): Delete.
6417 (source_python_script_for_objfile): New function.
6418 (set_python_list, show_python_list): Make externally visible.
6419 (_initialize_python): Move "auto-load" command to py-auto-load.c
6420 and observer_attach_new_objfile to py-auto-load.c.
6421
6422 2010-04-23 Jerome Guitton <guitton@adacore.com>
6423
6424 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6425 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6426 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6427 New constants.
6428 (alpha_heuristic_analyze_probing_loop): New function.
6429 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6430 and handle cases when a stack probe loop is generated.
6431 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6432 (alpha_mdebug_max_frame_size_exceeded): New function.
6433 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6434 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6435 Return 0 when the maximum debuggable frame size has been exceeded.
6436
6437 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6438
6439 Fix ARI warning.
6440 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6441
6442 2010-04-20 Chris Moller <cmoller@redhat.com>
6443
6444 PR 10179
6445
6446 * symtab.c (rbreak_command): Added code to include a filename
6447 specification in the rbreak argument.
6448 * NEWS: Added a brief description of filename-qualified rbreak.
6449
6450 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6451
6452 Fix crashes on dangling display expressions.
6453 * ada-lang.c (ada_operator_check): New function.
6454 (ada_exp_descriptor): Fill-in the field operator_check.
6455 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6456 * jv-lang.c (exp_descriptor_java): Likewise.
6457 * m2-lang.c (exp_descriptor_modula2): Likewise.
6458 * scm-lang.c (exp_descriptor_scm): Likewise.
6459 * parse.c (exp_descriptor_standard): Likewise.
6460 (operator_check_standard): New function.
6461 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6462 * parser-defs.h (struct exp_descriptor): New field operator_check.
6463 (operator_check_standard, exp_uses_objfile): New declarations.
6464 * printcmd.c: Remove the inclusion of solib.h.
6465 (display_uses_solib_p): Remove the function.
6466 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6467 and exp_uses_objfile instead of display_uses_solib_p.
6468 * solist.h (struct so_list) <objfile>: New comment.
6469 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6470 * symtab.h (lookup_objfile_from_block): New declaration.
6471 (struct general_symbol_info) <obj_section>: Extend the comment.
6472
6473 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6474 Thiago Jung Bauermann <bauerman@br.ibm.com>
6475
6476 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6477 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6478 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6479 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6480 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6481 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6482 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6483 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6484 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6485 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6486 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6487 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6488 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6489 Define, in case <ptrace.h> doesn't provide it.
6490 (booke_debug_info): New variable.
6491 (max_slots_number): Ditto.
6492 (hw_break_tuple): New struct.
6493 (thread_points): Ditto.
6494 (ppc_threads): New variable.
6495 (PPC_DEBUG_CURRENT_VERSION): New define.
6496 (have_ptrace_new_debug_booke): New function.
6497 (ppc_linux_check_watch_resources): Renamed to ...
6498 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6499 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6500 (booke_cmp_hw_point): New function.
6501 (booke_find_thread_points_by_tid): Ditto.
6502 (booke_insert_point): Ditto.
6503 (booke_remove_point): Ditto.
6504 (ppc_linux_insert_hw_breakpoint): Ditto.
6505 (ppc_linux_remove_hw_breakpoint): Ditto.
6506 (get_trigger_type): Ditto.
6507 (ppc_linux_insert_watchpoint): Handle BookE processors.
6508 (ppc_linux_remove_watchpoint): Ditto.
6509 (ppc_linux_new_thread): Ditto.
6510 (ppc_linux_thread_exit): New function..
6511 (ppc_linux_stopped_data_address): Handle BookE processors.
6512 (ppc_linux_watchpoint_addr_within_range): Ditto.
6513 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6514 to_remove_hw_breakpoint fields of the target operations struct.
6515 Add observe for the thread_exit event.
6516
6517 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6518
6519 * i386-linux-nat.c (regmap): Removed.
6520 (fetch_register): Replace regmap with
6521 i386_linux_gregset_reg_offset.
6522 (store_register): Likewise.
6523 (supply_gregset): Likewise.
6524 (fill_gregset): Likewise.
6525
6526 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6527 global.
6528
6529 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6530
6531 2010-04-22 Chris Moller <cmoller@redhat.com>
6532
6533 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6534 method of popping recursion-detection stack with a method based on
6535 obstack_object_size(). (Similar to the PR9167 patch below, but for
6536 the static array obstack rather than the static member obstack.)
6537
6538 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6539
6540 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6541 (_initialize_amd64_linux_nat): Replace
6542 amd64_linux_gregset64_reg_offset with
6543 amd64_linux_gregset_reg_offset.
6544
6545 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6546 global.
6547
6548 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6549
6550 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6551
6552 PR stabs/11479.
6553 * stabsread.c (set_length_in_type_chain): New function.
6554 (read_struct_type): Call set_length_in_type_chain function.
6555 (read_enum_type): Idem.
6556
6557 2010-04-21 Stan Shebs <stan@codesourcery.com>
6558 Nathan Sidwell <nathan@codesourcery.com>
6559
6560 * tracepoint.c (trace_save): Open in binary mode.
6561
6562 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6563
6564 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6565 fields.
6566 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6567 builtin_char32 fields.
6568 * printcmd.c (decode_format): Set char size to '\0'
6569 for strings unless explicit size is given.
6570 (print_formatted): Correct calculation of NEXT_ADDRESS
6571 for 16 or 32 bit strings.
6572 (do_examine): Do not force byte size for strings.
6573 Use builtin_char16 and builtin_char32 types to display
6574 16 or 32 bit-wide strings.
6575 (x_command): Set LAST_SIZE to 'b' for string type.
6576
6577 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6578
6579 PR corefiles/11523
6580 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6581 XCR0 first.
6582
6583 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6584 there is no .reg-xstate section.
6585 (i386_linux_core_read_description): Check XCR0 first.
6586
6587 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6588
6589 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6590 for len <= 8.
6591
6592 2010-04-21 Chris Moller <cmoller@redhat.com>
6593
6594 PR 9167
6595 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6596 method of popping recursion-detection stack with a method based on
6597 obstack_object_size().
6598
6599 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6600
6601 PR pascal/11492.
6602 * p-valprint.c (pascal_val_print): Fix default printing of integer
6603 arrays.
6604
6605 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6606
6607 Fix compilation warning on gcc-4.1.2.
6608 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6609 local variable`pc' to zero.
6610
6611 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6612
6613 Implement thread support with core files on alpha-tru64.
6614 * dec-thread.c (dec_thread_find_new_threads): New function,
6615 extracted from resync_thread_list.
6616 (resync_thread_list): Add OPS parameter. Replace extracted-out
6617 code by call to dec_thread_find_new_threads.
6618 (dec_thread_wait): Update call to resync_thread_list.
6619 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6620
6621 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6622
6623 * ada-lang.c (value_pointer): New function.
6624 (make_array_descriptor): Call value_pointer to convert addresses to
6625 pointers.
6626
6627 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6628
6629 * rs6000-aix-tdep.c: #include exceptions.h.
6630 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6631 while reading the memory at ADDR, then ADDR cannot be a function
6632 descriptor.
6633
6634 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6635
6636 * ada-typeprint.c (ada_print_typedef): New function.
6637 * ada-lang.h (ada_print_typedef): Add declaration.
6638 * ada-lang.c (ada_language_defn): set la_print_typdef field
6639 to ada_print_typedef.
6640
6641 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6642
6643 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6644
6645 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6646
6647 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6648 (iterate_over_mappings): Adjust function profile. Add declaration.
6649 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6650 Adjust accordingly.
6651
6652 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6653
6654 * procfs.c (solib_mappings_callback): Move function up to avoid
6655 a compiler warning.
6656
6657 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6658
6659 * procfs.c (find_signalled_thread, find_stop_signal): Move
6660 these functions down to define them only when used.
6661
6662 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6663
6664 * valprint.c (common_val_print): Fix the value before extracting
6665 its contents.
6666 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6667 * ada-lang.h (ada_to_fixed_value): New function declaration.
6668 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6669 to avoid code duplication and fix a bug in the handling of
6670 fixed types contents.
6671
6672 2010-04-20 Tom Tromey <tromey@redhat.com>
6673
6674 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6675 (read_partial_die): Likewise.
6676 (dwarf_attr_name): Likewise.
6677
6678 2010-04-20 Chris Moller <cmoller@redhat.com>
6679
6680 PR 10867
6681
6682 * cp-valprint.c (global): Adding new static array recursion
6683 detection obstack.
6684 (cp_print_value_fields, cp_print_static_field): Added new static
6685 array recursion detection code.
6686
6687 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6688
6689 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6690 general-purpose register set should be 68 instead of 144.
6691 (i386_linux_sse_regset_sections): Likewise.
6692 (i386_linux_avx_regset_sections): Likewise.
6693
6694 2010-04-20 Stan Shebs <stan@codesourcery.com>
6695 Nathan Sidwell <nathan@codesourcery.com>
6696
6697 * dwarf2loc.c (struct axs_var_loc): New struct.
6698 (dwarf2_tracepoint_var_loc): New function.
6699 (dwarf2_tracepoint_var_access): New function.
6700 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6701 with DW_OP_piece.
6702 (locexpr_describe_location_piece): New function.
6703 (locexpr_describe_location_1): New function.
6704 (locexpr_describe_location): Call it, update signature.
6705 (loclist_describe_location): Rewrite to loop over locations,
6706 update signature.
6707 * symtab.h (struct symbol_computed_ops): Add address to
6708 describe_location arguments, return void.
6709 * printcmd.c (address_info): Get context PC, pass to computed
6710 location description.
6711 * tracepoint.c (scope_info): Ditto.
6712 * ax-gdb.c (trace_kludge): Export.
6713
6714 2010-04-20 Tom Tromey <tromey@redhat.com>
6715
6716 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6717 (struct dwarf2_cie) <segment_size>: New field.
6718 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6719 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6720 DW_FORM_exprloc.
6721 (read_attribute_value): Handle DW_FORM_flag_present,
6722 DW_FORM_sec_offset, DW_FORM_exprloc.
6723 (dump_die_shallow): Likewise.
6724 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6725 (dwarf2_const_value): Handle DW_FORM_exprloc.
6726 (attr_form_is_block): Likewise.
6727 (struct line_header) <maximum_ops_per_instruction>: New field.
6728 (dwarf_decode_line_header): Set new field.
6729 (dwarf_decode_lines): Handle new field.
6730
6731 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6732
6733 * f-exp.y: Add new production to recognize the `logical*8' type.
6734 (LOGICAL_S8_KEYWORD): New token.
6735 * f-lang.c (enum f_primitive_types)
6736 <f_primitive_type_logical_s8>: New field.
6737 (f_language_arch_info): Handling `logical*8' type.
6738 (build_fortran_types): Building `logical*8' type.
6739 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6740
6741 2010-04-19 Doug Evans <dje@google.com>
6742
6743 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6744 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6745 (pipe_close): Ditto.
6746
6747 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6748
6749 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6750
6751 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6752
6753 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6754 type to void function.
6755
6756 2010-04-19 Stan Shebs <stan@codesourcery.com>
6757 Vladimir Prus <vladimir@codesourcery.com>
6758
6759 * tracepoint.c (tfind_1): Add missing newline, report exit from
6760 tfind mode as such.
6761 * target.c (update_current_target): Make default
6762 to_trace_find return -1.
6763
6764 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6765
6766 * objc-lang.c (find_methods): Move symname check up.
6767
6768 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6769
6770 * ada-lang.c (print_recreate_exception)
6771 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6772 not "catch unhandled".
6773
6774 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6775
6776 PR breakpoints/8554.
6777
6778 Implement `save-breakpoints'.
6779
6780 * breakpoint.c (save_cmdlist): New.
6781 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6782 to save_cmdlist.
6783 (print_recreate_catch_fork): New.
6784 (catch_fork_breakpoint_ops): Install it.
6785 (print_recreate_catch_vfork): New.
6786 (catch_vfork_breakpoint_ops): Install it.
6787 (print_recreate_catch_syscall): New.
6788 (catch_syscall_breakpoint_ops): Install it.
6789 (print_recreate_catch_exec): New.
6790 (catch_exec_breakpoint_ops): Install it.
6791 (print_recreate_exception_catchpoint): New.
6792 (gnu_v3_exception_catchpoint_ops): Install it.
6793 (save_breakpoints): New, based on tracepoint_save_command, but
6794 handle all breakpoint types.
6795 (save_breakpoints_command): New.
6796 (tracepoint_save_command): Rename to...
6797 (save_tracepoints_command): ... this, and reimplement using
6798 save_breakpoints.
6799 (save_command): New.
6800 (_initialize_breakpoints): Install the "save" command prefix.
6801 Install the "save breakpoints" command. Make "save-tracepoints" a
6802 deprecated alias for "save tracepoints".
6803 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6804 * ada-lang.c (print_recreate_exception): New.
6805 (print_recreate_catch_exception): New.
6806 (catch_exception_breakpoint_ops): Install it.
6807 (print_recreate_catch_exception_unhandled): New.
6808 (catch_exception_unhandled_breakpoint_ops): Install it.
6809 (print_recreate_catch_assert): New.
6810 (catch_assert_breakpoint_ops): Install it.
6811
6812 * NEWS: Mention the new `save breakpoints' command. Mention the
6813 new `save tracepoints' alias and that `save-tracepoints' is now
6814 deprecated.
6815
6816 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6817
6818 PR tui/9217
6819
6820 * tui/tui-out.c: Include cli-out.h.
6821 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6822 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6823 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6824 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6825 declarations.
6826 (struct ui_out_data): Rename to...
6827 (struct tui_ui_out_data): ... this. Remove `stream' and
6828 `suppress_output' fields, and inherit cli_ui_out_data.
6829 (tui_out_data): New typedef.
6830 (tui_ui_out_impl): Don't initialize fields staticaly.
6831 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6832 (tui_begin, tui_end): Delete.
6833 (tui_field_int): Adjust to delegate most work to the base type.
6834 (tui_field_skip): Delete.
6835 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6836 delegate most work to the base type.
6837 (tui_spaces): Delete.
6838 (tui_text): Adjust to delegate most work to the base type.
6839 (tui_message): Delete.
6840 (tui_wrap_hint): Delete.
6841 (tui_flush): Delete.
6842 (out_field_fmt): Delete.
6843 (field_separator): Delete.
6844 (tui_out_new): Adjust to initialize the base type.
6845 (_initialize_tui_out): Initialize tui_ui_out_impl.
6846 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6847 cli_ui_out_data.
6848 (cli_out_data): Adjust.
6849 (cli_ui_out_impl): Make extern.
6850 (cli_table_header, cli_field_int, cli_field_skip): Use
6851 uo_field_string instead of cli_field_string.
6852 (cli_redirect): Adjust to use cli_out_data.
6853 (cli_out_data_ctor): New.
6854 (cli_out_new): Use it.
6855 * cli-out.h (struct ui_file): Remove forward declaration.
6856 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6857 (cli_ui_out_impl): Declare.
6858 (cli_out_data_ctor): Declare.
6859 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6860 (uo_field_string): No longer static.
6861 (ui_out_data): Change return type to void pointer.
6862 (ui_out_new): Change `data' parameter type to void pointer.
6863 * ui-out.h (struct ui_out_data): Don't forward declare.
6864 (ui_out_data): Change return type to void pointer.
6865 (ui_out_new): Change `data' parameter type to void pointer.
6866 (uo_field_string): Declare.
6867
6868 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6869
6870 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6871 instead of always false.
6872
6873 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6874
6875 PR corefiles/11511
6876 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6877 orig_rax.
6878
6879 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6880
6881 * breakpoint.c (watchpoints_triggered): Use
6882 is_hardware_watchpoint.
6883 (watchpoints_triggered): Ditto.
6884 (bpstat_check_location): Use is_watchpoint and
6885 is_hardware_watchpoint.
6886 (bpstat_check_watchpoint): Use is_watchpoint and
6887 is_hardware_watchpoint.
6888 (bpstat_stop_status): Fix comment.
6889 (user_settable_breakpoint): Use is_watchpoint.
6890 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6891 (disable_watchpoints_before_interactive_call_start): Use
6892 is_watchpoint.
6893 (enable_watchpoints_after_interactive_call_stop): Use
6894 is_watchpoint.
6895 (clear_command): Use is_watchpoint.
6896 (do_enable_breakpoint): Use is_watchpoint.
6897
6898 2010-04-16 Mike Frysinger <vapier@gentoo.org>
6899
6900 * solib-frv.c (enable_break1_done): Delete.
6901 (enable_break2): Do not check enable_break1_done. Move the
6902 enable_break2_done setting and call to
6903 remove_solib_event_breakpoints() to the end. Return without
6904 warning when the contents of _dl_debug_addr are 0.
6905 (enable_break): Do not set enable_break1_done.
6906 (frv_clear_solib): Likewise.
6907
6908 2010-04-16 Kevin Buettner <kevinb@redhat.com>
6909
6910 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6911 instead of an error if no PLT entry is found. Return a
6912 potentially useful result.
6913 (m32c_m16c_pointer_to_address): Add code to search for function
6914 address when no .plt entry is found.
6915
6916 2010-04-16 Stan Shebs <stan@codesourcery.com>
6917
6918 * tracepoint.c (trace_variable_command): Run a cleanup.
6919
6920 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6921
6922 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6923
6924 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6925
6926 Support for Windows OS Thread Information Block.
6927 * NEWS: Document new feature.
6928 * remote.c (PACKET_qGetTIBAddr): New enum element.
6929 (remote_get_tib_address): New function.
6930 (init_remote_ops): Set to_get_tib_address field
6931 to remote_get_tib_address.
6932 (_initialize_remote): Add add_packet_config_cmd
6933 for PACKET_qGetTIBAddr.
6934 * target.c (update_current_target): Set default value for
6935 new to_get_tib_address field.
6936 * target.h (target_ops): New field to_get_tib_address.
6937 (target_get_tib_address): New macro.
6938 * windows-nat.c (thread_info): Add thread_local_base field.
6939 (windows_add_thread): Add tlb argument of type 'void *'.
6940 (fake_create_process): Adapt windows_add_thread call.
6941 (get_windows_debug_event): Idem.
6942 (windows_get_tib_address): New function.
6943 (init_windows_ops): Set to_get_tib_address field
6944 to remote_get_tib_address.
6945 (_initialize_windows_nat): Replace info_w32_cmdlist
6946 initialization by a call to init_w32_command_list.
6947 (info_w32_command, info_w32_cmdlist): Removed from here...
6948 to windows-tdep.c file.
6949 * windows-tdep.h (info_w32_cmdlist): Declare.
6950 (init_w32_command_list): New external function
6951 declaration.
6952 * windows-tdep.c: Add several headers.
6953 (info_w32_cmdlist): to here, made global.
6954 (thread_information_32): New struct.
6955 (thread_information_64): New struct.
6956 (TIB_NAME): New char array.
6957 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6958 (maint_display_all_tib): New static variable.
6959 (windows_get_tlb_type): New function.
6960 (tlb_value_read, tlb_value_write): New functions.
6961 (tlb_value_funcs): New static struct.
6962 (tlb_make_value): New function.
6963 (display_one_tib): New function.
6964 (display_tib): New function.
6965 (show_maint_show_all_tib):New function.
6966 (info_w32_command): Moved from windows-nat.c.
6967 (init_w32_command_list): New function.
6968 (_initialize_windows_tdep): New function.
6969 New "maint set/show show-all-tib" command
6970 New "$_tlb" internal variable.
6971
6972 2010-04-16 Joel Brobecker <brobecker@adacore.com>
6973
6974 * tui/tui-regs.c (tui_display_register): Add comment about
6975 a couple of casts.
6976 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6977
6978 2010-04-15 Stan Shebs <stan@codesourcery.com>
6979
6980 * frame.c: Include tracepoint.h.
6981 (get_current_frame): Allow a trace frame to be an alternate source
6982 of stack frame data.
6983 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6984 it won't succeed.
6985
6986 2010-04-15 Pedro Alves <pedro@codesourcery.com>
6987
6988 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6989 flags.
6990 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6991
6992 2010-04-15 Doug Evans <dje@google.com>
6993
6994 * NEWS: Add entry for python program space support.
6995 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6996 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6997 (py-progspace.o): New rule.
6998 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6999 function.
7000 (find_pretty_printer_from_progspace): New function.
7001 (find_pretty_printer_from_gdb): New function.
7002 (find_pretty_printer): Rewrite.
7003 * python/py-progspace.c: New file.
7004 * python/python-internal.h (program_space): Add forward decl.
7005 (pspace_to_pspace_object, pspy_get_printers): Declare.
7006 (gdbpy_initialize_pspace): Declare.
7007 * python/python.c: #include "progspace.h".
7008 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7009 (_initialize_python): Call gdbpy_initialize_pspace.
7010 (GdbMethods): Add current_progspace, progspaces.
7011
7012 Add -s option to source command.
7013 * NEWS: Document new option.
7014 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7015 Delete from_tty and cleanupp args. Split filep arg into file and
7016 full_pathp. New arg search_path.
7017 (source_script_from_stream): New function.
7018 (source_script_with_search): New function.
7019 (source_script): Rewrite.
7020 (source_command): Parse "-s" option.
7021 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7022 * python/python.c (source_python_script): Make file arg a const char *.
7023 Don't call fclose, leave for caller.
7024 * python/python.h (source_python_script): Update.
7025
7026 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7027 Pedro Alves <pedro@codesourcery.com>
7028
7029 Avoid rereading shared libraries that haven't changed.
7030
7031 * solib.c (free_so_symbols): New function, from ...
7032 (free_so): ... here. Call it.
7033 (solib_read_symbols): Don't warn here if symbols have already been
7034 loaded.
7035 (solib_add): Warn here instead, if a pattern was specified.
7036 (reload_shared_libraries_1): New.
7037 (reload_shared_libraries): Rewrite to not fetch the library list.
7038
7039 2010-04-14 Doug Evans <dje@google.com>
7040
7041 * source.c (openp): Strip DOS drive letter if present before
7042 concatenating string to search path.
7043
7044 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7045
7046 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7047 * objfiles.c (gdb_bfd_close_or_warn): New.
7048 * corelow.c: Include objfiles.h
7049 (core_close): Use gdb_bfd_close_or_warn.
7050 * elfread.c (build_id_verify): Ditto.
7051 * exec.c (exec_close, exec_close_1): Ditto.
7052
7053 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7054 Pedro Alves <pedro@codesourcery.com>
7055
7056 Group errors for many missing shared libraries.
7057
7058 * solist.h (struct so_list): Remove from_tty.
7059 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7060 (solib_map_sections): Take so_list argument. Return 0 if we
7061 failed to open a BFD. Add target sections here.
7062 (symbol_add_stub): Delete.
7063 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7064 not from_tty copied from the so_list. Don't warn a second time
7065 for a missing library.
7066 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7067 add to the section table here. Print out a single warning for all
7068 missing libraries.
7069 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7070 flags.
7071
7072 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7073
7074 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7075 error/warning messages. Capitalize and use complete sentences.
7076 (blpy_block_syms_iternext): Likewise.
7077 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7078 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7079 (frame_info_to_frame_object, frapy_read_var)
7080 (gdbpy_frame_stop_reason_string): Likewise.
7081 * python/py-lazy-string.c (stpy_convert_to_value)
7082 (gdbpy_create_lazy_string_object): Likewise.
7083 * python/py-objfile.c (objfpy_set_printers): Likewise.
7084 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7085 * python/python.c (parameter_to_python): Likewise.
7086 * python/py-type.c (typy_range, typy_target): Likewise.
7087 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7088 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7089
7090
7091 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7092
7093 PR python/11381
7094
7095 * python/py-prettyprint.c (pretty_print_one_value): Test for
7096 Py_None.
7097 (print_string_repr): Test for Py_None. Set flags accordingly.
7098 Return value depending on return type.
7099 (print_children): Take a value indicating whether data was printed
7100 before this function was called. Alter output accordingly.
7101 (apply_val_pretty_printer): Capture return value from
7102 print_string_repr and pass to print_children.
7103
7104 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7105
7106 PR corefiles/11481
7107 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7108 register note sections.
7109 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7110 New variables.
7111 (i386_linux_init_abi): Install list of supported register note
7112 sections that matches the target description.
7113
7114 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7115
7116 * remote.c (remote_get_noisy_reply): Don't error out on empty
7117 replies.
7118 (remote_start_remote): Update and merge tracepoints and trace
7119 state variables as long as the target supports tracepoints.
7120 (remote_trace_init): Fix prototype.
7121 (remote_download_trace_state_variable): Validate reply.
7122 (remote_trace_set_readonly_regions): Fix prototype.
7123 (remote_trace_start): Fix prototype. Check for empty reply.
7124 (remote_get_trace_status): Small cleanup.
7125 (remote_trace_stop): Fix prototype. Check for empty reply.
7126 (remote_trace_find): Check for empty reply.
7127 (remote_save_trace_data): Validate reply.
7128 (remote_set_disconnected_tracing): Check for empty reply, and
7129 validate reply.
7130 (remote_set_circular_trace_buffer): Ditto.
7131
7132 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7133
7134 Suppress unused value warning during compilation.
7135 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7136 calls to void.
7137 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7138
7139 2010-04-12 Stan Shebs <stan@codesourcery.com>
7140
7141 * tracepoint.c (tfile_xfer_partial): Check read result.
7142
7143 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7144
7145 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7146 * remote-sim.c (gdbsim_files_info): Likewise.
7147
7148 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7149
7150 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7151 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7152 variable.
7153 (fetch_vfp_registers): New function to fetch VFP registers.
7154 (store_vfp_registers): New function to store VFP registers.
7155 (arm_linux_fetch_inferior_registers): Add support for VFP
7156 registers.
7157 (arm_linux_store_inferior_registers): Likewise.
7158 (arm_linux_read_description): Likewise.
7159 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7160 until we need it.
7161
7162 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7163
7164 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7165 tdep.
7166 (amd64_collect_xstateregset): Likewise.
7167
7168 2010-04-09 Stan Shebs <stan@codesourcery.com>
7169
7170 * tracepoint.c (trace_status_mi): Report frames created.
7171
7172 * tracepoint.c (trace_dump_command): Include default-collect
7173 expressions.
7174
7175 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7176
7177 * symtab.c (find_function_start_sal): Never return SAL pointing
7178 before function start address, even if line info is missing.
7179
7180 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7181
7182 * NEWS: Mention tracepoints support.
7183
7184 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7185
7186 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7187 circular trace buffer statuses.
7188
7189 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7190
7191 * config/djgpp/fnchange.lst: Fix typo in translations for
7192 symbol-without-target_section.exp and symbol-without-target_section.c.
7193
7194 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7195
7196 * breakpoint.c (condition_command): Pass condition expression to
7197 set_breakpoint_condition stripped from breakpoint number.
7198
7199 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7200 Thiago Jung Bauermann <bauerman@br.ibm.com>
7201 Tom Tromey <tromey@redhat.com>
7202
7203 * breakpoint.c (condition_command): Simplify. Move condition
7204 setting code to ...
7205 (set_breakpoint_condition): ... here. New function.
7206 * breakpoint.h (set_breakpoint_condition): Declare.
7207 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7208 (SUBDIR_PYTHON_SRCS): Likewise.
7209 (py-breakpoint.o): New rule.
7210 * python/py-breakpoint.c: New file.
7211 * python/python-internal.h (gdbpy_breakpoints)
7212 (gdbpy_initialize_breakpoints): Declare.
7213 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7214
7215 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7216
7217 * regformats/regdat.sh: Include server.h. Don't include
7218 regcache.h.
7219
7220 2010-04-08 Stan Shebs <stan@codesourcery.com>
7221 Pedro Alves <pedro@codesourcery.com>
7222
7223 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7224 and circular_buffer.
7225 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7226 * tracepoint.c (trace_status_command): Display target's status for
7227 disconnected tracing and circular buffer.
7228 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7229 query for non-disconnected-tracing case, remove the stop_tracing
7230 call.
7231 (tfile_open): Clear disconnected and circular buffer status.
7232 (trace_save): Save disconnected and circular buffer status.
7233 (parse_trace_status): Parse disconnected and circular buffer status,
7234 also recognize disconnected as a stop reason.
7235 * remote.c (remote_set_disconnected_tracing): Only set
7236 QTDisconnected if the remote end supports disconnected tracing.
7237 Warn otherwise, if trying to enable disconnected tracing.
7238 * infcmd.c (detach_command): Update disconnect_tracing call.
7239 * cli/cli-cmds.c (quit_command): Ditto.
7240
7241 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7242
7243 * i387-tdep.c (i387_collect_xsave): Replace abort with
7244 internal_error.
7245
7246 2010-04-08 Stan Shebs <stan@codesourcery.com>
7247
7248 * breakpoint.c (default_collect_info): New function.
7249 (breakpoints_info): Call it.
7250 (maintenance_info_breakpoints): Ditto.
7251 (tracepoints_info): Ditto.
7252
7253 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7254
7255 * i387-tdep.c (i387_collect_xsave): Re-indent.
7256
7257 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7258
7259 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7260 if HAVE_PTRACE_GETFPXREGS is defined.
7261 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7262 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7263
7264 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7265 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7266 if .reg-xfp section doesn't exist.
7267 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7268
7269 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7270
7271 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7272 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7273 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7274 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7275 (i386_gdbarch_init): Update comments.
7276 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7277
7278 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7279
7280 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7281
7282 * features/Makefile (i386/i386-mmx-expedite): New.
7283 (i386/i386-mmx-linux-expedite): Likewise.
7284 ($(outdir)/i386/i386-mmx.dat): Likewise.
7285 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7286
7287 * features/i386/i386-mmx-linux.c: New.
7288 * features/i386/i386-mmx-linux.xml: Likewise.
7289 * features/i386/i386-mmx.c: Likewise.
7290 * features/i386/i386-mmx.xml: Likewise.
7291 * regformats/i386/i386-mmx-linux.dat: Likewise.
7292 * regformats/i386/i386-mmx.dat: Likewise.
7293
7294 * features/Makefile (WHICH): Add i386/i386-mmx and
7295 i386/i386-mmx-linux.
7296
7297 2010-04-08 Doug Evans <dje@google.com>
7298
7299 * source.c (openp): Skip $cdir in PATH.
7300
7301 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7302
7303 PR python/11417
7304 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7305 a NULL address.
7306 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7307 address and a zero length.
7308
7309 2010-04-08 Hui Zhu <teawater@gmail.com>
7310
7311 * i386-tdep.c (i386_process_record): Add support for insn
7312 rdtsc.
7313
7314 2010-04-07 Doug Evans <dje@google.com>
7315
7316 * python/python.c (source_python_script): Use ensure_python_env
7317 to prepare environment for script.
7318
7319 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7320
7321 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7322 <sys/uio.h> and "i386-xstate.h".
7323 (PTRACE_GETREGSET): New.
7324 (PTRACE_SETREGSET): Likewise.
7325 (have_ptrace_getregset): Likewise.
7326 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7327 registers.
7328 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7329 registers.
7330 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7331 (amd64_linux_store_inferior_registers): Likewise.
7332 (amd64_linux_read_description): Check and enable AVX target
7333 descriptions.
7334
7335 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7336 and "features/i386/amd64-avx-linux.c".
7337 (amd64_linux_regset_sections): New.
7338 (amd64_linux_core_read_description): Check and enable AVX
7339 target description.
7340 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7341 set_gdbarch_core_regset_sections.
7342 (_initialize_amd64_linux_tdep): Call
7343 initialize_tdesc_amd64_avx_linux.
7344
7345 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7346 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7347 (tdesc_amd64_avx_linux): New.
7348 (amd64_linux_update_xstateregset): Likewise.
7349
7350 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7351 (amd64_ymm_names): New.
7352 (amd64_ymmh_names): Likewise.
7353 (amd64_register_name): Likewise.
7354 (amd64_supply_xstateregset): Likewise.
7355 (amd64_collect_xstateregset): Likewise.
7356 (amd64_supply_xsave): Likewise.
7357 (amd64_collect_xsave): Likewise.
7358 (AMD64_NUM_REGS): Removed.
7359 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7360 %xmmN if AVX is available.
7361 (amd64_pseudo_register_name): Support pseudo YMM registers.
7362 (amd64_regset_from_core_section): Support .reg-xstate section.
7363 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7364 and ymm0h_regnum. Call set_gdbarch_register_name.
7365 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7366
7367 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7368 AMD64_YMM15H_REGNUM.
7369 (AMD64_NUM_REGS): New.
7370 (amd64_supply_xsave): Likewise.
7371 (amd64_collect_xsave): Likewise.
7372 (amd64_register_name): Removed.
7373 (amd64_register_type): Likewise.
7374
7375 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7376
7377 * i387-tdep.c: Include "i386-xstate.h".
7378 (XSAVE_XSTATE_BV_ADDR): New.
7379 (xsave_avxh_offset): Likewise.
7380 (XSAVE_AVXH_ADDR): Likewise.
7381 (i387_supply_xsave): Likewise.
7382 (i387_collect_xsave): Likewise.
7383
7384 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7385 (I387_YMM0H_REGNUM): Likewise.
7386 (I387_YMMENDH_REGNUM): Likewise.
7387 (i387_supply_xsave): Likewise.
7388 (i387_collect_xsave): Likewise.
7389
7390 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7391
7392 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7393 <sys/uio.h> and "i386-xstate.h".
7394 (PTRACE_GETREGSET): New.
7395 (PTRACE_SETREGSET): Likewise.
7396 (fetch_xstateregs): Likewise.
7397 (store_xstateregs): Likewise.
7398 (GETXSTATEREGS_SUPPLIES): Likewise.
7399 (regmap): Include 8 upper YMM registers.
7400 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7401 state.
7402 (i386_linux_store_inferior_registers): Likewise.
7403 (i386_linux_read_description): Check and enable AVX target
7404 descriptions.
7405
7406 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7407 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7408 (i386_linux_regset_sections): Add ".reg-xstate".
7409 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7410 (i386_linux_core_read_xcr0): New.
7411 (i386_linux_core_read_description): Check and enable AVX target
7412 description.
7413 (i386_linux_init_abi): Set xsave_xcr0_offset.
7414 (_initialize_i386_linux_tdep): Call
7415 initialize_tdesc_i386_avx_linux.
7416
7417 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7418 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7419 (i386_linux_core_read_xcr0): New.
7420 (tdesc_i386_avx_linux): Likewise.
7421 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7422
7423 * i386-tdep.c: Include "i386-xstate.h" and
7424 "features/i386/i386-avx.c".
7425 (i386_ymm_names): New.
7426 (i386_ymmh_names): Likewise.
7427 (i386_ymmh_regnum_p): Likewise.
7428 (i386_ymm_regnum_p): Likewise.
7429 (i386_xmm_regnum_p): Likewise.
7430 (i386_register_name): Likewise.
7431 (i386_ymm_type): Likewise.
7432 (i386_supply_xstateregset): Likewise.
7433 (i386_collect_xstateregset): Likewise.
7434 (i386_sse_regnum_p): Removed.
7435 (i386_pseudo_register_name): Support pseudo YMM registers.
7436 (i386_pseudo_register_type): Likewise.
7437 (i386_pseudo_register_read): Likewise.
7438 (i386_pseudo_register_write): Likewise.
7439 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7440 %xmmN if AVX is available.
7441 (i386_regset_from_core_section): Support .reg-xstate section.
7442 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7443 (i386_process_record): Replace i386_sse_regnum_p with
7444 i386_xmm_regnum_p.
7445 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7446 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7447 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7448 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7449 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7450 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7451 Set ymm0_regnum.
7452 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7453
7454 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7455 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7456 i386_ymm_type.
7457 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7458 (I386_AVX_NUM_REGS): New.
7459 (i386_xmm_regnum_p): Likewise.
7460 (i386_ymm_regnum_p): Likewise.
7461 (i386_ymmh_regnum_p): Likewise.
7462
7463 * common/i386-xstate.h: New.
7464
7465 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7466
7467 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7468
7469 * features/Makefile (WHICH): Add i386/i386-avx,
7470 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7471 (i386/i386-avx-expedite): New.
7472 (i386/i386-avx-linux-expedite): Likewise.
7473 (i386/x86-64-avx-expedite):Likewise.
7474 (i386/x86-64-avx-linux-expedite): Likewise.
7475 ($(outdir)/i386/i386-avx.dat): New dependency.
7476 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7477 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7478 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7479
7480 * features/i386/32bit-avx.xml: New.
7481 * features/i386/64bit-avx.xml: Likewise.
7482 * features/i386/i386-avx-linux.c: Likewise.
7483 * features/i386/i386-avx-linux.xml: Likewise.
7484 * features/i386/i386-avx.c: Likewise.
7485 * features/i386/i386-avx.xml: Likewise.
7486 * features/i386/x86-64-avx-linux.c: Likewise.
7487 * features/i386/x86-64-avx-linux.xml: Likewise.
7488 * features/i386/x86-64-avx.c: Likewise.
7489 * features/i386/x86-64-avx.xml: Likewise.
7490 * regformats/i386/i386-avx-linux.dat: Likewise.
7491 * regformats/i386/i386-avx.dat: Likewise.
7492 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7493 * regformats/i386/x86-64-avx.dat: Likewise.
7494
7495 2010-04-07 Doug Evans <dje@google.com>
7496
7497 * top.c (source_file_name): Make const char *.
7498 * top.h (source_file_name): Update.
7499 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7500 const char *.
7501 (script_from_file): Change `file' arg to const char *.
7502 * cli/cli-script.h (script_from_file): Update.
7503
7504 2010-04-06 Doug Evans <dje@google.com>
7505
7506 * cli/cli-cmds.c (source_command): Run cleanups.
7507
7508 2010-04-06 Stan Shebs <stan@codesourcery.com>
7509
7510 * defs.h (char_ptr): Move typedef here from...
7511 * ada-lang.c (char_ptr): Remove.
7512 * charset.c (char_ptr): Remove.
7513 * tracepoint.h (struct uploaded_string): Remove.
7514 (struct uploaded_tp): Use vectors for string arrays.
7515 * tracepoint.c (trace_save): Use vectors of actions.
7516 (parse_tracepoint_definition): Ditto.
7517 (get_uploaded_tp): Clear vectors.
7518 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7519 (next_cmd): Change to an int.
7520 (read_next_cmd): Use vector of command strings.
7521
7522 2010-04-06 Doug Evans <dje@google.com>
7523
7524 * top.h (source_script, cd_command): Delete.
7525 * main.c: #include "cli/cli-cmds.h"
7526
7527 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7528
7529 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7530 type in bytes, not bits.
7531
7532 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7533
7534 * stabsread.c (define_symbol): Add support for char
7535 and string constants.
7536
7537 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7538
7539 Remove remaining "%ll" uses.
7540 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7541 hex_string call.
7542 * rs6000-nat.c (rs6000_ptrace64): Idem.
7543 * solib-pa64.c (pa64_current_sos): Idem.
7544 * solib-spu.c (spu_current_sos): Idem.
7545 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7546 plongest call.
7547 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7548 phex (VAR, 8) call.
7549 * sh64-tdep.c (sh64_show_media_regs): Idem.
7550
7551 2010-04-05 Stan Shebs <stan@codesourcery.com>
7552
7553 * tracepoint.c: Include gdbcore.h.
7554 (tfile_xfer_partial): Return partial results, also try reading
7555 from executable.
7556 (tfile_has_all_memory): New function.
7557 (init_tfile_ops): Use it.
7558
7559 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7560
7561 PR gdb/10736:
7562 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7563 the changes in data-directory.
7564 (init_sysinfo): Reload the syscall XML file if the data-directory
7565 has changed.
7566
7567 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7568
7569 Code cleanup.
7570 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7571
7572 2010-04-04 Stan Shebs <stan@codesourcery.com>
7573 Nathan Sidwell <nathan@codesourcery.com>
7574
7575 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7576 breakpoints printed.
7577 (is_hardware_watchpoint): Make argument const.
7578 (is_watchpoint): Ditto.
7579 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7580 use it everywhere.
7581 (breakpoints_info): Pass NULL to breakpoint_1.
7582 (maintenance_info_breakpoints): Ditto.
7583 (watchpoints_info): New function.
7584 (tracepoints_info): Use breakpoint_1 filter.
7585 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7586 (_initialize_breakpoint): Make "info watchpoints" its own command.
7587 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7588 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7589
7590 2010-04-04 Stan Shebs <stan@codesourcery.com>
7591
7592 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7593
7594 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7595
7596 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7597 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7598
7599 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7600
7601 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7602 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7603
7604 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7605
7606 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7607 code form.
7608
7609 2010-04-02 Hui Zhu <teawater@gmail.com>
7610
7611 * i386-tdep.c (OT_DQUAD): New enum.
7612 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7613 SSE3, SSSE3 and SSE4.
7614
7615 2010-04-02 Hui Zhu <teawater@gmail.com>
7616
7617 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7618 "*addr = 0".
7619
7620 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7621
7622 * tracepoint.c (trace_dump_actions): New, factored out from
7623 trace_dump_command, and adjusted to recurse into while-stepping's
7624 action list.
7625 (trace_dump_command): Use it.
7626
7627 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7628
7629 * breakpoint.h (struct counted_command_line): Moved definition to
7630 breakpoint.c, and forward declare.
7631 (breakpoint_commands): Declare.
7632 * breakpoint.c (struct counted_command_line): Moved here.
7633 (breakpoint_commands): New.
7634 * tracepoint.c (encode_actions): Use breakpoint_commands.
7635 * remote.c (remote_download_tracepoint): Ditto.
7636
7637 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7638
7639 * remote.c (remote_parse_stop_reply): Use hex_string instead
7640 of phex_nz for error.
7641
7642 2010-04-01 Stan Shebs <stan@codesourcery.com>
7643 Nathan Sidwell <nathan@codesourcery.com>
7644
7645 * tracepoint.h (enum actionline_type): Remove.
7646 (validate_actionline): Change return to void.
7647 * tracepoint.c (report_agent_reqs_errors): New function.
7648 (validate_actionline): Call it, change return to void, report errors
7649 more consistently.
7650 (collect_symbol): Call report_agent_reqs_errors.
7651 (encode_actions_1): Ditto.
7652 (encode_actions): Don't expect a result from validate_actionline.
7653
7654 2010-04-01 Stan Shebs <stan@codesourcery.com>
7655
7656 * tracepoint.c (trace_start_command): Confirm if trace is running.
7657 (trace_stop_command): Error if trace not running.
7658
7659 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7660
7661 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7662 (AMD64_NUM_LOWER_BYTE_REGS): New.
7663 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7664 (amd64_pseudo_register_write): Likewise.
7665 (amd64_init_abi): Set num_byte_regs to 20.
7666
7667 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7668
7669 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7670 (prev_breakpoint_count): New.
7671 (set_breakpoint_count): Adjust.
7672 (rbreak_start_breakpoint_count): New.
7673 (start_rbreak_breakpoints): Adjust.
7674 (end_rbreak_breakpoints): Adjust.
7675 (struct commands_info) <arg>: New field.
7676 (do_map_commands_command): Tweak output to include breakpoint spec
7677 range.
7678 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7679 ARG was empty on entry. Set INFO's arg.
7680 (create_breakpoint): Adjust.
7681
7682 * NEWS: Clarify `commands' changes.
7683
7684 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7685
7686 * tracepoint.c: Include stack.h.
7687 (struct add_local_symbols_data): New.
7688 (do_collect_symbol): New.
7689 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7690 iterate_over_block_local_vars.
7691 * stack.c (print_block_frame_locals): Rewrite as ...
7692 (iterate_over_block_locals): ... this. Take a callback function
7693 pointer and generic data pointer, and call that instead of
7694 print_variable_and_value.
7695 (struct print_variable_and_value_data): New.
7696 (do_print_variable_and_value): New.
7697 (iterate_over_block_local_vars): New, abstracted out from
7698 print_frame_local_vars.
7699 (print_frame_local_vars): Rewrite using
7700 iterate_over_block_local_vars.
7701 (iterate_over_block_arg_vars): New, abstracted out from
7702 print_frame_arg_vars.
7703 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7704 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7705 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7706
7707 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7708
7709 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7710 instructions. Use the PC+4 if the base of the TBB or TBH is the
7711 PC register.
7712
7713 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7714
7715 Fix crash on reading wrong function declaration DWARF.
7716 * dwarf2read.c (read_subroutine_type): New variable void_type.
7717 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7718 more close to their use.
7719
7720 2010-03-31 Stan Shebs <stan@codesourcery.com>
7721
7722 * breakpoint.c (tracepoint_save_command): Include variables,
7723 conditionals, tracepoint types, and default-collect.
7724 * tracepoint.c (save_trace_state_variables): New function.
7725 * tracepoint.h (save_trace_state_variables): Declare it.
7726
7727 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7728
7729 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7730
7731 2010-03-30 Keith Seitz <keiths@redhat.com>
7732
7733 * c-typeprint.c (c_type_print_args): Don't print "void"
7734 for java, regardless of whether it is TYPE_PROTOTYPED.
7735 Use the passed-in language instead of current_language.
7736 (c_type_print_varspec_suffix): Use current_language instead
7737 of assuming language_c.
7738 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7739 any return type specifier from the physname.
7740
7741 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7742
7743 * tui/tui-interp.c (tui_is_toplevel): New.
7744 (tui_init): Set it.
7745 (tui_allowed_p): New.
7746 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7747 enabling it.
7748 * tui/tui.h (tui_allowed_p): Declare.
7749
7750 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7751
7752 * serial.h: Include winsock2.h before windows.h.
7753
7754 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7755
7756 * NEWS: Mention xmlRegisters= in qSupported packet.
7757
7758 * i386-tdep.c: Include "remote.h".
7759 (_initialize_i386_tdep): Call register_remote_support_xml.
7760
7761 * remote.c (remote_support_xml): New.
7762 (register_remote_support_xml): Likewise.
7763 (remote_query_supported_append): Likewise.
7764 (remote_query_supported): Support remote_support_xml.
7765
7766 * remote.h (register_remote_support_xml): New.
7767
7768 2010-03-29 Stan Shebs <stan@codesourcery.com>
7769
7770 * tracepoint.c (trace_find_line_command): Remove dead code.
7771
7772 * tracepoint.h (struct uploaded_string): New struct.
7773 (struct uploaded_tp): New fields for source strings.
7774 * breakpoint.c (this_utp, next_cmd): New globals.
7775 (read_uploaded_action): New function.
7776 (create_tracepoint_from_upload): Fill in more parts
7777 of a tracepoint.
7778 * tracepoint.c (encode_source_string): New function.
7779 (trace_save): Write out source strings, fix error checks.
7780 (parse_tracepoint_definition): Add source string parsing.
7781 * remote.c (PACKET_TracepointSource): New packet type.
7782 (remote_download_command_source): New function.
7783 (remote_download_tracepoint): Download source pieces also.
7784 (_initialize_remote): Add packet config command.
7785
7786 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7787 expression handler.
7788
7789 * tracepoint.c (start_tracing): Check tracepoints before sending
7790 commands to target, don't start if all tracepoints disabled.
7791
7792 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7793
7794 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7795
7796 2010-03-26 Stan Shebs <stan@codesourcery.com>
7797
7798 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7799
7800 2010-03-26 Tom Tromey <tromey@redhat.com>
7801
7802 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7803
7804 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7805
7806 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7807 (skip_prologue_sal): Remove local definition.
7808 (resolve_sal_pc): Remove now unnecessary code.
7809 * linespec.c (minsym_found): Call skip_prologue_sal.
7810 * symtab.c (find_function_start_pc): Remove.
7811 (find_function_start_sal): Extract prologue skipping into ...
7812 (skip_prologue_sal): ... this new function. Handle code both
7813 with and without debug info. Respect SAL's explicit_pc and
7814 explicit_line flags. Inline old find_function_start_pc.
7815 * symtab.h (find_function_start_pc): Remove.
7816 (skip_prologue_sal): Add prototype.
7817
7818 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7819
7820 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7821 for DW_TAG_imported_module children.
7822
7823 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7824
7825 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7826 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7827 * completer.c (add_struct_fields): Fix inverted logic.
7828
7829 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7830
7831 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7832
7833 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7834
7835 * tracepoint.c (current_trace_status): Don't make sure error_desc
7836 is non-NULL here.
7837 (parse_trace_status): Release a previous error_desc string, and
7838 set it to NULL by default. If stop reason is tracepoint_error,
7839 make sure error_desc is not left NULL.
7840
7841 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7842
7843 * tracepoint.c (trace_save): Remove X from tracepoint error
7844 description.
7845
7846 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7847
7848 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7849 the terror description. Don't expect an X prefix.
7850
7851 2010-03-25 Stan Shebs <stan@codesourcery.com>
7852
7853 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7854 (struct trace_status): New field error_desc.
7855 * tracepoint.c (stop_reason_names): Add terror.
7856 (current_trace_status): Ensure non-NULL error description.
7857 (trace_status_command): Add error report.
7858 (trace_status_mi): Ditto.
7859 (trace_save): Add special case for error description.
7860 (parse_trace_status): Add case for errors.
7861
7862 2010-03-25 Keith Seitz <keiths@redhat.com>
7863
7864 * dwarf2read.c (read_subroutine_type): If the compilation unit
7865 language is Java, mark any formal parameter named "this" as
7866 artificial (GCC/43521).
7867 (dwarf2_name): Add special handling for Java constructors.
7868
7869 2010-03-25 Tom Tromey <tromey@redhat.com>
7870
7871 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7872 * infrun.c (handle_inferior_event): Change initialization of
7873 stop_stack_dummy.
7874 (handle_inferior_event): Change assignment to stop_stack_dummy.
7875 (normal_stop): Update use of stop_stack_dummy.
7876 (struct inferior_status) <stop_stack_dummy>: Change type.
7877 * inferior.h (stop_stack_dummy): Update.
7878 * infcmd.c (stop_stack_dummy): Change type.
7879 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7880 function.
7881 (call_function_by_hand): Call set_std_terminate_breakpoint.
7882 Rewrite std::terminate handling.
7883 * breakpoint.h (enum bptype) <bp_std_terminate,
7884 bp_std_terminate_master>: New.
7885 (enum stop_stack_kind): New.
7886 (struct bpstat_what) <call_dummy>: Change type.
7887 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7888 Declare.
7889 * breakpoint.c (create_std_terminate_master_breakpoint): New
7890 function.
7891 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7892 Call create_std_terminate_master_breakpoint.
7893 (print_it_typical): Handle new breakpoint kinds.
7894 (bpstat_stop_status): Handle bp_std_terminate_master.
7895 (bpstat_what): Correctly set call_dummy field. Handle
7896 bp_std_terminate_master and bp_std_terminate.
7897 (print_one_breakpoint_location): Update.
7898 (allocate_bp_location): Update.
7899 (set_std_terminate_breakpoint): New function.
7900 (delete_std_terminate_breakpoint): Likewise.
7901 (create_thread_event_breakpoint): Update.
7902 (delete_command): Update.
7903 (breakpoint_re_set_one): Update.
7904 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7905
7906 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7907
7908 * symfile.c (build_section_addr_info_from_bfd): New.
7909 (build_section_addr_info_from_objfile): Base it on
7910 build_section_addr_info_from_bfd.
7911 (addrs_section_compar, addrs_section_sort): New.
7912 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7913 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7914 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7915
7916 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7917
7918 * elfread.c (find_separate_debug_file_by_buildid):
7919 Remove unused local variable.
7920
7921 2010-03-24 Tom Tromey <tromey@redhat.com>
7922
7923 PR breakpoints/9352:
7924 * NEWS: Mention changes to `commands' and `rbreak'.
7925 * symtab.c (do_end_rbreak_breakpoints): New function.
7926 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7927 end_rbreak_breakpoints.
7928 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7929 (set_breakpoint_count): Likewise. Clear last_was_multi.
7930 (multi_start, multi_end, last_was_multi): New globals.
7931 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7932 functions.
7933 (struct commands_info): New
7934 (do_map_commands_command): New function.
7935 (commands_command_1): New function.
7936 (commands_command): Use it.
7937 (commands_from_control_command): Likewise.
7938 (do_delete_breakpoint): New function.
7939 (delete_command): Use it.
7940 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7941 (do_map_disable_breakpoint): New function.
7942 (disable_command): Use it.
7943 (do_map_enable_breakpoint): New function.
7944 (enable_command): Use it.
7945 (enable_once_breakpoint): Add argument.
7946 (enable_once_command): Update.
7947 (enable_delete_breakpoint): Add argument.
7948 (enable_delete_command): Update.
7949 (break_command_really): Set last_was_multi when needed.
7950 (check_tracepoint_command): Fix formatting.
7951 (validate_commands_for_breakpoint): New function.
7952 (breakpoint_set_commands): Use it.
7953 (tracepoint_save_command): Update.
7954 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7955 Declare.
7956
7957 2010-03-24 Tom Tromey <tromey@redhat.com>
7958
7959 * breakpoint.h (struct counted_command_line): New struct.
7960 (struct breakpoint) <commands>: Change type.
7961 (struct bpstats) <commands>: Change type.
7962 <commands_left>: New field.
7963 * breakpoint.c (alloc_counted_command_line): New function.
7964 (incref_counted_command_line): Likewise.
7965 (decref_counted_command_line): Likewise.
7966 (do_cleanup_counted_command_line): Likewise.
7967 (make_cleanup_decref_counted_command_line): Likewise.
7968 (breakpoint_set_commands): Use decref_counted_command_line and
7969 alloc_counted_command_line.
7970 (commands_command): Don't error if breakpoint commands are
7971 executing.
7972 (commands_from_control_command): Likewise.
7973 (bpstat_free): Update.
7974 (bpstat_copy): Likewise.
7975 (bpstat_clear_actions): Likewise.
7976 (bpstat_do_actions_1): Likewise.
7977 (bpstat_stop_status): Likewise.
7978 (print_one_breakpoint_location): Likewise.
7979 (delete_breakpoint): Likewise.
7980 (bpstat_alloc): Initialize new field.
7981 (tracepoint_save_command): Update.
7982 * tracepoint.c (encode_actions): Update.
7983 (trace_dump_command): Update.
7984
7985 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7986
7987 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7988 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7989 (read_structure_type): For RealView, set TYPE_STUB on structures with
7990 no byte size and no children.
7991 (read_subroutine_type): Mark functions as prototyped by default.
7992 * symtab.c (producer_is_realview): New function.
7993 * symtab.h (expand_line_sal): Fix declaration formatting.
7994 (producer_is_realview): Declare.
7995
7996 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7997
7998 * arm-tdep.c (skip_prologue_function): New function.
7999 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8000 (thumb_analyze_prologue): Document return value. Recognize more
8001 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8002 Add debug output.
8003 (arm_skip_prologue): Remove call dummy check. Check the prologue
8004 for non-GNU compilers.
8005 (arm_instruction_changes_pc): New function.
8006 (arm_analyze_prologue): New function, broken out from
8007 arm_scan_prologue. Recognize more ARM instructions and skippable
8008 calls. Update comments. Handle NULL cache. Return the address
8009 of the first unrecognized instruction. Do not skip past other
8010 instructions which change control flow. Add debug output.
8011 (arm_scan_prologue): Use arm_analyze_prologue.
8012 (ARM_PC_32): Delete.
8013 (shifted_reg_val): Simplify ARM_PC_32 check.
8014
8015 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8016
8017 * tracepoint.c (tvariables_info_1): Actually compute
8018 the number of rows in the result.
8019
8020 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8021
8022 * remote.c (crc32): Constify `buf' parameter.
8023 (remote_verify_memory): New, abstracted out from...
8024 (compare_sections_command): ... this. Remove hardcoded target
8025 checks.
8026 (init_remote_ops): Install remote_verify_memory.
8027 * target.c (target_verify_memory): New.
8028 * target.h (struct target_ops) <to_verify_memory>: New field.
8029 (target_verify_memory): Declare.
8030
8031 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8032
8033 Implement -trace-save.
8034
8035 * mi-cmds.h (mi_cmds_trace_save): Declare.
8036 * mi-cmds.c (mi_cmds): Register -trace-save.
8037 * mi/mi-main.c (mi_cmd_trace_save): New.
8038 * remote.c (remote_save_trace_data): Take const parameter.
8039 * target.h (struct target_ops::to_save_trace_data): Take
8040 const parameter.
8041 * target.c (update_current_target): Adjust to the above.
8042 * tracepoint.c (trave_save): New, extracted from
8043 (trace_save_command): ...this.
8044 (tfile_trace_find): Remove message that is unnecessary now
8045 that 'tfind' reports found frame.
8046 * tracepoint.h (trace_save): Declare.
8047
8048 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8049
8050 Implement -trace-find.
8051
8052 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8053 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8054 * mi/mi-main.c (mi_cmd_trace_find): New.
8055 * target.h (struct target_ops): Document to_trace_find.
8056 * tracepoint.h (tfind_1): Declare.
8057 * tracepoint.c (finish_tfind_command): Rename to...
8058 (tfind_1): ...this.
8059 * remote.c (remote_trace_find): Return -1 if target say
8060 there's no frame. Improve error diagnostics.
8061
8062 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8063
8064 -trace-define-variable and -trace-list-variables.
8065
8066 * tracepoint.c (create_trace_state_variable): Make
8067 private copy of name, as opposed to assuming the
8068 pointer lives forever.
8069 (tvariables_info_1): New.
8070 (tvariables_info): Use the above.
8071 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8072 Declare.
8073 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8074 and -trace-list-variables.
8075 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8076 (mi_cmd_trace_list_variables): New.
8077 * mi/mi-main.c (mi_cmd_trace_define_variable)
8078 (mi_cmd_trace_list_variables): New.
8079
8080 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8081
8082 Implement -break-passcount.
8083
8084 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8085 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8086 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8087
8088 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8089
8090 -trace-start/-trace-end/-trace-status.
8091
8092 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8093 and -trace-stop.
8094 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8095 (mi_cmd_trace_stop): Declare.
8096 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8097 (mi_cmd_trace_stop): New.
8098 * tracepoint.c (start_tracing): New, extracted from...
8099 (trace_start_command): ...this.
8100 (trace_status_mi): New.
8101 * tracepoint.h (struct trace_status): Document
8102 stopping_tracepoint.
8103 (start_tracing, stop_tracing, trace_status_mi): Declare.
8104
8105 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8106
8107 Implement creating tracepoints with -break-insert.
8108
8109 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8110 to mean that tracepoint should be created.
8111
8112 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8113
8114 * breakpoint.c (check_no_tracepoint_commands): Use
8115 current spelling of 'teval'.
8116
8117 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8118
8119 Unify actions and commands
8120
8121 * defs.h (read_command_lines, read_command_lines_1): New
8122 parameters validator and closure.
8123 * tracepoint.h (struct action_line): Remove.
8124 * breakpoint.h (struct breakpoint): Remove the 'actions'
8125 field.
8126 * defs.h (enum command_control_type): New value
8127 while_stepping_control.
8128 (struct command_line): Add comments.
8129 * breakpoint.c (breakoint_is_tracepoint): New.
8130 (breakpoint_set_commands): For tracepoints,
8131 verify the commands are permissible.
8132 (check_tracepoint_commands): New.
8133 (commands_command): Require that each new line is validated using
8134 check_tracepoint_command, if we set commands for a tracepoint.
8135 (create_tracepoint_from_upload): Likewise.
8136 (print_one_breakpoint_location): Remove the code to print
8137 actions specifically.
8138 (tracepoint_save_command): Relay to print_command_lines.
8139 * cli/cli-script.c (process_next_line): New parameters validator
8140 and closure. Handle 'while-stepping'. Call validator if not null.
8141 (read_command_lines, read_command_lines1): Likewise.
8142 (recurse_read_control_structure): New parameters validator and
8143 closure. Handle while_stepping_control.
8144 (print_command_lines): Handle while-stepping.
8145 (get_command_line, define_command, document_command): Adjust.
8146 * remote.c (remote_download_tracepoint): Adjust.
8147 * tracepoint.c (make_cleanup_free_actions, read_actions)
8148 (free_actions, do_free_actions_cleanup): Remove.
8149 (trace_actions_command): Use read_command_lines.
8150 (validate_actionline): Use error in one place.
8151 (encode_actions_1): New, extracted from...
8152 (encode_actions): ...this. Also use cleanups for exception
8153 safety.
8154 (trace_dump_command): Adjust.
8155 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8156 it's tracepoint.
8157
8158 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8159
8160 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8161
8162 2010-03-22 Stan Shebs <stan@codesourcery.com>
8163
8164 * value.c (value_static_field): Be lazy about the field's value.
8165
8166 2010-03-22 Reid Kleckner <reid@kleckner.net>
8167
8168 PR gdb/11094
8169 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8170 bp_jit_event.
8171 (disable_breakpoints_in_shlibs): Likewise.
8172
8173 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8174
8175 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8176 GCC 4.1 debug info generation (GCC PR c++/28460).
8177 (determine_prefix): Likewise.
8178
8179 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8180
8181 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8182 get_current_arch.
8183 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8184
8185 2010-03-19 Stan Shebs <stan@codesourcery.com>
8186
8187 * ax-gdb.c (gen_fetch): Handle bool.
8188 (gen_usual_unary): Ditto.
8189 (gen_cast): Ditto.
8190 (gen_equal): New function.
8191 (gen_less): New function.
8192 (gen_expr_binop_rest): Call them, also return integer type from
8193 logical operations.
8194 (gen_expr): Ditto.
8195
8196 2010-03-19 Tom Tromey <tromey@redhat.com>
8197
8198 * jv-lang.c (jv_dynamics_objfile_data_key)
8199 (jv_type_objfile_data_key): New globals.
8200 (class_symtab): Move earlier.
8201 (jv_per_objfile_free): New function.
8202 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8203 parameter.
8204 Remove ancient #if 1.
8205 (add_class_symbol): Remove redundant declaration.
8206 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8207 (java_link_class_type): Mark as static. Update.
8208 (jv_clear_object_type): New function.
8209 (set_java_object_type): Likewise.
8210 (get_java_object_type): Use set_java_object_type.
8211 (is_object_type): Likewise.
8212 (_initialize_java_language): Register new objfile keys.
8213 (get_java_class_symtab): Add 'gdbarch' parameter.
8214 (add_class_symtab_symbol): Update.
8215 (type_from_class): Update.
8216
8217 2010-03-19 Stan Shebs <stan@codesourcery.com>
8218
8219 * ax-general.c (ax_const_l): Fix a sizing bug.
8220
8221 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8222
8223 GDB 7.1 released.
8224
8225 2010-03-18 Stan Shebs <stan@codesourcery.com>
8226 Pedro Alves <pedro@codesourcery.com>
8227
8228 * target.h (struct target_ops): New method
8229 to_set_circular_trace_buffer.
8230 (target_set_circular_trace_buffer): New macro.
8231 * target.c (update_current_target): Add
8232 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8233 default behavior.
8234 * remote.c (remote_set_circular_trace_buffer): New function.
8235 (init_remote_ops): Add it to vector.
8236 * tracepoint.h (struct trace_status): New field traceframes_created,
8237 change buffer_size and buffer_free to int.
8238 * tracepoint.c (circular_trace_buffer): New global.
8239 (start_tracing): Send values of disconnected tracing and circular
8240 trace buffer settings.
8241 (set_circular_trace_buffer): New function.
8242 (parse_trace_state): Handle total space and frames created.
8243 (trace_status_command): Display total space and total frames
8244 created.
8245 (trace_save): Write out new status values.
8246 (parse_trace_status): Set traceframe_count, traceframes_created,
8247 buffer_free and buffer_size to -1 by default.
8248 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8249 * NEWS: Mention the circular trace buffer option.
8250
8251 2010-03-18 Tom Tromey <tromey@redhat.com>
8252
8253 * infcmd.c (finish_command_continuation): Wrap print_return_value
8254 in TRY_CATCH.
8255
8256 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8257
8258 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8259 DIE has a name before creating the associated partial symbol.
8260 (read_func_scope): Emit a complaint if the subprogram does not
8261 have a name or when we can't extract the subprogram PC bounds.
8262
8263 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8264
8265 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8266 instead of selected frame architecture.
8267
8268 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8269
8270 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8271 a valid selected thread, and that it is not running.
8272 (advance_command): Ditto.
8273 (finish_command): Ditto.
8274
8275 2010-03-17 Stan Shebs <stan@codesourcery.com>
8276
8277 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8278
8279 * infcall.c: Include tracepoint.h.
8280 (call_function_by_hand): Disallow calls in tfind mode.
8281 * infcmd.c: Include tracepoint.h.
8282 (ensure_not_tfind_mode): New function.
8283 (continue_1): Call it.
8284 (step_1) Ditto.
8285 (jump_command): Ditto.
8286 (signal_command): Ditto.
8287 (advance_command): Ditto.
8288 (until_command): Ditto.
8289 (finish_command): Ditto.
8290 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8291
8292 * ax-gdb.h (struct axs_value): New field optimized_out.
8293 (gen_trace_for_var): Add gdbarch argument.
8294 * ax-gdb.c (gen_trace_static_fields): New function.
8295 (gen_traced_pop): Call it, add gdbarch argument.
8296 (gen_trace_for_expr): Update call to it.
8297 (gen_trace_for_var): Ditto, and report optimized-out variables.
8298 (gen_struct_ref_recursive): Check for optimized-out value.
8299 (gen_struct_elt_for_reference): Ditto.
8300 (gen_static_field): Pass gdbarch instead of expression, assume
8301 optimization if field not found.
8302 (gen_var_ref): Set the optimized_out flag.
8303 (gen_expr): Error on optimized-out variable.
8304 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8305 expressions, skip optimized-out variables with computed locations.
8306 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8307 erroring out if location expression missing.
8308 (loclist_tracepoint_var_ref): Don't error out here.
8309
8310 2010-03-17 Tom Tromey <tromey@redhat.com>
8311
8312 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8313 DWARF data is available.
8314
8315 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8316
8317 * symfile.c (generic_load): Reset breakpoints after loading.
8318
8319 2010-03-17 Tom Tromey <tromey@redhat.com>
8320
8321 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8322
8323 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8324
8325 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8326 create_breakpoint call, adjust the parameters.
8327
8328 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8329 Chandru <chandru@in.ibm.com>
8330
8331 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8332 * valarith.c (value_subscripted_rvalue): Suppress error if
8333 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8334
8335 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8336
8337 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8338
8339 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8340
8341 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8342 before doing the associated thread switch.
8343
8344 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8345
8346 * MAINTAINERS: Update my email address.
8347
8348 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8349
8350 Simplify MI breakpoint setting.
8351
8352 * breakpoint.c (break_command_really): Make nonstatic and
8353 rename to...
8354 (create_breakpoint): ...this. Rename prior function by this name
8355 to...
8356 (create_breakpoint_sal): ...this.
8357 (create_breakpoints): Rename to...
8358 (create_breakpoints_sal): ...this.
8359 (set_breakpoint): Remove.
8360 * breakpoint.h: Adjust to above changes.
8361 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8362
8363 2010-03-15 Stan Shebs <stan@codesourcery.com>
8364
8365 * ax-gdb.c: Include cp-support.h.
8366 (find_field): Remove.
8367 (gen_primitive_field): New function.
8368 (gen_struct_ref_recursive): New function.
8369 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8370 of find_field.
8371 (gen_static_field): New function.
8372 (gen_struct_elt_for_reference): New.
8373 (gen_namespace_elt): New.
8374 (gen_maybe_namespace_elt): New.
8375 (gen_aggregate_elt_ref): New.
8376 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8377
8378 2010-03-15 Tom Tromey <tromey@redhat.com>
8379
8380 * dwarf2read.c (die_needs_namespace): Also return 0 for
8381 DW_TAG_subprogram.
8382
8383 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8384
8385 PR c++/7936:
8386 * cp-support.h: Added char *declaration element to using_direct
8387 data struct.
8388 (cp_add_using): Added char *declaration argument.
8389 (cp_add_using_directive): Ditto.
8390 (cp_lookup_symbol_imports): made extern.
8391 * cp-namespace.c: Updated with the above changes.
8392 * dwarf2read.c (read_import_statement): Ditto.
8393 (read_namespace): Ditto.
8394 (read_import_statement): Support import declarations.
8395 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8396 declarations.
8397 Added support for 'declaration_only' search.
8398 (cp_lookup_symbol_namespace): Attempt to search for the name as
8399 is before consideration of imports.
8400 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8401 search at every block level search.
8402 Now takes language argument.
8403 (lookup_symbol_aux): Updated.
8404
8405 2010-03-15 Tom Tromey <tromey@redhat.com>
8406
8407 * c-exp.y (name_not_typename): Add 'operator' clause.
8408
8409 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8410
8411 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8412 * configure: Regenerate.
8413
8414 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8415
8416 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8417 and ".sdynbss". Update the comment.
8418
8419 2010-03-15 Jie Zhang <jie@codesourcery.com>
8420
8421 * MAINTAINERS: Update my email address.
8422
8423 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8424
8425 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8426
8427 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8428
8429 * charset.c [USE_WIN32API]: Include <windows.h>.
8430 (_initialize_charset): Correct type of w32_host_default_charset.
8431
8432 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8433
8434 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8435
8436 2010-03-12 Tom Tromey <tromey@redhat.com>
8437
8438 PR c++/9708:
8439 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8440 in a lexical block does not need a namespace.
8441 (new_symbol) <DW_TAG_variable>: Put extern variables on
8442 list_in_scope in all cases.
8443
8444 2010-03-12 Stan Shebs <stan@codesourcery.com>
8445
8446 * ax-gdb.c (gen_expr): Add shift expressions.
8447 (gen_expr_binop_rest): Ditto.
8448
8449 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8450
8451 * buildsym.c (finish_block): Reset using_directives pointer
8452 after block initialization.
8453
8454 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8455
8456 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8457 * i386-tdep.c (i386_word_names): Likewise.
8458
8459 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8460
8461 * target.c (memory_xfer_partial): Don't use the stack cache if
8462 inspecting trace frames.
8463 * tracepoint.c (finish_tfind_command): Invalidate the target
8464 dcache.
8465
8466 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8467
8468 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8469 for the PIC displacement, print also the displacement value.
8470 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8471
8472 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8473
8474 * remote-mips.c (close_ports, mips_initialize_cleanups)
8475 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8476 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8477 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8478 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8479 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8480 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8481 comments describing each of these functions.
8482 (mips_enter_debug, mips_exit_debug, common_open)
8483 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8484 blank line after the comment describing the function.
8485
8486 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8487
8488 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8489 parameter displacementp. Update comment.
8490 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8491 element exists. Return if svr4_exec_displacement was not successful.
8492 Update comment.
8493
8494 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8495 Daniel Jacobowitz <dan@codesourcery.com>
8496
8497 * solib-svr4.c (read_program_header): Support type == -1 to read
8498 all program headers.
8499 (read_program_headers_from_bfd): New function.
8500 (svr4_static_exec_displacement): Remove and move the comment ...
8501 (svr4_exec_displacement): ... here. Remove variable found. New
8502 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8503 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8504 targets using read_program_headers_from_bfd. Remove the call of
8505 svr4_static_exec_displacement.
8506
8507 2010-03-10 Tom Tromey <tromey@redhat.com>
8508
8509 * dwarf2read.c (struct pubnames_header): Remove.
8510 (_PUBNAMES_HEADER): Remove.
8511 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8512 (struct aranges_header): Remove.
8513 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8514 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8515 (PUBNAMES_SECTION): Remove.
8516 (ARANGES_SECTION): Remove.
8517 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8518 (dwarf2_build_psymtabs): Remove dead code.
8519 (dwarf2_build_psymtabs_easy): Remove.
8520
8521 2010-03-10 Tom Tromey <tromey@redhat.com>
8522
8523 * elfread.c (elf_symfile_read): Don't call
8524 dwarf2_build_frame_info.
8525 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8526 (struct dwarf2_per_objfile) <objfile>: New field.
8527 (dwarf2_has_info): Now idempotent. Set objfile field.
8528 (dwarf2_read_section): Check and set readin field. Call
8529 posix_madvise.
8530 (dwarf2_build_psymtabs): Don't read all sections.
8531 (read_type_comp_unit_head): Read types section.
8532 (create_debug_types_hash_table): Likewise.
8533 (init_cu_die_reader): Add asserts.
8534 (process_type_comp_unit): Add assert.
8535 (dwarf2_build_psymtabs_hard): Read info section.
8536 (load_partial_comp_unit): Add assert.
8537 (create_all_comp_units): Read info section.
8538 (load_full_comp_unit): Likewise.
8539 (dwarf2_ranges_read): Read ranges section.
8540 (dwarf2_record_block_ranges): Add assert.
8541 (dwarf2_read_abbrevs): Read abbrev section.
8542 (read_indirect_string): Read str section.
8543 (dwarf_decode_line_header): Read line section.
8544 (read_signatured_type_at_offset): Read types section.
8545 (dwarf_decode_macros): Read macinfo section.
8546 (dwarf2_symbol_mark_computed): Read loc section.
8547 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8548 dwarf2_build_frame_info.
8549 (dwarf2_build_frame_info): Unconditionally set
8550 dwarf2_frame_objfile_data on the objfile.
8551 * configure.ac: Check for posix_madvise.
8552 * config.in, configure: Rebuild.
8553
8554 2010-03-10 Tom Tromey <tromey@redhat.com>
8555
8556 * xcoffread.c (xcoff_start_psymtab): Update.
8557 (xcoff_end_psymtab): Update.
8558 * psymtab.c (allocate_psymtab): Remove dead code.
8559 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8560 void*.
8561 * mdebugread.c (parse_partial_symbols): Update.
8562 (new_psymtab): Likewise.
8563 * dwarf2read.c (process_psymtab_comp_unit): Update.
8564 (psymtab_to_symtab_1): Update.
8565 * dbxread.c (start_psymtab): Update.
8566 (end_psymtab): Likewise.
8567
8568 2010-03-10 Tom Tromey <tromey@redhat.com>
8569
8570 * xcoffread.c: Include psymtab.h.
8571 (xcoff_sym_fns): Update.
8572 * symtab.h (struct partial_symbol): Remove.
8573 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8574 (struct partial_symtab): Remove.
8575 (PSYMTAB_TO_SYMTAB): Remove.
8576 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8577 (find_pc_sect_psymtab): Remove.
8578 (find_pc_sect_symtab_via_partial): Declare.
8579 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8580 (find_main_psymtab): Remove.
8581 (find_main_filename): Declare.
8582 (fixup_psymbol_section): Remove.
8583 (fixup_section): Declare.
8584 * symtab.c: Include psymtab.h.
8585 (lookup_symtab): Use lookup_symtab method.
8586 (lookup_partial_symtab): Remove.
8587 (find_pc_sect_psymtab_closer): Remove.
8588 (find_pc_sect_psymtab): Remove.
8589 (find_pc_sect_symtab_via_partial): New function.
8590 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8591 (fixup_section): No longer static.
8592 (fixup_psymbol_section): Remove.
8593 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8594 (lookup_global_symbol_from_objfile): Likewise.
8595 (lookup_symbol_aux_psymtabs): Remove.
8596 (lookup_symbol_aux_quick): New function.
8597 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8598 (lookup_partial_symbol): Remove.
8599 (basic_lookup_transparent_type_quick): New function.
8600 (basic_lookup_transparent_type): Use it.
8601 (find_main_psymtab): Remove.
8602 (find_main_filename): New function.
8603 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8604 (find_line_symtab): Use expand_symtabs_with_filename method.
8605 (output_partial_symbol_filename): New function.
8606 (sources_info): Use map_partial_symbol_filenames.
8607 (struct search_symbols_data): New type.
8608 (search_symbols_file_matches): New function.
8609 (search_symbols_name_matches): Likewise.
8610 (search_symbols): Use expand_symtabs_matching method.
8611 (struct add_name_data): Rename from add_macro_name_data.
8612 (add_macro_name): Update.
8613 (add_partial_symbol_name): New function.
8614 (default_make_symbol_completion_list): Use
8615 map_partial_symbol_names.
8616 (struct add_partial_symbol_name): New type.
8617 (maybe_add_partial_symtab_filename): New function.
8618 (make_source_files_completion_list): Use
8619 map_partial_symbol_filenames.
8620 (expand_line_sal): Use expand_symtabs_with_filename method.
8621 * symmisc.c: Include psymtab.h.
8622 (print_objfile_statistics): Use print_stats method.
8623 (dump_objfile): Use dump method.
8624 (dump_psymtab, maintenance_print_psymbols)
8625 (maintenance_info_psymtabs, maintenance_check_symtabs)
8626 (extend_psymbol_list): Remove.
8627 * symfile.h (struct quick_symbol_functions): New struct.
8628 (struct sym_fns) <qf>: New field.
8629 (sort_pst_symbols): Remove.
8630 (increment_reading_symtab): Declare.
8631 * symfile.c: Include psymtab.h.
8632 (compare_psymbols, sort_pst_symbols): Remove.
8633 (psymtab_to_symtab): Remove.
8634 (increment_reading_symtab): New function.
8635 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8636 method.
8637 (set_initial_language): Use find_main_filename.
8638 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8639 (free_named_symtabs): Remove unused code.
8640 (start_psymtab_common, add_psymbol_to_bcache)
8641 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8642 Remove.
8643 * stack.c: Include psymtab.h, symfile.h.
8644 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8645 * source.h (psymtab_to_fullname): Don't declare.
8646 * source.c: Include psymtab.h.
8647 (select_source_symtab): Use find_last_source_symtab method.
8648 (forget_cached_source_info): Use forget_cached_source_info
8649 method.
8650 (find_and_open_source): No longer static.
8651 (psymtab_to_fullname): Remove.
8652 * somread.c: Include psymtab.h.
8653 (som_sym_fns): Update.
8654 * psympriv.h: New file.
8655 * psymtab.h: New file.
8656 * psymtab.c: New file.
8657 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8658 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8659 * objfiles.c: Include psymtab.h.
8660 (objfile_relocate1): Use relocate method.
8661 (objfile_has_partial_symbols): Use has_symbols method.
8662 * mipsread.c: Include psymtab.h.
8663 (ecoff_sym_fns): Update.
8664 * mi/mi-cmd-file.c: Include psymtab.h.
8665 (print_partial_file_name): New function.
8666 (mi_cmd_file_list_exec_source_files): Use
8667 map_partial_symbol_filenames.
8668 * mdebugread.c: Include psympriv.h.
8669 * machoread.c: Include psympriv.h.
8670 (macho_sym_fns): Update.
8671 * m2-exp.y (yylex): Use lookup_symtab.
8672 * elfread.c: Include psympriv.h.
8673 (elf_sym_fns): Update.
8674 * dwarf2read.c: Include psympriv.h.
8675 * dbxread.c: Include psympriv.h.
8676 (aout_sym_fns): Update.
8677 * cp-support.c: Include psymtab.h.
8678 (read_in_psymtabs): Remove.
8679 (make_symbol_overload_list_qualified): Use
8680 expand_symtabs_for_function method.
8681 * coffread.c: Include psympriv.h.
8682 (coff_sym_fns): Update.
8683 * blockframe.c: Include psymtab.h.
8684 (find_pc_partial_function): Use find_pc_sect_symtab method.
8685 * ada-lang.h (ada_update_initial_language): Update.
8686 * ada-lang.c: Include psymtab.h.
8687 (ada_update_initial_language): Remove 'main_pst' argument.
8688 (ada_lookup_partial_symbol): Remove.
8689 (struct ada_psym_data): New type.
8690 (ada_add_psyms): New function.
8691 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8692 (struct add_partial_datum): New type.
8693 (ada_add_partial_symbol_completions): New function.
8694 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8695 (ada_exception_support_info_sniffer): Update.
8696 * Makefile.in (SFILES): Add psymtab.c.
8697 (COMMON_OBS): Add psymtab.o.
8698 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8699
8700 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8701
8702 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8703
8704 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8705
8706 PR C++/11236:
8707 * cp-namespace.c (cp_add_using): Deleted.
8708 (cp_add_using_directive): Use obstack allocations.
8709 Merged the function cp_add_using into this one.
8710 Added 'struct obstack *' argument.
8711 (cp_scan_for_anonymous_namespaces): Updated.
8712 * cp-support.h: Updated.
8713 * dwarf2read.c (read_import_statement): Updated.
8714 (read_namespace): Updated.
8715
8716 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8717
8718 * windows-nat.c (cygwin_conv_path): Remove old macro.
8719
8720 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8721
8722 * breakpoint.c (condition_command): Handle watchpoint conditions.
8723 (is_hardware_watchpoint): Add comment.
8724 (is_watchpoint): New.
8725 (update_watchpoint): Don't reparse the watchpoint's condition
8726 unless necessary.
8727 (WP_IGNORE): New.
8728 (watchpoint_check): Use it.
8729 (bpstat_check_watchpoint): Handle it.
8730 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8731 conditions in a frame where it makes sense.
8732 (watch_command_1): Store the innermost block of the condition
8733 expression.
8734 (delete_breakpoint): Delete the watchpoint condition expression.
8735 * breakpoint.h (struct bp_location) <cond>: Update comment.
8736 (struct breakpoint): New field `cond_exp_valid_block'.
8737
8738 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8739
8740 Adjust handling of Ada DIEs after dwarf2_physname patch.
8741 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8742
8743 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8744 Pierre Muller <muller@ics.u-strasbg.fr>
8745
8746 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8747 from/to posix/win32.
8748 (windows_make_so): Use non-Cygwin 1.7 specific function.
8749 (windows_create_inferior): Make sure that cygallargs points to
8750 original args in non Cygwin 1.7. case.
8751
8752 2010-03-09 Michael Snyder <msnyder@vmware.com>
8753
8754 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8755 after target_read_memory to get host byte order.
8756 (i386_process_record): Ditto.
8757
8758 2010-03-09 Keith Seitz <keiths@redhat.com>
8759
8760 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8761 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8762 print out const or volatile qualifiers, too.
8763 (c_type_print_args): Add parameters show_artificial and language.
8764 Skip artificial parameters when requested.
8765 Use the appropriate language printer.
8766 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8767 parameters and pass language_c.
8768 * dwarf2read.c (die_list): New file global.
8769 (struct partial_die_info): Update comments for name field.
8770 (pdi_needs_namespace): Renamed to ...
8771 (die_needs_namespace): ... this. Rewrite.
8772 (dwarf2_linkage_name): Remove.
8773 (add_partial_symbol): Do not predicate the call to
8774 partial_die_full_name based on pdi_needs_namespace.
8775 Remove call to cp_check_possible_namespace_symbols and associated
8776 outdated comments.
8777 (guess_structure_name): Do not inspect child subprogram DIEs.
8778 (dwarf2_fullname): Update comments.
8779 Use die_needs_namespace to assist in computing the name.
8780 (read_func_scope): Use dwarf2_name to get the DIE's name.
8781 Use dwarf2_physname to get the "linkage name" of the DIE.
8782 (dwarf2_add_member_field): Use dwarf2_physname instead of
8783 dwarf2_linkage_name.
8784 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8785 (determine_class): Remove.
8786 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8787 except Ada.
8788 (new_symbol): Unconditionally call dwarf2_name.
8789 Compute the "linkage name" using dwarf2_physname.
8790 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8791 When determining to scan for anonymous C++ namespaces, ignore
8792 the linkage name.
8793 (dwarf2_physname): New function.
8794 (dwarf2_full_name): Move content to new function and call
8795 that.
8796 (dwarf2_compute_name): "New" function.
8797 (_initialize_dwarf2_read): Initialize die_list.
8798 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8799 physname.
8800 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8801 without a demangled name.
8802 Print out type information for non-virtual methods.
8803 * linespec.c (decode_line_1): Force ANY string using "::" (or
8804 "." for java) to use decode_compound, and clean up any stray quoting.
8805 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8806 (decode_compound): Stop consuming at an open parenthesis.
8807 Keep template parameters.
8808 Keep any overload information.
8809 Keep keywords like "const".
8810 Remove paren_pointer.
8811 Move is_quoted check from set_flags to here.
8812 Remove #if 0 code from 2000. Ten years is long enough.
8813 (find_method): Before comparing symbol names, canonicalize the string
8814 from the user.
8815 If a specific overload is requested, find it. Otherwise throw an error.
8816 (find_method_overload_end): New function.
8817 (set_flags): Remove.
8818 (decode_compound): Assume that parentheses are matched.
8819 It's a lot easier.
8820 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8821 to cplus_demangle.
8822 * linespec.c (decode_line_1): Keep important keywords like
8823 "const" and "volatile".
8824 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8825 * typeprint.h (c_type_print_args): Add declaration.
8826 * ui-file.c (do_ui_file_obsavestring): New function.
8827 (ui_file_obsavestring): New function.
8828 * ui-file.h (ui_file_obsavestring): Add declaration.
8829 * valops.c (find_overload_match): Resolve the object to
8830 a non-pointer type.
8831 If the object is a data member, search the object for the member
8832 and return with staticp set.
8833 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8834 Do not attempt to extract a function name from non-function types.
8835 If the extracted function name and the original name are the same,
8836 we don't have a C++ method.
8837
8838 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8839 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8840
8841 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8842 and arguments from symbol lookups.
8843 * ax-gdb.c (gen_expr): Likewise.
8844 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8845 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8846 lookup_possible_namespace_symbol): Likewise.
8847 * cp-support.c (read_in_psymtabs): Likewise.
8848 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8849 * language.h (la_lookup_symbol_nonlocal): Likewise.
8850 * scm-valprint.c (scm_inferior_print): Likewise.
8851 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8852 * solib-svr.c (elf_lookup_lib): Likewise.
8853 * solib.c (show_auto_solib_add): Likewise.
8854 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8855 * symmisc.c (maintenance_check_symtabs): Likewise.
8856 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8857 lookup_symbol_aux_local, lookup_symbol_aux_block,
8858 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8859 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8860 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8861 basic_lookup_transparent_type, find_main_psymtab,
8862 lookup_block_symbol): Likewise.
8863 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8864 lookup_symbol_global, lookup_symbol_aux_block,
8865 lookup_symbol_partial_symbol, lookup_block_symbol,
8866 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8867
8868 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8869
8870 * python/python-internal.h: Include symtab.h.
8871
8872 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8873 Pierre Muller <muller@ics.u-strasbg.fr>
8874
8875 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8876 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8877 indentation.
8878
8879 2010-03-08 Tom Tromey <tromey@redhat.com>
8880
8881 * breakpoint.c (breakpoint_1): Add "QUIT".
8882
8883 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8884 Pedro Alves <pedro@codesourcery.com>
8885
8886 * solib.c (solib_find): Replace extension if
8887 solib_symbols_extension is set in the target gdbarch.
8888 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8889 solib_symbols_extension to "sym".
8890 * gdbarch.sh (solib_symbols_extension): New variable.
8891 (pstring): New function.
8892 * gdbarch.h, gdbarch.c: Regenerate.
8893
8894 2010-03-08 Tom Tromey <tromey@redhat.com>
8895
8896 PR cli/9591:
8897 * NEWS: Update.
8898 * utils.c: Include main.h.
8899 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8900 (defaulted_query): Use default answer if `batch_flag'.
8901 * main.h (batch_flag): Declare.
8902 * main.c (batch_flag): New global.
8903 (captured_main): Remove 'batch'. Update.
8904
8905 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8906
8907 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8908 and Kevin Buettner:
8909
8910 * remote-mips.c (rockhopper_ops): New target_ops struct.
8911 (MON_ROCKHOPPER): New mips_monitor_type.
8912 (read_hex_value): New function.
8913 (mips_request): Send 8-byte values with a 'T' packet. Read the
8914 packet argument as a string and use read_hex_value to parse it.
8915 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8916 (rockhopper_open): New function.
8917 (mips_wait): Read the PC, FP and SP fields as strings. Use
8918 read_hex_value to parse them and mips_set_register to commit them.
8919 (mips_set_register): New function.
8920 (mips_fetch_registers): Do not cast register value to "unsigned"
8921 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8922 (mips_store_registers): Use a 'T' packet to set registers when
8923 using MON_ROCKHOPPER.
8924 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8925 and expect the total to be printed before the entry address.
8926 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8927
8928 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8929
8930 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8931 Change return value to int. Store value fetched in location
8932 addressed by `val'. Use function's return value as success
8933 or failure indicator. Adjust all callers.
8934
8935 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
8936
8937 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8938
8939 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8940 Hui Zhu <teawater@gmail.com>
8941
8942 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8943 tmp_to_stopped_data_address.
8944 (record_open): Reset tmp_to_stopped_by_watchpoint and
8945 tmp_to_stopped_data_address.
8946 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8947 to_stopped_data_address.
8948
8949 2010-03-08 Hui Zhu <teawater@gmail.com>
8950
8951 * i386-tdep.c (i386_process_record): Initialize regnum.
8952
8953 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8954
8955 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8956 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8957
8958 2010-03-08 Joel Brobecker <brobecker@adacore.com>
8959
8960 Memory error when reading wrong core file.
8961 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8962 errors while reading the inferior memory, and return zero if
8963 an exception was raised.
8964
8965 2010-03-07 Michael Snyder <msnyder@vmware.com>
8966
8967 * record.c (record_restore): Rename tmpu8 to rectype.
8968
8969 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8970 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8971
8972 (i386_record_push): Rename local tmpulongest to addr.
8973
8974 (i386_process_record): Rename local tmpulongest to addr.
8975
8976 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8977 addr64.
8978
8979 Rename local variable tmpu8 to opcode8 and regnum.
8980
8981 2010-03-07 Joel Brobecker <brobecker@adacore.com>
8982
8983 * remote.c (remote_get_ada_task_ptid): New function.
8984 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8985
8986 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8987
8988 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8989 block. Define helper macros to reduce ifdefs in code.
8990 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8991 size. Call unadorned GetModuleFileNameEx rather than
8992 GetModuleFileNameEx*.
8993 (windows_make_so): Use __PMAX to denote maximum buffer size and
8994 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8995 appropriate.
8996 (get_image_name): Use __PMAX to denote maximum buffer size.
8997 (handle_load_dll): Likewise.
8998 (windows_pid_to_exec_file): Likewise.
8999 (windows_create_inferior): Add many accommodations for older Cygwin and
9000 non-Cygwin.
9001 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9002 __USEWIDE conditional.
9003 (bad_GetModuleFileNameExA): Likewise.
9004 (_initialize_loadable): Just use real function names without the dyn_
9005 part since they are defined earlier.
9006
9007 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9008 Tom Tromey <tromey@redhat.com>
9009
9010 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9011 (parse_escape): Likewise.
9012 * python/py-utils.c (unicode_to_target_string): Update.
9013 (unicode_to_target_python_string): Update.
9014 (target_string_to_unicode): Update.
9015 * printcmd.c (printf_command): Update.
9016 * p-exp.y (yylex): Update.
9017 * objc-exp.y (yylex): Update.
9018 * mi/mi-parse.c: Include charset.h.
9019 (mi_parse_escape): New function.
9020 (mi_parse_argv): Use it.
9021 * jv-exp.y (yylex): Update.
9022 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9023 function.
9024 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9025 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9026 * gdbarch.c: Rebuild.
9027 * gdbarch.h: Rebuild.
9028 * defs.h (parse_escape): Update.
9029 * cli/cli-setshow.c: Include arch-utils.h.
9030 (do_setshow_command): Update.
9031 * cli/cli-cmds.c (echo_command): Update.
9032 * charset.h (target_charset, target_wide_charset): Update.
9033 * charset.c: Include arch-utils.h.
9034 (target_charset_name): Default to "auto".
9035 (target_wide_charset_name): Likewise.
9036 (show_target_charset_name): Handle "auto".
9037 (show_target_wide_charset_name): Likewise.
9038 (be_le_arch): New global.
9039 (set_be_le_names): Add 'gdbarch' argument.
9040 (validate): Likewise. Don't call set_be_le_names.
9041 (set_charset_sfunc, set_host_charset_sfunc)
9042 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9043 Update.
9044 (target_charset): Add 'gdbarch' argument.
9045 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9046 (auto_target_charset_name): New global.
9047 (default_auto_charset, default_auto_wide_charset): New functions.
9048 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9049 for target charsets. Copy result of nl_langinfo. Use GetACP if
9050 USE_WIN32API.
9051 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9052 remove 'byte_order' argument. Update.
9053 (classify_type): Likewise.
9054 (c_emit_char): Update.
9055 (c_printchar): Update.
9056 (c_printstr): Update.
9057 (c_get_string): Update.
9058 (evaluate_subexp_c): Update.
9059 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9060 Declare.
9061 * python/python.c (gdbpy_target_charset): New function.
9062 (gdbpy_target_wide_charset): Likewise.
9063 (GdbMethods): Update.
9064 * NEWS: Update.
9065
9066 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9067
9068 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9069 off high address bits.
9070
9071 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9072
9073 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9074 address as UnsignedLongLong, not LongLong.
9075
9076 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9077 Pedro Alves <pedro@codesourcery.com>
9078
9079 * remote-mips.c (gdbthread.h): Include.
9080 (remote_mips_ptid): Declare.
9081 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9082 (common_open): Set inferior_ptid, add it as an inferior, and
9083 as a thread too. Delete FIXME comment regarding start_remote().
9084 (mips_close): Invoke generic_mourn_inferior().
9085 (mips_kill): Make sure that target_mourn_inferior is invoked.
9086 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9087 it's now invoked from mips_close().
9088 (mips_load): Don't null out inferior_ptid. Don't call
9089 clear_symtab_users().
9090 (mips_thread_alive, mips_pid_to_str): New functions.
9091 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9092 to_thread_alive and to_pid_to_str operations.
9093
9094 2010-03-04 Tom Tromey <tromey@redhat.com>
9095
9096 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9097 in DWARF 3 and later.
9098 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9099
9100 2010-03-04 Keith Seitz <keiths@redhat.com>
9101
9102 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9103 If the filename portion of the linespec was quoted, recheck the
9104 remainder for additional quoting.
9105 (locate_first_half): Skip over completer chars, too.
9106
9107 2010-03-04 Tom Tromey <tromey@redhat.com>
9108
9109 * printcmd.c (printf_command): Pass dummy argument to
9110 printf_filtered.
9111
9112 2010-03-04 Doug Evans <dje@google.com>
9113
9114 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9115 unwound_fp.
9116
9117 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9118
9119 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9120
9121 * breakpoint.c (update_watchpoint): Create a sentinel location if
9122 the software watchpoint isn't watching any memory.
9123 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9124
9125 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9126
9127 * utils.c (fputs_maybe_filtered): Check if there's already a top
9128 level interpreter before dereferencing it. If there isn't one,
9129 don't paginate either.
9130
9131 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9132
9133 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9134 the state right when single stepping.
9135 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9136 Get the next PC along with the instruction state.
9137 (thumb_get_next_pc): Remove.
9138 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9139
9140 2010-03-04 Hui Zhu <teawater@gmail.com>
9141
9142 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9143
9144 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9145
9146 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9147 top level interpreter is MI.
9148
9149 2010-03-03 Stan Shebs <stan@codesourcery.com>
9150
9151 * remote.c (remote_download_tracepoint): Iterate over locations.
9152 * tracepoint.c (validate_actionline): Ditto.
9153 (encode_actions): Add location argument.
9154 (trace_dump_command): Check all locations to see if stepping
9155 frame.
9156
9157 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9158 Eli Zaretskii <eliz@gnu.org>
9159
9160 * NEWS: Add X86 general purpose registers section.
9161
9162 2010-03-03 Tom Tromey <tromey@redhat.com>
9163
9164 PR mi/11098:
9165 * varobj.c (install_new_value): Handle case where new print_value
9166 is NULL.
9167
9168 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9169
9170 PR gdb/11345:
9171 * printcmd.c (printf_command): Print end of format string using
9172 printf_filtered.
9173
9174 2010-03-02 Tom Tromey <tromey@redhat.com>
9175
9176 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9177 * defs.h (read_command_lines_1): Add missing 'void'.
9178 * cli/cli-script.c (recurse_read_control_structure): Add missing
9179 'void'.
9180 (read_next_line): Likewise.
9181 (read_command_lines_1): Likewise.
9182
9183 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9184
9185 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9186 store backchain as part of prologue.
9187
9188 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9189
9190 * progspace.c (update_address_spaces): Update inferior address spaces
9191 also.
9192
9193 2010-03-02 Doug Evans <dje@google.com>
9194
9195 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9196 lowpc,highpc args to addrmap_set_empty.
9197
9198 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9199
9200 * amd64-tdep.c (amd64_byte_names): New.
9201 (amd64_word_names): Likewise.
9202 (amd64_dword_names): Likewise.
9203 (amd64_pseudo_register_name): Likewise.
9204 (amd64_pseudo_register_read): Likewise.
9205 (amd64_pseudo_register_write): Likewise.
9206 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9207 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9208 set_gdbarch_pseudo_register_write and
9209 set_tdesc_pseudo_register_name. Don't call
9210 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9211
9212 * i386-tdep.c (i386_num_mmx_regs): Removed.
9213 (i386_num_pseudo_regs): Likewise.
9214 (i386_byte_names): New.
9215 (i386_word_names): Likewise.
9216 (i386_byte_regnum_p): Likewise.
9217 (i386_word_regnum_p): Likewise.
9218 (i386_mmx_regnum_p): Updated.
9219 (i386_pseudo_register_name): Make it global. Handle byte and
9220 word pseudo-registers.
9221 (i386_pseudo_register_read): Likewise.
9222 (i386_pseudo_register_write): Likewise.
9223 (i386_pseudo_register_type): Handle byte, word and dword
9224 pseudo-registers
9225 (i386_register_reggroup_p): Don't include pseudo
9226 registers, except for MXX, in any register groups. Don't
9227 include pseudo byte, word, dword registers in general_reggroup.
9228 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9229 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9230 pseudo-registers after word pseudo-registers. Call
9231 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9232
9233 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9234 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9235 eax_regnum.
9236 (i386_byte_regnum_p): New.
9237 (i386_word_regnum_p): Likewise.
9238 (i386_dword_regnum_p): Likewise.
9239 (i386_pseudo_register_name): Likewise.
9240 (i386_pseudo_register_read): Likewise.
9241 (i386_pseudo_register_write): Likewise.
9242
9243 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9244
9245 * target-descriptions.c (tdesc_type): Remove
9246 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9247 (tdesc_predefined_types): Likewise.
9248 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9249 if flag name is empty.
9250 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9251
9252 * features/i386/32bit-core.xml: Define i386_eflags.
9253 * features/i386/64bit-core.xml: Likewise.
9254
9255 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9256 * features/i386/64bit-sse.xml: Likewise.
9257
9258 * features/i386/amd64-linux.c: Regenerated.
9259 * features/i386/amd64.c: Likewise.
9260 * features/i386/i386-linux.c: Likewise.
9261 * features/i386/i386.c: Likewise.
9262
9263 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9264
9265 * gdbtypes.c (append_composite_type_field_raw): New.
9266 (append_composite_type_field_aligned): Use the new function.
9267 * gdbtypes.h (append_composite_type_field_raw): Declare.
9268 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9269 (struct tdesc_type_flag): New type.
9270 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9271 kind. Add size to u.u. Add u.f for flags.
9272 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9273 (tdesc_free_type): Likewise.
9274 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9275 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9276 (tdesc_add_bitfield, tdesc_add_flag): New.
9277 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9278 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9279 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9280 current_type. Add current_type_size and current_type_is_flags.
9281 (tdesc_start_union): Clear the new fields.
9282 (tdesc_start_struct, tdesc_start_flags): New.
9283 (tdesc_start_field): Handle struct fields, including bitfields.
9284 (field_attributes): Make type optional. Add start and end.
9285 (union_children): Rename to struct_union_children.
9286 (union_attributes): Rename to struct_union_attributes. Add optional
9287 size.
9288 (flags_attributes): New.
9289 (feature_children): Add struct and flags.
9290 * features/gdb-target.dtd: Add flags and struct to features.
9291 Make field type optional. Add field start and end.
9292
9293 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9294
9295 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9296 (amd64_linux_read_description): Likewise.
9297 (_initialize_amd64_linux_nat): Set to_read_description to
9298 amd64_linux_read_description.
9299
9300 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9301 (amd64_linux_register_name): Removed.
9302 (amd64_linux_register_type): Likewise.
9303 (amd64_linux_core_read_description): New.
9304 (amd64_linux_init_abi): Set target description to
9305 tdesc_amd64_linux if needed. Support orig_rax in target
9306 description. Don't call set_gdbarch_register_name nor
9307 set_gdbarch_register_type. Call
9308 set_gdbarch_core_read_description.
9309 (_initialize_amd64_linux_tdep): Call
9310 initialize_tdesc_amd64_linux.
9311
9312 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9313
9314 * amd64-tdep.c: Include "features/i386/amd64.c".
9315 (amd64_register_names): Removed.
9316 (amd64_register_name): Likewise.
9317 (amd64_register_type): Likewise.
9318 (amd64_init_abi): Set num_core_regs and register_names. Set
9319 target description to tdesc_amd64 if needed. Don't call
9320 set_gdbarch_register_name nor set_gdbarch_register_type.
9321 (_initialize_amd64_tdep): New.
9322
9323 * i386-linux-nat.c (i386_linux_read_description): New.
9324 (_initialize_i386_linux_nat): Set to_read_description to
9325 i386_linux_read_description.
9326
9327 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9328 (i386_linux_register_name): Removed.
9329 (i386_linux_core_read_description): New.
9330 (i386_linux_read_description): Likewise.
9331 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9332 Set target description to tdesc_i386_linux if needed. Support
9333 orig_eax. Set register_reggroup_p. Call
9334 set_gdbarch_core_read_description.
9335 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9336
9337 * i386-linux-tdep.h (tdesc_i386_linux): New.
9338
9339 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9340 with I387_NUM_REGS.
9341
9342 * i386-tdep.c: Include "features/i386/i386.c".
9343 (i386_register_names): Make it const.
9344 (i386_mmx_names): Likewise.
9345 (i386_num_register_names): Removed.
9346 (i386_register_name): Likewise.
9347 (i386_eflags_type): Likewise.
9348 (i386_mxcsr_type): Likewise.
9349 (i386_sse_type): Likewise.
9350 (i386_register_type): Likewise.
9351 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9352 (i386_pseudo_register_name): New.
9353 (i386_pseudo_register_type): Likewise.
9354 (i386_mmx_type): Make it static.
9355 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9356 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9357 call set_gdbarch_register_name nor set_gdbarch_register_type.
9358 Set register_reggroup_p. Set target description to tdesc_i386
9359 if needed. Call set_tdesc_pseudo_register_type,
9360 set_tdesc_pseudo_register_name and tdesc_use_registers.
9361 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9362 initialize_tdesc_x86_64.
9363
9364 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9365 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9366 register_names, tdesc and register_reggroup_p.
9367 (I386_NUM_FREGS): Removed.
9368 (i386_eflags_type): Likewise.
9369 (i386_mxcsr_type): Likewise.
9370 (i386_mmx_type): Likewise.
9371 (i386_sse_type): Likewise.
9372 (i386_register_name): Likewise.
9373 (i386_regnum): Add I386_MXCSR_REGNUM.
9374 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9375
9376 * i387-tdep.h (I387_NUM_REGS): New.
9377
9378 * regformats/i386/i386-linux.dat: Generated.
9379 * regformats/i386/i386.dat: Likewise.
9380 * regformats/i386/amd64-linux.dat: Likewise.
9381 * regformats/i386/amd64.dat: Likewise.
9382
9383 * regformats/reg-i386-linux.dat: Removed.
9384 * regformats/reg-i386.dat: Likewise.
9385 * regformats/reg-x86-64-linux.dat: Likewise.
9386 * regformats/reg-x86-64.dat: Likewise.
9387
9388 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9389
9390 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9391 cygwin_conv_path API rather than the deprecated
9392 cygwin_conv_to_full_posix_path.
9393 * windows-nat.c:
9394 (GetModuleFileNameExA): Undefine for Cygwin.
9395 (GetModuleFileNameExW): Define for Cygwin.
9396 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9397 Call GetModuleFileNameExW and convert path to POSIX using
9398 cygwin_conv_path.
9399 (windows_make_so): Always define p. Drop unused variable m.
9400 Don't use Win32 functions to check file existance, rather use
9401 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9402 Use canonicalize_file_name to get full path.
9403 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9404 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9405 use correct target buffer size in call to WideCharToMultiByte.
9406 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9407 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9408 (windows_create_inferior): Convert all paths and arguments to wchar_t
9409 and use CreateProcessW on Cygwin.
9410 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9411 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9412 (bad_GetModuleFileNameExW): Define for Cygwin.
9413 (_initialize_loadable): Load GetModuleFileNameExW into
9414 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9415
9416 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9417
9418 PR python/11036
9419 * python/py-frame.c (frapy_read_var): Add block argument and logic
9420 to cope with user provided blocks.
9421
9422 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9423
9424 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9425 New comment.
9426
9427 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9428
9429 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9430 (COMMON_OBS): ... to here since it's used unconditionally.
9431 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9432 (SFILES): To here.
9433
9434 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9435
9436 * mips-linux-tdep.c: Update struct sigframe comments.
9437 (SIGFRAME_CODE_OFFSET): Delete macro.
9438 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9439 this_frame's sp.
9440 (mips_linux_n32n64_sigframe_init): Same.
9441
9442 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9443
9444 * remote-mips.c (mips_load): Don't use pseudo-register when
9445 invalidating regcache.
9446
9447 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9448
9449 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9450
9451 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9452
9453 * NEWS: Add "New targets" section, and mention ARM Symbian
9454 support.
9455
9456 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9457
9458 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9459 add ADDR_SIZE member.
9460 (allocate_piece_closure): Update.
9461 (copy_pieced_value_closure): Likewise.
9462 (dwarf2_evaluate_loc_desc): Likewise.
9463 (read_pieced_value): Use DWARF address size instead of
9464 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9465
9466 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9467 Tom Tromey <tromey@redhat.com>
9468
9469 * python/py-type.c (typy_lookup_typename): Add in block argument.
9470 If provided restrict lookup to specified blocks.
9471 (gdbpy_lookup_type): Likewise.
9472 (typy_lookup_type): Likewise.
9473
9474 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9475
9476 Symbian config
9477
9478 gdb/
9479 * arm-symbian-tdep.c: New.
9480 * configure.tgt (arm*-*-symbianelf*): New target.
9481 (*-*-symbianelf*): New OS.
9482 * osabi.c (gdb_osabi_names): Add Symbian.
9483 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9484 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9485 (ALLDEPFILES): Add arm-symbian-tdep.c.
9486
9487 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9488
9489 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9490
9491 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9492
9493 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9494
9495 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9496 Tom Tromey <tromey@redhat.com>
9497 Thiago Jung Bauermann <bauerman@br.ibm.com>
9498
9499 * python/python.c (_initialize_python): Call
9500 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9501 gdbpy_initialize_blocks.
9502 * python/python-internal.h: Declare struct symbol, block and
9503 symtab_and_line. Declare block_object_type and
9504 symbol_object_type
9505 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9506 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9507 (symbol_to_symbol_object, block_to_block_object)
9508 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9509 (gdbpy_initialize_blocks ): Declare.
9510 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9511 (frapy_select): Add methods.
9512 (frapy_read_var): Add symbol branch.
9513 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9514 py-block.
9515 (SUBDIR_PYTHON_SRCS): Likewise.
9516 (py-symbol.o): New rule.
9517 (py-symtab.o): Likewise.
9518 (py-block.o): Likewise.
9519 * python/py-symbol.c: New file.
9520 * python/py-symtab.c: Likewise.
9521 * python/py-block.c: Likewise.
9522
9523 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9524
9525 PR gdb/11321
9526
9527 * inferior.h (prepare_for_detach): Declare.
9528 (struct inferior) <detaching>: New field.
9529 * infrun.c (prepare_for_detach): New.
9530 (handle_inferior_event) <random signal>: Don't stop if detaching.
9531 * target.c (target_detach): Call prepare_for_detach.
9532
9533 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9534
9535 Per-process displaced stepping queue.
9536
9537 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9538 (displaced_step_gdbarch, displaced_step_closure,
9539 (displaced_step_original, displaced_step_copy): Move globals to
9540 this...
9541 (struct displaced_step_inferior_state): ... new structure.
9542 (displaced_step_inferior_states): New global.
9543 (get_displaced_stepping_state, add_displaced_stepping_state)
9544 (remove_displaced_stepping_state, infrun_inferior_exit): New
9545 functions.
9546 (displaced_step_clear): Add displaced_step_inferior_state
9547 parameter, and adjust to handle it.
9548 (displaced_step_clear_cleanup): Parameter is now a
9549 displaced_step_inferior_state. Adjust.
9550 (displaced_step_prepare): Adjust.
9551 (displaced_step_fixup, displaced_step_fixup)
9552 (infrun_thread_ptid_changed, resume): Adjust.
9553 (init_wait_for_inferior): Don't call displaced_step_clear.
9554 (infrun_thread_stop_requested): Rewrite.
9555 (_initialize_infrun): Install infrun_inferior_exit as
9556 inferior_exit observer.
9557
9558 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9559
9560 * inferior.h (ptid_match): Declare.
9561 * infrun.c (ptid_match): New.
9562 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9563 (handle_notification): Add debug output.
9564 * linux-nat.c (ptid_match): Delete.
9565
9566 2010-02-24 David S. Miller <davem@davemloft.net>
9567
9568 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9569 * syscalls/sparc-linux.xml: New.
9570 * syscalls/sparc64-linux.xml: New.
9571 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9572 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9573 (sparc32_linux_get_syscall_number): New function.
9574 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9575 syscall number fetcher.
9576 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9577 (sparc64_linux_get_syscall_number): New function.
9578 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9579 syscall number fetcher.
9580
9581 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9582
9583 Multiexec MI
9584
9585 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9586 * inferior.c (add_inferior_silent): Notify inferior_added
9587 observer.
9588 (delete_inferior_1): Notify inferior_removed observer.
9589 (exit_inferior_1): Pass inferior, not pid, to observer.
9590 (inferior_appeared): Likewise.
9591 (add_inferior_with_spaces): New.
9592 (add_inferior_command): Use the above.
9593 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9594 Declare.
9595
9596 * inflow.c (inflow_inferior_exit): Likewise.
9597 * jit.c (jit_inferior_exit_hook): Likewise.
9598
9599 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9600 remove-inferior.
9601 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9602 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9603 (report_initial_inferior): New.
9604 (mi_inferior_removed): Register the above. Make sure
9605 inferior_added observer is called on the first inferior.
9606 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9607 inferior number, not pid.
9608 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9609 affected.
9610 * mi/mi-main.c (current_context): New.
9611 (proceed_thread_callback): Use typed closure.
9612 Proceed everything if pid is 0. Most implementation split into
9613 (proceed_thread): ... this.
9614 (run_one_inferior): New.
9615 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9616 Adjust for multiexec behaviour.
9617 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9618 (mi_cmd_execute): Handle the 'thread-group' option here.
9619 Do some extra checks.
9620 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9621 options.
9622 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9623
9624 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9625
9626 Make -exec-run a proper MI commands.
9627
9628 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9629 * mi/mi-cmds.c (mi_cmds): Adjust.
9630 * mi/mi-main.c (mi_cmd_exec_run): New.
9631
9632 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9633 Stan Shebs <stan@codesourcery.com>
9634
9635 * tracepoint.h (set_traceframe_number)
9636 (cleanup_restore_current_traceframe): Declare.
9637 * tracepoint.c (set_traceframe_number): New.
9638 (struct current_traceframe_cleanup): New.
9639 (do_restore_current_traceframe_cleanup)
9640 (restore_current_traceframe_cleanup_dtor)
9641 (make_cleanup_restore_current_traceframe): New.
9642 * infrun.c: Include tracepoint.h.
9643 (fetch_inferior_event): Switch out and in of tfind mode.
9644
9645 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9646
9647 * breakpoint.c (breakpoint_init_inferior): Also delete
9648 bp_shlib_event breakpoints.
9649 * solib-frv.c (enable_break): Remove call to
9650 remove_solib_event_breakpoints.
9651 * solib-svr4.c (enable_break): Ditto.
9652 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9653 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9654 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9655 * solib-spu.c (spu_enable_break): Ditto.
9656
9657 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9658
9659 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9660
9661 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9662
9663 * varobj.c (varobj_update): Avoid non-constants in initializers.
9664
9665 2010-02-23 Tom Tromey <tromey@redhat.com>
9666
9667 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9668 handle big-endian values.
9669 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9670
9671 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9672
9673 PR9605
9674
9675 gdb/
9676 * breakpoint.c (insert_bp_location): If inserting the read
9677 watchpoint failed, fallback to an access watchpoint.
9678 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9679 if the value changed, if not watching the same memory for writes.
9680 (watchpoint_locations_match): Add comment.
9681 (update_global_location_list): Copy the location's watchpoint type.
9682 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9683 handle read watchpoints here.
9684 (i386_insert_watchpoint): Read watchpoints aren't supported.
9685 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9686 packets.
9687 * target.h (target_insert_watchpoint): Update description.
9688
9689 2010-02-19 Tom Tromey <tromey@redhat.com>
9690
9691 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9692 * m2-typeprint.c (m2_print_type): Update.
9693 * gdbtypes.c (recursive_dump_type): Update.
9694 (copy_type_recursive): Update.
9695 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9696 (c_type_print_base): Update.
9697 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9698 Remove.
9699 (struct cplus_struct_type) <ntemplate_args>: Remove.
9700 <struct template_arg>: Remove.
9701 <is_dynamic>: Move earlier.
9702 (TYPE_TEMPLATE_ARGS): Remove.
9703 (TYPE_NTEMPLATE_ARGS): Remove.
9704 (TYPE_TEMPLATE_ARG): Remove.
9705
9706 2010-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 PR c++/8693, PR c++/9496:
9709 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9710 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9711 write_dollar_variable. Don't try to classify NAME tokens.
9712 (token_and_value): New type.
9713 (token_fifo, popping, name_obstack): New globals.
9714 (classify_name): New function.
9715 (classify_inner_name): Likewise.
9716 (yylex): Likewise.
9717 (VARIABLE): Now has type sval.
9718 (exp : VARIABLE): Call write_dollar_variable.
9719 (qualified_name): Use TYPENAME, not typebase. Add production for
9720 multiple "::" instances.
9721 (variable): Use name_not_typename.
9722 (qualified_type): Remove.
9723 (typebase): Update.
9724
9725 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9726
9727 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9728 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9729 found by bfd_get_section_by_name.
9730 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9731
9732 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9733
9734 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9735 7.0 section" into "Changes in 7.1".
9736
9737 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9738
9739 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9740 * version.in: Bump version to 7.1.50.20100219-cvs.
9741
9742 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9743
9744 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9745 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9746
9747 2010-02-17 Tom Tromey <tromey@redhat.com>
9748
9749 * NEWS: Add Python API Improvements section.
9750
9751 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9752
9753 * NEWS: Correct typo.
9754
9755 2010-02-17 Tom Tromey <tromey@redhat.com>
9756
9757 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9758
9759 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9760
9761 * symfile.c (build_section_addr_info_from_objfile): Include sections
9762 only if they are SEC_ALLOC or SEC_LOAD.
9763
9764 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9765
9766 PR shlibs/11293
9767 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9768 of ULONGEST for address size.
9769
9770 2010-02-17 Tom Tromey <tromey@redhat.com>
9771
9772 * NEWS: Add C++ improvements section.
9773
9774 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9775
9776 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9777 PyThreadState_Swap): Avoid "statement with no effect" warning.
9778
9779 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9780
9781 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9782 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9783
9784 2010-02-17 Tristan Gingold <gingold@adacore.com>
9785 Petr Hluzin <petr.hluzin@gmail.com>
9786
9787 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9788 gdb_assert. Fix info->size for SIG prologue.
9789
9790 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9791
9792 * infcmd.c (show_inferior_tty_command): Check for NULL.
9793 Correct output message.
9794
9795 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9796
9797 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9798 FUNCTION contains parentheses. Improve removal of a trailing
9799 single quote.
9800
9801 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9802
9803 * gcore.c (do_bfd_delete_cleanup): New function.
9804 (gcore_command): Use it. Discard the cleanup after success.
9805 (gcore_copy_callback): Delete dead code.
9806
9807 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9808
9809 * symfile.c (addr_info_make_relative): Always use
9810 find_lowest_section.
9811
9812 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9813
9814 * NEWS: Added entry for namespace fixes.
9815
9816 2010-02-15 Tom Tromey <tromey@redhat.com>
9817
9818 * dwarf2read.c (guess_structure_name): Allocate name on the
9819 objfile obstack.
9820
9821 2010-02-15 Tom Tromey <tromey@redhat.com>
9822
9823 * c-typeprint.c (c_type_print_base): Reverse order of test.
9824
9825 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9826
9827 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9828 initialize it from ELF BFD. Extend the prelink condition by it.
9829
9830 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9831
9832 * defs.h (parse_pid_to_attach): New.
9833 * utils.c (parse_pid_to_attach): New.
9834 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9835 * gnu-nat.c (gnu_attach): Likewise.
9836 * nto-procfs.c (procfs_attach): Likewise.
9837 * procfs.c (procfs_attach): Likewise.
9838 * windows-nat.c (windows_attach): Likewise.
9839 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9840 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9841 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9842 check.
9843
9844 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9845
9846 * MAINTAINERS: Add myself for write after approval privileges.
9847
9848 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9849
9850 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9851 block.
9852
9853 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9854
9855 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9856 only if INFO_VERBOSE.
9857
9858 2010-02-12 Tomas Holmberg <th@virtutech.com>
9859
9860 * mi/mi-main.c: Added the --reverse flag to the following MI
9861 commands: exec-continue, exec-finish, exec-next, exec-step,
9862 exec-next-instruction, exec-step-instruction. This is to
9863 support reverse execution over the MI interface to gdb.
9864
9865 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9866
9867 * tracepoint.c (_initialize_tracepoint): Specify that the address
9868 range of `tfind outsize' is exclusive, and that the address range
9869 of `tfind range' is inclusive, in the commands' help strings.
9870
9871 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9872
9873 Spurious "dll not found" error messages on x64-windows.
9874 * windows-nat.c: Add include of complaints.h.
9875 (handle_unload_dll): Change dll-not-found error into a complaint.
9876
9877 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9878
9879 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9880 bp_tracepoint and bp_fast_tracepoint, not
9881 bp_loc_software_breakpoint.
9882 (update_global_location_list): Tracepoints are never duplicates of
9883 anything.
9884
9885 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9886
9887 * breakpoint.c (break_command_really): Change return type to int.
9888 Return false if no breakpoint was created, true otherwise.
9889 (trace_command): Don't set the tracepoint count if no tracepoint
9890 was created.
9891 (ftrace_command): Ditto.
9892 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9893 created in the breakpoints table.
9894
9895 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9896 Ulrich Weigand <uweigand@de.ibm.com>
9897
9898 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9899
9900 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9901
9902 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9903 the offset value isn't of integral type.
9904
9905 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9906
9907 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9908 New.
9909
9910 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9911
9912 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9913 non-subscriptable types.
9914 * valarith.c (binop_types_user_defined_p): New, abstracted out
9915 from ...
9916 (binop_user_defined_p): ... this.
9917 * value.h (binop_types_user_defined_p): Declare.
9918
9919 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9920
9921 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9922 Merge uploaded TSVs before merging uploaded tracepoints.
9923
9924 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9925
9926 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9927
9928 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
9929
9930 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9931 whitespace character after a dot in comment.
9932 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9933 Likewise.
9934 (list_args_or_locals): For the 'all' (that is
9935 -stack-list-variables) case, always output list of tuples.
9936 Output 'arg' field if variable is argument.
9937
9938 2010-02-10 Tom Tromey <tromey@redhat.com>
9939
9940 * parser-defs.h (parser_debug): Declare.
9941 * parse.c (_initialize_parse): Install "debug parser" set/show
9942 command.
9943 (parser_debug): New global.
9944 (show_parserdebug): New function.
9945 * c-exp.y (c_parse): Set yydebug.
9946
9947 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9948
9949 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9950 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9951 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9952 i386_mxcsr.
9953 (tdesc_find_type): New.
9954 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9955 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9956
9957 * target-descriptions.h (tdesc_find_type): New.
9958
9959 2010-02-10 Michael Snyder <msnyder@vmware.com>
9960
9961 * gdb-gdb.py: Comment fix.
9962
9963 2010-02-09 Tristan Gingold <gingold@adacore.com>
9964
9965 * machoread.c (macho_symfile_relocate): New function.
9966 (macho_sym_fns): Use macho_symfile_relocate instead of
9967 default_symfile_relocate.
9968 (macho_oso_data): New type.
9969 (current_oso): New variable.
9970 (macho_add_oso_symfile): Do not compute section_addr_info, but
9971 instead set vma of sections.
9972 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9973 Set and clear current_oso.
9974
9975 2010-02-09 Joel Brobecker <brobecker@adacore.com>
9976
9977 Wrong type description for tagged type parameter.
9978 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9979 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9980 reference to a tagged type.
9981
9982 2010-02-09 Tristan Gingold <gingold@adacore.com>
9983
9984 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9985 brothers of the parent.
9986
9987 2010-02-08 Tom Tromey <tromey@redhat.com>
9988
9989 PR c++/8017:
9990 * value.h: Update.
9991 * valops.c (search_struct_field): Make 'name' const.
9992 (search_struct_method): Likewise.
9993 (find_method_list): Make 'method' const.
9994 (value_struct_elt): Make 'name' and 'err' const.
9995 (value_find_oload_method_list): Make 'method' const.
9996 (find_overload_match): Make 'name' const.
9997 * eval.c (evaluate_subexp_standard): New locals function,
9998 function_name.
9999 <OP_FUNCALL>: Handle OP_SCOPE specially.
10000
10001 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10002
10003 * infrun.c (handle_inferior_event): Do not look up regcache
10004 for exited processes.
10005
10006 2010-02-08 Chris Moller <moller@mollerware.com>
10007
10008 PR gdb/10728
10009 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10010 warn if found, and assume length = 1.
10011
10012 2010-02-08 Chris Moller <cmoller@redhat.com>
10013
10014 PR gdb/9067
10015 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10016 (cp_print_static_field) Fix use of obstacks.
10017
10018 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10019
10020 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10021 resumed LWPs as resumed.
10022 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10023 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10024 of throwing an internal error. If an LWP of a process we're not
10025 waiting for reports a signal, don't force collecting a SIGSTOP,
10026 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10027 go through all LWPs cancelling breakpoints in non-stop mode.
10028 (resume_stopped_resumed_lwps): New.
10029 (linux_nat_wait): Use it.
10030
10031 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10032
10033 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10034 i386/amd64 and i386/amd64-linux.
10035 (i386/i386-expedite): New.
10036 (i386/i386-linux-expedite): Likewise.
10037 (i386/amd64-expedite):Likewise.
10038 (i386/amd64-linux-expedite): Likewise.
10039 ($(outdir)/i386/i386-linux.dat): Likewise.
10040 ($(outdir)/i386/amd64.dat): Likewise.
10041 ($(outdir)/i386/amd64-linux.dat): Likewise.
10042
10043 * features/i386/32bit-core.xml: New.
10044 * features/i386/32bit-linux.xml: Likewise.
10045 * features/i386/32bit-sse.xml: Likewise.
10046 * features/i386/64bit-core.xml: Likewise.
10047 * features/i386/64bit-linux.xml: Likewise.
10048 * features/i386/64bit-sse.xml: Likewise.
10049 * features/i386/i386-linux.xml: Likewise.
10050 * features/i386/i386.xml: Likewise.
10051 * features/i386/amd64-linux.xml: Likewise.
10052 * features/i386/amd64.xml: Likewise.
10053 * features/i386/i386-linux.c: Likewise.
10054 * features/i386/i386.c: Likewise.
10055 * features/i386/amd64-linux.c: Likewise.
10056 * features/i386/amd64.c: Likewise.
10057
10058 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10059
10060 PR c++/7935:
10061 * cp-support.h: Added char* alias element to using_direct data
10062 struct.
10063 (cp_add_using): Added char* alias argument.
10064 (cp_add_using_directive): Ditto.
10065 * cp-namespace.c: Updated with the above changes.
10066 (cp_lookup_symbol_imports): Check for aliases.
10067 * dwarf2read.c (read_import_statement): Figure out local alias
10068 for the import and pass it on to cp_add_using.
10069 (read_namespace): Pass alias argument to cp_add_using.
10070
10071 2010-02-05 Hui Zhu <teawater@gmail.com>
10072
10073 * defs.h (gdb_bfd_errmsg): New extern.
10074 * exec.c (exec_file_attach): Change bfd_errmsg to
10075 gdb_bfd_errmsg.
10076 * utils.c (AMBIGUOUS_MESS1): New macro.
10077 (AMBIGUOUS_MESS2): New macro.
10078 (gdb_bfd_errmsg): New function.
10079
10080 2010-02-04 Doug Evans <dje@google.com>
10081
10082 * solib-svr4.c (enable_break): Add comment.
10083
10084 2010-02-04 Anthony Green <green@moxielogic.com>
10085
10086 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10087 gracefully.
10088
10089 2010-02-04 Tom Tromey <tromey@redhat.com>
10090
10091 * valops.c (search_struct_field): Account for
10092 value_embedded_offset. Fix check for virtual base past the end of
10093 the object. Use value_copy when making a slice of the value.
10094
10095 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10096
10097 PR tui/9622
10098 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10099 only if gdb_stdout is a tty.
10100
10101 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10102
10103 * target-descriptions.c: Include "osabi.h".
10104 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10105 OSABI.
10106
10107 2010-02-04 Tristan Gingold <gingold@adacore.com>
10108
10109 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10110 (macho_symtab_read): Adjust calls to macho_add_oso.
10111 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10112 (macho_symfile_read): Adjust call to macho_oso_symfile.
10113 (macho_new_init): Move this function after declarations.
10114 (macho_symfile_init): Ditto.
10115 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10116 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10117
10118 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10119
10120 Include MI command in remotelog.
10121
10122 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10123
10124 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10125
10126 * remote.c (remote_state): Remove gdbarch.
10127 (init_remote_state): Don't set gdbarch.
10128 (remote_query_supported): Pass target_gdbarch instead of
10129 rs->gdbarch to gdbarch_qsupported.
10130
10131 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10132
10133 * gdbarch.sh: Add qsupported.
10134
10135 * gdbarch.c: Regenerated.
10136 * gdbarch.h: Likewise.
10137
10138 * remote.c (remote_state): Add gdbarch.
10139 (init_remote_state): Set gdbarch.
10140 (remote_query_supported): Support gdbarch_qsupported.
10141
10142 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10143
10144 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10145 __FreeBSD_kernel_version.
10146
10147 2010-02-03 Tristan Gingold <gingold@adacore.com>
10148
10149 * symfile.h (struct sym_fns): Add sym_relocate field.
10150 (default_symfile_relocate): New prototype.
10151 (symfile_relocate_debug_section): First argument is now an objfile.
10152 * symfile.c (default_symfile_relocate): Rename from
10153 symfile_relocate_debug_section, first argument is now an objfile.
10154 (symfile_relocate_debug_section): New function.
10155 * coffread.c (coff_sym_fns): Set sym_relocate field.
10156 * somread.c (som_sym_fns): Ditto.
10157 * mipsread.c (ecoff_sym_fns): Ditto.
10158 * machoread.c (macho_sym_fns): Ditto.
10159 * elfread.c (elf_sym_fns): Ditto.
10160 * dwarf2read.c (dwarf2_read_section): Ditto.
10161 * xcoffread.c (xcoff_sym_fns): Ditto.
10162 * dbxread.c (aout_sym_fns): Ditto.
10163 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10164 (elfstab_build_psymtabs): Ditto.
10165
10166 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10167
10168 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10169
10170 2010-02-02 Tom Tromey <tromey@redhat.com>
10171
10172 * valops.c (value_cast_structs): Try downcasting using the RTTI
10173 type.
10174
10175 2010-02-02 Tom Tromey <tromey@redhat.com>
10176
10177 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10178 (gnuv2_baseclass_offset): Now static.
10179 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10180 * gnu-v2-abi.h: Remove.
10181
10182 2010-02-02 Tom Tromey <tromey@redhat.com>
10183
10184 * m2-typeprint.c (m2_record_fields): Don't use
10185 TYPE_DECLARED_TYPE.
10186 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10187 (struct main_type) <flag_declared_class>: New field.
10188 (struct cplus_struct_type) <declared_type>: Remove.
10189 <ntemplate_args>: Move earlier.
10190 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10191 (DECLARED_TYPE_TEMPLATE): Remove.
10192 (TYPE_DECLARED_TYPE): Remove.
10193 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10194 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10195 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10196 TYPE_DECLARED_TYPE.
10197
10198 2010-02-02 Tom Tromey <tromey@redhat.com>
10199
10200 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10201 * valops.c (search_struct_field): Compute nbases after calling
10202 CHECK_TYPEDEF.
10203 (check_field): Call CHECK_TYPEDEF.
10204 * cp-valprint.c (cp_print_value): Pass correct address to
10205 baseclass_offset. Fix check for virtual base past the end of the
10206 object. Don't offset address passed to cp_print_value_fields or
10207 apply_val_pretty_printer.
10208 (cp_print_value_fields): Fix call to val_print.
10209 (cp_print_value_fields_rtti): New function.
10210 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10211 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10212 val_print.
10213 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10214 offset to address.
10215 * language.h (struct language_defn) <la_val_print>: Document.
10216 * c-lang.h (cp_print_value_fields_rtti): Declare.
10217
10218 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10219
10220 PR libc/11214:
10221 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10222 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10223 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10224
10225 2010-02-01 Michael Matz <matz@suse.de>
10226 Daniel Jacobowitz <dan@codesourcery.com>
10227
10228 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10229 functions use a frame pointer.
10230
10231 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10232
10233 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10234 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10235 * config/djgpp/fnchange.lst: Add translations for
10236 symbol-without-target_section.exp and symbol-without-target_section.c.
10237
10238 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10239
10240 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10241 (remote_breakpoint_for_pc): Correct invalid_p check.
10242 * gdbarch.c: Regenerated.
10243
10244 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10245
10246 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10247 arm_pc_is_thumb.
10248 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10249 (extend_buffer_earlier): New function.
10250 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10251 (arm_adjust_breakpoint_address): New function.
10252 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10253
10254 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10255
10256 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10257 (arm_linux_thumb2_le_breakpoint): New constants.
10258 (arm_linux_init_abi): Set thumb2_breakpoint and
10259 thumb2_breakpoint_size.
10260 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10261 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10262 Implement support for single stepping through IT blocks if
10263 a 32-bit Thumb breakpoint instruction is available.
10264 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10265 is available, use it when needed.
10266 (arm_remote_breakpoint_from_pc): New function.
10267 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10268 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10269 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10270
10271 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10272
10273 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10274 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10275 * gdbarch.c, gdbarch.h: Regenerated.
10276 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10277 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10278 gdbarch_remote_breakpoint_from_pc.
10279
10280 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10281
10282 * infrun.c (prepare_to_proceed): Handle other signals which might
10283 match a breakpoint.
10284 (handle_inferior_event): Move the check for unusual breakpoint
10285 signals earlier.
10286
10287 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10288
10289 amd64 - function returning record with field straddling 2 registers.
10290 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10291 a record of length <= 16 in which a field straddles the two
10292 eightbytes.
10293
10294 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10295
10296 Implement return values on amd64-windows.
10297 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10298 (amd64_windows_return_value): New function.
10299 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10300 amd64_windows_return_value.
10301
10302 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10303
10304 amd64-windows: 32 bytes allocated on stack by caller for integer
10305 parameter registers.
10306 * i386-tdep.h (struct gdbarch_tdep): Add new field
10307 integer_param_regs_saved_in_caller_frame.
10308 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10309 tdep->integer_param_regs_saved_in_caller_frame to 1.
10310 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10311 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10312
10313 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10314
10315 amd64-windows: memory args passed by pointer during function calls.
10316 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10317 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10318 where tdep->memory_args_by_pointer is non-zero.
10319 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10320 tdep->memory_args_by_pointer to 1.
10321
10322 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10323
10324 amd64-windows: Integer parameters in function calls.
10325 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10326 amd64-tdep.c.
10327 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10328 call_dummy_integer_regs, and classify.
10329 * amd64-tdep.h (amd64_classify): Add declaration.
10330 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10331 (amd64_reg_class): Delete, moved to i386-tdep.h.
10332 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10333 Replace call to amd64_classify by call to tdep->classify.
10334 (amd64_push_arguments): Get the list of registers to use for
10335 passing integer parameters from the gdbarch tdep structure,
10336 rather than using a hardcoded one. Replace calls to amd64_classify
10337 by calls to tdep->classify.
10338 (amd64_push_dummy_call): Get the register number used for
10339 the "hidden" argument from tdep->call_dummy_integer_regs.
10340 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10341 and tdep->call_dummy_integer_regs. Set tdep->classify.
10342 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10343 (amd64_windows_dummy_call_integer_regs): New static global.
10344 (amd64_windows_classify): New function.
10345 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10346 tdep->call_dummy_integer_regs and tdep->classify.
10347
10348 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10349
10350 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10351 for the new regcache. All callers updated.
10352 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10353 (get_thread_arch_regcache): Do not set aspace here.
10354 * regcache.h (regcache_xmalloc): Update declaration.
10355
10356 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10357 regcache_xmalloc updated.
10358
10359 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10360
10361 Another -Wunused-function error in procfs.c (sparc-solaris)
10362 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10363 Only define if SYS_syssgi is defined.
10364 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10365 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10366 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10367 is itself defined.
10368
10369 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10370
10371 * windows-nat.c (windows_initialization_done): New variable.
10372 (get_windows_debug_event): Issue error when process dies before
10373 completely initializing.
10374 (do_initial_windows_stuff): Set flag to indicate when we are done with
10375 the initial steps of attaching to the child.
10376
10377 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10378
10379 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10380
10381 2010-01-27 Doug Evans <dje@google.com>
10382
10383 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10384
10385 * breakpoint.c (bpstat_stop_status): Delete useless code.
10386
10387 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10388
10389 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10390 objfile via SYMBOL_SYMTAB.
10391
10392 2010-01-26 Tom Tromey <tromey@redhat.com>
10393
10394 PR exp/7643:
10395 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10396 coerce_array on result.
10397
10398 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10399
10400 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10401 search_parent argument.
10402 (cp_add_using): Initialize 'searched' field.
10403 (reset_directive_searched): New function.
10404 * cp-support.h: Add 'searched' field to using_direct struct.
10405 (cp_lookup_symbol_imports): Ditto.
10406 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10407 Perform recursive search.
10408 Implement non parent search.
10409 * valops.c (value_maybe_namespace_elt): Updated.
10410
10411 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10412
10413 PR gdb/10929:
10414 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10415 scopes which contain using directives even if they contain no
10416 declarations.
10417 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10418 la_lookup_symbol_nonlocal.
10419 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10420 cp_lookup_symbol_namespace.
10421 (cp_lookup_symbol_namespace): Perform an import lookup at every
10422 block level.
10423 (cp_lookup_symbol_imports): New function.
10424 (cp_lookup_symbol_in_namespace): New function.
10425
10426 2010-01-25 Tom Tromey <tromey@redhat.com>
10427
10428 PR gdb/11049:
10429 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10430 result.
10431
10432 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10433
10434 * configure.ac: Only use host_os part when disabling TUI on osf.
10435 Use test to check variables, prefix strings with x.
10436 * configure: Regenerate.
10437
10438 * solib-osf.c (osf_current_sos): Initialize tail.
10439
10440 2010-01-25 gingold <gingold@adacore.com>
10441
10442 * windows-nat.c (windows_continue): Use %x to print thread id.
10443 (get_windows_debug_event): Ditto.
10444
10445 2010-01-22 Tom Tromey <tromey@redhat.com>
10446
10447 PR symtab/11199:
10448 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10449 type and arguments. Use smash_to_methodptr_type.
10450 (read_structure_type): Call quirk_gcc_member_function_pointer
10451 later.
10452 * gdbtypes.h (smash_to_methodptr_type): Declare.
10453 * gdbtypes.c (smash_to_methodptr_type): New function.
10454 (lookup_methodptr_type): Use it.
10455
10456 2010-01-21 Tom Tromey <tromey@redhat.com>
10457
10458 PR symtab/11198:
10459 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10460 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10461 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10462 (glibc_skip_solib_resolver): Use
10463 lookup_minimal_symbol_and_objfile.
10464
10465 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10466
10467 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10468 WIN32 targets.
10469
10470 2010-01-20 Tom Tromey <tromey@redhat.com>
10471
10472 PR backtrace/10770:
10473 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10474 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10475 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10476 dwarf_stack_values, not CORE_ADDRs.
10477 (execute_stack_op): Change DW_OP_div and comparison operators to
10478 use signed operands.
10479
10480 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10481
10482 Per-inferior args and tty and environment.
10483
10484 * infcmd.c (inferior_args): Rename to ...
10485 (inferior_args_scratch): ... this.
10486 (inferior_io_terminal): Rename to ...
10487 (inferior_io_terminal_scratch): ... this.
10488 (inferior_argc, inferior_argv): Remove.
10489 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10490 inside current_inferior().
10491 (set_inferior_tty_command, show_inferior_tty_command): New.
10492 (get_inferior_args, set_inferior_args): Store inside
10493 current_inferior().
10494 (notice_args_set): Likewise and rename to...
10495 (set_args_command): ... this.
10496 (set_inferior_args_vector): Likewise.
10497 (notice_args_read): Rename to...
10498 (show_args_command): ...new.
10499 (tty_command): Remove.
10500 (run_command_1): Don't free old args, as they are freed by
10501 set_inferior_arg now.
10502 (run_no_args_command): Likewise.
10503 (inferior_environ): Remove.
10504 (run_command_1): Use environment of the current inferior.
10505 (environment_info, set_environment_command)
10506 (unset_environment_command, path_info, path_command): Likewise.
10507 (_initialize_infcmd): Adjust for function and variable renames.
10508 Do not init inferior_environ.
10509 * inferior.h (set_inferior_arg): Adjust prototype.
10510 (struct inferior): New fields args, argc, argv, terminal, environment.
10511 (inferior_environ): Remove declaration.
10512 * inferior.c (free_inferior): Free new fields.
10513 (add_inferior_silent): Initialize 'environment' field.
10514 * main.c (captured_main): Set arguments only after the initial
10515 inferior has been created. Set set_inferior_io_terminal,
10516 not tty_command.
10517 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10518 inferior.
10519 (_initialize_mi_cmd_env): Adjust for disappearance of global
10520 inferior_environ.
10521 * solib.c (solib_find): Use environment of the current inferior.
10522
10523 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10524
10525 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10526 HAVE_PYTHON.
10527 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10528
10529 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10530
10531 Get rid of ada-lang.c:function_name_from_pc.
10532 * ada-lang.c: Add "stack.h" #include.
10533 (function_name_from_pc): Delete.
10534 (is_known_support_routine): Replace call to function_name_from_pc
10535 by call to find_frame_funname.
10536 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10537
10538 2010-01-19 Tom Tromey <tromey@redhat.com>
10539
10540 PR c++/11026:
10541 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10542 objfile obstack.
10543
10544 2010-01-19 Tom Tromey <tromey@redhat.com>
10545
10546 * top.c (stop_sig, float_handler, do_nothing): Remove.
10547
10548 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10549
10550 * breakpoint.c (watchpoint_check): Check the call
10551 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10552 Extend the comment.
10553 * config/djgpp/fnchange.lst: Add translations for
10554 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10555 watchpoint-cond-gone-stripped.c.
10556
10557 2010-01-19 Tom Tromey <tromey@redhat.com>
10558
10559 PR c++/8000:
10560 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10561 into parent scope, and enumerator into grandparent scope.
10562
10563 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10564
10565 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10566
10567 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10568
10569 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10570 i[34567]86-*-solaris2.1[0-9]*.
10571 * configure.tgt: Likewise.
10572
10573 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10574
10575 * NEWS: Document the source command enhancement allowing it
10576 to load Python scripts. Document the "set/show script-extension"
10577 commands.
10578
10579 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10580
10581 Add -Wunused-function to compile flags.
10582 * configure.ac: Add -Wunused-function to build_warnings.
10583 * configure: Regenerate.
10584
10585 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10586
10587 "delete" ada-lex.c:input function, not used.
10588 * ada-lex.l: #define YY_NO_INPUT.
10589
10590 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10591
10592 Delete free_named_symtabs and associated cleanup.
10593 * symfile.h (free_named_symtabs): Delete declaration.
10594 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10595 (cashier_psymtab): Comment function out.
10596 Delete declaration.
10597 (free_named_symtabs): Delete.
10598 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10599 * dbxread.c (end_psymtab): Likewise.
10600 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10601 * exec.c (exec_close_1): Ditto.
10602 * xcoffread.c (xcoff_end_psymtab): Likewise.
10603
10604 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10605
10606 * stack.c (print_block_frame_labels): Comment function out.
10607
10608 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10609
10610 Delete unused or undefined functions.
10611 * breakpoint.c (ep_parse_optional_filename): Delete.
10612 * dcache.c (dcache_write_line): Remove declaration.
10613 * infrun.c (build_infrun): Remove declaration.
10614 * tracepoint.c (tracepoint_save_command): Remove declaration.
10615 * linux-nat.c (init_lwp_list): Delete. No longer used.
10616 * event-loop.c (check_async_signal_handlers): Delete declaration.
10617 * infrun.c (init_execution_control_state): Delete.
10618 (proceed): Update comment to avoid mentioning
10619 init_execution_control_state.
10620 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10621 * ada-lang.c (ada_to_static_fixed_value): Delete.
10622 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10623 * cp-namespace.c (cp_copy_usings): Delete.
10624 * xml-syscall.c (xml_number_of_syscalls): Delete.
10625 * progspace.c (find_program_space_by_num): Delete.
10626 * inflow.c (handle_sigio): Delete declaration.
10627 * hppa-tdep.c (hppa_alignof): Delete.
10628 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10629 (mipsnbsd_core_osabi_sniffer): Delete.
10630
10631 2010-01-18 Tom Tromey <tromey@redhat.com>
10632
10633 PR c++/9680:
10634 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10635 (CONST_CAST): New tokens.
10636 (exp): Add new productions.
10637 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10638 reinterpret_cast.
10639 (is_cast_operator): New function.
10640 (yylex): Handle cast operators specially.
10641 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10642 UNOP_REINTERPRET_CAST>: New cases.
10643 * expprint.c (print_subexp_standard): Likewise.
10644 (op_name_standard): Likewise.
10645 (dump_subexp_body_standard): Likewise.
10646 * parse.c (operator_length_standard): Likewise.
10647 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10648 UNOP_REINTERPRET_CAST.
10649 * gdbtypes.c (class_types_same_p): New function.
10650 (is_ancestor): Use it.
10651 (is_public_ancestor): New function.
10652 (is_unique_ancestor_worker): Likewise.
10653 (is_unique_ancestor): Likewise.
10654 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10655 (is_unique_ancestor): Declare.
10656 * valops.c (value_reinterpret_cast): New function.
10657 (dynamic_cast_check_1): Likewise.
10658 (dynamic_cast_check_2): Likewise.
10659 (value_dynamic_cast): Likewise.
10660 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10661
10662 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10663
10664 Fix build failure when building without Python support.
10665 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10666 is not defined.
10667
10668 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10669
10670 Use XVS field type instead of doing a parallel lookup.
10671 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10672 if it is a reference type instead of doing a type lookup using
10673 the XVS field name.
10674
10675 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10676
10677 Trust PAD types instead of using PAD___XVS.
10678 * ada-lang.c (trust_pad_over_xvs): New static variable.
10679 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10680 parallel XVS type, follow the XVS type instead of the PAD type.
10681 (unwrap_value): Make sure that there is no parallel XVE type
10682 before returning the value as is.
10683 (set_ada_list, show_ada_list): New static variables.
10684 (set_ada_command, show_ada_command): New functions.
10685 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10686 Add new "set/show ada trust-PAD-over-XVS" setting.
10687
10688 2010-01-18 Tom Tromey <tromey@redhat.com>
10689 Thiago Jung Bauermann <bauerman@br.ibm.com>
10690
10691 Allow "source" to load python scripts.
10692 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10693 * python/python.c (source_python_script): New function.
10694 * python/python.h (source_python_script): Add declaration.
10695 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10696 (script_ext_off, script_ext_soft, script_ext_strict)
10697 (script_ext_enums, script_ext_mode): New static constants.
10698 (show_script_ext_mode, find_and_open_script): New functions.
10699 (source_script): Enhance to handle Python scripts.
10700 (init_cli_cmds): Add set/show script-extension commands.
10701
10702 2010-01-16 Stan Shebs <stan@codesourcery.com>
10703
10704 * tracepoint.h (struct trace_status): Use unsigned long long
10705 instead of size_t.
10706 * tracepoint.c (trace_status_command): Fix printf directive.
10707 (trace_save_command): Check fwrite returns, fix printf directive.
10708 (trace_filename): New global.
10709 (tfile_open): Set it, check read returns.
10710 (tfile_close): Free trace_filename.
10711 (tfile_get_traceframe_address): Check read returns.
10712 (tfile_trace_find): Ditto.
10713 (tfile_fetch_registers): Ditto.
10714 (tfile_xfer_partial): Ditto.
10715 (tfile_get_trace_state_variable_value): Ditto.
10716
10717 2010-01-15 Stan Shebs <stan@codesourcery.com>
10718
10719 Add trace file support.
10720 * tracepoint.h (enum trace_stop_reason): New enum.
10721 (struct trace_status): New struct.
10722 (parse_trace_status): Declare.
10723 (struct uploaded_tp): Move here from remote.c,
10724 add fields for actions.
10725 (struct uploaded_tsv): New struct.
10726 * tracepoint.c (tfile_ops): New target vector.
10727 (trace_fd): New global.
10728 (tfile_open): New function.
10729 (tfile_close): New function.
10730 (tfile_files_info): New function.
10731 (tfile_get_trace_status): New function.
10732 (tfile_get_traceframe_address): New function.
10733 (tfile_trace_find): New function.
10734 (tfile_fetch_registers): New function.
10735 (tfile_xfer_partial): New function.
10736 (tfile_get_trace_state_variable_value): New function.
10737 (init_tfile_ops): New function.
10738 (_initialize_tracepoint): Call it, add tfile target.
10739 (trace_status): New global.
10740 (current_trace_status): New function.
10741 (trace_running_p): Remove, change all users to get from
10742 current_trace_status()->running.
10743 (get_trace_status): Remove.
10744 (trace_status_command): Call target_get_trace_status directly,
10745 report more detail including tracing stop reasons.
10746 (trace_find_command): Always allow tfind on a file.
10747 (trace_find_pc_command): Ditto.
10748 (trace_find_tracepoint_command): Ditto.
10749 (trace_find_line_command): Ditto.
10750 (trace_find_range_command): Ditto.
10751 (trace_find_outside_command): Ditto.
10752 (trace_frames_offset, cur_offset): Declare as off_t.
10753 (trace_regblock_size): Rename from reg_size, update users.
10754 (parse_trace_status): New function.
10755 (tfile_interp_line): New function.
10756 (disconnect_or_stop_tracing): Ensure current trace
10757 status before asking what to do.
10758 (stop_reason_names): New global.
10759 (trace_save_command): New command.
10760 (get_uploaded_tp): Move here from remote.c.
10761 (find_matching_tracepoint): Ditto.
10762 (merge_uploaded_tracepoints): New function.
10763 (parse_trace_status): Use stop_reason_names.
10764 (_initialize_tracepoint): Define tsave command.
10765 * target.h (target_ops): New fields to_save_trace_data,
10766 to_upload_tracepoints, to_upload_trace_state_variables,
10767 to_get_raw_trace_data, change to_get_trace_status
10768 to take a pointer to a status struct.
10769 (target_save_trace_data): New macro.
10770 (target_upload_tracepoints): New macro.
10771 (target_upload_trace_state_variables): New macro.
10772 (target_get_raw_trace_data): New macro.
10773 * target.c (update_current_target): Add new methods, change
10774 signature of to_get_trace_status.
10775 * remote.c (hex2bin): Make globally visible.
10776 (bin2hex): Ditto.
10777 (remote_download_trace_state_variable): Download name also.
10778 (remote_get_trace_status): Update parameter, use
10779 parse_trace_status.
10780 (remote_save_trace_data): New function.
10781 (remote_upload_tracepoints): New function.
10782 (remote_upload_trace_state_variables): New function.
10783 (remote_get_raw_trace_data): New function.
10784 (remote_start_remote): Use them.
10785 (_initialize_remote_ops): Add operations.
10786 * ax-gdb.c: Include breakpoint.h.
10787 * breakpoint.c (create_tracepoint_from_upload): Use
10788 break_command_really, return tracepoint, warn about unimplemented
10789 parts.
10790 * NEWS: Mention trace file addition.
10791
10792 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10793
10794 Fix compilation warning on gcc-3.4.
10795 * exec.c (print_section_info): Move the `displacement' variable
10796 initialization to its declaration.
10797
10798 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10799
10800 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10801 comparison.
10802
10803 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10804
10805 "info tasks" broken by typedefs in ATCB type definitions.
10806 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10807 ada_check_typedef before retrieving the length of the type for
10808 regular fields.
10809
10810 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10811
10812 Do not use name-based lookup for unconstrained packed arrays.
10813 * ada-lang.c (find_parallel_type_by_descriptive_type):
10814 Limit the fallback to name-based lookups to the case where
10815 the type is a constrained packed array.
10816
10817 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10818
10819 Enhance gdb-gdb.py to handle main_type.type_specific.
10820 * gdb-gdb.py: Print the type-specific part of struct main_type.
10821
10822 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10823
10824 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10825 * configure: Regenerate.
10826 * config.in: Regenerate.
10827 * utils.c: Include sys/resource.h.
10828 (dump_core, can_dump_core): New.
10829 (internal_vproblem): Update the comment. Check can_dump_core while
10830 setting dump_core_p. Replace two abort calls by dump_core calls.
10831
10832 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10833 Eli Zaretskii <eliz@gnu.org>
10834
10835 * NEWS: Document the PIE support.
10836
10837 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10838
10839 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10840 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10841
10842 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10843
10844 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10845 Replace exec_entry_point call by bfd_get_start_address.
10846
10847 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10848
10849 Support Valgrind attachments broken by the PIE support.
10850 * auxv.c: Include gdbcore.h.
10851 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10852 parameters ops, object and annex. Remove their assertions.
10853 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10854 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10855 (memory_xfer_auxv): ... here.
10856 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10857 memory_xfer_auxv.
10858 * procfs.c (procfs_xfer_partial): Likewise.
10859 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10860 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10861 (svr4_solib_create_inferior_hook): Conditionalize the
10862 svr4_relocate_main_executable call.
10863
10864 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10865
10866 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10867 target_section. Find SECT in current_target_sections, gdb_assert it.
10868 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10869 New variable abfd.
10870 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10871 of separate debug info file.
10872
10873 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10874
10875 Support PIEs with no symfile_objfile.
10876 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10877 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10878
10879 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10880
10881 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10882 code part to ...
10883 (svr4_static_exec_displacement): ... a new function.
10884 (svr4_exec_displacement): New function.
10885 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10886 new_offsets using alloca now. Remove variable old_chain and changed.
10887 Call objfile_relocate unconditionally now.
10888
10889 2010-01-14 Doug Evans <dje@google.com>
10890
10891 * gdbtypes.c (arch_flags_type): Fix comment.
10892 * gdbtypes.h (arch_composite_type): Fix comment.
10893
10894 2009-01-14 Tristan Gingold <gingold@adacore.com>
10895
10896 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10897 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10898 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10899 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10900 macho_add_oso_symfile.
10901 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10902
10903 2010-01-14 Joel Brobecker <brobecker@adacore.com>
10904
10905 Tru64: Dead threads are never deleted.
10906 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10907 (dec_thread_count_gdb_threads): Fix counter increment.
10908 (dec_thread_add_gdb_thread): Fix *listp increment.
10909 (resync_thread_list): Fix bug in deletion of dead threads that
10910 caused all threads to be deleted, instead of just the dead ones.
10911
10912 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10913
10914 PR python/10705
10915
10916 * python/python-internal.h: Add lazy_string_object_type
10917 definition.
10918 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10919 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10920 * python/py-value.c (valpy_lazy_string): New function.
10921 (convert_value_from_python): Add lazy string conversion.
10922 * python/py-prettyprint.c (pretty_print_one_value): Check if
10923 return is also a lazy string.
10924 (print_string_repr): Add lazy string printing branch.
10925 (print_children): Likewise.
10926 * python/py-lazy-string.c: New file. Implement lazy strings.
10927 * python/python.c (_initialize_python): Call
10928 gdbpy_initialize_lazy_string.
10929 * varobj.c (value_get_print_value): Add lazy string printing
10930 branch. Account for encoding.
10931 * c-lang.c (c_printstr): Account for new encoding argument. If
10932 encoding is NULL, find encoding suited for type, otherwise use
10933 user encoding.
10934 * language.h (language_defn): Add encoding argument.
10935 (LA_PRINT_STRING): Likewise.
10936 * language.c (unk_lang_printstr): Update to reflect new encoding
10937 argument to language_defn.
10938 * ada-lang.h (ada_printstr): Likewise.
10939 * c-lang.h (c_printstr): Likewise.
10940 * p-lang.h (pascal_printstr);
10941 * f-lang.c (f_printstr): Likewise.
10942 * m2-lang.c (m2_printstr): Likewise.
10943 * objc-lang.c (objc_printstr): Likewise.
10944 * p-lang.c (pascal_printstr): Likewise.
10945 * scm-lang.c (scm_printstr): Likewise.
10946 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10947 encoding argument.
10948 * ada-valprint.c (ada_printstr): Likewise.
10949 * f-valprint.c (f_val_print): Likewise
10950 * m2-valprint.c (m2_val_print): Likewise.
10951 * p-valprint.c (pascal_val_print): Likewise.
10952 * expprint.c (print_subexp_standard): Likewise.
10953 * valprint.c (val_print_string): Likewise.
10954 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10955 (SUBDIR_PYTHON_SRCS): Likewise.
10956 (py-lazy-string.o): New rule.
10957
10958 2010-01-13 Doug Evans <dje@google.com>
10959
10960 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10961 uninitialized" warning from gcc on local `tree'.
10962
10963 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10964
10965 Implement core awareness.
10966
10967 * bcache.c (compare_ints): Remove
10968 (print_percentage): Use compare_positive_ints.
10969 * defs.h (compare_positive_ints): Declare.
10970 * linux-nat.h (struct lin_lwp): New field core.
10971 (linux_nat_core_of_thread_1): Declare.
10972 * linux-nat.c (add_lwp): Init the 'core' field.
10973 (linux_nat_wait_1): Record the core.
10974 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10975 (linux_nat_add_target): Register the above.
10976 * linux-thread-db.c (update_thread_core): New.
10977 (thread_db_find_new_threads): Update core information for
10978 every thread.
10979 * remote.c (struct private_thread_info): New.
10980 (free_private_thread_info, demand_private_info): New.
10981 (PACKET_qXfer_threads, use_osdata_threads): New.
10982 (struct thread_item, threads_parsing_context
10983 (start_thread, end_thread, thread_attributes)
10984 (thread_children, threads_children, threads_elements): New.
10985 (remote_threads_info): Try qXfer:threads before anything
10986 else.
10987 (remote_protocol_packets): Register qXfer:threads.
10988 (remote_open_1): Init use_osdata_threads.
10989 (struct stop_reply): New field 'core'.
10990 (remote_parse_stop_reply): Parse core number.
10991 (process_stop_reply): Record core number.
10992 (remote_xfer_partial): Handle qXfer:threads.
10993 (remote_core_of_thread): New.
10994 (init_remote_ops): Register remote_core_of_thread.
10995 (_initialize_remote): Register qXfer:read.
10996 * target.c (target_core_of_thread): New
10997 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10998 (struct target_ops): New field to_core_of_threads.
10999 (target_core_of_thread): Declare.
11000 * gdbthread.h (struct thread_info): New field private_dtor.
11001 * thread.c (print_thread_info): Report the core.
11002 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11003 * utils.c (compare_positive_ints): New.
11004 * features/threads.dtd: New.
11005 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11006 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11007 (do_nothing, free_vector_of_osdata_items)
11008 (splay_tree_int_comparator, free_splay_tree): New.
11009 (print_one_inferior_data): Implemented printing of selected
11010 inferiors. Collect and print cores.
11011 (output_cores): New.
11012 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11013 thread groups together with --available.
11014
11015 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11016
11017 * configure: Regenerate (for _STRUCTURED_PROC).
11018
11019 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11020
11021 Delete dead function.
11022 * ada-lang.c (extract_string): Delete. No longer used.
11023
11024 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11025
11026 Fix -Wunused warning in dec-thread.c.
11027 * dec-thread.c (dec_thread_count_gdb_threads)
11028 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11029
11030 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11031
11032 * ada-valprint.c (ada_print_floating): Remove trailing space.
11033
11034 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11035
11036 Add support for DW_AT_GNAT_descriptive_type.
11037 * gdbtypes.h (enum type_specific_kind): New enum.
11038 (struct main_type) [type_specific_field]: New component.
11039 [type_specific]: Add new component "gnat_stuff".
11040 (struct gnat_aux_type): New type.
11041 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11042 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11043 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11044 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11045 (TYPE_SPECIFIC_FIELD): New macros.
11046 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11047 type does not hold any cplus-specific data.
11048 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11049 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11050 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11051 cplus-specific data.
11052 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11053 Set new component TYPE_SPECIFIC_FIELD (type).
11054 (gnat_aux_default): New constant.
11055 (allocate_gnat_aux_type): New function.
11056 (init_type): Add initialization the type-specific stuff for
11057 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11058 (print_gnat_stuff): New function.
11059 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11060 specific data. Adjust code that prints the contents of the
11061 type-specific union using the TYPE_SPECIFIC_FIELD value.
11062 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11063 the type cplus stuff for Ada types.
11064 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11065 Error out if these routines are called with an Ada type.
11066 (read_structure_type, read_array_type, read_subrange_type):
11067 Add call to set_descriptive_type.
11068 (set_die_type): Initialize the gnat-specific data if necessary.
11069 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11070 New functions.
11071 * ada-lang.c (decode_constrained_packed_array_type): Use
11072 decode_constrained_packed_array_type instead of doing a standard
11073 lookup to locate a parallel type.
11074 (find_parallel_type_by_descriptive_type): New function.
11075 (ada_find_parallel_type_with_name): New function.
11076 (ada_find_parallel_type): Reimplement using
11077 ada_find_parallel_type_with_name.
11078 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11079 to check if type has a cplus stuff.
11080 * linespec.c (total_number_of_methods): Likewise.
11081 * mdebugread.c (new_type): Likewise.
11082
11083 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11084
11085 * NEWS: Document the 0b binary number prefix parsing.
11086
11087 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11088
11089 * objfiles.c (objfile_relocate1): Change the return type to int.
11090 Describe the new return value. Return non-zero if data changed.
11091 (objfile_relocate): New variable changed. Set it. Call
11092 breakpoint_re_set depending on CHANGED.
11093
11094 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11095
11096 Implement binary numbers parsing.
11097 * c-exp.y (parse_number): New case 'b' and 'B'.
11098
11099 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11100 Tristan Gingold <gingold@adacore.com>
11101
11102 * solib.c (info_sharedlibrary_command): Replace
11103 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11104 objfile_has_symbols.
11105
11106 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11107
11108 * NEWS: Document the improvements made to the mips-irix port.
11109
11110 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11111
11112 Fix the documentation of valprint.c:value_print.
11113 * valprint.c (value_print): Update the function description to
11114 mention that the syntax of the output follows the current_language,
11115 not necessarily C.
11116
11117 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11118
11119 Fix displacement of separate debug info files.
11120 * objfiles.c (objfile_relocate): Rename to ...
11121 (objfile_relocate1): ... here and make it static. Extend the comment.
11122 (objfile_relocate): New function.
11123 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11124 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11125 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11126 allocated using alloca.
11127 * symfile.c (copy_section_addr_info): Remove.
11128 (build_section_addr_info_from_objfile): Make it global. New variables
11129 addr_bit and mask, use them.
11130 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11131 (copy_section_addr_info): Remove.
11132
11133 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11134
11135 Signal unwinder for mips-irix N32.
11136 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11137 tramp-frame.h.
11138 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11139 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11140 (SIGCONTEXT_LO_OFF): New macros.
11141 (mips_irix_n32_tramp_frame_init): New function.
11142 (mips_irix_n32_tramp_frame): New static constant.
11143 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11144
11145 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11146
11147 Breakpoint in shared library does not work on mips-irix.
11148 * procfs.c: #include "observer.h".
11149 (procfs_inferior_created): New function, moving here the code
11150 which unsets the syssgi syscall-exit notifications.
11151 (procfs_create_inferior): Remove the code which unsets the syssgi
11152 syscall-exit notifications. It is too early to do this here.
11153 (_initialize_procfs): Attach the procfs_inferior_created observer.
11154
11155 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11156
11157 Wrong return convention for arrays (mips-irix).
11158 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11159 128 bits or smaller are returned the same way as structs
11160 and unions of the the same size.
11161
11162 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11163
11164 Cannot set the PC on mips-irix.
11165 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11166 register number, no the cooked one.
11167
11168 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11169
11170 Error while loading core file on mips-irix.
11171 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11172 if debugging from a core file.
11173
11174 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11175
11176 GDB hangs when attaching to process on mips-irix.
11177 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11178 attaching to a process.
11179
11180 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11181
11182 Use the correct breakpoint instruction on mips-irix.
11183 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11184 containing the correct breakpoint instruction to use on mips-irix.
11185 Use it when the osabi is GDB_OSABI_IRIX.
11186
11187 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11188
11189 -Wunused warning in procfs.c (mips-irix only).
11190 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11191 throughout instead of using praddset and prdelset respectively.
11192
11193 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11194
11195 GDB crash while stepping into function.
11196 * infrun.c (handle_inferior_event): Refetch the current frame
11197 after handling what.main_action, in case that pointer became
11198 dangling.
11199
11200 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11201
11202 Fix build failure of solaris-hosted cross debuggers.
11203 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11204
11205 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11206
11207 Fix build failure on sparc-solaris.
11208 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11209
11210 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11211
11212 Move some symfile code into subroutines.
11213 * symfile.h (relative_addr_info_to_section_offsets)
11214 (addr_info_make_relative): New prototypes.
11215 * symfile.c (default_symfile_offsets): Move a part to ...
11216 (relative_addr_info_to_section_offsets): ... this new function.
11217 (default_symfile_offsets): Call it.
11218 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11219 this part to ...
11220 (addr_info_make_relative): ... this new function.
11221
11222 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11223
11224 Add from_tty to solib_create_inferior_hook.
11225 * infcmd.c (post_create_inferior): Move solib_add after
11226 solib_create_inferior_hook. Pass from_tty to
11227 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11228 0 from_tty and comment why.
11229 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11230 * linux-nat.c (linux_child_follow_fork): Likewise.
11231 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11232 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11233 from_tty.
11234 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11235 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11236 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11237 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11238 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11239 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11240 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11241 Pass it to svr4_so_ops.solib_create_inferior_hook.
11242 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11243 from_tty.
11244 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11245 solib_add.
11246 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11247 enable_break.
11248 * solib-target.c (solib_target_solib_create_inferior_hook): New
11249 parameter from_tty.
11250 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11251 it to ops->solib_create_inferior_hook.
11252 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11253 Move solib_add after solib_create_inferior_hook, call it now with
11254 from_tty as 0. New comment there.
11255 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11256 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11257 Likewise.
11258
11259 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11260
11261 Fix multiexec race.
11262 * infrun.c (handle_inferior_event): Use get_thread_regcache
11263 with events ptid, not get_current_regcache.
11264
11265 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11266
11267 GDB crash with empty executable name (MinGW).
11268 * source.c (openp): Add assert that parameter string is not NULL.
11269 if parameter string is an empty string, then return with a failure
11270 immediately.
11271
11272 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11273
11274 Get rid of support for VAX Floats.
11275 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11276 (ada_vax_float_print_function): Delete.
11277 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11278 (ada_vax_float_print_function): Delete.
11279 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11280 (ada_print_type): Remove support for VAX floats.
11281 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11282
11283 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11284
11285 * stabsread.c (read_args): Handle zero arguments.
11286
11287 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11288
11289 Cannot find in-tree libiconv.a after reconfigure.
11290 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11291 that we can use, then cache the path to this archive.
11292 * configure: Regenerate.
11293
11294 2010-01-07 Stan Shebs <stan@codesourcery.com>
11295
11296 Make tracepoint operations go through target vector.
11297 * target.h (enum trace_find_type): New enum.
11298 (struct target_ops): New fields to_trace_init,
11299 to_download_tracepoint, to_download_trace_state_variable,
11300 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11301 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11302 to_set_disconnected_tracing.
11303 (target_trace_init): New macro.
11304 (target_download_tracepoint): New macro.
11305 (target_download_trace_state_variable): New macro.
11306 (target_trace_start): New macro.
11307 (target_trace_set_readonly_regions): New macro.
11308 (target_get_trace_status): New macro.
11309 (target_trace_stop): New macro.
11310 (target_trace_find): New macro.
11311 (target_get_trace_state_variable_value): New macro.
11312 (target_set_disconnected_tracing): New macro.
11313 * target.c (update_current_target): Inherit and set defaults for
11314 tracepoint operations.
11315 * tracepoint.c (default_collect): Make globally visible.
11316 (target_is_remote): Remove, along with all calls.
11317 (tvariables_info): Call target_get_trace_state_variable_value.
11318 (remote_set_transparent_ranges): Remove.
11319 (trace_start_command): Call target_trace_init,
11320 target_download_tracepoint, etc.
11321 (download_tracepoint): Remove.
11322 (trace_stop_command): Simplify.
11323 (stop_tracing): Call target_trace_stop.
11324 (get_trace_status): Call target_get_trace_status.
11325 (trace_status_command): Add case for targets that cannot trace.
11326 (finish_tfind_command): Change to take numerical arguments, call
11327 target_trace_find.
11328 (trace_find_command): Update call to finish_tfind_command.
11329 (trace_find_pc_command): Ditto.
11330 (trace_find_tracepoint_command): Ditto.
11331 (trace_find_line_command): Ditto.
11332 (trace_find_range_command): Ditto.
11333 (trace_find_outside_command): Ditto.
11334 (set_disconnected_tracing_value): Call
11335 target_set_disconnected_tracing.
11336 * remote.c: Add protocol encoding bits from tracepoint.c.
11337 (trace_error): Move from tracepoint.c.
11338 (remote_get_noisy_reply): Ditto.
11339 (free_actions_list_cleanup_wrapper): Ditto.
11340 (free_actions_list): Ditto.
11341 (remote_trace_init): New function.
11342 (remote_download_tracepoint): New function.
11343 (remote_download_trace_state_variable): New function.
11344 (remote_trace_set_readonly_regions): New function.
11345 (remote_trace_start): New function.
11346 (remote_get_trace_status): New function.
11347 (remote_trace_stop): New function.
11348 (remote_trace_find): New function.
11349 (remote_download_trace_state_variable): New function.
11350 (remote_set_disconnected_tracing): New function.
11351 (init_remote_ops): Add tracepoint operations.
11352
11353 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11354
11355 2010-01-07 Tristan Gingold <gingold@adacore.com>
11356
11357 * symfile.c (build_section_addr_info_from_objfile): New function.
11358 (symbol_file_add_separate): Don't use offsets from objfile but
11359 built an addr info.
11360
11361 2010-01-06 Stan Shebs <stan@codesourcery.com>
11362
11363 Support disconnected tracing.
11364 * infcmd.c (detach_command): Ask whether to stop tracing.
11365 * cli/cli-cmds.c (quit_command): Ditto.
11366 * breakpoint.h (struct breakpoint): New field number_on_target.
11367 * breakpoint.c (create_tracepoint_from_upload): New function.
11368 (get_tracepoint_by_number_on_target): New function.
11369 * remote.c (struct remote): New field disconnected_tracing.
11370 (remote_disconnected_tracing_feature): New function.
11371 (remote_protocol_features): Add DisconnectedTracing.
11372 (struct uploaded_tp): New struct.
11373 (uploaded_tps): New global.
11374 (get_uploaded_tp): New function.
11375 (find_matching_tracepoint): New function.
11376 (remote_get_tracing_state): New function.
11377 (remote_start_remote): Call it.
11378 * tracepoint.c (disconnected_tracing): New global.
11379 (trace_start_command): Initialize number_on_target.
11380 (stop_tracing): New function, split out from...
11381 (trace_stop_command): Call stop_tracing.
11382 (get_trace_status): New function, split out from...
11383 (trace_status_command): Call get_trace_status, add info on
11384 disconnection behavior.
11385 (disconnect_or_stop_tracing): New function.
11386 (finish_tfind_command): Translate from number on target.
11387 (trace_find_tracepoint_command): Translate to number on target.
11388 (send_disconnected_tracing_value): New function.
11389 (set_disconnected_tracing): New function.
11390 (_initialize_tracepoint): Add disconnected-tracing variable.
11391 * NEWS: Mention disconnected tracing.
11392
11393 2010-01-06 Tristan Gingold <gingold@adacore.com>
11394
11395 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11396 parameter to main_objfile. Iterate on all separate debug objfiles.
11397 * symfile.h (symbol_file_add_separate)
11398 (find_separate_debug_file_by_debuglink): Remove parameter names.
11399 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11400 (reread_symbols): Use free_objfile_separate_debug.
11401 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11402 Adjust comment.
11403 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11404 (free_objfile_separate_debug): New prototypes.
11405 * objfiles.c (objfile_separate_debug_iterate): New function.
11406 (add_separate_debug_objfile, free_objfile_separate_debug): New
11407 functions.
11408 (free_objfile): Use free_objfile_separate_debug. Adjust for
11409 multiple separate debug objfile.
11410 (objfile_has_symbols): Adjust comment. Iterate on all separate
11411 debug objfiles.
11412 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11413 debug objfile.
11414 (lookup_minimal_symbol_text): Ditto.
11415 (lookup_minimal_symbol_by_pc_name): Ditto.
11416 (lookup_minimal_symbol_solib_trampoline): Ditto.
11417 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11418 debug objfiles.
11419
11420 2010-01-05 Stan Shebs <stan@codesourcery.com>
11421
11422 Add fast tracepoints.
11423 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11424 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11425 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11426 * breakpoint.c (tracepoint_type): New function.
11427 (ALL_TRACEPOINTS): Use it.
11428 (should_be_inserted): Ditto.
11429 (bpstat_check_location): Ditto.
11430 (print_one_breakpoint_location): Ditto.
11431 (user_settable_breakpoint): Ditto.
11432 (set_breakpoint_location_function): Ditto.
11433 (disable_breakpoints_in_shlibs): Ditto.
11434 (delete_trace_command): Ditto.
11435 (print_it_typical): Add bp_fast_tracepoint case.
11436 (bpstat_what): Ditto.
11437 (print_one_breakpoint_location): Ditto.
11438 (allocate_bp_location): Ditto.
11439 (mention): Ditto.
11440 (breakpoint_re_set_one): Ditto.
11441 (disable_command): Ditto.
11442 (enable_command): Ditto.
11443 (check_fast_tracepoint_sals): New function.
11444 (break_command_really): Call it.
11445 (ftrace_command): New function.
11446 (_initialize_breakpoint): Add ftrace command.
11447 * gdbarch.sh (fast_tracepoint_valid_at): New.
11448 * gdbarch.h, gdbarch.c: Regenerate.
11449 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11450 (i386_gdbarch_init): Use it.
11451 * remote.c (struct remote_state): New field fast_tracepoints.
11452 (PACKET_FastTracepoints): New packet config type.
11453 (remote_fast_tracepoint_feature): New function.
11454 (remote_protocol_features): Add FastTracepoints.
11455 (remote_supports_fast_tracepoints): New function.
11456 (_initialize_remote): Add FastTracepoints.
11457 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11458 * NEWS: Mention fast tracepoints.
11459
11460 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11461
11462 * gdb-gdb.py: New file.
11463
11464 2010-01-05 Michael Snyder <msnyder@vmware.com>
11465
11466 * infrun.c (handle_inferior_event): Fix typo in comment.
11467
11468 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11469
11470 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11471
11472 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11473
11474 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11475 and s390x-linux64.
11476 (s390-linux32-expedite): Define.
11477 (s390-linux64-expedite): Define.
11478 (s390x-linux64-expedite): Define.
11479 * features/s390-acr.xml: New file.
11480 * features/s390-fpr.xml: New file.
11481 * features/s390-core32.xml: New file.
11482 * features/s390-core64.xml: New file.
11483 * features/s390x-core64.xml: New file.
11484 * features/s390-linux32.xml: New file.
11485 * features/s390-linux64.xml: New file.
11486 * features/s390x-linux64.xml: New file.
11487 * features/s390-linux32.c: New generated file.
11488 * features/s390-linux64.c: New generated file.
11489 * features/s390x-linux64.c: New generated file.
11490
11491 * regformats/s390-linux32.dat: New generated file.
11492 * regformats/s390-linux64.dat: New generated file.
11493 * regformats/s390x-linux64.dat: New generated file.
11494 * regformats/reg-s390.dat: Remove.
11495 * regformats/reg-s390x.dat: Remove.
11496
11497 * s390-nat.c: Include "auxv.h" and <elf.h>.
11498 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11499 (s390_target_wordsize): New function.
11500 (s390_auxv_parse): Likewise.
11501 (s390_get_hwcap): Likewise.
11502 (s390_read_description): Likewise.
11503 (_initialize_s390_nat): Install s390_auxv_parse and
11504 s390_read_description.
11505
11506 * s390-tdep.c: Include "features/s390-linux32.c",
11507 "features/s390-linux64.c", and "features/s390x-linux64.c".
11508 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11509 (s390_register_call_saved): New function.
11510 (s390_register_name): Remove.
11511 (s390_register_type): Remove.
11512 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11513 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11514 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11515 (s390_pseudo_register_name): New function.
11516 (s390_pseudo_register_type): New function.
11517 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11518 Handle full GPR pesudos and varying pseudo register numbers.
11519 (s390_pseudo_register_write): Likewise
11520 (s390x_pseudo_register_read): Remove.
11521 (s390x_pseudo_register_write): Likewise.
11522 (s390_register_group): Remove.
11523 (s390_pseudo_register_group): New function.
11524 (s390_regmap_gregset): Add GPR upper halves.
11525 (s390x_regmap_gregset): Likewise.
11526 (s390_regmap_fpregset): Likewise.
11527 (s390_regmap_upper): New global variable.
11528 (s390_upper_regset): New global variable.
11529 (s390_upper_regset_sections): New global variable.
11530 (s390_regset_from_core_section): Handle GPR upper halves.
11531 (s390_core_read_description): New function.
11532 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11533 register information. Handle varying pseudo register numbers.
11534 (s390_backchain_frame_unwind_cache): Likewise.
11535 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11536 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11537 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11538 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11539 Handle varying pseudo register numbers.
11540 (s390_unwind_pc): Handle varying pseudo register numbers.
11541 (s390_dwarf2_prev_register): New function.
11542 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11543 register information. Handle varying pseudo register numbers.
11544 Install s390_dwarf2_prev_register to unwind full GPRs.
11545 (s390_gdbarch_init): Handle target descriptions. Assign varying
11546 pseudo register numbers. Install s390_adjust_frame_regnum.
11547 (_initialize_s390_tdep): Initialize target descriptions.
11548
11549 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11550 (S390_NUM_REGS): Redefine to include upper half registers.
11551 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11552 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11553 (tdesc_s390_linux32): Add declaration.
11554 (tdesc_s390_linux64): Likewise.
11555 (tdesc_s390x_linux64): Likewise.
11556
11557 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11558
11559 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11560 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11561 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11562 (ppc_linux_vmx_regset_sections): Likewise.
11563 (ppc_linux_fp_regset_sections): Likewise.
11564
11565 * corelow.c (get_core_register_section): Constify arguments.
11566 (get_core_registers): Use gdbarch_core_regset_sections instead
11567 of hard-coded platform-specific register section names.
11568
11569 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11570
11571 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11572 a register, assume the least-significant part is used.
11573 (write_pieced_value): Likewise.
11574
11575 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11576
11577 * printcmd.c: Include "arch-utils.h".
11578 (do_one_display): Re-parse expression if current architecture changed.
11579
11580 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11581 Joel Brobecker <brobecker@adacore.com>
11582
11583 * gdbtypes.c (check_typedef): New comment on type length.
11584 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11585 comment on type length.
11586 (value_primitive_field): Keep the original TYPE value, new comment.
11587
11588 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11589
11590 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11591 p_start. Change != comparisons to > and < comparisons.
11592
11593 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11594
11595 * cli/cli-script.c (process_next_line): Check P2 overrun.
11596
11597 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11598
11599 Update the copyright hearder to add year 2010 for most GDB files.
11600
11601 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11602
11603 Fix build failure in inf-ptrace.c.
11604 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11605
11606 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11607
11608 * top.c (print_gdb_version): Update copyright year.
11609
11610 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11611
11612 Fix break *FUN'address thread NUM.
11613 * ada-lex.l (task): Expand rule to also match the thread keyword.
11614
11615 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11616
11617 Fix break *FUN'address task NUM.
11618 * ada-lex.l (task): New rule.
11619 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11620 been built before using it.
11621
11622 For older changes see ChangeLog-2009.
11623 \f
11624 Local Variables:
11625 mode: change-log
11626 left-margin: 8
11627 fill-column: 74
11628 version-control: never
11629 coding: utf-8
11630 End:
This page took 0.266959 seconds and 5 git commands to generate.