]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb/
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Rename and move inferior_thread_state and inferior_status.
4 * gdbthread.h (struct thread_control_state): New struct, move fields
5 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
6 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
7 stop_step and stop_bpstat here from struct thread_info.
8 (struct thread_suspend_state): New struct, move field stop_signal here
9 from struct thread_info.
10 (struct thread_info): Move the fields above from this struct.
11 * inferior.h: Move the inferior_thread_state and inferior_status
12 declarations comment to their definitions at infrun.c.
13 (struct inferior_control_state): New struct, move field stop_soon from
14 struct inferior here.
15 (struct inferior_suspend_state): New empty struct.
16 (struct inferior): New fields control and suspend. Move out field
17 stop_soon.
18 * infrun.c (struct inferior_thread_state): Rename to ...
19 (infcall_suspend_state): ... here. Replace field stop_signal by
20 fields thread_suspend and inferior_suspend.
21 (save_inferior_thread_state): Rename to ...
22 (save_infcall_suspend_state): ... here. New variable inf. Update the
23 code for new fields.
24 (restore_inferior_thread_state): Rename to ...
25 (restore_infcall_suspend_state): ... here. New variable inf. Update
26 the code for new fields.
27 (do_restore_inferior_thread_state_cleanup): Rename to ...
28 (do_restore_infcall_suspend_state_cleanup): ... here.
29 (make_cleanup_restore_inferior_thread_state): Rename to ...
30 (make_cleanup_restore_infcall_suspend_state): ... here.
31 (discard_inferior_thread_state): Rename to ...
32 (discard_infcall_suspend_state): ... here.
33 (get_inferior_thread_state_regcache): Rename to ...
34 (get_infcall_suspend_state_regcache): ... here.
35 (struct inferior_status): Rename to ...
36 (struct infcall_control_state): ... here. Replace fields
37 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
38 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
39 stop_step, stop_bpstat and stop_soon by fields thread_control and
40 inferior_control.
41 (save_inferior_status): Rename to ...
42 (save_infcall_control_state): ... here. Update the code for new
43 fields.
44 (restore_inferior_status): Rename to ...
45 (restore_infcall_control_state): ... here. Update the code for new
46 fields.
47 (do_restore_inferior_status_cleanup): Rename to ...
48 (do_restore_infcall_control_state_cleanup): ... here.
49 (make_cleanup_restore_inferior_status): Rename to ...
50 (make_cleanup_restore_infcall_control_state): ... here.
51 (discard_inferior_status): Rename to ...
52 (discard_infcall_control_state): ... here.
53 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
54 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
55 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
56 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
57 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
58 references to the moved fields and renamed functions.
59
60 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
61
62 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
63 the comment.
64 (save_inferior_thread_state): Reset tp->stop_signal.
65
66 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
67
68 * infcall.c (call_function_by_hand): Remove variable
69 caller_state_cleanup.
70
71 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
72
73 PR breakpoints/12217
74
75 * breakpoint.c (is_marker_spec): Check for NULL.
76
77 2010-11-25 Pedro Alves <pedro@codesourcery.com>
78
79 * breakpoint.h: No longer include python.h or python-internal.h.
80 (struct breakpoint_object): Forward declare.
81 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
82 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
83 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
84 PyObject pointer.
85 (gdbpy_breakpoint_created): Remove casts around py_bp_object
86 accesses.
87
88 2010-11-24 Joel Brobecker <brobecker@adacore.com>
89
90 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
91 only if HAVE_ELF is defined.
92
93 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
94
95 Code cleanup.
96 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
97 (save_inferior_status) <stepping_over_breakpoint>
98 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
99 trap_expected.
100 (struct inferior_status) <step_resume_break_address>: Remove.
101
102 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
103
104 Code cleanup.
105 * infrun.c (struct inferior_status, save_inferior_status)
106 (restore_inferior_status): Group and reorder the fields, comment their
107 groups.
108
109 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
110
111 Code cleanup.
112 * dictionary.c
113 (struct dict_vector) <iter_match_first, iter_match_next>
114 (iter_match_first_hashed, iter_match_next_hashed)
115 (iter_match_first_linear, iter_match_next_linear)
116 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
117 (iter_match_next_hashed, iter_match_first_linear)
118 (iter_match_next_linear): Use symbol_compare_ftype.
119 * dictionary.h: Include symfile.h.
120 (dict_iter_match_first, dict_iter_match_next): Use
121 symbol_compare_ftype.
122 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
123 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
124 (map_matching_symbols_psymtab): Likewise.
125 * symfile.h (symbol_compare_ftype): New typedef.
126 (struct quick_symbol_functions) <map_matching_symbols): Use
127 symbol_compare_ftype.
128
129 2010-11-23 Tom Tromey <tromey@redhat.com>
130
131 * configure: Rebuild.
132 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
133
134 2010-11-19 Tom Tromey <tromey@redhat.com>
135
136 * Makefile.in (SUBDIRS): Add doc.
137 * configure: Rebuild.
138 * configure.ac: Don't configure in doc. Create doc/Makefile.
139
140 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
141
142 PR python/12212
143
144 * python/py-inferior.c (find_thread_object): Check if PIDGET
145 returns 0.
146
147 010-11-22 Joel Brobecker <brobecker@adacore.com>
148
149 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
150
151 2010-11-22 Joel Brobecker <brobecker@adacore.com>
152
153 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
154 Return the original type if the main type portions match rather
155 than when the type themselves match.
156
157 2010-11-22 Joel Brobecker <brobecker@adacore.com>
158
159 * ada-lang.c (ada_template_to_fixed_record_type_1):
160 For dynamic fields, check the field size against the maximum
161 object size.
162
163 2010-11-22 Joel Brobecker <brobecker@adacore.com>
164
165 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
166 function.
167 (mips_irix_n32_stack_tramp_frame): New static global.
168 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
169 list of unwinder.
170
171 2010-11-22 Jerome Guitton <guitton@adacore.com>
172
173 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
174 ATCB symbols.
175
176 2010-11-22 Joel Brobecker <brobecker@adacore.com>
177
178 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
179 if type1 is a typedef.
180
181 2010-11-22 Joel Brobecker <brobecker@adacore.com>
182
183 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
184 "_finalizer" to the list.
185
186 2010-11-22 Joel Brobecker <brobecker@adacore.com>
187
188 * symfile.c: Remove all "#if 0"/"#endif" blocks.
189
190 2010-11-22 Joel Brobecker <brobecker@adacore.com>
191
192 * symfile.c: Add missing second space after period in various comments.
193
194 2010-11-22 Joel Brobecker <brobecker@adacore.com>
195
196 * ada-typeprint.c (print_array_type): Fix formatting in comment.
197 (print_selected_record_field_types): Fix formatting in function
198 documentation.
199
200 2010-11-22 Joel Brobecker <brobecker@adacore.com>
201
202 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
203 in name of "show ravenscar" prefix command name.
204
205 2010-11-22 Joel Brobecker <brobecker@adacore.com>
206
207 * ravenscar-thread.c (show_ravenscar_task_switching_command):
208 Add missing '\n' in output.
209
210 2010-11-22 Joel Brobecker <brobecker@adacore.com>
211
212 * ravenscar-thread.c (running_thread_name): Change value.
213 (read_thread_id): Remove advance declaration.
214 (get_running_thread_msymbol): New function.
215 (has_ravenscar_runtime): Use get_running_thread_msymbol to
216 compute msym_running_thread.
217 (get_running_thread_id): Renames read_thread_id. Slight modifications
218 to not take any argument anymore, using get_running_thread_msymbol
219 to determine which symbol to use instead.
220 (ravenscar_running_thread): Use get_running_thread_id instead of
221 read_thread_id.
222
223 2010-11-22 Joel Brobecker <brobecker@adacore.com>
224
225 * ravenscar-sparc-thread.c (supply_register_at_address):
226 Fix passing of buf in call to regcache_raw_supply.
227
228 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
229
230 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
231
232 2010-11-22 Tom Tromey <tromey@redhat.com>
233
234 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
235
236 2010-11-19 Keith Seitz <keiths@redhat.com>
237
238 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
239 Remove extraneous '/' after $(DESTDIR).
240 (PYTHON_INSTALL_DIR): Likewise.
241
242 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
243
244 Fix stale memory references.
245 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
246 xfree, new comment.
247
248 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
249 Tom Tromey <tromey@redhat.com>
250
251 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
252 (.PHONY): Remove for .y outputs.
253
254 2010-11-19 Will Drewry <wad@google.com>
255 Tavis Ormandy <taviso@google.com>
256 Jan Kratochvil <jan.kratochvil@redhat.com>
257
258 * dwarf2read.c (decode_locdesc): Enforce location description stack
259 boundaries.
260
261 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
262
263 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
264 instruction is found.
265
266 2010-11-17 Tom Tromey <tromey@redhat.com>
267
268 * value.c (value_entirely_optimized_out): Check the
269 'check_any_valid' field.
270
271 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
272
273 * ada-lang.c (modify_general_field): Remove.
274 (make_array_descriptor): Replace all modify_general_field calls by
275 modify_field.
276 * value.c (modify_field): Update comment. New variable bytesize.
277 Normalize BITPOS. Initialize BYTESIZE, use it.
278
279 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
280
281 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
282 elements after xfree.
283
284 2010-11-16 Tom Tromey <tromey@redhat.com>
285
286 * gdb-add-index.sh: Really remove.
287
288 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
289
290 Code cleanup.
291 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
292 (init_one_comp_unit): ... this one.
293 (prepare_one_comp_unit): New prototype.
294 (dw2_require_line_header, process_psymtab_comp_unit): Use
295 init_one_comp_unit.
296 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
297 (load_partial_comp_unit): Remove variable attr. Use
298 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
299 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
300 prepare_one_comp_unit.
301 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
302 Use prepare_one_comp_unit.
303 (alloc_one_comp_unit): Rename to ...
304 (init_one_comp_unit): ... here and remove there calloc, new parameter
305 cu.
306 (prepare_one_comp_unit): New function.
307
308 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
309
310 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
311 possible used of uninitialized variable.
312
313 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
314
315 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
316 (rs6000_gdbarch_init): Call it.
317
318 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
319
320 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
321 instructions if debugging an E500 binary.
322
323 2010-11-12 Tom Tromey <tromey@redhat.com>
324
325 * varobj.c (value_get_print_value): Rearrange. Pass stream to
326 apply_varobj_pretty_printer.
327 * c-lang.c: Include exceptions.h.
328 (c_get_string): Throw MEMORY_ERROR when appropriate.
329 * python/py-prettyprint.c (enum string_repr_result): New.
330 (print_stack_unless_memory_error): New function.
331 (print_string_repr): Change return type. Use
332 print_stack_unless_memory_error.
333 (print_children): Use print_stack_unless_memory_error.
334 (apply_val_pretty_printer): Update. Don't print children if
335 string representation threw an exception.
336 (apply_varobj_pretty_printer): Add 'stream' argument. Use
337 print_stack_unless_memory_error.
338 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
339 globals.
340 (_initialize_python): Initialize them.
341 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
342 gdbpy_convert_exception.
343 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
344 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
345 (gdbpy_convert_exception): Declare.
346 (apply_varobj_pretty_printer): Update.
347 * python/py-utils.c (gdbpy_convert_exception): New function.
348
349 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
350
351 * mi/mi-main.c (mi_cmd_target_detach): Accept new
352 thread-group id format.
353
354 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
355
356 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
357
358 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
359
360 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
361 NULL.
362 (BPPY_SET_REQUIRE_VALID): Ditto.
363 (bpnum_is_valid): Delete function.
364 (bppy_get_visibility): New function.
365 (bppy_new): Parse for, and validate internal keyword. Pass
366 internal keyword to breakpoint or watchpoint functions.
367 (build_bp_list): New function.
368 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
369 iterate_over_breakpoints.
370 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
371 look-aside vector.
372 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
373 to internal breakpoint chain.
374
375 * breakpoint.c (set_breakpoint_number): New function.
376 (breakpoint_1): Check if breakpoint number is more than zero.
377 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
378 (create_breakpoint_sal): Take a new parameter called internal.
379 Call set_breakpoint_number with internal parameter. Do not
380 mention internal breakpoints. All callers updated.
381 (create_breakpoint): Ditto.
382 (create_breakpoints_sal): Ditto.
383 (watch_command_1): Ditto.
384 (watch_command_wrapper): Take a new parameter called internal.
385 All callers updated.
386 (rwatch_command_wrapper): Ditto.
387 (awatch_command_wrapper): Ditto.
388 (save_breakpoints): Update breakpoint save condition check.
389 (iterate_over_breakpoints): New function.
390 * breakpoint.h: Add conditional python includes. Add py_bp_object
391 and comment to struct breakpoint. Update all callers.
392 * defs.h: Add PyObject definition for GDB builds without Python.
393
394 2010-11-10 Doug Evans <dje@google.com>
395
396 * python/lib/gdb/command/pretty_printers.py
397 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
398
399 * value.c (set_value_enclosing_type): Renamed from
400 value_change_enclosing_type. All callers updated.
401 * value.h (set_value_enclosing_type): Update.
402 * valops.c (value_full_object): Always return a copy if we need to
403 make changes to the input value.
404
405 2010-11-09 Pedro Alves <pedro@codesourcery.com>
406
407 * breakpoint.c (watch_command_1): Get a pointer of the lazy
408 version of the expression's value, even if reading the value from
409 memory fails. When creating a -location watchpoint, get the
410 value's address from the lazy value pointer.
411
412 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
413
414 * infrun.c (restore_inferior_thread_state): Use
415 discard_inferior_thread_state to free the data.
416 (discard_inferior_thread_state): xfree also siginfo_data.
417
418 2010-11-05 Doug Evans <dje@google.com>
419
420 Make gdb.parameter("directories") work.
421 New command "set directories".
422 * NEWS: Document them.
423 * source.c (set_directories_command): New function.
424 (show_directories_1): Renamed from show_directories.
425 All callers updated.
426 (show_directories_command): New function.
427 (_initialize_source): Install "directories" as a set/show
428 variable instead of just a show command.
429
430 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
431
432 * NEWS: Mention OpenCL C language support.
433 * Makefile.in (SFILES): Add opencl-lang.c.
434 (COMMON_OBS): Add opencl-lang.o.
435 * opencl-lang.c: New File
436 * defs.h (enum language): Add language_opencl.
437 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
438 IBM XL C OpenCL compiler.
439 * c-lang.h: Include "parser-defs.h".
440 (evaluate_subexp_c): Declare.
441 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
442 (c_op_print_tab): Add declaration.
443 * eval.c (binop_promote): Handle language_opencl.
444 * c-exp.y: Lookup the primitive types instead of referring to the
445 builtins.
446
447 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
448
449 Fix configure --enable-plugins --without-python.
450 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
451 * configure: Regenerate.
452
453 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
454
455 * solib.c (solib_read_symbols): Call exception_fprintf even without
456 FROM_TTY. Print also so->so_name.
457
458 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
459
460 * gdbtypes.h (struct rank): Created subrank.
461 * gdbtypes.c: Initialized subrank for all
462 'BADNESS' constants.
463 (distance_to_ancestor): New function.
464 (is_ancestor): Use distance_to_ancestor.
465 (is_public_ancestor): Ditto.
466 (sum_ranks): Handle subrank.
467 (compare_ranks): Ditto.
468 (rank_one_type): Subrank base conversions.
469
470 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
471
472 * gdbtypes.h: Create struct rank.
473 Convert all 'BADNESS' macros to const struct rank declarations.
474 (sum_ranks): New function.
475 (compare_ranks): New function.
476 * valops.c (find_oload_champ): Updated.
477 (classify_oload_match): Use compare_ranks.
478 Improved comments.
479 (compare_parameters): Use compare_ranks.
480 * gdbtypes.c: Initialize 'BADNESS' constants.
481 (sum_ranks): New function.
482 (compare_ranks): New function.
483 (compare_badness): Use compare_ranks.
484 (rank_function): Use global constants instead of literals.
485 (rank_one_type): Ditto.
486 Return struct rank.
487 Use sum_ranks.
488
489 2010-11-04 Doug Evans <dje@google.com>
490
491 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
492 (find_pretty_printer): Fix comments.
493
494 2010-11-04 Hui Zhu <teawater@gmail.com>
495
496 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
497
498 2010-11-03 Joel Brobecker <brobecker@adacore.com>
499
500 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
501 and `len' declaration and computation inside block where they
502 are being used.
503
504 2010-11-03 Joel Brobecker <brobecker@adacore.com>
505
506 * valprint.c (val_print_array_elements): Put back handling of
507 empty arrays.
508
509 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
510
511 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
512 DIE and set the length of the type.
513 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
514 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
515 return 0 if the corresponding bounds of the type are undefined.
516 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
517 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
518 (val_print_array_elements): Use get_array_bounds to compute the number
519 of array elements instead of dividing the length of the array by the
520 length of the element types.
521 * valarith.c (vector_binop): Likewise.
522 * valops.c (value_cast): Likewise.
523 * c-valprint.c (c_val_print): Likewise.
524 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
525
526 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
527
528 * valarith.c (value_pos, value_neg, value_complement): Handle
529 vector types.
530 * valops.c (value_one): Likewise.
531
532 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
533
534 * value.h (value_non_lval): Declare.
535 * value.c (value_non_lval): New function.
536 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
537 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
538 non-lvalue.
539
540 2010-11-02 Doug Evans <dje@google.com>
541
542 New python module gdb.printing, and new commands info pretty-printer,
543 enable pretty-printer, disable pretty-printer.
544 * NEWS: Mention them.
545 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
546 gdb/command/__init__.py, gdb/command/pretty_printers.py.
547 * python/lib/gdb/__init__.py: Install pretty-printer commands.
548 * python/lib/gdb/printing.py: New file.
549 * python/lib/gdb/command/__init__.py: New file.
550 * python/lib/gdb/command/pretty_printers.py: New file.
551
552 2010-11-02 Tom Tromey <tromey@redhat.com>
553
554 * NEWS: Mention Guile removal.
555 * defs.h (enum language) <language_scm>: Remove.
556 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
557 scm-valprint.c.
558 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
559 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
560 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
561 Remove.
562
563 2010-11-02 Doug Evans <dje@google.com>
564
565 * top.c: #include "python/python.h".
566 (gdb_init): Add a comment regarding initialize_all_files.
567 Call finish_python_initialization at the end.
568 * python/python.h (finish_python_initialization): Declare.
569 * python/python.c (finish_python_initialization): New function.
570 (_initialize_python): Move python-implemented initialization there
571 and call it.
572 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
573
574 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
575
576 Revert:
577 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
578 Pedro Alves <pedro@codesourcery.com>
579 * gdbthread.h (currently_stepping): New declaration.
580 * infrun.c (currently_stepping): Remove the forward declaration.
581 (currently_stepping): Make it global.
582 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
583 variables tp and step, initialized them. Pass STEP to to_resume.
584 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
585 * remote.c (currently_stepping_callback): New.
586 (remote_vcont_resume)
587 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
588 New variable tp. Call currently_stepping_callback and step such
589 thread.
590
591 2010-11-01 Hui Zhu <teawater@gmail.com>
592
593 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
594
595 2010-10-28 Hui Zhu <teawater@gmail.com>
596
597 * tracepoint.c (trace_save): Change utp->actions to
598 utp->step_actions.
599
600 2010-10-26 Joel Brobecker <brobecker@adacore.com>
601
602 * (_FILE_OFFSET_BITS): Fix typo in comment.
603
604 2010-10-26 Joel Brobecker <brobecker@adacore.com>
605
606 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
607 (PyEval_InitThreads): Remove duplicate. Define as nothing.
608 (PyEval_ReleaseLock): Define as nothing.
609
610 2010-10-26 Joel Brobecker <brobecker@adacore.com>
611
612 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
613 by call to FILENAME_CMP.
614
615 2010-10-26 Joel Brobecker <brobecker@adacore.com>
616
617 * dictionary.c (dict_hash): Move assignment out of if condition.
618
619 2010-10-22 Jie Zhang <jie@codesourcery.com>
620
621 * Makefile.in (install): Remove dependency of install-only and
622 recursively invoke make for install-only.
623 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
624 (install): Pass FLAGS_TO_PASS when recursively make install-only.
625
626 2010-10-20 Hui Zhu <teawater@gmail.com>
627
628 * tracepoint.c (tfile_get_traceframe_address): Call
629 extract_signed_integer.
630 (tfile_trace_find): Call extract_signed_integer and
631 extract_unsigned_integer. Change data_size to unsigned int.
632 (tfile_fetch_registers): Call extract_unsigned_integer.
633 (tfile_xfer_partial): Ditto.
634 (tfile_get_trace_state_variable_value): Call
635 extract_signed_integer and extract_unsigned_integer.
636
637 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
638
639 * remote.c (remote_get_threadlist): If we got empty
640 response, bail out immediately, and don't emit any
641 warnings.
642
643 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
644
645 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
646 for "mov pc, REG" as well.
647 (thumb_instruction_changes_pc): Likewise.
648
649 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
650
651 PR C++/11500:
652 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
653 * eval.c (evaluate_subexp_standard): Check for overload of
654 'operator->'.
655 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
656 (value_x_unop): Ditto.
657 * valops.c: Include "exceptions.h".
658 (find_overload_match): Throw NOT_FOUND_ERROR.
659 (value_struct_elt): Ditto.
660
661 2010-10-19 Tom Tromey <tromey@redhat.com>
662
663 * python/py-cmd.c (cmdpy_function): Unreference exception state.
664
665 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
666
667 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
668 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
669 for conversion.
670 Make all other conversions illegal.
671
672 2010-10-18 Doug Evans <dje@google.com>
673
674 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
675 assumptions of when this case happens. Print "<unnamed typedef>".
676
677 2010-10-18 Tom Tromey <tromey@redhat.com>
678
679 * valprint.c (val_print_string): Pass 'encoding' to
680 LA_PRINT_STRING.
681
682 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
683
684 Fix the `stopped language detection' testcase for gcc-4.5.
685 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
686 * symfile.c (set_initial_language): Move variable filename to a more
687 inner block. Prefer LANGUAGE_OF_MAIN.
688 * symtab.c (language_of_main): New variable.
689 (set_main_name): Always reset LANGUAGE_OF_MAIN.
690 * symtab.h (language_of_main): New declaration.
691
692 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
693 Pedro Alves <pedro@codesourcery.com>
694
695 * gdbthread.h (currently_stepping): New declaration.
696 * infrun.c (currently_stepping): Remove the forward declaration.
697 (currently_stepping): Make it global.
698 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
699 variables tp and step, initialized them. Pass STEP to to_resume.
700 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
701 * remote.c (currently_stepping_callback): New.
702 (remote_vcont_resume)
703 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
704 New variable tp. Call currently_stepping_callback and step such
705 thread.
706
707 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
708
709 * infrun.c (follow_exec): Replace symbol_file_add_main by
710 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
711 breakpoint_re_set.
712 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
713 clear_symtab_users.
714 * objfiles.c (free_all_objfiles): Likewise.
715 * remote-m32r-sdi.c (m32r_load): Likewise.
716 * solib-som.c (som_solib_create_inferior_hook): Likewise.
717 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
718 clear_symtab_users with ADD_FLAGS.
719 (reread_symbols): Use parameter 0 for clear_symtab_users.
720 (clear_symtab_users): New parameter add_flags. Do not call
721 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
722 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
723 * symtab.h (clear_symtab_users): New parameter add_flags.
724
725 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
726
727 Fix GCC false warning.
728 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
729
730 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
731
732 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
733 display of type of method arguments.
734
735 2010-10-15 Tom Tromey <tromey@redhat.com>
736
737 PR python/11948:
738 * varobj.c (value_get_print_value): Use val_print_string to print
739 lazy strings.
740 * python/py-prettyprint.c (print_string_repr): Use
741 val_print_string to print lazy strings. Fix cleanup logic.
742 (print_children): Likewise.
743 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
744 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
745 Change return type to 'void', add 'addr' argument.
746 * value.h (val_print_string): Update.
747 * valprint.c (val_print_string): Add 'encoding' argument.
748 * printcmd.c (print_formatted): Update.
749 * p-valprint.c (pascal_val_print): Update.
750 * m2-valprint.c (print_unpacked_pointer): Update.
751 (m2_print_array_contents): Likewise.
752 * jv-valprint.c (java_value_print): Update.
753 * f-valprint.c (f_val_print): Update.
754 * c-valprint.c (c_val_print): Update.
755 * auxv.c (fprint_target_auxv): Update.
756
757 2010-10-15 Doug Evans <dje@google.com>
758 Jan Kratochvil <jan.kratochvil@redhat.com>
759
760 PR exp/12117
761 * gdbtypes.c (check_typedef): Clean up function comment.
762 Keep track of instance flags as we strip typedefs and create a new
763 type to preserve them if necessary.
764 * gdbtypes.h (type) <instance_flags>: Extend the comment.
765
766 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
767
768 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
769
770 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
771
772 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
773 * gdbtypes.c (rank_one_type): Move type comparison code out of here
774 to...
775 (types_equal): ...here. And changed it as follows:
776 Outside of typedefs type must be of the same TYPE_CODE.
777 When compairing two pointers or references they are equal if their
778 targets are equal.
779 Correct pointer conversions.
780
781 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
782
783 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
784 having fields without names.
785
786 2010-10-13 Tom Tromey <tromey@redhat.com>
787
788 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
789
790 2010-10-13 Doug Evans <dje@google.com>
791
792 New python module gdb.types.
793 * NEWS: Document it.
794 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
795 * python/lib/gdb/types.py: New file.
796
797 * c-typeprint.c: Whitespace cleanup.
798 (cp_type_print_method_args): Remove unnecessary forward decl.
799 (cp_type_print_derivation_info): Ditto.
800 (c_type_print_varspec_prefix): Mark as static at definition.
801 (c_type_print_modifier): Fix arg descriptions.
802
803 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
804
805 * python/py-breakpoint.c (bppy_set_condition): New comment.
806 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
807 failed PyUnicode_Decode.
808 (cmdpy_completer): Skip element for failed
809 python_string_to_host_string.
810 (cmdpy_init): Return -1 on failed python_string_to_host_string.
811 * python/py-frame.c (frapy_read_var): Extend the function comment.
812 * python/py-function.c (fnpy_init): Return -1 on failed
813 python_string_to_host_string.
814 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
815 the function comment.
816 (infpy_search_memory): Extend the function comment. Remove the
817 PyErr_SetString call on already set error state.
818 * python/py-param.c (set_parameter_value): Extend the function
819 comment. Return -1 on failed python_string_to_host_string, twice.
820 (set_attr): Extend the function comment.
821 (compute_enum_values): Extend the function comment. New variable
822 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
823 failed python_string_to_host_string.
824 (get_doc_string): Call gdbpy_print_stack on failed
825 python_string_to_host_string.
826 (parmpy_init): Extend the function comment.
827 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
828 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
829 failed python_string_to_host_string.
830 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
831 (valpy_binop, valpy_richcompare): Extend the function comment.
832 * python/python.c
833 (struct python_env) <error_type, error_value, error_traceback>: New
834 fields.
835 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
836 (ensure_python_env): Call PyErr_Fetch.
837 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
838 failed convert_value_from_python.
839 (value_get_print_value): Call gdbpy_print_stack on failed
840 python_string_to_target_python_string.
841
842 2010-10-12 Tom Tromey <tromey@redhat.com>
843
844 * python/py-prettyprint.c (search_pp_list): Fix error checking.
845
846 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
847
848 * gdbtypes.c (do_is_ancestor): New function.
849 (is_ancestor): Use do_is_ancestor.
850 (is_public_ancestor): Use do_is_ancestor.
851
852 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
853
854 * ser-go32.c (struct dos_ops): Add missing fdopen field.
855
856 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
857
858 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
859
860 2010-10-11 Doug Evans <dje@google.com>
861
862 * c-typeprint.c (c_type_print_modifier): Add note that this prints
863 the address space id too.
864
865 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
866
867 Fix attaching to re-prelinked executables on ppc64.
868 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
869 initialize it, try to adjust FILESZ field by it.
870
871 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
872
873 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
874 messages if info_verbose.
875
876 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
877
878 * valops.c (value_cast): Handle vector types.
879 * valarith.c (value_binop): Widen scalar to vector if appropriate.
880
881 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
882
883 * arm-tdep.c (thumb_expand_immediate): New function.
884 (thumb_instruction_changes_pc): Likewise.
885 (thumb2_instruction_changes_pc): Likewise.
886 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
887 prologue parsing. Improved support for optimized code.
888 (thumb_scan_prologue): Do not reply on line-number information,
889 use same heuristics as arm_scan_prologue insead.
890 (skip_prologue_function): Accept functions
891 "__tls_get_addr" and "__aeabi_read_tp".
892
893 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
894 Daniel Jacobowitz <dan@codesourcery.com>
895
896 * arm-tdep.c (thumb_in_function_epilogue_p)
897 (arm_in_function_epilogue_p): New.
898 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
899 gdbarch_in_function_epilogue_p callback.
900
901 2010-10-07 Doug Evans <dje@google.com>
902
903 * cc-with-index.sh (output_file): Default to a.out.
904
905 * dwarf2read.c (mapped_index): Rename member index_table to
906 symbol_table and index_table_slots to symbol_table_slots.
907 All uses updated.
908 (create_symbol_hash_table): Renamed from create_index_table.
909 All callers updated.
910 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
911 (write_hash_table): Rename local index_table to symbol_hash_table.
912
913 * addrmap.h (addrmap_foreach_fn): New typedef.
914 (addrmap_foreach): Declare.
915 * addrmap.c (struct addrmap_funcs): New member foreach.
916 (addrmap_foreach): New function.
917 (addrmap_fixed_foreach): New function.
918 (addrmap_fixed_funcs): Update.
919 (struct mutable_foreach_data): New struct.
920 (addrmap_mutable_foreach_worker): New function.
921 (addrmap_mutable_foreach): New function.
922 (addrmap_mutable_funcs): Update.
923
924 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
925
926 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
927 more cases.
928
929 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
930
931 * ada-lang.c (full_match): Declare.
932 (ada_match_name): Rename to match_name (we should avoid prefixing static
933 symbols with "ada_").
934 (match_name): New name for ada_match_name.
935 (struct ada_psym_data): Remove and replace with...
936 (struct match_data): User data for map_matching_symbols.
937 (ada_add_psyms): Remove.
938 (aux_add_nonlocal_symbols): New function, used as callback for
939 map_matching_symbols.
940 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
941 symbols.
942 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
943 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
944 Rework to use map_matching_symbols instead of map_ada_symtabs.
945 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
946 * psymtab.c: Include dependency on dictionary.h.
947 (match_partial_symbol): New function.
948 (ada_lookup_partial_symbol): Remove.
949 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
950 (map_matching_symbols_psymtab): New function.
951 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
952 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
953
954 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
955
956 * ada-lang.c (ada_match_name): Use new API for wild_match.
957 (wild_match): Change API to be consistent with that of strcmp_iw;
958 return 0 for a match, and switch operand order.
959 (full_match): New function.
960 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
961 matching to allow use of hashing.
962 * dictionary.c (struct dict_vector): Generalize iter_name_first,
963 iter_name_next ot iter_match_first, iter_match_next.
964 (iter_name_first_hashed): Replace with iter_match_first_hashed.
965 (iter_name_next_hashed): Replace with iter_match_next_hashed.
966 (iter_name_first_linear): Replace with iter_match_first_linear.
967 (iter_name_next_linear): Replace with iter_match_next_linear.
968 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
969 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
970 (dict_iter_match_first): New function.
971 (dict_iter_match_next): New function.
972 (dict_hash): New function.
973 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
974 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
975
976 2010-10-06 Doug Evans <dje@google.com>
977
978 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
979
980 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
981
982 * dwarf2read.c (read_tag_const_type): Handle const arrays.
983
984 2010-10-06 Doug Evans <dje@google.com>
985
986 * Makefile.in (REQUIRED_SUBDIRS): New var.
987 (subdir_do): Verify required subdir Makefiles exist.
988
989 Create subdir data-directory.
990 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
991 data-directory/Makefile.in.
992 (SUBDIRS): Add data-directory.
993 (all): Remove xml-syscall-copy dependency.
994 (xml-syscall-copy): Moved to data-directory/Makefile.in as
995 stamp-syscalls.
996 (xml-syscall-install): Moved to data-directory/Makefile.in as
997 install-syscalls.
998 (install-only): Remove xml-syscall-install dependency.
999 (all-data-directory): New rule.
1000 (data-directory/Makefile): New rule.
1001 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1002 * configure: Regenerate.
1003 * data-directory/Makefile.in: New file.
1004 * python/lib/gdb/__init__.py: New file.
1005
1006 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1007
1008 Fix ARI warnings in advance_wild_match.
1009 * ada-lang.c (advance_wild_match): Delete local variable t2.
1010 Adjust code accordingly. Minor reformatting.
1011
1012 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1013
1014 * gdbtypes.h (struct main_type): Remove flag_nottext.
1015 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1016 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1017 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1018 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1019 of TYPE_FLAG_NOTTEXT.
1020 (init_type): Remove the initialization of the flag_nottext field.
1021 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1022 TYPE_FLAG_NOTTEXT.
1023 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1024
1025 2010-10-04 Doug Evans <dje@google.com>
1026
1027 * cc-with-index.sh: New file.
1028
1029 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1030 function comment.
1031 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1032 (create_cus_from_index, create_addrmap_from_index): Ditto.
1033 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1034 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1035 (dw2_do_expand_symtabs_matching): Ditto.
1036 (eq_strtab_entry, create_strtab, add_string): Ditto.
1037 (hash_strtab_entry): Ditto.
1038 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1039 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1040 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1041 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1042 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1043 (write_psymtabs_to_index): Ditto.
1044
1045 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1046
1047 * ada-lang.c: #include "value.h".
1048 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1049 arguments. Implement using value_allocate_space_in_inferior
1050 instead of allocating memory from the stack.
1051 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1052 calls to ensure_lval.
1053 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1054 calls to make_array_descriptor and ensure_lval.
1055 * ada-lang.h (ada_convert_actual): Update declaration.
1056 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1057
1058 2010-10-04 Doug Evans <dje@google.com>
1059
1060 * python/python.c (_initialize_python): Define new function
1061 GdbSetPythonDirectory in python. Use it to update sys.path and
1062 gdb.__path__.
1063
1064 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1065
1066 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1067 incorporating and generalizing print_record_field_types.
1068 (print_record_field_types): Change return value and update comment.
1069 Re-implement using print_selected_record_field_types.
1070 (print_choices): Print "=>" here.
1071 Handle case of unencoded variant branch.
1072 (print_variant_clauses): Reformat comment.
1073 Special-case unencoded variant branch.
1074
1075 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1076
1077 * ada-lang.c (wild_match): Reimplement.
1078 Change API to eliminate unused length argument, reverse arguments and
1079 make 0 the 'true' return value.
1080 (advance_wild_match): New auxiliary function for wild_match to improve
1081 readability.
1082 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1083 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1084 API for wild_match.
1085 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1086 wild_match.
1087 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1088
1089 2010-10-01 Doug Evans <dje@google.com>
1090
1091 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1092 for `save gdb-index' command.
1093
1094 2010-10-01 Tom Tromey <tromey@redhat.com>
1095
1096 * symfile.h (allocate_symtab): Update.
1097 * symfile.c (allocate_symtab): Make 'filename' const.
1098 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1099 (add_psymbol_to_list): Likewise.
1100 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1101 const.
1102 (add_psymbol_to_list): Update.
1103 * mdebugread.c (new_symtab): Make 'name' const.
1104 (psymtab_to_symtab_1): Make 'filename' const.
1105 * elfread.c (elfstab_offset_sections): Update.
1106 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1107 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1108 (psymtab_include_file_name): Update.
1109 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1110 * buildsym.h (start_subfile): Update.
1111 * buildsym.c (start_subfile): Make arguments const.
1112
1113 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1114
1115 * fork-child.c (breakup_args): Fix crash if shell forking is
1116 disabled at compile time.
1117
1118 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1119
1120 * ada-lang.c (desc_bounds): Add handling of the case where
1121 the P_BOUNDS field is a pointer to a stub.
1122 (desc_data_target_type): Same for P_ARRAY field.
1123 (ada_check_typedef): Strip the typedef layers from the type
1124 found by ada_find_any_type.
1125
1126 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1127
1128 * sparc-tdep.c (sparc32_frame_align): New function.
1129 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1130 * sparc64-tdep.c (sparc64_frame_align): New function.
1131 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1132
1133 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1134
1135 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1136
1137 2010-09-30 Tom Tromey <tromey@redhat.com>
1138
1139 * symfile.h (struct sym_fns) <next>: Remove.
1140 (add_symtab_fns): Update.
1141 * symfile.c (sym_fns_ptr): New typedef.
1142 (symtab_fns): Now a VEC.
1143 (add_symtab_fns): Update. Change argument type.
1144 (find_sym_fns): Update. Change return type.
1145 (get_symfile_segment_data): Update.
1146 * objfiles.h (struct objfile) <sf>: Now const.
1147 * somread.c (som_sym_fns): Now const. Update.
1148 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1149 * mipsread.c (ecoff_sym_fns): Now const. Update.
1150 * machoread.c (macho_sym_fns): Now const. Update.
1151 * elfread.c (elf_sym_fns): Now const. Update.
1152 (elf_sym_fns_gdb_index): Likewise.
1153 * dbxread.c (aout_sym_fns): Now const. Update.
1154 * coffread.c (coff_sym_fns): Now const. Update.
1155
1156 2010-09-30 Tom Tromey <tromey@redhat.com>
1157
1158 * value.c (value_primitive_field): Take 'offset' into account for
1159 packed field.
1160
1161 2010-09-30 Tom Tromey <tromey@redhat.com>
1162
1163 * completer.c (count_struct_fields): Handle anonymous structs and
1164 unions.
1165 (add_struct_fields): Likewise.
1166
1167 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1168
1169 Fix printing parameters of inlined functions.
1170 * ada-lang.c (is_known_support_routine)
1171 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1172 for find_frame_funname.
1173 * python/py-frame.c (frapy_name): Likewise.
1174 * stack.c (find_frame_funname): New parameter funcp. Update the
1175 function comment. Fill it in.
1176 (print_frame): New variable func. Initialize it by
1177 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1178 FUNC as the parameter of print_args_stub.
1179 * stack.h (find_frame_funname): New parameter funcp. Remove the
1180 function declaration comment.
1181
1182 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1183
1184 PR corefiles/12071.
1185 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1186 tp. Iterate INFERIOR_LIST and call target_has_execution.
1187
1188 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1189
1190 Fix GDB crash on inferior calls with self-referencing classes.
1191 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1192 member fields.
1193
1194 2010-09-29 Doug Evans <dje@google.com>
1195
1196 Workaround for gcc/45682.
1197 * dwarf2read.c (partial_die_info): New fields fixup_called,
1198 linkage_name.
1199 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1200 Move definition next to use. Use linkage_name to determine if class
1201 is in a namespace. All callers updated.
1202 (fixup_partial_die): Return early if already called.
1203 Set fixup_called when done.
1204 (guess_full_die_structure_name): New function.
1205 (determine_prefix): Call it for class/struct/union dies if c++ and
1206 .debug_types section is present and parent is DW_TAG_compile_unit.
1207
1208 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1209
1210 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1211 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1212
1213 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1214
1215 * NEWS: Announce Ravenscar Profile support.
1216
1217 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1218 Jerome Guitton <guitton@adacore.com>
1219
1220 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1221 New files.
1222 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1223 ravenscar-sparc-thread.o to gdb_target_obs.
1224
1225 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1226
1227 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1228 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1229
1230 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1231
1232 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1233 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1234 skip_main_prologue method.
1235
1236 2010-09-27 Tom Tromey <tromey@redhat.com>
1237
1238 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1239 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1240 Only emit a given psymbol once.
1241 (struct signatured_type_index_data) <psyms_seen>: New field.
1242 (write_one_signatured_type): Update.
1243 (cleanup_htab): New function.
1244 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1245 version to 3.
1246 (save_gdb_index_command): Update index documentation.
1247
1248 2010-09-27 Tom Tromey <tromey@redhat.com>
1249
1250 * bcache.c (expand_hash_table): Use hash_function, not hash.
1251
1252 2010-09-27 Tom Tromey <tromey@redhat.com>
1253
1254 * gdb_wchar.h: Change minimum libiconv to 0x108.
1255
1256 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1257
1258 Fix lost siginfo_t for inferior calls.
1259 * infrun.c
1260 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1261 (save_inferior_thread_state): New variables regcache, gdbarch and
1262 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1263 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1264 using REGCACHE.
1265 (restore_inferior_thread_state): New variables regcache and gdbarch.
1266 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1267 REGCACHE. Free also SIGINFO_DATA.
1268
1269 2010-09-24 Tom Tromey <tromey@redhat.com>
1270
1271 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1272 MAYBE_SWAPs.
1273 (dw2_map_symbol_names): Likewise.
1274
1275 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1276
1277 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1278 discard_cleanups do_cleanups.
1279
1280 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1281
1282 PR gdb/11842
1283
1284 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1285 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1286 si_code is < 0. Check for si_code == SI_TIMER before checking for
1287 si_code < 0.
1288
1289 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1290
1291 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1292
1293 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1294
1295 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1296 debugging a core file.
1297
1298 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1299
1300 Code cleanup.
1301 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1302 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1303 xfree.
1304 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1305 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1306 Remove.
1307 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1308 Remove the conditional.
1309 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1310
1311 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1312
1313 * main.c: Include objfiles.h.
1314 (captured_main): New variable objfile. Call
1315 load_auto_scripts_for_objfile for ALL_OBJFILES.
1316
1317 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1318
1319 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1320 DW_TAG_constant.
1321
1322 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1323
1324 * dwarf2read.c (scan_partial_symbols): Add handling of
1325 DW_TAG_constant DIEs.
1326 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1327
1328 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1329
1330 * configure.ac: Add support for --enable-gdbserver.
1331 * configure: Regenerate.
1332
1333 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1334
1335 PR C++/12028
1336 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1337 'old_cleanups' reassignment.
1338
1339 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1340
1341 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1342 characters.
1343
1344 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1345
1346 PR mi/11407
1347 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1348 read_var_value and common_val_print and print a warning.
1349
1350 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1351
1352 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1353 keep the list in alphabetical order. Use longer e-mail address.
1354
1355 2010-09-15 Tom Tromey <tromey@redhat.com>
1356
1357 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1358
1359 2010-09-15 Tom Tromey <tromey@redhat.com>
1360
1361 * charset.c (iconv_open): New define.
1362 (iconv): Likewise.
1363 (iconv_close): Likewise.
1364 (phony_iconv_open): Add "phony_" prefix.
1365 (phony_iconv_close): Likewise.
1366 (phony_iconv): Likewise.
1367 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1368 Change how INTERMEDIATE_ENCODING is defined.
1369
1370 2010-09-15 Doug Evans <dje@google.com>
1371
1372 * dwarf2read.c (struct die_info): Fix comment.
1373
1374 2010-09-15 Alan Modra <amodra@gmail.com>
1375
1376 PR 4606
1377 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1378 than setting SEC_NEVER_LOAD on sections that need not be copied.
1379
1380 2010-09-14 Tom Tromey <tromey@redhat.com>
1381
1382 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1383 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1384 Declare.
1385 * symfile.h (extend_psymbol_list): Remove.
1386 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1387 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1388 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1389
1390 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1391
1392 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1393 Update the comment.
1394
1395 2010-09-14 Tom Tromey <tromey@redhat.com>
1396
1397 PR symtab/8399:
1398 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1399 for unrecognized frame base expression.
1400
1401 2010-09-14 Tom Tromey <tromey@redhat.com>
1402
1403 PR exp/11803:
1404 * value.c (value_static_field): Use value_of_variable.
1405
1406 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1407
1408 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1409 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1410
1411 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1412
1413 PR symtab/11992:
1414 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1415 UNKNOWN_CPP_NAME.
1416
1417 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1418
1419 * NEWS: Add x86-lynxos to the list of platforms supported by
1420 gdbserver.
1421
1422 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1423
1424 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1425
1426 2010-09-13 Tom Tromey <tromey@redhat.com>
1427
1428 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1429
1430 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1431
1432 * i386-tdep.c (i386_ymm_type): Set type name to
1433 builtin_type_vec256i.
1434
1435 2010-09-12 Michael Snyder <msnyder@vmware.com>
1436
1437 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1438
1439 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1440
1441 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1442
1443 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1444
1445 * amd64-tdep.c (amd64_register_name): Removed.
1446 (amd64_init_abi): Don't call set_gdbarch_register_name.
1447
1448 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1449
1450 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1451
1452 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1453 Paul Bolle <pebolle@tiscali.nl>
1454
1455 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1456 * cli-logging.c (struct saved_output_files) <targerr>: New.
1457 (set_logging_redirect, pop_output_files, handle_redirections):
1458 Redirect also gdb_stdtargerr.
1459 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1460 declarations.
1461 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1462 also gdb_stdtargerr.
1463 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1464 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1465 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1466 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1467 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1468 New functions.
1469
1470 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1471
1472 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1473 to display a host address.
1474 * monitor.c (monitor_read_memory): Likewise.
1475 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1476
1477 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1478
1479 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1480 `CORE_ADDRESS' as it might contain target addresses.
1481
1482 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1483
1484 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1485 before cast to pointer to avoid warning.
1486
1487 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1488
1489 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1490 type to be signed.
1491
1492 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1493
1494 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1495 anonymous class partial DIEs.
1496
1497 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1498
1499 * dwarf2read.c (dwarf2_compute_name): Check that the first
1500 argument is a pointer.
1501
1502 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1503
1504 * dwarf2read.c (read_func_scope, read_structure_type)
1505 (read_common_block): Check for a NULL return from new_symbol.
1506
1507 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1508
1509 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1510
1511 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1512
1513 * dwarf2read.c (read_structure_type): Move processing of
1514 fields and member functions from here...
1515 (process_structure_scope): ... to here.
1516
1517 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1518
1519 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1520 the domain type.
1521 (gnuv3_make_method_ptr): Likewise.
1522
1523 2010-09-08 Tom Tromey <tromey@redhat.com>
1524
1525 * breakpoint.c (create_breakpoint): Add missing _().
1526
1527 2010-09-08 Doug Evans <dje@google.com>
1528
1529 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1530
1531 2010-09-08 Tom Tromey <tromey@redhat.com>
1532
1533 Revert:
1534 2010-09-01 Tom Tromey <tromey@redhat.com>
1535 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1536 symtab.h: Revert earlier change.
1537
1538 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1539
1540 * psymtab.c (add_psymbol_to_bcache): Initialize
1541 obj_section.
1542 memset psymbol.ginfo.value to 0.
1543
1544 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1545
1546 * infrun.c (resume): Extend comment on ignoring single-step
1547 requests on vfork parents waiting for a vfork-done.
1548
1549 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1550 Pedro Alves <pedro@codesourcery.com>
1551
1552 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1553 is NULL.
1554 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1555 target_signal type.
1556 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1557 calling strsignal. Use enum target_signal type for saved_signo.
1558 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1559 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1560 target_signal_to_host before calling strsignal.
1561 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1562 TARGET_SIGNAL_0.
1563
1564 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1565 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 * common/signals.c (ANY): Remove.
1568 (SET): No longer use ANY.
1569
1570 2010-09-06 Yao Qi <yao@codesourcery.com>
1571
1572 * infrunc(resume): When inferior is waiting_for_vfork_done,
1573 clear step and don't use displaced stepping.
1574
1575 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1576
1577 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1578 value specially.
1579
1580 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1581
1582 Code cleanup - split print_stop_reason.
1583 * infrun.c (enum inferior_stop_reason): Remove.
1584 (print_stop_reason): Remove by splitting into ...
1585 (print_exited_reason, print_signal_exited_reason)
1586 (print_no_history_reason, print_signal_received_reason)
1587 (print_end_stepping_range_reason): ... these new functions. Update
1588 the preceding comment.
1589 (handle_inferior_event): Change the calls to print_exited_reason,
1590 print_signal_exited_reason, print_no_history_reason,
1591 print_signal_received_reason, print_end_stepping_range_reason.
1592 (handle_step_into_function, handle_step_into_function_backward):
1593 Change the calls to print_end_stepping_range_reason.
1594
1595 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1598 * cli-out.c: Include vec.h.
1599 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1600 variable stream, initialize it, use it.
1601 (cli_redirect): New function comment. Replace the stream and
1602 original_stream fields by the new streams field. Remove the
1603 original_stream != NULL conditional, assert error on NULL instead.
1604 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1605 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1606 original_stream fields by the new streams field.
1607 (cli_out_set_stream): Replace the stream field by the new streams
1608 field.
1609 * cli-out.h: Include vec.h.
1610 (ui_filep): New typedef, call DEF_VEC_P for it.
1611 (struct cli_ui_out_data): Replace the stream and original_stream
1612 fields by the new streams field.
1613 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1614 NULL first. Extend the comment.
1615 (handle_redirections): Call ui_out_redirect with output.
1616 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1617 calls outside of the TRY_CATCH block.
1618
1619 2010-09-03 Joel Brobecker <brobecker@adacore.com>
1620
1621 GDB 7.2 released.
1622
1623 2010-09-02 Joel Brobecker <brobecker@adacore.com>
1624
1625 Back out the following change:
1626 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1627 | * record.c (set_record_pic_cmdlist,
1628 | show_record_pic_cmdlist): New variables.
1629 | (set_record_pic_command,
1630 | show_record_pic_command): New functions.
1631 | (record_pic_function, record_pic_line, record_pic_enum,
1632 | set_record_pic_type, record_pic_hide_nofunction,
1633 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1634 | (record_pic_fputs): New function.
1635 | (function_list, node_list, edge_list): New struct.
1636 | (function_list, node_list, edge_list): New variables.
1637 | (record_pic_cleanups, record_pic_node,
1638 | record_pic_edge, cmd_record_pic): New functions.
1639 | (_initialize_record): Add new commands for record pic.
1640
1641 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1642
1643 * config.in, configure: Regenerated.
1644 * configure.ac: Check for waitpid.
1645 * ser-pipe.c (pipe_close): Wait for the program to exit.
1646
1647 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1648
1649 * cli/cli-logging.c: Include gdb_assert.h.
1650 (set_logging_overwrite): New function.
1651 (logging_redirect): New comment.
1652 (logging_no_redirect_file, set_logging_redirect)
1653 (pop_output_files) <logging_no_redirect_file>: New.
1654 (handle_redirections) <!logging_redirect>: New variable
1655 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1656 discard cleanup for the close of former OUTPUT. Set
1657 LOGGING_NO_REDIRECT_FILE.
1658 (handle_redirections) <logging_redirect>: gdb_assert
1659 LOGGING_NO_REDIRECT_FILE.
1660 (show_logging_command) <logging_redirect handling>: Adjust messages
1661 for SAVED_FILENAME not NULL.
1662 (_initialize_cli_logging): Install set_logging_overwrite and
1663 set_logging_redirect.
1664
1665 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1666
1667 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1668
1669 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1670
1671 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1672 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1673 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1674 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1675
1676 2010-09-02 Yao Qi <yao@codesourcery.com>
1677
1678 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1679 number from a WIFSIGNALED status.
1680
1681 2010-09-01 Tom Tromey <tromey@redhat.com>
1682
1683 * symtab.h (lookup_type_symbol): Declare.
1684 * symtab.c (lookup_symbol_in_language_full): Rename from
1685 lookup_symbol_in_language. Add 'for_type' argument.
1686 (lookup_symbol_in_language): New function.
1687 (lookup_type_symbol): Likewise.
1688 (lookup_symbol_aux): Add 'for_type' argument.
1689 (match_symbol_aux): New function.
1690 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1691 (match_transparent_type): New function.
1692 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1693 * symfile.h (struct quick_symbol_functions)
1694 <pre_expand_symtabs_matching>: Remove.
1695 <expand_one_symtab_matching>: New field.
1696 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1697 (pre_expand_symtabs_matching_psymtabs): Remove.
1698 (psym_functions): Update.
1699 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1700 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1701 (dw2_pre_expand_symtabs_matching): Remove.
1702 (dw2_expand_one_symtab_matching): New function.
1703 (dwarf2_gdb_index_functions): Update.
1704
1705 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1706
1707 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1708
1709 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1710
1711 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1712 as a feature reported by -list-target-features.
1713
1714 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1715
1716 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1717 (powerpc-32.o, powerpc-32.c): New rules.
1718 (clean): Also remove powerpc-32.c.
1719 * regformats/rs6000/powerpc-32.dat: Generate.
1720
1721 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1722
1723 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1724 psymbol_bcache_init.
1725 * psymtab.h (psymbol_bcache_init): New function prototype.
1726 (psymbol_bcache_free): New function prototype.
1727 (psymbol_bcache_get_bcache): New function prototype.
1728 * psymtab.c (psymbol_bcache_init): New function.
1729 (psymbol_bcache_free): New function.
1730 (psymbol_bcache_full): New function.
1731 (psymbol_bcache_get_bcache): New function.
1732 (add_psymbol_to_bcache): use psymbol_bcache_full.
1733 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1734 psymbol_bcache.
1735 * symmisc.c (print_symbol_bcache_statistics): Updated.
1736 (print_objfile_statistics): Updated.
1737 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1738 psymbol_cache.
1739 (free_objfile): Use psymbol_bcache_free.
1740
1741 2010-08-31 Tom Tromey <tromey@redhat.com>
1742
1743 PR c++/11961:
1744 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1745 Don't set TYPE_NAME on the type.
1746
1747 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1748
1749 * infrun.c (set_exec_direction_func): Error out if target does not
1750 support reverse execution.
1751
1752 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1753
1754 Make linux_get_siginfo_type `type *' unique.
1755 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1756 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1757 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1758 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1759 (_initialize_linux_tdep): New.
1760
1761 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1762
1763 Code cleanup.
1764 * defs.h (find_memory_region_ftype): New typedef.
1765 (exec_set_find_memory_regions): Use it.
1766 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1767 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1768 * gcore.c (objfile_find_memory_regions): Likewise.
1769 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1770 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1771 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1772 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1773 find_memory_region_ftype.
1774 (insert_dbx_link_bpt_in_region): Likewise.
1775 (iterate_over_mappings): Likewise. Drop the comment part about the
1776 function prototype.
1777 (find_memory_regions_callback): Use find_memory_region_ftype.
1778 (proc_find_memory_regions): Likewise.
1779 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1780 find_memory_region_ftype.
1781 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1782 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1783
1784 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1785
1786 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1787 'static partial_symbol psymbol'.
1788 (psymbol_hash): New function.
1789 (psymbol_compare): New function.
1790 * bcache.c (hash_continue): New.
1791 (hash): Use hash_continue.
1792 * bcache.c: Add hash_function and compare_function
1793 pointers to bcache struct.
1794 (bcache_full): Use bcache->hash_function, and
1795 bcache->compare_function.
1796 (bcache_compare): New function.
1797 (bcache_xmalloc): Take hash_function and
1798 compare_function arguments and initialize the
1799 bcach's pointers.
1800 Updated comment.
1801 * objfiles.c (allocate_objfile): Updated.
1802 * symfile.c (reread_symbols): Updated.
1803 * python/py-type.c (typy_richcompare): Updated.
1804
1805 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1806 Tom Tromey <tromey@redhat.com>
1807
1808 PR python/11792:
1809 * python/py-value.c (valpy_get_dynamic_type): New function.
1810 (value_object_getset): Add "dynamic_type".
1811 (valpy_get_type): Fail on error.
1812
1813 2010-08-30 Yao Qi <yao@codesourcery.com>
1814
1815 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1816 (arm_linux_syscall_next_pc): New.
1817 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1818 (arm_linux_init_abi): Initialize syscall_next_pc.
1819 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1820 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1821 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1822 Declare arm_frame_is_thumb.
1823
1824 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1825
1826 Code cleanup.
1827 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1828 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1829 code.
1830 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1831 calls of bpstat_alloc. Remove explicit bs chain termination.
1832
1833 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1834
1835 Code cleanup.
1836 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1837 (my_waitpid): Likewise.
1838
1839 2010-08-27 Doug Evans <dje@google.com>
1840
1841 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1842 as appropriate.
1843
1844 2010-08-27 Tom Tromey <tromey@redhat.com>
1845
1846 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1847 TYPE_FIELD_IGNORE_BITS.
1848
1849 2010-08-27 Doug Evans <dje@google.com>
1850
1851 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1852 the order they're defined in. munmap .debug_types buffer.
1853
1854 2010-08-26 Doug Evans <dje@google.com>
1855
1856 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1857 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1858 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1859 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1860 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1861 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1862 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1863 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1864 (write_psymtabs_to_index): Ditto.
1865
1866 2010-08-26 Pedro Alves <pedro@codesourcery.com>
1867
1868 * NEWS: Mention libthread_db debugging with core files.
1869
1870 2010-08-26 Doug Evans <dje@google.com>
1871
1872 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1873 forward decl. Pass pst->dirname to dwarf_decode_lines.
1874 (psymtab_include_file_name): New function.
1875 (dwarf_decode_lines): Call it. Update comments.
1876
1877 2010-08-25 Pedro Alves <pedro@codesourcery.com>
1878
1879 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1880 compilation unit being different from target die's.
1881
1882 2010-08-24 Doug Evans <dje@google.com>
1883
1884 PR symtab/11942
1885 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1886 debug_types_type_hash.
1887 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1888 All uses updated.
1889 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1890 appropriate type_hash table. All callers updated.
1891 (allocate_signatured_type_table): Renamed from
1892 allocate_signatured_type_hash_table. All callers updated.
1893 (create_signatured_type_table_from_index): Renamed from
1894 create_signatured_type_hash_from_index. All callers updated.
1895 (read_die_type): Add comment. Move actual reading to ...
1896 (read_die_type_1): ... here. New function.
1897 (follow_die_ref_or_sig): Tweak comment.
1898 (set_die_type): Rewrite to use appropriate choice of
1899 debug_info_type_hash or debug_types_type_hash.
1900 (get_die_type_at_offset): New function.
1901 (get_die_type): Call it.
1902
1903 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1904
1905 * python/py-type.c (typy_richcompare): Initialize worklist.
1906
1907 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1908 Kazu Hirata <kazu@codesourcery.com>
1909 Jonathan Larmour <jifl@eCosCentric.com>
1910
1911 * arm-tdep.c: Include features/arm-with-m.c.
1912 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1913 call this function.
1914 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1915 Check is_m after force-mode.
1916 (arm_gdbarch_init): Check the binary before the target description.
1917 Add check for M profile attribute. If we have an M-profile device,
1918 but no target register description, use arm-with-m. Recognize the
1919 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1920 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1921 * arm-tdep.h (XPSR_T): Define.
1922 (struct gdbarch_tdep): Add is_m member.
1923 * features/arm-m-profile.xml, features/arm-with-m.c,
1924 features/arm-with-m.xml: New files.
1925
1926 2010-08-23 Doug Evans <dje@google.com>
1927
1928 * dwarf2read.c (read_structure_type): Add comment.
1929 (read_enumeration_type): Add comment.
1930 (process_enumeration_scope): Move definition of some locals
1931 closer to their use.
1932 (read_namespace_type): Add comment.
1933 (set_die_type): Fix typo in comment.
1934
1935 2010-08-23 Tom Tromey <tromey@redhat.com>
1936
1937 PR python/11145:
1938 * python/py-value.c: Include expression.h.
1939 (valpy_do_cast): New function.
1940 (valpy_cast): Use it.
1941 (valpy_dynamic_cast): New function.
1942 (valpy_reinterpret_cast): Likewise.
1943 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1944
1945 2010-08-23 Tom Tromey <tromey@redhat.com>
1946
1947 PR python/11391:
1948 * python/py-value.c (valpy_nonzero): Don't throw error for other
1949 Value types.
1950
1951 2010-08-23 Tom Tromey <tromey@redhat.com>
1952
1953 PR python/10676:
1954 * python/py-type.c: Include bcache.h, vec.h.
1955 (struct type_equality_entry): New.
1956 (compare_strings): New function.
1957 (check_types_equal): Likewise.
1958 (check_types_worklist): Likewise.
1959 (typy_richcompare): Likewise.
1960 (type_object_type): Set tp_richcompare field.
1961
1962 2010-08-23 Tom Tromey <tromey@redhat.com>
1963
1964 PR python/10953:
1965 * python/py-type.c (typy_fields): Call check_typedef.
1966 (typy_template_argument): Add TRY_CATCH.
1967
1968 2010-08-23 Tom Tromey <tromey@redhat.com>
1969
1970 PR python/11915:
1971 * python/py-type.c (typy_array): New function.
1972 (type_object_methods): Add "array".
1973
1974 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1975
1976 * python/python.c: Include "serial.h".
1977 (gdbpy_event_fds): Change type to `struct serial *' a array from
1978 int array.
1979 (gdbpy_run_events): Change parameters. Use serial_readchar in
1980 place of read.
1981 (gdbpy_post_event): Use serial_write in place of write.
1982 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1983 serial_async in place of add_file_handler.
1984
1985 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1986
1987 * serial.h (gdb_pipe, serial_pipe): Declare.
1988 * serial.c (serial_interface_lookup): Take a const char pointer.
1989 (serial_fdopen): Rename to ...
1990 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1991 Call the OPS' fdopen function if there is one.
1992 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1993 (serial_pipe): New.
1994 (struct serial_ops) <fdopen>: New field.
1995
1996 * ser-mingw.c (free_pipe_state):
1997 (free_pipe_state): Close output on non-pex pipes.
1998 (pipe_windows_fdopen): New.
1999 (gdb_pipe): New.
2000 (_initialize_ser_windows): Register pipe_windows_fdopen.
2001 * ser-go32.c (gdb_pipe): New.
2002 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2003 no state pointer.
2004 (pipe_ops): Delete.
2005 (gdb_pipe): New.
2006
2007 2010-08-20 Keith Seitz <keiths@redhat.com>
2008
2009 PR symtab/11465:
2010 * dwarf2read.c (struct delayed_method_info): New struct.
2011 (struct dwarf2_cu): Add vector method_list.
2012 (scan_partial_symbols): Count methods for union, class, structure,
2013 and interface types.
2014 (add_to_method_list): New function.
2015 (free_delayed_list): New function.
2016 (compute_delayed_physnames): New function.
2017 (process_full_comp_unit): Make a cleanup for the CU's delayed
2018 physname list, compute the delayed physnames, and free the
2019 the list.
2020 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2021 of the physname until after the CU is read.
2022
2023 * dwarf2read.c (read_structure_type): Check if the current
2024 DIE's type was already completed after dwarf2_full_name
2025 was called.
2026
2027 2010-08-19 Stan Shebs <stan@codesourcery.com>
2028
2029 * NEWS: Mention some additional changes.
2030
2031 2010-08-19 Tom Tromey <tromey@redhat.com>
2032
2033 * Makefile.in (install-python): Add DESTDIR.
2034
2035 2010-08-19 Doug Evans <dje@google.com>
2036
2037 PR exp/11926
2038 * parser-defs.h (parse_float, parse_c_float): Declare.
2039 * parse.c (parse_float, parse_c_float): New function.
2040 * c-exp.y (parse_number): Call parse_c_float.
2041 * objc-exp.y (parse_number): Ditto.
2042 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2043 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2044
2045 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2046
2047 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2048 the arguments in the correct order.
2049 * symtab.c (maybe_add_partial_symtab_filename): Declare
2050 the arguments in the correct order.
2051
2052 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2053
2054 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2055 initialize it by null_frame_id, wrap its usage by get_frame_id,
2056 frame_id_p and frame_find_by_id.
2057
2058 2010-08-18 Tom Tromey <tromey@redhat.com>
2059
2060 PR python/11900:
2061 * configure: Rebuild.
2062 * configure.ac: Add install-python to CONFIG_INSTALL.
2063 * Makefile.in (install-python): New.
2064
2065 2010-08-18 Doug Evans <dje@google.com>
2066
2067 * gdb_assert.h (gdb_assert_not_reached): New macro.
2068 (gdb_assert_fail): Fix typo in comment.
2069 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2070 gdb_assert (0).
2071 * darwin-nat.c (darwin_check_new_threads): Ditto.
2072 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2073 (munmap_section_buffer): Ditto.
2074 * m32c-tdep.c (make_types): Ditto.
2075 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2076 * macroexp.c (get_character_constant): Ditto.
2077 (get_string_literal): Ditto.
2078 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2079 (mep_pseudo_cr_index, mep_register_type): Ditto.
2080 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2081 (mep_get_insn, mep_analyze_prologue): Ditto.
2082 * objfiles.c (qsort_cmp): Ditto.
2083 * prologue-value.c (pv_is_identical): Ditto.
2084 * record.c (record_get_loc): Ditto.
2085 * value.c (value_static_field): Ditto.
2086 * xtensa-tdep.c (call0_track_op): Ditto.
2087
2088 2010-08-18 Tom Tromey <tromey@redhat.com>
2089
2090 PR symtab/11919:
2091 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2092 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2093 name-copying lower. Document exception behavior.
2094 * completer.c (expression_completer): Catch exceptions from
2095 parse_field_expression.
2096
2097 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2098
2099 PR corefile/8210
2100
2101 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2102 workaround on core files.
2103 (try_thread_db_load_1): Don't try enabling thread event reporting
2104 on core files.
2105 (thread_db_load): Allow thread_db on core files.
2106 (attach_thread): Don't check thread signals on core files, nor try
2107 really attaching to the thread, nor enabling thread event event
2108 reporting.
2109 (thread_db_detach): Don't try disabing thread event reporting or
2110 removing thread event breakpoints when debugging a core file.
2111 (find_new_threads_callback): Don't try enabling thread event
2112 reporting on core files.
2113 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2114 debugging a core file.
2115 (thread_db_find_new_threads): Don't update thread
2116 cores (processors) when debugging a core (dump).
2117
2118 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2119
2120 PR corefile/8210
2121
2122 * corelow.c (add_to_thread_list): Don't use
2123 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2124 (get_core_register_section): Don't use
2125 gdbarch_core_reg_section_encodes_pid.
2126
2127 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2128 * gdbarch.h, gdbarch.c: Regenerate.
2129 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2130 gdbarch_core_reg_section_encodes_pid.
2131 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2132 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2133 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2134
2135 2010-08-18 Yao Qi <yao@codesourcery.com>
2136
2137 * MAINTAINERS : Add myself under Write After Approval.
2138
2139 2010-08-17 Tom Tromey <tromey@redhat.com>
2140
2141 * NEWS: Mention template parameter support.
2142
2143 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2144
2145 PR breakpoints/11371
2146
2147 * breakpoint.c (decref_bp_location): Assert the reference count is
2148 sane.
2149
2150 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2151
2152 PR breakpoints/11371
2153
2154 * breakpoint.c (breakpoint_init_inferior): Decrement the
2155 location's reference count instead of deleting right away.
2156 (bpstat_free): Decrement the location's reference count. Make
2157 static.
2158 (bpstat_copy): Increment the location's reference count.
2159 (bpstat_find_breakpoint): Adjust.
2160 (bpstat_num): Adjust.
2161 (print_it_typical): Adjust. Use the breakpoint pointer in the
2162 bpstat instead of the location's owner.
2163 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2164 Adjust to record the location's owner in the bpstat.
2165 (watchpoint_check): Use the breakpoint pointer in the bpstat
2166 instead of the location's owner.
2167 (bpstat_check_breakpoint_conditions): Don't handle
2168 bp_watchpoint_scope here. Use the breakpoint pointer in the
2169 bpstat instead of the location's owner.
2170 (bpstat_stop_status): Defer inferior function calls to after
2171 building the bpstat list. Handle bp_watchpoint_scope here. Use
2172 the breakpoint pointer in the bpstat instead of the location's
2173 owner.
2174 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2175 the location's owner.
2176 (free_bp_location): Don't walk bpstats clearing locations.
2177 (incref_bp_location): New.
2178 (decref_bp_location): New.
2179 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2180 instead of the location's owner.
2181 (update_global_location_list): Clear the location's owner, and
2182 decrement the location's reference count instead of deleting it
2183 right away.
2184 (breakpoint_retire_moribund): Decrement the location's reference
2185 count instead of deleting it right away.
2186 (bpstat_remove_bp_location): Delete.
2187 (bpstat_remove_breakpoint): New.
2188 (bpstat_remove_bp_location_callback): Delete.
2189 (bpstat_remove_breakpoint_callback): New.
2190 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2191 clearing references to the breakpoint that is being deleted.
2192
2193 * breakpoint.h (struct bp_location) <refc>: New field.
2194 <owner>: Update comments.
2195 (bpstat_free): Delete declaration.
2196 (struct bpstats): Change the type of the breakpoint_at field to
2197 struct breakpoint point, from struct bp_location pointer. Add new
2198 field bp_location_at.
2199
2200 2010-08-16 Tom Tromey <tromey@redhat.com>
2201
2202 * NEWS: Fix typo.
2203
2204 2010-08-16 Tom Tromey <tromey@redhat.com>
2205
2206 * NEWS: Mention watch -location.
2207
2208 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2209
2210 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2211 EXP_STRING_REPARSE to EXP_STRING.
2212 (watch_command_1): Set also EXP_STRING_REPARSE.
2213 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2214 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2215 Update comment for exp_string.
2216
2217 2010-08-16 Tom Tromey <tromey@redhat.com>
2218
2219 * value.c (release_value): Clear 'next' pointer.
2220 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2221 (watch_command_wrapper): Update.
2222 (watch_maybe_just_location): New function.
2223 (watch_command): Update.
2224 (rwatch_command_wrapper): Update.
2225 (rwatch_command): Update.
2226 (awatch_command_wrapper): Update.
2227 (awatch_command): Update.
2228 (check_for_argument): New function.
2229 (_initialize_breakpoint): Update help text.
2230
2231 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2232
2233 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2234 typedef'ed function types correctly.
2235
2236 2010-08-13 Tom Tromey <tromey@redhat.com>
2237
2238 * python/python-internal.h (gdbpy_get_hook_function): Don't
2239 declare.
2240
2241 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2242
2243 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2244 static.
2245
2246 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2247
2248 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2249 the format strings to be compatible with Python 2.4.
2250
2251 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2252
2253 Easier and more stubborn MI memory read commands.
2254
2255 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2256 and data-write-memory-bytes.
2257 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2258 (mi_cmd_data_write_memory_bytes): New.
2259 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2260 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2261 New.
2262 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2263 * target.c (target_read_until_error): Remove.
2264 (read_whatever_is_readable, free_memory_read_result_vector)
2265 (read_memory_robust): New.
2266 * target.h (target_read_until_error): Remove.
2267 (struct memory_read_result, free_memory_read_result_vector)
2268 (read_memory_robust): New.
2269
2270 2010-08-13 Hui Zhu <teawater@gmail.com>
2271
2272 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2273 (read_comp_unit): Initialize back_to.
2274
2275 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2276 Pedro Alves <pedro@codesourcery.com>
2277
2278 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2279 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2280 (struct partial_die_info) <has_template_arguments>: New field.
2281 <num_attrs>: Change type to unsigned char.
2282 <building_fullname>: New field.
2283 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2284 allocate a CU if we don't have one already. Add a cleanup for the
2285 CU.
2286 (partial_die_full_name): Handle template arguments not in
2287 DW_AT_name.
2288 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2289 (load_full_comp_unit): Only allocate a CU if we don't have one
2290 already.
2291 (do_ui_file_peek_last): New.
2292 (dwarf2_compute_name): Handle template parameters not in
2293 DW_AT_name.
2294 (read_comp_unit): Read and free abbrevs if not read yet.
2295 (load_partial_dies): Handle template arguments not in DW_AT_name.
2296 (find_partial_die): If we have a CU, but no a partial dies yet,
2297 also read in the CU.
2298 (dwarf2_const_value_attr): New, abstracted out from
2299 dwarf2_const_value.
2300 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2301 dwarf2_const_value_attr.
2302 (determine_prefix): Detect and break loops created by RCVT's debug
2303 info.
2304 (maybe_queue_comp_unit): Bail out early if reading partial
2305 symbols.
2306 (follow_die_offset): Load full CU if we have no dies.
2307 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2308 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2309
2310 2010-08-11 Tom Tromey <tromey@redhat.com>
2311 Phil Muldoon <pmuldoon@redhat.com>
2312
2313 * python/python.c (gdbpy_run_events): New function.
2314 (gdbpy_post_event): Likewise.
2315 (gdbpy_initialize_events): Likewise.
2316 (_initialize_python): Call gdbpy_initialize_events.
2317
2318 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2319
2320 * gdb/valarith.c (vector_binop): New function.
2321 (scalar_binop): Likewise.
2322 (value_binop): Call scalar_binop or vector_binop depending on the types.
2323 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2324 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2325 to pointers.
2326 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2327
2328 2010-08-11 Brad Roberts <braddr@puremagic.com>
2329
2330 * d-lang.c (extract_identifiers): Handle multiple digits.
2331
2332 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2333
2334 Code cleanup.
2335 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2336 Rename to dummy_frame_unwind.
2337 (dummy_frame_unwind): Remove.
2338 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2339 * frame-unwind.c (frame_unwind_init): Use address of
2340 dummy_frame_unwind and inline_frame_unwind.
2341 * frame.c (create_sentinel_frame): Use address of
2342 sentinel_frame_unwind.
2343 * inline-frame.c (inline_frame_unwinder): Rename to
2344 inline_frame_unwind.
2345 (inline_frame_unwind): Remove.
2346 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2347 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2348 sentinel_frame_unwind.
2349 (sentinel_frame_unwind): Remove.
2350 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2351 struct.
2352
2353 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2354
2355 Code cleanup.
2356 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2357 and returned value. New comment from frame-unwind.h.
2358 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2359 Extend the comment.
2360 * frame.c (get_frame_id, frame_unwind_register_value)
2361 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2362 (get_frame_type, frame_unwind_arch): Do not use the return value of
2363 frame_unwind_find_by_frame.
2364
2365 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2366 Thiago Jung Bauermann <bauerman@br.ibm.com>
2367 Tom Tromey <tromey@redhat.com>
2368
2369 * python/python.c (gdbpy_solib_address): New function.
2370 (gdbpy_decode_line): Likewise.
2371
2372 2010-08-10 Tom Tromey <tromey@redhat.com>
2373
2374 Revert gdb-add-index addition:
2375 * Makefile.in (install-only): Don't install gdb-add-index.
2376 * gdb-add-index.sh: Remove.
2377
2378 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2379
2380 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2381 `target_has_execution' check with `to_has_memory' check.
2382 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2383 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2384 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2385
2386 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2387
2388 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2389 (resume_siggnal, resume_step): Move these static globals...
2390 (struct sim_inferior_data): ...into this new struct.
2391 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2392 New static globals.
2393 (gdb_callback, callbacks_initialized): Move these globals to
2394 a point earlier in the file.
2395 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2396 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2397 (gdbsim_close_inferior, gdbsim_resume_inferior)
2398 (gdbsim_stop_inferior): New functions.
2399 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2400 New constants.
2401 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2402 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2403 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2404 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2405 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2406 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2407 new local variable `sim_data' in each of these functions. Use
2408 `sim_data' to reference former globals `program_loaded',
2409 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2410 `resume_step'.
2411 (gdbsim_open): Remove local variable `argv'. Put results of call
2412 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2413 make a cleanup for it. Free it though when a sim instance cannot
2414 be obtained.
2415 (gdbsim_close): Free sim_argv and null it out as appropriate.
2416 Close sim instances in all inferiors.
2417 (gdbsim_cntrl_c): Stop all inferiors.
2418 (gdbsim_wait):
2419 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2420
2421 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2422
2423 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2424 function after symbol construction is complete.
2425 Do the same for template symbol addition to template_symbols list.
2426
2427 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2428
2429 * symtab.c (symbol_get_demangled_name): Remove assertion and
2430 return NULL when language_specific.cplus_specific is not initialized.
2431 * stabsread.c (define_symbol): Set the name before calling
2432 cp_scan_for_anonymous_namespaces.
2433
2434 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2435
2436 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2437 SYMBOL_SET_LANGUAGE.
2438 (symbol_init_language_specific): Renamed to symbol_set_language.
2439 * symtab.c (symbol_init_language_specific): Removed redundant check
2440 for language_cplus.
2441 Renamed to symbol_set_language.
2442 * stabsread.c (define_symbol): Updated.
2443 (read_enum_type): Updated
2444 * psymtab.c (add_psymbol_to_bcache): Updated.
2445 * minsyms.c (install_minimal_symbols): Updated.
2446 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2447 SYMBOL_LANGUAGE to set the language.
2448 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2449 * mdebugread.c (new_symbol): Ditto.
2450 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2451 * dwarf2read.c (new_symbol_full): Ditto.
2452 * jv-lang.c (add_class_symbol): Ditto.
2453
2454 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2455
2456 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2457 (make_cleanup_restore_page_info)
2458 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2459 * gdbcmd.h (execute_command_to_string): New declaration.
2460 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2461 (make_cleanup_restore_ui_file): Move to utils.c
2462 (execute_gdb_command) <to_string>: Move ...
2463 * top.c (execute_command_to_string): ... here. Call
2464 set_batch_flag_and_make_cleanup_restore_page_info.
2465 * utils.c (make_cleanup_restore_integer): New source file blank line.
2466 (make_cleanup_restore_uinteger): New.
2467 (struct restore_ui_file_closure, do_restore_ui_file)
2468 (make_cleanup_restore_ui_file): Move here from python/python.c.
2469 (init_page_info) <batch_flag>
2470 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2471 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2472
2473 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2474
2475 * thread.c (add_thread_silent): Use null_ptid instead of
2476 minus_one_ptid while getting rid of stale inferior_ptid.
2477
2478 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2479
2480 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2481 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2482 (decode_frame_entry_1): Remove redundant setting of
2483 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2484 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2485 on examined frame section. Add comment to explain why.
2486 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2487 comment to explain usage.
2488 * gdbarch.c: Regenerate.
2489 * gdbarch.h: Regenerate.
2490
2491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2492
2493 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2494
2495 Code cleanup.
2496 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2497 a more inner block.
2498
2499 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2500
2501 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2502 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2503 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2504 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2505 linux-tdep.o to gdb_target_obs.
2506
2507 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2508
2509 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2510 argument.
2511
2512 2010-08-05 Hui Zhu <teawater@gmail.com>
2513
2514 * mips-linux-tdep.c(regset.h): New include.
2515 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2516 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2517 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2518 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2519 mips_linux_regset_from_core_section): New functions.
2520 (fetch_core_registers, regset_core_fns): Deleted.
2521 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2522 Deleted regset_core_fns.
2523 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2524 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2525 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2526 and fpregset64.
2527
2528 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2529
2530 * s390-tdep.c: Include linux-tdep.h.
2531 (s390_gdbarch_init): Call linux_init_abi.
2532
2533 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2534
2535 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2536 instead of printing "Thread" here.
2537 * linux-tdep.c: Include inferior.h.
2538 (linux_core_pid_to_str): New.
2539 (linux_init_abi): New.
2540 * linux-tdep.h (linux_init_abi): Declare.
2541 * alpha-linux-tdep.c: Include linux-tdep.h.
2542 (alpha_linux_init_abi): Call linux_init_abi.
2543 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2544 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2545 * frv-linux-tdep.c: Include linux-tdep.h
2546 (frv_linux_init_abi): Call linux_init_abi.
2547 * hppa-linux-tdep.c: Include linux-tdep.h
2548 (hppa_linux_init_abi): Call linux_init_abi.
2549 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2550 * ia64-linux-tdep.c: Include linux-tdep.h.
2551 (ia64_linux_init_abi): Call linux_init_abi.
2552 * m32r-linux-tdep.c: Include linux-tdep.h.
2553 (m32r_linux_init_abi): Call linux_init_abi.
2554 * m68klinux-tdep.c: Include linux-tdep.h.
2555 (m68k_linux_init_abi): Call linux_init_abi.
2556 * microblaze-linux-tdep.c: Include linux-tdep.h.
2557 (microblaze_linux_init_abi): Call linux_init_abi.
2558 * mips-linux-tdep.c: Include linux-tdep.h.
2559 (mips_linux_init_abi): Call linux_init_abi.
2560 * mn10300-linux-tdep.c: Include linux-tdep.h.
2561 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2562 'gdbinfo' parameter to 'info'.
2563 * ppc-linux-tdep.c: Include linux-tdep.h.
2564 (ppc_linux_init_abi): Call linux_init_abi.
2565 * sh-linux-tdep.c: Include linux-tdep.h.
2566 (sh_linux_init_abi): Call linux_init_abi.
2567 * sparc-linux-tdep.c: Include linux-tdep.h.
2568 (sparc32_linux_init_abi): Call linux_init_abi.
2569 * sparc64-linux-tdep.c: Include linux-tdep.h.
2570 (sparc64_linux_init_abi): Call linux_init_abi.
2571 * xtensa-linux-tdep.c: Include linux-tdep.h.
2572 (xtensa_linux_init_abi): Call linux_init_abi.
2573 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2574 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2575 callback.
2576
2577 2010-08-03 Doug Evans <dje@google.com>
2578
2579 * breakpoint.c (bpdisp_text): Constify bpdisps.
2580 * solib-svr4.c (solib_break_names): Constify.
2581 (bkpt_names, main_name_list): Constify.
2582 (match_main): Constify soname arg.
2583 (bfd_lookup_symbol): Remove unnecessary forward decl.
2584 Constify symname arg.
2585 (enable_break): Constify bkpt_namep.
2586 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2587 (symtab_symbol_info): Constify classnames.
2588
2589 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2590
2591 * NEWS: Document Python value inferior function calls.
2592
2593 2010-08-02 Doug Evans <dje@google.com>
2594
2595 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2596
2597 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2598
2599 * linux-thread-db.c (libthread_db_debug): New variable.
2600 (thread_db_find_new_threads_silently): Control verbosity with it.
2601 (try_thread_db_load_1, try_thread_db_load): Likewise.
2602 (find_new_threads_once): Likewise.
2603 (_initialize_thread_db): Set/show it.
2604
2605 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2606
2607 * common/signals.c (signals): Move the content to signals.def.
2608 Include it. Remove the INDENT comments.
2609
2610 2010-07-30 Tom Tromey <tromey@redhat.com>
2611
2612 * Makefile.in (install-only): Install gdb-add-index.
2613 * gdb-add-index.sh: New file.
2614
2615 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2616
2617 * MAINTAINERS: Add myself for write after approval privileges.
2618
2619 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2620
2621 * symfile.c (addr_section_name): New function.
2622 (addrs_section_compar): Use it.
2623 (addr_info_make_relative): Use it. Move variable sect_name into a more
2624 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2625
2626 2010-07-30 Tom Tromey <tromey@redhat.com>
2627
2628 * configure: Rebuild.
2629 * configure.ac: Add missing case for Python 2.7.
2630
2631 2010-07-29 DJ Delorie <dj@redhat.com>
2632
2633 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2634 conditions.
2635
2636 2010-07-29 Pedro Alves <pedro@codesourcery.com>
2637
2638 * PROBLEMS: Remove mention of all problems.
2639
2640 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2641
2642 PR build/11848
2643 * configure.ac: Check for wresize.
2644 * configure, config.in: Regenerate.
2645 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2646 with HAVE_WRESIZE.
2647
2648 2010-07-28 Tom Tromey <tromey@redhat.com>
2649
2650 PR python/11060:
2651 * python/py-type.c (typy_legacy_template_argument): New function,
2652 extracted from typy_template_argument.
2653 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2654 value when needed.
2655
2656 2010-07-28 Oleg Nesterov <oleg@redhat.com>
2657
2658 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2659
2660 2010-07-27 Tom Tromey <tromey@redhat.com>
2661
2662 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2663
2664 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2665
2666 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2667 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2668
2669 2010-07-28 Tom Tromey <tromey@redhat.com>
2670
2671 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2672
2673 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2674
2675 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2676 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2677
2678 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2679
2680 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2681 down, just before the block that parse the breakpoint addr_string.
2682
2683 2010-07-28 Tom Tromey <tromey@redhat.com>
2684
2685 PR c++/9946:
2686 * symfile.c (reread_symbols): Clear template_symbols.
2687 * symtab.h (struct symbol) <is_cplus_template_function>: New
2688 field.
2689 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2690 (struct template_symbol): New.
2691 * symtab.c (lookup_symbol_aux_local): Use
2692 cp_lookup_symbol_imports_or_template.
2693 * objfiles.h (struct objfile) <template_symbols>: New field.
2694 * objfiles.c (relocate_one_symbol): New function.
2695 (objfile_relocate1): Use it. Relocate isolated symbols.
2696 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2697 template_arguments>: New fields.
2698 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2699 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2700 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2701 (lookup_typename): Update.
2702 * gdbtypes.c (lookup_typename): Constify "block" argument.
2703 * dwarf2read.c: Include vec.h.
2704 (symbolp): New typedef.
2705 (read_func_scope): Read template arguments. Allocate a
2706 template_symbol when needed.
2707 (read_structure_type): Read template arguments.
2708 (new_symbol_full): New function, from new_symbol. Handle
2709 DW_TAG_template_type_param and DW_TAG_template_value_param.
2710 (new_symbol): Rewrite as wrapper.
2711 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2712 * cp-namespace.c: Include language.h.
2713 (search_symbol_list): New function.
2714 (cp_lookup_symbol_imports_or_template): Likewise.
2715
2716 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2717
2718 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2719 the command window to the new size and position.
2720
2721 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2722
2723 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2724 coordinates.
2725
2726 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2727
2728 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2729 after a detecting a resize.
2730 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2731 call.
2732
2733 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2734
2735 * configure.ac: Check for resize_term.
2736 * configure, config.in: Regenerate.
2737
2738 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2739
2740 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2741
2742 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2743
2744 * dwarf2read.c (read_string): Rename to ...
2745 (read_direct_string): ... this.
2746 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2747 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2748
2749 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2750
2751 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2752 (count_events_callback, select_event_lwp_callback)
2753 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2754
2755 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2756
2757 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2758 (_initialize_ia64_linux_nat): Install it.
2759 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2760 (linux_nat_set_status_is_event): New.
2761 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2762 cancel_breakpoints_callback, linux_nat_filter_event)
2763 (linux_nat_wait_1): Use linux_nat_status_is_event.
2764 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2765
2766 2010-07-27 Tom Tromey <tromey@redhat.com>
2767
2768 * NEWS: Mention labels, .gdb_index.
2769
2770 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2771
2772 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2773 "start,+length" form of arguments.
2774 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2775 since GDB 7.1"; and merge two separated paragraphs of disassemble
2776 description in "Changes in GDB 7.0".
2777
2778 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2779
2780 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2781 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2782 (fputs_maybe_filtered): Do not do filtering also on
2783 ! INPUT_FROM_TERMINAL_P.
2784
2785 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2786
2787 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2788 in warning message.
2789
2790 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2791
2792 * python/py-value.c (valpy_call): New Function.
2793
2794 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
2795
2796 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
2797 types_list_elements variables.
2798
2799 2010-07-26 Tom Tromey <tromey@redhat.com>
2800
2801 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2802 TLS with DW_OP_const4u or DW_OP_const8u.
2803
2804 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2805
2806 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2807 VSX registers contents.
2808
2809 2010-07-26 Jerome Guitton <guitton@adacore.com>
2810
2811 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2812 its adress is null. Add comment to explain why.
2813 (new_symbol): Ditto.
2814
2815 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2816
2817 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2818 the host signal first.
2819
2820 2010-07-23 Tom Tromey <tromey@redhat.com>
2821
2822 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2823 type_comp_units>: New fields.
2824 (dw2_get_cu): New function.
2825 (create_cus_from_index): Remove unused argument.
2826 (create_signatured_type_hash_from_index): New function.
2827 (create_addrmap_from_index): Update.
2828 (dwarf2_read_index): Handle version 2.
2829 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2830 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2831 (dw2_print_stats, dw2_expand_all_symtabs)
2832 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2833 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2834 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2835 (allocate_signatured_type_hash_table): New function.
2836 (add_signatured_type_cu_to_list): Likewise.
2837 (create_debug_types_hash_table): Use them. Set type_comp_units.
2838 (read_signatured_type): Ensure section data is available.
2839 (add_address_entry): Don't record empty ranges.
2840 (struct signatured_type_index_data): New.
2841 (write_one_signatured_type): New function.
2842 (write_psymtabs_to_index): Write type CUs.
2843 (save_gdb_index_command): Update comment.
2844 (process_type_comp_unit): Move inititalization of
2845 from_debug_types...
2846 (create_debug_types_hash_table): ... here.
2847
2848 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2849
2850 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2851 cleanup and generating of gdb script to it.
2852 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2853 and terminal size. Convert $tmpfile to a series of -ex-es.
2854
2855 2010-07-23 Keith Seitz <keiths@redhat.com>
2856
2857 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2858 hook for STATIC_BLOCK types, too.
2859
2860 2010-07-23 Keith Seitz <keiths@redhat.com>
2861
2862 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2863 and vector definition.
2864
2865 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2866
2867 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2868
2869 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2870
2871 * dwarf2read.c: Include completer.h.
2872 (save_gdb_index_command): Use matching usage command name.
2873 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2874 Set filename_completer for it.
2875
2876 2010-07-22 Tom Tromey <tromey@redhat.com>
2877
2878 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2879 type signature's per-CU data.
2880
2881 2010-07-22 Pedro Alves <pedro@codesourcery.com>
2882
2883 * NEWS: Mention target reported shared libraries support by
2884 default.
2885
2886 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2887
2888 PR symtab/11827
2889
2890 Revert:
2891 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2892 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2893 and DW_TAG_volatile_type.
2894 (new_symbol): Likewise.
2895
2896 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2897
2898 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2899 function symbols before overload resolution.
2900
2901 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2902
2903 * breakpoint.c (bptype_string): New, abstracted out from
2904 print_one_breakpoint_location.
2905 (print_one_breakpoint_location): Adjust.
2906 (breakpoint_1): Adjust the type column width dynamically.
2907
2908 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2909
2910 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2911 a gdb_assert call, new comment.
2912
2913 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2914
2915 * linux-nat.c (linux_handle_extended_wait): Handle case when
2916 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2917
2918 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2919
2920 Code cleanup.
2921 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2922 linux_nat_wait_1. Use always LP->STATUS afterwards.
2923
2924 2010-07-20 Hui Zhu <teawater@gmail.com>
2925
2926 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2927 (inf_ptrace_attach): Ditto.
2928
2929 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2930
2931 Make core files the process_stratum.
2932 * corefile.c (core_target): New variable.
2933 (core_file_command): Remove variable t, use core_target.
2934 * corelow.c (core_ops): Make it static.
2935 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2936 * defs.h (make_cleanup_unpush_target): New prototype.
2937 * gdbarch.h: Regenerate.
2938 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2939 * gdbcore.h (core_target): New declaration.
2940 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2941 variables ops_already_pushed and back_to. Use push_target,
2942 make_cleanup_unpush_target and discard_cleanups calls.
2943 * record.c (record_open): Replace core_stratum by a core_bfd check.
2944 * target.c (target_is_pushed): New function.
2945 (find_core_target): Remove.
2946 * target.h (enum strata) <core_stratum>: Remove.
2947 (target_is_pushed): New declaration.
2948 (find_core_target): Remove declaration.
2949 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2950 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2951
2952 2010-07-19 Hui Zhu <teawater@gmail.com>
2953
2954 * breakpoint.c (single_step_breakpoints_inserted): New
2955 function.
2956 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2957 * infrun.c (maybe_software_singlestep): Add check code.
2958 * record.c (record_resume): Add code for software single step.
2959 (record_wait): Ditto.
2960
2961 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2962
2963 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2964 a more inner block. Remove its unused declaration initializer.
2965
2966 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2967
2968 * NEWS: Mention support for the new ptrace interface and hardware
2969 accelerated watchpoint conditions on powerpc-linux.
2970
2971 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2972
2973 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2974 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2975 and host_address_to_string() and %s for pointers.
2976 (debug_to_remove_breakpoint): Likewise.
2977 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2978 (debug_to_can_accel_watchpoint_condition): Likewise.
2979 (debug_to_stopped_data_address): Likewise.
2980 (debug_to_watchpoint_addr_within_range): Likewise.
2981 (debug_to_insert_hw_breakpoint): Likewise.
2982 (debug_to_remove_hw_breakpoint): Likewise.
2983 (debug_to_insert_watchpoint): Likewise.
2984 (debug_to_remove_watchpoint): Likewise.
2985
2986 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2987
2988 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2989 argument.
2990 (cplus_specific): New struct.
2991 * symtab.c (symbol_set_demangled_name): Updated.
2992 Use cplus_specific for cplus symbols.
2993 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2994 struct for cplus symbols.
2995 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2996 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2997 * symtab.c (symbol_init_cplus_specific): New function.
2998
2999 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3000
3001 * symtab.h (symbol_set_demangled_name): New function.
3002 (symbol_get_demangled_name): New function.
3003 * symtab.c (symbol_set_demangled_name): New function.
3004 (symbol_get_demangled_name): New function.
3005 (symbol_init_language_specific): Use demangled_name setter and getter.
3006 (symbol_set_names): Ditto.
3007 (symbol_natural_name): Ditto.
3008 (symbol_demangled_name): Ditto.
3009 * dwarf2read.c (new_symbol): Ditto.
3010
3011 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3012
3013 * symtab.h: Renamed cplus_specific to mangled_lang.
3014 * symtab.c (symbol_init_language_specific): Updated.
3015 (symbol_set_names): Updated.
3016 (symbol_natural_name): Updated.
3017 (symbol_demangled_name): Updated.
3018 * ada-lang.c (ada_decode_symbol): Updated.
3019 * dwarf2read.c (new_symbol): Updated.
3020
3021 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3022
3023 * valops.c (value_assign): Do not call to value_coerce_to_target.
3024 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3025
3026 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3027
3028 * MAINTAINERS: Add myself for write after approval privileges.
3029
3030 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3031
3032 * c-valprint.c (c_val_print): Add embedded_offset to address in
3033 call to val_print_array_elements.
3034
3035 2010-07-13 Tom Tromey <tromey@redhat.com>
3036
3037 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3038
3039 2010-07-13 Tom Tromey <tromey@redhat.com>
3040
3041 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3042 objfile.
3043
3044 2010-07-13 Tom Tromey <tromey@redhat.com>
3045
3046 * symfile.c (set_initial_language): Update.
3047 (deduce_language_from_filename): Argument type now const.
3048 * symtab.h (find_main_filename): Update.
3049 (deduce_language_from_filename): Update.
3050 * symtab.c (find_main_filename): Make result const.
3051 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3052 * psymtab.c (find_symbol_file_from_partial): Change return type.
3053 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3054 Make result const.
3055
3056 2010-07-13 Tom Tromey <tromey@redhat.com>
3057
3058 * breakpoint.c (save_cmdlist): No longer static.
3059 * gdbcmd.h (save_cmdlist): Declare.
3060 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3061 OBJF_READNOW on objfile if readnow_symbol_files.
3062 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3063 (elf_sym_fns_gdb_index): New global.
3064 * dwarf2read.c: Include exceptions.h.
3065 (offset_type): New.
3066 (struct mapped_index): New.
3067 (dwarf2_per_cu_data_ptr): New typedef.
3068 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3069 New fields.
3070 (GDB_INDEX_SECTION): New define.
3071 (struct dwarf2_per_cu_quick_data): New.
3072 (struct dwarf2_per_cu_data) <objfile>: New field.
3073 <psymtab>: Removed.
3074 <v>: New field.
3075 (byte_swap): New function.
3076 (MAYBE_SWAP): New macro.
3077 (INDEX_SUFFIX): New macro.
3078 (dw2_do_instantiate_symtab): New function.
3079 (dw2_instantiate_symtab): Likewise.
3080 (create_cus_from_index): Likewise.
3081 (create_addrmap_from_index): Likewise.
3082 (mapped_index_string_hash): Likewise.
3083 (find_slot_in_mapped_hash): Likewise.
3084 (dwarf2_read_index): Likewise.
3085 (dw2_setup): Likewise.
3086 (dw2_require_line_header): Likewise.
3087 (dw2_require_full_path): Likewise.
3088 (dw2_find_last_source_symtab): Likewise.
3089 (dw2_forget_cached_source_info): Likewise.
3090 (dw2_lookup_symtab): Likewise.
3091 (dw2_lookup_symbol): Likewise.
3092 (dw2_do_expand_symtabs_matching): Likewise.
3093 (dw2_pre_expand_symtabs_matching): Likewise.
3094 (dw2_print_stats): Likewise.
3095 (dw2_dump): Likewise.
3096 (dw2_relocate): Likewise.
3097 (dw2_expand_symtabs_for_function): Likewise.
3098 (dw2_expand_all_symtabs): Likewise.
3099 (dw2_expand_symtabs_with_filename): Likewise.
3100 (dw2_find_symbol_file): Likewise.
3101 (dw2_map_ada_symtabs): Likewise.
3102 (dw2_expand_symtabs_matching): Likewise.
3103 (dw2_find_pc_sect_symtab): Likewise.
3104 (dw2_map_symbol_names): Likewise.
3105 (dw2_map_symbol_filenames): Likewise.
3106 (dw2_has_symbols): Likewise.
3107 (dwarf2_gdb_index_functions): New global.
3108 (dwarf2_initialize_objfile): New function.
3109 (process_psymtab_comp_unit): Update.
3110 (add_partial_subprogram): Likewise.
3111 (dwarf2_psymtab_to_symtab): Likewise.
3112 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3113 (process_full_comp_unit): Update.
3114 (find_file_and_directory): New function.
3115 (read_file_scope): Use find_file_and_directory.
3116 (dwarf2_per_cu_objfile): Update.
3117 (dwarf2_per_cu_addr_size): Update.
3118 (dwarf2_per_cu_offset_size): Update.
3119 (dwarf2_free_objfile): Free the index, if needed.
3120 (dwarf2_per_objfile_free): Unmap the index, if needed.
3121 (struct strtab_entry): New.
3122 (hash_strtab_entry): New function.
3123 (eq_strtab_entry): Likewise.
3124 (create_strtab): Likewise.
3125 (add_string): Likewise.
3126 (struct symtab_index_entry): New.
3127 (struct mapped_symtab): New.
3128 (hash_symtab_entry): New function.
3129 (eq_symtab_entry): Likewise.
3130 (delete_symtab_entry): Likewise.
3131 (create_index_table): Likewise.
3132 (create_mapped_symtab): Likewise.
3133 (cleanup_mapped_symtab): Likewise.
3134 (find_slot): Likewise.
3135 (hash_expand): Likewise.
3136 (add_index_entry): Likewise.
3137 (add_indices_to_cpool): Likewise.
3138 (write_hash_table): Likewise.
3139 (add_address_entry): Likewise.
3140 (write_psymbols): Likewise.
3141 (write_obstack): Likewise.
3142 (unlink_if_set): Likewise.
3143 (write_psymtabs_to_index): Likewise.
3144 (save_gdb_index_command): Likewise.
3145 (_initialize_dwarf2_read): Install "save gdb-index"
3146 command.
3147 (create_all_comp_units): Initialize 'objfile' field of CU.
3148 (dwarf2_locate_sections): Check for .gdb_index.
3149 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3150 * symfile.h (dwarf2_initialize_objfile): Declare.
3151
3152 2010-07-13 Tom Tromey <tromey@redhat.com>
3153
3154 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3155 (basic_lookup_transparent_type): Likewise.
3156 * symfile.h (struct quick_symbol_functions)
3157 <pre_expand_symtabs_matching>: New field.
3158 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3159 (psym_functions): Update.
3160
3161 2010-07-13 Tom Tromey <tromey@redhat.com>
3162
3163 PR breakpoints/8357:
3164 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3165 * linespec.c (decode_line_1): Update comment. Call decode_label.
3166 (decode_label): New function.
3167 (symbol_found): Handle LOC_LABEL.
3168 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3169 domain. Call add_symbol_to_list.
3170
3171 2010-07-13 Tom Tromey <tromey@redhat.com>
3172
3173 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3174 * dwarf2loc.c (find_location_expression): Use
3175 dwarf2_per_cu_text_offset.
3176 (dwarf2_evaluate_loc_desc): Likewise.
3177 (dwarf2_loc_desc_needs_frame): Likewise.
3178 (compile_dwarf_to_ax): Likewise.
3179 (loclist_describe_location): Likewise.
3180 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3181 (dwarf2_per_cu_objfile): Update comment.
3182
3183 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3184
3185 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3186 * p-lang.c (pascal_printstr): Likewise.
3187
3188 2010-07-09 Tom Tromey <tromey@redhat.com>
3189
3190 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3191 'hint' if it is NULL.
3192
3193 2010-07-09 Hui Zhu <teawater@gmail.com>
3194
3195 * source.c (print_source_lines_base): Add check for noprint.
3196
3197 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3198
3199 * python/python-config.py: Resync with Python 2.7 version of this
3200 script.
3201
3202 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3203
3204 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3205
3206 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3207
3208 * NEWS: Create a new section for the next release branch.
3209 Rename the section of the current branch, now that it has
3210 been cut.
3211
3212 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3213
3214 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3215 * version.in: Bump version to 7.2.50.20100707-cvs.
3216
3217 2010-07-07 Tom Tromey <tromey@redhat.com>
3218
3219 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3220 LOC_COMPUTED symbol.
3221 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3222 (dwarf2_loc_desc_needs_frame): Likewise.
3223 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3224 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3225 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3226 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3227 'offset' argument.
3228 (struct dwarf2_frame_cache) <text_offset>: New field.
3229 (dwarf2_frame_cache): Set new field.
3230 (dwarf2_frame_prev_register): Update.
3231 (dwarf2_frame_sniffer): Update.
3232 (dwarf2_frame_base_sniffer): Update.
3233 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3234
3235 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3236 Thiago Jung Bauermann <bauerman@br.ibm.com>
3237
3238 Support for hw accelerated condition watchpoints in booke powerpc.
3239
3240 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3241 and move to eval.c. Change callers.
3242 (insert_bp_location): Pass watchpoint condition in
3243 target_insert_watchpoint.
3244 (remove_breakpoint_1) Pass watchpoint condition in
3245 target_remove_watchpoint.
3246 (watchpoint_locations_match): Call
3247 target_can_accel_watchpoint_condition.
3248 * eval.c: Include wrapper.h.
3249 (fetch_subexp_value): Moved from breakpoint.c.
3250 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3251 Formatting fix.
3252 (can_use_watchpoint_cond_accel): New function.
3253 (calculate_dvc): Likewise.
3254 (num_memory_accesses): Likewise.
3255 (check_condition): Likewise.
3256 (ppc_linux_can_accel_watchpoint_condition): Likewise
3257 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3258 check_condition and calculate_dvc.
3259 (ppc_linux_remove_watchpoint): Likewise.
3260 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3261 ppc_linux_can_accel_watchpoint_condition
3262 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3263 condition.
3264 (debug_to_remove_watchpoint): Likewise.
3265 (debug_to_can_accel_watchpoint_condition): New function.
3266 (update_current_target): Set to_can_accel_watchpoint_condition.
3267 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3268 * target.h: Add opaque declaration for struct expression.
3269 (struct target_ops) <to_insert_watchpoint>,
3270 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3271 <to_can_accel_watchpoint_condition>: New member.
3272 condition. Update all callers and implementations.
3273 (target_can_accel_watchpoint_condition): New macro.
3274 * value.c (free_value_chain): New function.
3275 * value.h (fetch_subexp_value): New prototype.
3276 (free_value_chain): Likewise.
3277
3278 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3279
3280 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3281 from gdbarch_core_regset_sections also for .reg if present.
3282
3283 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3284 section size for .reg.
3285 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3286 (ppc_linux_vmx_regset_sections): Likewise.
3287 (ppc_linux_fp_regset_sections): Likewise.
3288 (ppc64_linux_vsx_regset_sections): New variable.
3289 (ppc64_linux_vmx_regset_sections): Likewise.
3290 (ppc64_linux_fp_regset_sections): Likewise.
3291 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3292 for current word size.
3293
3294 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3295
3296 * server.c (myresume): Make static.
3297
3298 2010-07-06 Tom Tromey <tromey@redhat.com>
3299
3300 * configure, config.in: Rebuild.
3301 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3302 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3303
3304 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3305
3306 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3307 "clear".
3308
3309 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3310
3311 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3312 * gdbtypes.c (floatformats_ieee_half): New variable.
3313 * doublest.c (floatformat_from_length): Set format to
3314 gdbarch_half_format if length matches.
3315 * gdbarch.sh (half_bit): New architecture method.
3316 (half_format): Likewise.
3317 * gdbarch.h: Regenerate.
3318 * gdbarch.c: Likewise.
3319
3320 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3321 Joel Brobecker <brobecker@adacore.com>
3322
3323 Fix re-run of PIE executable, PR shlibs/11776.
3324 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3325 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3326
3327 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3328 Joel Brobecker <brobecker@adacore.com>
3329
3330 * auxv.c (memory_xfer_auxv): Update attach comment.
3331 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3332 svr4_relocate_main_executable.
3333 (svr4_solib_create_inferior_hook): Make the call to
3334 svr4_relocate_main_executable unconditional.
3335
3336 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3337 Joel Brobecker <brobecker@adacore.com>
3338
3339 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3340
3341 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3342 Joel Brobecker <brobecker@adacore.com>
3343
3344 Fix attaching to PIEs prelinked on the disk after the process was
3345 started.
3346 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3347 Verify it against bfd_get_arch_size. Try to match arbitrary
3348 displacement for the phdrs comparison.
3349
3350 2010-07-02 Tom Tromey <tromey@redhat.com>
3351
3352 PR exp/11780:
3353 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3354 value as optimized-out.
3355
3356 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3357 Thiago Jung Bauermann <bauerman@br.ibm.com>
3358
3359 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3360 represent?" question in comment. Change comment to a proper sentence.
3361
3362 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3363
3364 * c-valprint.c (c_val_print): Fix printing of character vectors.
3365
3366 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3367
3368 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3369 create_breakpoint prototype.
3370
3371 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3372
3373 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3374 usefulness suggestion of multiple breakpoints at same location.
3375
3376 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3377
3378 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3379
3380 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3381
3382 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3383 (loclist_tracepoint_var_ref): Handle optimized out values.
3384
3385 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3386
3387 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3388 unnecessary space in string.
3389 * filesystem.c (_initialize_filesystem): Ditto.
3390 * frame.c (_initialize_frame): Ditto.
3391 * infcmd.c (step_once): Ditto.
3392 * infrun.c (_initialize_infrun): Ditto.
3393 * linux-nat.c (linux_child_follow_fork): Ditto.
3394 * maint.c (maintenance_deprecate): Ditto.
3395 * memattr.c (_initialize_mem): Ditto.
3396 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3397 * monitor.c (monitor_open): Ditto.
3398 * procfs.c (procfs_xfer_memory): Ditto.
3399 * reverse.c (bookmarks_info): Ditto.
3400 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3401 * stack.c (_initialize_stack): Ditto.
3402 * tracepoint.c (_initialize_tracepoint): Ditto.
3403 * xtensa-tdep.c (xtensa_supply_gregset,
3404 xtensa_regset_from_core_section): Ditto.
3405
3406 2010-07-01 Tom Tromey <tromey@redhat.com>
3407
3408 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3409 check_all_valid.
3410 * value.c (value_entirely_optimized_out): Invert result. Update
3411 for new function name.
3412
3413 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3414
3415 Static tracepoints support.
3416
3417 * NEWS: Mention new support for static tracepoints.
3418 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3419 qXfer:statictrace:read.
3420 (New features in the GDB remote stub, GDBserver): Mention static
3421 tracepoints support using an UST based backend.
3422 (New commands): Mention "info static-tracepoint-markers" and
3423 "strace".
3424 * breakpoint.c (is_marker_spec): New.
3425 (is_tracepoint): Handle static tracepoints.
3426 (validate_commands_for_breakpoint): Static tracepoints can't do
3427 while-stepping.
3428 (static_tracepoints_here): New.
3429 (bpstat_what): Handle static tracepoints.
3430 (print_one_breakpoint_location, allocate_bp_location, mention):
3431 Ditto.
3432 (create_breakpoint_sal): Ditto.
3433 (decode_static_tracepoint_spec): New.
3434 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3435 `type_wanted'. Adjust. Handle static tracepoint marker
3436 locations.
3437 (break_command_1): Adjust.
3438 (update_static_tracepoint): New.
3439 (update_breakpoint_locations): Handle static tracepoints.
3440 (breakpoint_re_set_one): Handle static tracepoint marker
3441 locations.
3442 (disable_command, enable_command): Handle static tracepoints.
3443 (trace_command, ftrace_command): Adjust.
3444 (strace_command): New.
3445 (create_tracepoint_from_upload): Adjust.
3446 (save_breakpoints): Handle static tracepoints.
3447 (_initialize_breakpoint): Install the "strace" command.
3448 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3449 (struct breakpoint): New fields static_trace_marker_id and
3450 static_trace_marker_id_idx.
3451 (breakpoints_here_p): Declare.
3452 (create_breakpoint): Adjust.
3453 (static_tracepoints_here): Declare.
3454 * remote.c (struct remote_state) <static_tracepoints>: New field.
3455 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3456 (remote_static_tracepoint_marker_at): New.
3457 (remote_static_tracepoint_markers_by_strid): New.
3458 (remote_static_tracepoint_feature): New.
3459 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3460 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3461 (remote_supports_static_tracepoints): New.
3462 (remote_download_tracepoint): Download static tracepoints.
3463 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3464 remote_static_tracepoint_markers_by_strid.
3465 (_initialize_remote): Install set|show remote static-tracepoints,
3466 and set|show remote read-sdata-object commands.
3467 * target.c (update_current_target): Inherit and default
3468 to_static_tracepoint_marker_at, and
3469 to_static_tracepoint_markers_by_strid.
3470 * target.h (static_tracepoint_marker): Forward declare.
3471 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3472 (static_tracepoint_marker_p): New typedef.
3473 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3474 (struct target_ops): New fields to_static_tracepoint_marker_at and
3475 to_static_tracepoint_markers_by_strid.
3476 (target_static_tracepoint_marker_at)
3477 (target_static_tracepoint_markers_by_strid): New.
3478 * tracepoint.c: Include source.h.
3479 (validate_actionline): Handle $_sdata.
3480 (struct collection_list): New field strace_data.
3481 (add_static_trace_data): New.
3482 (clear_collection_list): Clear strace_data.
3483 (stringify_collection_list): Account for a possible static trace
3484 data collection.
3485 (encode_actions_1): Encode an $_sdata collection.
3486 (parse_tracepoint_definition): Handle static tracepoints.
3487 (parse_static_tracepoint_marker_definition): New.
3488 (release_static_tracepoint_marker): New.
3489 (print_one_static_tracepoint_marker): New.
3490 (info_static_tracepoint_markers_command): New.
3491 (sdata_make_value): New.
3492 (_initialize_tracepoint): Create the $_sdata convenience variable.
3493 Add the "info static-tracepoint-markers" command.
3494 Mention $_sdata in the "collect" command's help output.
3495 * tracepoint.h (struct static_tracepoint_marker): New.
3496 (parse_static_tracepoint_marker_definition)
3497 (release_static_tracepoint_marker): Declare.
3498 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3499 * python/py-breakpoint.c (bppy_new): Adjust.
3500
3501 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3502
3503 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3504 including Python.h.
3505
3506 2010-06-29 Doug Evans <dje@google.com>
3507
3508 PR gdb/11702
3509 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3510 DW_AT_external is present.
3511
3512 PR gdb/11702
3513 * NEWS: Add entry.
3514 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3515 create a symbol for the field and record the value.
3516 (new_symbol): Handle DW_TAG_member.
3517 * gdbtypes.c (field_is_static): Remove FIXME.
3518 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3519 only ignore LOC_CONST symbols that are enums.
3520
3521 * dwarf2read.c: Remove trailing whitespace.
3522
3523 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3524 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3525 (struct main_type, field loc): Delete dwarf_block.
3526 (FIELD_DWARF_BLOCK): Delete.
3527 (SET_FIELD_DWARF_BLOCK): Delete.
3528 (TYPE_FIELD_DWARF_BLOCK): Delete.
3529 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3530 Update.
3531
3532 2010-06-29 Hui Zhu <teawater@gmail.com>
3533
3534 * record.c (set_record_pic_cmdlist,
3535 show_record_pic_cmdlist): New variables.
3536 (set_record_pic_command,
3537 show_record_pic_command): New functions.
3538 (record_pic_function, record_pic_line, record_pic_enum,
3539 set_record_pic_type, record_pic_hide_nofunction,
3540 record_pic_hide_nosource, record_pic_hide_same): New variables.
3541 (record_pic_fputs): New function.
3542 (function_list, node_list, edge_list): New struct.
3543 (function_list, node_list, edge_list): New variables.
3544 (record_pic_cleanups, record_pic_node,
3545 record_pic_edge, cmd_record_pic): New functions.
3546 (_initialize_record): Add new commands for record pic.
3547
3548 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3549
3550 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3551 ALLOCATE_CPLUS_STRUCT_TYPE.
3552
3553 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3554 Tom Tromey <tromey@redhat.com>
3555 Thiago Jung Bauermann <bauerman@br.ibm.com>
3556
3557 * value.c (pack_unsigned_long): New function.
3558 (value_from_ulongest): New function.
3559 * value.h (value_from_ulongest): Declare.
3560 * python/python.c (_initialize_python): Call
3561 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3562 * python/python-internal.h: Define thread_object.
3563 (gdbpy_inferiors, gdbpy_selected_thread)
3564 (frame_info_to_frame_object, create_thread_object)
3565 (find_thread_object, find_inferior_object)
3566 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3567 (gdbpy_is_value_object, get_addr_from_python): Declare.
3568 * python/py-value.c (builtin_type_upylong): Define.
3569 (convert_value_from_python): Add logic for ulongest.
3570 (gdbpy_is_value_object): New function.
3571 * python/py-utils.c (get_addr_from_python): New function.
3572 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3573 (gdbpy_selected_frame): Use PyObject over frame_info.
3574 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3575 py-infthread.
3576 (SUBDIR_PYTHON_SRCS): Likewise.
3577 (py-inferior.o): New Rule.
3578 (py-infthread.o): New Rule.
3579 * python/py-inferior.c: New File.
3580 * python/py-infthread.c: New File.
3581
3582 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3583
3584 * c-typeprint.c (c_type_print_base): For no fields check include also
3585 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3586 * dwarf2read.c (struct typedef_field_list)
3587 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3588 (dwarf2_add_typedef): New.
3589 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3590 Copy also FI.TYPEDEF_FIELD_LIST.
3591 * gdbtypes.h (struct typedef_field)
3592 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3593 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3594 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3595
3596 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3597
3598 * cp-namespace.c (cp_lookup_nested_type): New variable
3599 concatenated_name. Turn the current return condition into a reverse
3600 one. Call also lookup_static_symbol_aux on the constructed qualified
3601 name.
3602 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3603 other files into a called ...
3604 (lookup_static_symbol_aux): ... new function here.
3605 * symtab.h (lookup_static_symbol_aux): New prototype.
3606 * valops.c (value_maybe_namespace_elt): Call also
3607 lookup_static_symbol_aux if we failed otherwise.
3608
3609 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3610
3611 Fix PR c++/11703 and PR gdb/1448.
3612 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3613 FIRST_ITER check.
3614
3615 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3616
3617 Fix modification of cplus_struct_default.
3618 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3619 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3620 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3621
3622 2010-06-28 Joel Brobecker <brobecker@adacore.com>
3623
3624 * NEWS: Add entry announcing the python directory.
3625
3626 2010-06-28 Tom Tromey <tromey@redhat.com>
3627
3628 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3629
3630 2010-06-28 Doug Evans <dje@google.com>
3631
3632 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3633 All callers updated.
3634
3635 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3636
3637 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3638 obstack_begin after each obstack_free.
3639
3640 2010-06-27 Doug Evans <dje@google.com>
3641
3642 * value.c (value_static_field): Use `switch' instead of `if'.
3643 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3644
3645 * valops.c (search_struct_field): Fix typo in error message.
3646
3647 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3648
3649 * dwarf2expr.c (execute_stack_op): Place preprocessor
3650 directives at the start of the source line.
3651
3652 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3653
3654 * defs.h (make_command_stats_cleanup): Declare.
3655 (set_display_time): Declare.
3656 (set_display_space): Declare.
3657 * event-top.c (command_handler): Use make_command_stats_cleanup.
3658 * main.c (display_time, display_space): Move definitions to utils.c.
3659 (captured_main): Use make_command_stats_cleanup to get start-up
3660 statistics.
3661 Use set_display_time and set_display_space for processing OPT_STATISTICS
3662 case.
3663 * maint.c (maintenance_time_display): Use set_display_time.
3664 (maintenance_space_display): Use set_display_space.
3665 * top.c (execute_command): Remove obsolete 'maint time' code.
3666 (command_loop): Use make_command_stats_cleanup.
3667 * utils.c (struct cmd_stats): Structure for storing initial time
3668 and space usage.
3669 (display_time, display_space): Move definitions here from utils.c.
3670 (set_display_time): New function.
3671 (set_display_space): New function.
3672 (make_command_stats_cleanup): New function.
3673 (report_command_stats): New auxiliary function for
3674 make_command_stats_cleanup.
3675
3676 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3677
3678 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3679 hosts where CORE_ADDR is long long.
3680
3681 2010-06-25 Tom Tromey <tromey@redhat.com>
3682
3683 PR python/10808:
3684 * python/python.c (execute_gdb_command): Add keywords. Accept
3685 "to_string" argument.
3686 (struct restore_ui_file_closure): New.
3687 (restore_ui_file): New function.
3688 (make_cleanup_restore_ui_file): Likewise.
3689 (GdbMethods) <execute>: Update.
3690
3691 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3692
3693 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3694 during inferior call stack frame setup.
3695
3696 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
3697
3698 * solib-spu.c: Include "exception.h".
3699 (ocl_program_data_key): New variable.
3700 (append_ocl_sos): New function.
3701 (ocl_enable_break): Likewise.
3702 (spu_current_sos): Call append_ocl_sos.
3703 (spu_solib_loaded): Call ocl_enable_break.
3704 (_initialize_spu_solib): Register ocl_program_data_key.
3705
3706 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3707
3708 * cp-support.c (reset_directive_searched): New function.
3709 (make_symbol_overload_list_using): Prevent recursive calls.
3710
3711 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3712
3713 * printcmd.c (print_variable_and_value): Print error message on
3714 caught exception.
3715
3716 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3717
3718 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3719 of stack values.
3720 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3721 "value" member.
3722 (dwarf_expr_push): Change input type to ULONGEST.
3723 (dwarf_expr_fetch): Change return type to ULONGEST.
3724 (dwarf_expr_fetch_address): Add prototype.
3725 (dwarf2_read_address): Remove prototype.
3726 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3727 Truncate stack values to ctx->addr_size bytes.
3728 (dwarf_expr_fetch): Change return value to ULONGEST.
3729 (dwarf_expr_fetch_address): New function.
3730 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3731 when appropriate. Update for struct dwarf_expr_piece changes.
3732 (dwarf2_read_address): Remove.
3733 (unsigned_address_type): Remove.
3734 (signed_address_type): Remove.
3735 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3736 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3737 values. Perform operations on ULONGEST instead of on GDB values,
3738 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3739 values and DW_OP_deref results as unsigned integers.
3740 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3741 changes.
3742 (write_pieced_value): Likewise.
3743 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3744 dwarf_expr_fetch when appropriate.
3745 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3746 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3747 instead of dwarf_expr_fetch when appropriate.
3748
3749 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3750
3751 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3752
3753 2010-06-24 Joel Brobecker <brobecker@adacore.com>
3754
3755 * python/python.c (_initialize_python): Add new "constant"
3756 PYTHONDIR in gdb module. Insert this path at the head of
3757 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3758 exec its __init__.py script if it exists in that directory.
3759
3760 2010-06-24 Kevin Buettner <kevinb@redhat.com>
3761
3762 * rx-tdep.c (RX_ACC_REGNUM): Define.
3763 (RX_NUM_REGS): Redefine to 26.
3764 (rx_register_name): Add register "acc". Change order of several
3765 registers. Change name of "vct" register to "fintv" to match RX
3766 documentation.
3767 (rx_register_type): Add case for RX_ACC_REGNUM.
3768
3769 2010-06-24 Tom Tromey <tromey@redhat.com>
3770
3771 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3772
3773 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3774 Tom Tromey <tromey@redhat.com>
3775
3776 Fix GDB startup on readonly filesystem.
3777 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3778
3779 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3780 Pedro Alves <pedro@codesourcery.com>
3781
3782 Fix PR 9436.
3783 * breakpoint.c (handle_jit_event): New function.
3784 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3785 jit, err, table and bs_class. New variables shlib_event, jit_event,
3786 this_action and bptype. Change bs_class assignments to this_action
3787 assignments. new unhandled bptype internal error. Move here
3788 shlib_event and jit_event handling from handle_inferior_event.
3789 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3790 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3791 BPSTAT_WHAT_CHECK_JIT.
3792 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3793 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3794 (handle_inferior_event): Reinitialize frame and gdbarch after
3795 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3796 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3797 gdbarch when frame gets reinitialized.
3798
3799 2010-06-24 Hui Zhu <teawater@gmail.com>
3800
3801 * printcmd.c (ui_printf): New function.
3802 (printf_command): Call ui_printf.
3803 (_initialize_printcmd): New command "eval".
3804
3805 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3806
3807 * infrun.c (handle_inferior_event): Handle presence of single-step
3808 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3809 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3810 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3811 * breakpoint.c (detach_single_step_breakpoints): New function.
3812 (detach_breakpoints): Call it.
3813 (cancel_single_step_breakpoints): New function.
3814 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3815
3816 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3817 (spu_gdbarch_init): Install it.
3818
3819 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3820
3821 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3822 * configure: Regenerate.
3823
3824 2010-06-22 Hui Zhu <teawater@gmail.com>
3825
3826 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3827 (i386_process_record): Ditto.
3828 * record.c (record_memory_query): New variable.
3829 (_initialize_record): New command "set record memory-query".
3830 * record.h (record_memory_query): New extern.
3831
3832 2010-06-21 Doug Evans <dje@google.com>
3833
3834 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3835 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3836 (i386_syscall_p): Change type of lengthp to int.
3837 (i386_displaced_step_fixup): Handle kernels that run one past a
3838 syscall insn.
3839 * i386-linux-tdep.c (i386_linux_init_abi): Use
3840 i386_displaced_step_copy_insn instead of
3841 simple_displaced_step_copy_insn.
3842
3843 2010-06-21 Tom Tromey <tromey@redhat.com>
3844
3845 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3846 (dwarf_type_encoding_name): Likewise.
3847
3848 2010-06-21 Tom Tromey <tromey@redhat.com>
3849
3850 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3851 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3852 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3853 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3854 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3855 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3856 * dwarf2read.c (tag_type_to_type): Create a new error type on
3857 failure.
3858 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3859 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3860
3861 2010-06-21 Michael Snyder <msnyder@vmware.com>
3862
3863 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3864 not add_abbrev_prefix_cmd, for "enable breakpoints".
3865
3866 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3867
3868 * dwarf2loc.c (find_location_expression): Add relocation offset
3869 to base-address-selection entry base addresses. Read addresses
3870 (and offsets) as signed/unsigned integers, depending on the
3871 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3872 (loclist_describe_location): Likewise.
3873 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3874 unsigned integer. Do not call dwarf2_read_address.
3875 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3876
3877 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3878
3879 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3880 value instead of hard-coded SPU_LS_SIZE.
3881 (spu_software_single_step): Likewise.
3882 * spu-tdep.h (SPU_LS_SIZE): Remove.
3883
3884 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3885
3886 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3887 limit on local store memory accesses.
3888 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3889 * spu-tdep.c (spu_lslr): Remove.
3890 (spu_pointer_to_address): Do not truncate addresses.
3891 (spu_integer_to_address): Likewise.
3892 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3893 * spu-tdep.h: Add comments.
3894 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3895 (SPU_OVERLAY_LMA): Define.
3896
3897 2010-06-18 Stan Shebs <stan@codesourcery.com>
3898
3899 * osdata.c (get_osdata): Warn separately if target does not report
3900 type list.
3901 (info_osdata_command): Allow empty type, report error if target
3902 does not return available types of OS data.
3903 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3904 types if no annex supplied.
3905
3906 * thread.c (thread_id_make_value): Make a value representing the
3907 current thread.
3908 (_initialize_thread): Create $_thread.
3909
3910 2010-06-17 Joel Brobecker <brobecker@adacore.com>
3911
3912 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3913 last local variable declaration. No real code change.
3914
3915 2010-06-17 Tom Tromey <tromey@redhat.com>
3916
3917 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3918 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3919 temporary obstack.
3920
3921 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3922 Jan Kratochvil <jan.kratochvil@redhat.com>
3923
3924 * breakpoint.c: Include parser-defs.h.
3925 (watchpoint_exp_is_const): New function.
3926 (watch_command_1): Call watchpoint_exp_is_const to check
3927 if the expression is constant.
3928
3929 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3930
3931 * configure.ac: Check for RDYNAMIC also for cross builds.
3932 * configure: Regenerate.
3933
3934 2010-06-15 Pedro Alves <pedro@codesourcery.com>
3935
3936 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3937 (SFILES): Remove solib-null.c, add solib-target.c.
3938 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3939 (ALLDEPFILES): Remove solib-target.c.
3940 * solib-target.c (_initialize_solib_target): Set
3941 current_target_so_ops to solib_target_so_ops if not already set.
3942 * solib-null.c: Delete.
3943
3944 2010-06-14 Pedro Alves <pedro@codesourcery.com>
3945
3946 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3947 bytecode.
3948
3949 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3950
3951 * cp-valprint.c (cp_print_static_field): Members of
3952 dont_print_stat_array_obstack are of type "struct type *".
3953 (_initialize_cp_valprint): Likewise.
3954
3955 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3956
3957 * frame.c (frame_register_unwind): Do not access contents
3958 of "optimized out" unwound register value.
3959
3960 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3961
3962 * ada-lang.h (ada_print_type): Make varstring const.
3963 * ada-typeprint.c (print_func_type): Make name const.
3964 (ada_print_type): Make varstring const.
3965 * c-lang.h (c_print_type): Make varstring const.
3966 * c-typeprint.c (c_print_type): Likewise.
3967 * f-lang.h (f_print_type): Likewise.
3968 * f-typeprint.c (f_print_type): Likewise.
3969 * jv-lang.h (java_print_type): Likewise.
3970 * jv-typeprint.c (java_print_type): Likewise.
3971 * language.c (unk_lang_print_type): Likewise.
3972 * language.h (struct language_defn) <la_print_type>: Likewise.
3973 * m2-lang.h (m2_print_type): Likewise.
3974 * m2-typeprint.c (m2_print_type): Likewise.
3975 * p-lang.h (pascal_print_type): Likewise.
3976 * p-typeprint.c (pascal_print_type): Likewise.
3977
3978 2010-06-11 Stan Shebs <stan@codesourcery.com>
3979
3980 Add per-operation permission flags.
3981
3982 * target.h (struct target_ops): New method to_set_permissions.
3983 (target_set_permissions): New macro.
3984 (target_insert_breakpoint): Change macro to function.
3985 (target_remove_breakpoint): Ditto.
3986 (target_stop): Ditto.
3987 (may_write_registers): Declare.
3988 (may_write_memory): Declare.
3989 (may_insert_breakpoints): Declare.
3990 (may_insert_tracepoints): Declare.
3991 (may_insert_fast_tracepoints): Declare.
3992 (may_stop): Declare.
3993 * target.c (may_write_registers, may_write_registers_1): New globals.
3994 (may_write_memory, may_write_memory_1): New globals.
3995 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3996 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3997 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3998 globals.
3999 (may_stop, may_stop_1): New global.
4000 (target_xfer_partial): Test for write permission.
4001 (target_store_registers): Ditto.
4002 (target_insert_breakpoint): New function.
4003 (target_remove_breakpoint): New function.
4004 (target_stop): New function.
4005 (_initialize_targets): Add new set/show variables.
4006 (set_write_memory_permission): New function.
4007 (update_target_permissions): New function.
4008 (set_target_permissions): New function.
4009 (update_current_target): Default to_set_permissions.
4010 (_initialize_targets): Use new globals and setter function.
4011 * tracepoint.c (start_tracing): Test for permission.
4012 * inferior.h (update_observer_mode): Declare.
4013 * infrun.c (non_stop_1): Define earlier.
4014 (observer_mode, observer_mode_1): New globals.
4015 (set_observer_mode, show_observer_mode): New functions.
4016 (update_observer_mode): New function.
4017 (_initialize_infrun): Define "set observer" command.
4018 * remote.c (PACKET_QAllow): New optional packet.
4019 (remote_protocol_features): Add QAllow.
4020 (remote_set_permissions): New function.
4021 (remote_start_remote): Call it.
4022 (init_remote_ops): Add it to target vector.
4023 (_initialize_remote): Add config command for QAllow.
4024
4025 2010-06-11 Tom Tromey <tromey@redhat.com>
4026
4027 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4028 DW_AT_vtable_elem_location even when GCC extension is seen.
4029
4030 2010-06-11 Tom Tromey <tromey@redhat.com>
4031
4032 PR gdb/9977, PR exp/11636:
4033 * value.h (value_offset): Update.
4034 (struct lval_funcs) <check_validity>: New field.
4035 <copy_closure>: Make argument const.
4036 (value_computed_closure): Update.
4037 (value_contents_for_printing): Declare.
4038 (value_bits_valid): Likewise.
4039 (val_print): Likewise.
4040 (set_value_component_location): Update.
4041 (value_entirely_optimized_out): Declare.
4042 * value.c (value_offset): Argument now const.
4043 (require_not_optimized_out): New function.
4044 (value_contents_for_printing): New function.
4045 (value_contents_all): Call require_not_optimized_out.
4046 (value_contents): Likewise.
4047 (value_bits_valid): New function.
4048 (value_computed_closure): Argument now const.
4049 (set_value_component_location): Make 'whole' argument const.
4050 (value_entirely_optimized_out): New function.
4051 (value_bitsize): Argument now 'const'.
4052 (value_bitpos): Likewise.
4053 (value_type): Likewise.
4054 * valprint.h (val_print_array_elements): Update.
4055 * valprint.c (val_print): Add 'val' argument. Use
4056 valprint_check_validity.
4057 (valprint_check_validity): New function.
4058 (value_check_printable): Use value_entirely_optimized_out.
4059 (common_val_print): Update.
4060 (value_print): Likewise.
4061 (val_print_array_elements): Add 'val' argument.
4062 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4063 value_bits_valid. Reinit frame cache for lval_computed.
4064 * sh64-tdep.c (sh64_do_register): Update.
4065 * scm-valprint.c (scm_val_print): Add 'val' argument.
4066 * scm-lang.h (scm_val_print): Update.
4067 * python/python.h (apply_val_pretty_printer): Update.
4068 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4069 argument. Call set_value_component_location.
4070 * printcmd.c (print_scalar_formatted): Update.
4071 * p-valprint.c (pascal_val_print): Add 'val' argument.
4072 (pascal_object_print_value_fields): Likewise.
4073 (pascal_object_print_value): Likewise.
4074 (pascal_object_print_static_field): Update.
4075 * p-lang.h (pascal_val_print): Update.
4076 (pascal_object_print_value_fields): Update.
4077 * mt-tdep.c (mt_registers_info): Update.
4078 * mi/mi-main.c (get_register): Update.
4079 (mi_cmd_data_evaluate_expression): Use common_val_print.
4080 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4081 (m2_print_unbounded_array): Likewise.
4082 (m2_val_print): Likewise.
4083 * m2-lang.h (m2_val_print): Update.
4084 * language.h (struct language_defn) <la_val_print>: Add 'val'
4085 argument.
4086 (LA_VAL_PRINT): Likewise.
4087 * language.c (unk_lang_val_print): Add 'val' argument.
4088 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4089 (java_val_print): Likewise.
4090 * jv-lang.h (java_val_print): Add 'val' argument.
4091 * infcmd.c (default_print_registers_info): Update.
4092 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4093 (f77_print_array): Likewise.
4094 (f_val_print): Likewise.
4095 * f-lang.h (f_val_print): Add 'val' argument.
4096 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4097 value_bitpos.
4098 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4099 set_value_optimized_out.
4100 (write_pieced_value): Use value_bitsize and value_bitpos.
4101 <default>: Don't exit loop.
4102 (check_pieced_value_validity): New function.
4103 (pieced_value_funcs): Reference check_pieced_value_validity,
4104 check_pieced_value_invalid.
4105 (copy_pieced_value_closure): Update.
4106 (check_pieced_value_bits): New function.
4107 (check_pieced_value_invalid): New function.
4108 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4109 (d_val_print): Likewise.
4110 * d-lang.h (d_val_print): Update.
4111 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4112 (cp_print_value_fields_rtti): Likewise.
4113 (cp_print_value): Likewise.
4114 (cp_print_static_field): Update.
4115 * c-valprint.c (c_val_print): Add 'val' argument.
4116 (c_value_print): Update.
4117 * c-lang.h (c_val_print): Update.
4118 (cp_print_value_fields): Likewise.
4119 (cp_print_value_fields_rtti): Likewise.
4120 * ada-valprint.c (struct ada_val_print_args): Remove.
4121 (val_print_packed_array_elements): Add 'val' argument.
4122 (ada_val_print): Likewise. Rewrite.
4123 (ada_val_print_stub): Remove.
4124 (ada_val_print_array): Add 'val' argument.
4125 (ada_val_print_1): Likewise.
4126 (print_variant_part): Likewise.
4127 (ada_value_print): Update.
4128 (print_record): Add 'val' argument.
4129 (print_field_values): Likewise.
4130 * ada-lang.h (ada_val_print): Update.
4131
4132 2010-06-11 Tom Tromey <tromey@redhat.com>
4133
4134 * vec.h (VEC_cleanup): New macro.
4135 (DEF_VEC_ALLOC_FUNC_I): Update.
4136 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4137 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4138 * dwarf2loc.c (struct axs_var_loc): Remove.
4139 (unimplemented): New function.
4140 (translate_register): Likewise.
4141 (access_memory): Likewise.
4142 (compile_dwarf_to_ax): Likewise.
4143 (dwarf2_tracepoint_var_loc): Remove.
4144 (dwarf2_tracepoint_var_access): Likewise.
4145 (dwarf2_tracepoint_var_ref): Likewise.
4146 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4147 (loclist_tracepoint_var_ref): Likewise.
4148 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4149 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4150 require_composition. No longer static.
4151 (execute_stack_op): Update.
4152 * ax-gdb.h (trace_kludge): Declare.
4153
4154 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4155
4156 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4157 (should_be_inserted): Return zero also on NULL OWNER.
4158 (breakpoint_program_space_exit): New OWNER comment.
4159 (insert_breakpoint_locations): Extend comment for OWNER.
4160 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4161 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4162 New OWNER comment.
4163 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4164 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4165 (bpstat_check_location): New assert on OWNER.
4166 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4167 and B initializations to the code block. New assert on them.
4168 (print_one_breakpoint_location): New OWNER comment.
4169 (watchpoint_locations_match): Assert on OWNER.
4170 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4171 initializations to the code block. New assert on OWNER.
4172 (set_breakpoint_location_function): New assert on OWNER.
4173 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4174 (bp_location_compare, update_global_location_list)
4175 (update_global_location_list): New OWNER comment.
4176
4177 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4178
4179 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4180
4181 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4182
4183 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4184 (lin_thread_get_thread_signals): Remove prototype.
4185 (GET_THREAD_SIGNALS): Remove.
4186 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4187 * linux-thread-db.c (check_thread_signals): Directly call
4188 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4189
4190 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4191
4192 * gregset.h (GDB_FPXREGSET_T): Remove.
4193 (gdb_fpxregset_t): Likewise.
4194 (supply_fpxregset): Remove prototype.
4195 (fill_fpxregset): Likewise.
4196 * i386-linux-nat.c (supply_fpxregset): Remove.
4197 (fill_fpxregset): Likewise.
4198 (fetch_fpxregs): Inline supply_fpxregset call.
4199 (store_fpxregs): Inline fill_fpxregset call.
4200
4201 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4202 * config/i386/nm-linux.h: Remove file.
4203
4204 2010-06-09 Michael Snyder <msnyder@vmware.com>
4205
4206 * target.c (update_current_target): Fix spelling error in comment.
4207 (target_mourn_inferior): Fix spelling error in error message.
4208
4209 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4210
4211 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4212 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4213
4214 2010-06-08 Michael Snyder <msnyder@vmware.com>
4215
4216 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4217
4218 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4219
4220 * configure.ac <"${have_libpython}" != no>: New workaround of
4221 python#4434.
4222 * configure: Regenerate.
4223
4224 2010-06-08 Hui Zhu <teawater@gmail.com>
4225
4226 * record.c (record_wait): Move signal out of replay code.
4227
4228 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4229
4230 Fix PR 10640.
4231 * dwarf2-frame.c (no_dwarf_call): New function.
4232 (execute_stack_op): Set CTX->DWARF_CALL.
4233 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4234 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4235 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4236 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4237 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4238 (needs_frame_dwarf_call): New function.
4239 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4240 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4241 Update the comment. Move variables die, offset and error call to ...
4242 (follow_die_ref): ... a new function.
4243 (dwarf2_fetch_die_location_block): New function.
4244 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4245
4246 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4247
4248 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4249 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4250 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4251 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4252 this change.
4253 (struct needs_frame_baton): New field per_cu.
4254 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4255 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4256
4257 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4258
4259 * cp-support.c (make_symbol_overload_list_namespace): Only search
4260 static and global blocks.
4261 (make_symbol_overload_list_block): New function.
4262 (make_symbol_overload_list): Separate namespace search from block
4263 search.
4264 (make_symbol_overload_list_qualified): Use
4265 make_symbol_overload_list_block.
4266
4267 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4268
4269 * value.h: Created oload_search_type enum.
4270 (find_overload_match): Use oload_search_type enum.
4271 * valops.c (find_overload_match): Support combined member and
4272 non-member search.
4273 * eval.c (evaluate_subexp_standard): Calls to
4274 find_overload_match now use oload_search_type enum.
4275 (oload_method_static): Verify index is a proper value.
4276 * valarith.c (value_user_defined_cpp_op): Search for and handle
4277 both member and non-member operators.
4278 (value_user_defined_cpp_op): New function.
4279 (value_user_defined_op): New function.
4280 (value_x_unop): Use value_user_defined_op.
4281 (value_x_binop): Ditto.
4282 * cp-support.c (make_symbol_overload_list_using): Added block
4283 iteration.
4284 Add check for namespace aliases and imported declarations.
4285
4286 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4287
4288 * breakpoint.h (owner): Extend the comment.
4289
4290 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4291
4292 Clear stale specific bp_location from former whole breakpoint.
4293 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4294 code ...
4295 (free_bp_location): ... here. Rename there the called function to
4296 bpstat_remove_bp_location_callback.
4297 (bpstat_remove_breakpoint_callback): Rename to ...
4298 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4299 to struct bp_location. Change the called function to
4300 bpstat_remove_bp_location. Create new declaration for the function.
4301 (bpstat_remove_breakpoint): Rename to ...
4302 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4303 code for the new parameter type.
4304
4305 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4306
4307 * README: Make version-agnostic.
4308
4309 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4310
4311 Fix duplicate types for single DIE.
4312 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4313 set_die_type.
4314 (read_array_type): Remove type initialization. Recheck get_die_type
4315 after initial die_type. Move set_die_type before set_descriptive_type.
4316 (read_set_type): New variable domain_type. Recheck get_die_type after
4317 initial die_type. Move attr initialization later.
4318 (read_tag_pointer_type, read_tag_reference_type): New variable
4319 target_type. Recheck get_die_type after initial die_type.
4320 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4321 die_type and die_containing_type.
4322 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4323 Recheck get_die_type after initial die_type.
4324 (read_subrange_type): Recheck get_die_type after initial die_type.
4325 Move set_die_type before set_descriptive_type.
4326 (set_die_type): Extend the function comment. Call complaint if DIE has
4327 some type already set.
4328
4329 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4330
4331 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4332 for current naming of thread groups (iN, not N).
4333
4334 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4335
4336 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4337 * parse.c (operator_length): Likewise.
4338 (operator_length_standard): Likewise.
4339 * parser-defs.h (operator_length): Likewise.
4340 (operator_length_standard): Likewise.
4341 (struct exp_descriptor <operator_length>): Likewise.
4342
4343 2010-06-04 Doug Evans <dje@google.com>
4344
4345 Add support for enabling/disabling individual pretty-printers.
4346 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4347 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4348 * python/python.c (gdbpy_enabled_cst): Define.
4349 (_initialize_python): Initialize gdbpy_enabled_cst.
4350 * NEWS: Add entry.
4351
4352 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4353
4354 * breakpoint.c (update_global_location_list): Fix comment typo.
4355
4356 2010-06-04 Hui Zhu <teawater@gmail.com>
4357
4358 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4359
4360 2010-06-03 Doug Evans <dje@google.com>
4361
4362 * configure.ac: Don't fail if python is unusable when
4363 configured with --with-python=auto.
4364 * configure: Regenerate.
4365
4366 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4367
4368 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4369
4370 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4371
4372 * valprint.h (get_array_bounds): Change low and high parameter types
4373 to LONGEST *.
4374 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4375 compute bounds.
4376 (val_print_array_elements): Adapt to change above.
4377 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4378 * p-valprint.c (pascal_val_print): Likewise.
4379
4380 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4381
4382 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4383 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4384 .F08.
4385
4386 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4387
4388 Support DW_TAG_module as separate namespaces.
4389 * dwarf2read.c (typename_concat): New parameter physname.
4390 (read_module_type): New function and declaration.
4391 (scan_partial_symbols): Scan also DW_TAG_module children.
4392 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4393 to typename_concat backward compatible physname value 0.
4394 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4395 backward compatible physname value 0.
4396 (add_partial_module, read_module): Remove FIXME comment.
4397 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4398 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4399 DIEs under DW_TAG_module.
4400 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4401 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4402 && physname and return there instead of just setting NAME. Extend
4403 the main block for language_fortran. Pass physname parameter to the
4404 typename_concat call.
4405 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4406 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4407 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4408 missing from SYMBOL_SET_NAMES in the language_fortran case.
4409 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4410 variables.
4411 (read_type_die) <DW_TAG_module>: New.
4412 (MAX_SEP_LEN): Increase to 7.
4413 (typename_concat): New parameter physname. New variable lead. Support
4414 also language_fortran.
4415 * f-exp.y (yylex): Consider : also as a symbol name character class.
4416 * f-lang.c: Include cp-support.h.
4417 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4418 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4419 f_word_break_characters and f_make_symbol_completion_list.
4420 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4421 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4422 * symtab.c (symbol_init_language_specific): Support language_fortran.
4423 (symbol_find_demangled_name): New comment on language_fortran.
4424 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4425 for language_fortran.
4426 (lookup_symbol_aux_local): Check imports also for language_fortran.
4427 (default_make_symbol_completion_list): Rename to ...
4428 (default_make_symbol_completion_list_break_on): ... this name. New
4429 parameter break_on, use it.
4430 (default_make_symbol_completion_list): New stub.
4431 * symtab.h (default_make_symbol_completion_list_break_on): New
4432 prototype.
4433
4434 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4435
4436 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4437 to error.
4438
4439 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4440
4441 * dwarf2read.c (typename_concat): Add const to the variable sep.
4442
4443 2010-06-02 Tom Tromey <tromey@redhat.com>
4444
4445 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4446 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4447 type is const. Add 'def' argument. Add missing operators, remove
4448 unhandled ones.
4449 (decode_locdesc): Update.
4450 (dwarf2_always_disassemble): New global.
4451 (show_dwarf2_always_disassemble): New function.
4452 (_initialize_dwarf2_read): Add always-disassemble.
4453 (dwarf2_per_cu_offset_size): New function.
4454 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4455 (piece_end_p): New function.
4456 (locexpr_describe_location_piece): Replace 'size' argument with
4457 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4458 some constants. Remove errors.
4459 (disassemble_dwarf_expression): New function.
4460 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4461 Add 'offset_size' argument.
4462 (loclist_describe_location): Change output formatting.
4463 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4464
4465 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4466
4467 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4468 anonymous type case.
4469
4470 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4471
4472 * dwarf2read.c (read_subrange_type): Handle missing base type
4473 according to Dwarf-2 specifications.
4474
4475 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4476
4477 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4478 BINOP_EXCL.
4479 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4480 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4481 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4482 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4483 UNOP_CHMAX, UNOP_CHMIN.
4484 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4485 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4486 UNOP_CHMIN>: Remove opcodes.
4487
4488 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4489
4490 * dwarf2read.c (read_func_scope): Do not complain for
4491 external function if bounds are not found.
4492
4493 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4494
4495 * NEWS: Mention gdbserver fast tracepoints support.
4496
4497 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4498
4499 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4500 New macros.
4501 (windows_set_console_info): New function.
4502 (windows_create_inferior): Call windows_set_console_info
4503 if NEW_CONSOLE is true.
4504 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4505 (_initialize_loadable): Initialize GetConsoleFontSize and
4506 GetCurrentConsoleFont.
4507
4508 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4509
4510 * Makefile.in (RDYNAMIC): New.
4511 (SFILES): Add proc-service.list.
4512 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4513 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4514 * config/arm/linux.mh: Likewise.
4515 * config/i386/linux.mh: Likewise.
4516 * config/i386/linux64.mh: Likewise.
4517 * config/ia64/linux.mh: Likewise.
4518 * config/m32r/linux.mh: Likewise.
4519 * config/m68k/linux.mh: Likewise.
4520 * config/mips/linux.mh: Likewise.
4521 * config/pa/linux.mh: Likewise.
4522 * config/powerpc/linux.mh: Likewise.
4523 * config/powerpc/ppc64-linux.mh: Likewise.
4524 * config/s390/s390.mh: Likewise.
4525 * config/sparc/linux.mh: Likewise.
4526 * config/sparc/linux64.mh: Likewise.
4527 * config/xtensa/linux.mh: Likewise.
4528 * configure.ac: New RDYNAMIC on native host and GCC.
4529 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4530 * configure: Regenerate.
4531 * proc-service.list: New.
4532
4533 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4534
4535 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4536 CONTENT.
4537
4538 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4539
4540 * linux-nat.c (linux_nat_wait_1): Do not call
4541 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4542 TARGET_WAITKIND_SIGNALLED.
4543
4544 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4545
4546 * ada-lang.c (ada_inferior_data): New struct.
4547 (ada_inferior_data): New static global.
4548 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4549 (ada_get_tsd_type): New functions.
4550 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4551 to look the tsd type up.
4552 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4553 event. Set ada_inferior_data.
4554
4555 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4556
4557 * remote.c (unpack_varlen_hex): Remove forward declaration.
4558 (remote_console_output): Make static, and add forward declaration.
4559 * remote.h: Drop FIXME comment.
4560 (unpack_varlen_hex): Declare.
4561 (remote_console_output, remote_cisco_objfile_relocate)
4562 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4563 Delete declarations.
4564 * tracepoint.c: Include "remote.h".
4565 (unpack_varlen_hex): Delete declaration.
4566
4567 2010-05-27 Tom Tromey <tromey@redhat.com>
4568
4569 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4570 (allocate_piece_closure): Initialize refc.
4571 (copy_pieced_value_closure): Use refc.
4572 (free_pieced_value_closure): Likewise.
4573
4574 2010-05-27 Tom Tromey <tromey@redhat.com>
4575
4576 * arm-tdep.c (push_stack_item): 'contents' now const.
4577 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4578 value_contents_writeable. Introduce new temporary.
4579
4580 2010-05-27 Tom Tromey <tromey@redhat.com>
4581
4582 * findcmd.c (parse_find_args): Use value_contents, not
4583 value_contents_raw.
4584
4585 2010-05-27 Tom Tromey <tromey@redhat.com>
4586
4587 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4588 const. Use value_contents, not value_contents_writeable.
4589
4590 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4591
4592 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4593 by call to value_contents.
4594
4595 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4596
4597 * MAINTAINERS: Add myself for write after approval privileges.
4598
4599 2010-05-26 Doug Evans <dje@google.com>
4600
4601 Allow python to find its files if moved from original location.
4602 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4603 (GDB_AC_WITH_DIR): Call it.
4604 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4605 python installation directory.
4606 * config.in: Regenerate.
4607 * configure: Regenerate.
4608 * defs.h (python_libdir): Declare.
4609 * main.c (python_libdir): Define.
4610 (captured_main): Initialize python_libdir.
4611 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4612 call Py_SetProgramName to make sure python can find its libraries
4613 and modules.
4614
4615 * configure.ac: Try to use python's distutils to fetch compilation
4616 parameters.
4617 * configure: Regenerate.
4618 * python/python-config.py: New file.
4619
4620 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4621
4622 * ser-tcp.c (net_open): Check error return from socket() call by its
4623 equality to -1 not by it being negative.
4624 (net_close): Likewise.
4625
4626 2010-05-26 Pedro Alves <pedro@codesourcery.com>
4627
4628 * NEWS: Mention the `qRelocInsn' feature.
4629 * gdbarch.sh (relocate_instruction): New.
4630 * amd64-tdep.c (rip_relative_offset): New.
4631 (append_insns): New.
4632 (amd64_relocate_instruction): New.
4633 (amd64_init_abi): Install it.
4634 * i386-tdep.c (append_insns): New.
4635 (i386_relocate_instruction): New.
4636 (i386_gdbarch_init): Install it.
4637 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4638 * gdbarch.h, gdbarch.c: Regenerate.
4639
4640 2010-05-26 Tom Tromey <tromey@redhat.com>
4641
4642 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4643 (struct dwarf2_loclist_baton) <data>: Likewise.
4644 * dwarf2loc.c (find_location_expression): Constify return type.
4645 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4646 (dwarf2_loc_desc_needs_frame): Likewise.
4647 (loclist_read_variable): Constify.
4648 (loclist_describe_location): Likewise.
4649 (loclist_tracepoint_var_ref): Likewise.
4650
4651 2010-05-25 Tom Tromey <tromey@redhat.com>
4652
4653 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4654 (dwarf_expr_frame_base_1): Likewise.
4655 (read_pieced_value): Update.
4656 (needs_frame_frame_base): Constify.
4657 (dwarf2_tracepoint_var_loc): Likewise.
4658 (dwarf2_tracepoint_var_access): Likewise.
4659 (locexpr_describe_location_piece): Likewise.
4660 (locexpr_describe_location_1): Likewise.
4661 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4662 Constify.
4663 (data): Now const.
4664 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4665 (dwarf_expr_eval, read_uleb128, read_sleb128)
4666 (dwarf2_read_address): Update.
4667 * dwarf2expr.c (dwarf_expr_eval): Constify.
4668 (read_uleb128): Likewise.
4669 (read_sleb128): Likewise.
4670 (dwarf2_read_address): Likewise.
4671 (require_composition): Likewise.
4672 (execute_stack_op): Likewise.
4673 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4674 "const gdb_byte *".
4675 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4676 Now const.
4677 (no_get_frame_base): Constify.
4678 (execute_stack_op): Likewise.
4679 (execute_cfa_program): Likewise.
4680 (read_encoded_value): Likewise.
4681
4682 2010-05-25 Doug Evans <dje@google.com>
4683
4684 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4685
4686 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4687 * event-loop.c: ... here.
4688 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4689 `error' for clarity.
4690 (tui_getc): Pass correct value for `error' parameter to
4691 tui_readline_output.
4692
4693 Add python gdb.GdbError and gdb.string_to_argv.
4694 * NEWS: Document them.
4695 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4696 the exception is gdb.GdbError. Print a second traceback if there's
4697 an error computing the error message.
4698 (gdbpy_string_to_argv): New function.
4699 * python/py-utils.c (gdbpy_obj_to_string): New function.
4700 (gdbpy_exception_to_string): New function.
4701 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4702 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4703 (gdbpy_gdberror_exc): Declare.
4704 * python/python.c (gdbpy_gdberror_exc): New global.
4705 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4706 gdb.GdbError.
4707 (GdbMethods): Add string_to_argv.
4708
4709 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4710
4711 * windows-nat.c (display_selector): Call GetLastError to give better
4712 failure explanation.
4713
4714 2010-05-24 Pedro Alves <pedro@codesourcery.com>
4715
4716 * config.in: Regenerate.
4717
4718 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4719
4720 Code cleanup.
4721 * target.c (push_target): Return only void. Remove the return value
4722 comment.
4723 * target.h (push_target): Return only void.
4724
4725 2010-05-23 Pedro Alves <pedro@codesourcery.com>
4726
4727 Update gnulib from latest git.
4728 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4729
4730 * gnulib/memcmp.c: Removed.
4731 * gnulib/memchr.valgrind: New.
4732 * gnulib/stddef.in.h: New.
4733 * gnulib/Makefile.am: Updated.
4734 * gnulib/memchr.c: Updated.
4735 * gnulib/memmem.c: Updated.
4736 * gnulib/stdint.in.h: Updated.
4737 * gnulib/str-two-way.h: Updated.
4738 * gnulib/string.in.h: Updated.
4739 * gnulib/wchar.in.h: Updated.
4740
4741 * gnulib/extra/link-warning.h: Removed.
4742 * gnulib/extra/c++defs.h: New.
4743 * gnulib/extra/warn-on-use.h: New.
4744 * gnulib/extra/arg-nonnull.h: Updated.
4745
4746 * gnulib/m4/extensions.m4: Updated.
4747 * gnulib/m4/gnulib-cache.m4: Updated.
4748 * gnulib/m4/gnulib-common.m4: Updated.
4749 * gnulib/m4/gnulib-comp.m4: Updated.
4750 * gnulib/m4/gnulib-tool.m4: Updated.
4751 * gnulib/m4/include_next.m4: Updated.
4752 * gnulib/m4/longlong.m4: Updated.
4753 * gnulib/m4/memchr.m4: Updated.
4754 * gnulib/m4/memmem.m4: Updated.
4755 * gnulib/m4/stdint.m4: Updated.
4756 * gnulib/m4/string_h.m4: Updated.
4757 * gnulib/m4/memcmp.m4: Removed.
4758 * gnulib/m4/onceonly_2_57.m4: Removed.
4759 * gnulib/m4/00gnulib.m4: New.
4760 * gnulib/m4/mmap-anon.m4: New.
4761 * gnulib/m4/multiarch.m4: New.
4762 * gnulib/m4/onceonly.m4: New.
4763 * gnulib/m4/stddef_h.m4: New.
4764 * gnulib/m4/warn-on-use.m4: New.
4765 * gnulib/m4/wchar.m4: Removed.
4766 * gnulib/m4/wchar_h.m4: New.
4767 * gnulib/m4/wchar_t.m4: New.
4768 * gnulib/m4/wint_t.m4: New.
4769
4770 * aclocal.m4: Regenerate.
4771 * config.in: Likewise.
4772 * configure: Likewise.
4773 * gnulib/Makefile.in: Likewise.
4774
4775 2010-05-21 Tom Tromey <tromey@redhat.com>
4776
4777 * dwarf2loc.c (extract_bits_primitive): New function.
4778 (extract_bits): Likewise.
4779 (insert_bits): Likewise.
4780 (copy_bitwise): Likewise.
4781 (read_pieced_value): Do all operations in bits.
4782 (write_pieced_value): Likewise.
4783 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4784 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4785 Always use xrealloc to resize piece array.
4786 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4787 <DW_OP_piece>: Update.
4788 <DW_OP_bit_piece>: New case.
4789
4790 2010-05-21 Tom Tromey <tromey@redhat.com>
4791
4792 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4793 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4794 * dwarf2expr.h (enum dwarf_value_location)
4795 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4796 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4797 (add_piece): Handle empty piece.
4798 (execute_stack_op) <DW_OP_piece>: Handle
4799 DWARF_VALUE_OPTIMIZED_OUT.
4800
4801 2010-05-21 Tom Tromey <tromey@redhat.com>
4802
4803 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4804 evaluate_subexp, not evaluate_subexp_with_coercion.
4805
4806 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4807
4808 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4809 attribute.
4810
4811 2010-05-21 Tom Tromey <tromey@redhat.com>
4812
4813 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4814 offset.
4815 (write_pieced_value): Likewise.
4816
4817 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4818
4819 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4820 and DW_TAG_volatile_type.
4821 (new_symbol): Likewise.
4822
4823 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4824
4825 * p-valprint.c (pascal_val_print): Call get_array_bounds
4826 to obtain the number of elements in an array.
4827
4828 2010-05-19 Doug Evans <dje@google.com>
4829
4830 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4831
4832 * python.c (source_python_script): Add comment.
4833 (source_python_script_for_objfile): Remove unnecessary call to
4834 gdbpy_print_stack.
4835
4836 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4837 Sergio Durigan Junior <sergiodj@redhat.com>
4838
4839 Code cleanup.
4840 * parse.c (exp_iterate): Use operator_length wrapper function.
4841
4842 2010-05-18 Michael Snyder <msnyder@vmware.com>
4843
4844 * ada-lang.c: White space.
4845 * ada-typeprint.c: White space.
4846 * ada-valprint.c: White space.
4847 * addrmap.c: White space.
4848 * auxv.c: White space.
4849 * ax-gdb.c: White space.
4850
4851 2010-05-18 Hui Zhu <teawater@gmail.com>
4852
4853 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4854 for oldfp.
4855 (inferior_call_waitpid): Move make_cleanup out of check.
4856 Check the return of waitpid.
4857 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4858
4859 2010-05-17 Michael Snyder <msnyder@vmware.com>
4860
4861 * tui/tui.c: White space.
4862 * tui/tui-data.c: White space.
4863 * tui/tui-disasm.c: White space.
4864 * tui/tui-file.c: White space.
4865 * tui/tui-interp.c: White space.
4866 * tui/tui-main.c: White space.
4867 * tui/tui-out.c: White space.
4868 * tui/tui-regs.c: White space.
4869 * tui/tui-source.c: White space.
4870 * tui/tui-stack.c: White space.
4871 * tui/tui-win.c: White space.
4872 * tui/tui-winsource.c: White space.
4873
4874 * procfs.c: White space.
4875
4876 * python/py-auto-load.c: White space.
4877 * python/py-block.c: White space.
4878 * python/py-breakpoint.c: White space.
4879 * python/py-cmd.c: White space.
4880 * python/py-function.c: White space.
4881 * python/py-lazy-string.c: White space.
4882 * python/py-objfile.c: White space.
4883 * python/py-param.c: White space.
4884 * python/py-prettyprint.c: White space.
4885 * python/py-progspace.c: White space.
4886 * python/py-symtab.c: White space.
4887 * python/python.c: White space.
4888 * python/py-type.c: White space.
4889 * python/py-utils.c: White space.
4890 * python/py-value.c: White space.
4891
4892 * mi/mi-cmd-break.c: White space.
4893 * mi/mi-cmd-env.c: White space.
4894 * mi/mi-cmds.c: White space.
4895 * mi/mi-cmd-stack.c: White space.
4896 * mi/mi-cmd-var.c: White space.
4897 * mi/mi-console.c: White space.
4898 * mi/mi-getopt.c: White space.
4899 * mi/mi-interp.c: White space.
4900 * mi/mi-main.c: White space.
4901 * mi/mi-out.c: White space.
4902 * mi/mi-parse.c: White space.
4903
4904 * cli/cli-cmds.c: White space.
4905 * cli/cli-decode.c: White space.
4906 * cli/cli-dump.c: White space.
4907 * cli/cli-interp.c: White space.
4908 * cli/cli-logging.c: White space.
4909 * cli/cli-script.c: White space.
4910 * cli/cli-setshow.c: White space.
4911
4912 * valarith.c: White space.
4913 * valops.c: White space.
4914 * valprint.c: White space.
4915 * value.c: White space.
4916 * varobj.c: White space.
4917 * xcoffread.c: White space.
4918 * xml-support.c: White space.
4919 * xml-tdesc.c: White space.
4920
4921 2010-05-17 Andreas Schwab <schwab@redhat.com>
4922
4923 PR gdb/11092
4924 * c-lang.c (c_printstr): Compute real length of NUL terminated
4925 string at first.
4926
4927 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4928
4929 * parse.c (parse_exp_in_context): When block is not NULL, use
4930 its associated language to parse the expression instead of
4931 the current_language.
4932
4933 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4934
4935 * jv-lang.c (java_lookup_class): Remove commented out code.
4936 (type_from_class): Likewise.
4937 (java_op_print_tab): Remove commented-out elements.
4938
4939 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4940
4941 * ada-lang.c (to_fixed_range_type): The the raw index type as
4942 argument instead of the raw type name. Remove orig_type parameter.
4943 Update calls throughout.
4944 (ada_fixup_array_indexes_type): New function.
4945 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4946 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4947 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4948 Remove name parameter.
4949 (print_array_type): Add call to ada_fixup_array_indexes_type.
4950 Update calls to print_range_type.
4951 (ada_print_type): Update calls to print_range_type.
4952
4953 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4954
4955 * dwarf2read.c (read_set_type): Set type length if
4956 DW_AT_byte_size attribute is present.
4957
4958 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4959
4960 * p-valprint.c (pascal_val_print): Handle set type if range limits
4961 are undefined but size is known.
4962
4963 2010-05-17 Pedro Alves <pedro@codesourcery.com>
4964
4965 * procfs.c: Reformat.
4966
4967 2010-05-16 Michael Snyder <msnyder@vmware.com>
4968
4969 * target.c: White space.
4970 * target-descriptions.c: White space.
4971 * target-memory.c: White space.
4972 * thread.c: White space.
4973 * top.c: White space.
4974 * tracepoint.c: White space.
4975 * trad-frame.c: White space.
4976 * tramp-frame.c: White space.
4977 * ui-file.c: White space.
4978 * ui-out.c: White space.
4979 * user-regs.c: White space.
4980 * utils.c: White space.
4981
4982 * scm-exp.c: White space.
4983 * scm-lang.c: White space.
4984 * scm-valprint.c: White space.
4985 * sentinel-frame.c: White space.
4986 * ser-base.c: White space.
4987 * ser-go32.c: White space.
4988 * serial.c: White space.
4989 * ser-mingw.c: White space.
4990 * ser-pipe.c: White space.
4991 * ser-tcp.c: White space.
4992 * ser-unix.c: White space.
4993 * solib.c: White space.
4994 * solib-darwin.c: White space.
4995 * solib-frv.c: White space.
4996 * solib-irix.c: White space.
4997 * solib-osf.c: White space.
4998 * solib-pa64.c: White space.
4999 * solib-som.c: White space.
5000 * solib-spu.c: White space.
5001 * solib-svr4.c: White space.
5002 * solib-target.c: White space.
5003 * source.c: White space.
5004 * stabsread.c: White space.
5005 * stack.c: White space.
5006 * std-regs.c: White space.
5007 * symfile.c: White space.
5008 * symmisc.c: White space.
5009 * symtab.c: White space.
5010
5011 2010-05-16 Michael Snyder <msnyder@vmware.com>
5012
5013 * source.c (_initialize_source): Add "rev" as an abbreviation
5014 for the "reverse-search" command.
5015
5016 2010-05-16 Michael Snyder <msnyder@vmware.com>
5017
5018 * record.c: White space.
5019 * regcache.c: White space.
5020 * reggroups.c: White space.
5021 * remote-fileio.c: White space.
5022 * remote-m32r-sdi.c: White space.
5023 * remote-mips.c: White space.
5024 * remote-sim.c: White space.
5025 * remote.c: White space.
5026 (process_g_packet): Remove orphan braces.
5027
5028 2010-05-15 Michael Snyder <msnyder@vmware.com>
5029
5030 * parse.c: White space.
5031 * p-lang.c: White space.
5032 * posix-hdep.c: White space.
5033 * printcmd.c: White space.
5034 * progspace.c: White space.
5035 * prologue-value.c: White space.
5036 * psymtab.c: White space.
5037 * p-typeprint.c: White space.
5038 * p-valprint.c: White space.
5039
5040 * objc-lang.c: White space.
5041 * objfiles.c: White space.
5042 * observer.c: White space.
5043 * osabi.c: White space.
5044 * osdata.c: White space.
5045
5046 * m2-lang.c: White space.
5047 * m2-valprint.c: White space.
5048 * macrocmd.c: White space.
5049 * macroexp.c: White space.
5050 * macroscope.c: White space.
5051 * macrotab.c: White space.
5052 * main.c: White space.
5053 * maint.c: White space.
5054 * mdebugread.c: White space.
5055 * memattr.c: White space.
5056 * minsyms.c: White space.
5057 * monitor.c: White space.
5058
5059 2010-05-14 Michael Snyder <msnyder@vmware.com>
5060
5061 * jv-lang.c: White space.
5062 * jv-typeprint.c: White space.
5063 * jv-valprint.c: White space.
5064 * language.c: White space.
5065 * libunwind-frame.c: White space.
5066 * linespec.c: White space.
5067 * linux-nat.c: White space.
5068 * linux-record.c: White space.
5069 * linux-thread-db.c: White space.
5070
5071 * infcall.c: White space.
5072 * inf-child.c: White space.
5073 * infcmd.c: White space.
5074 * inferior.c: White space.
5075 * inf-loop.c: White space.
5076 * inflow.c: White space.
5077 * inline-frame.c: White space.
5078 * interps.c: White space.
5079
5080 * gcore.c: White space.
5081 * gdb.c: White space.
5082 * gdbtypes.c: White space.
5083 * gnu-nat.c: White space.
5084 * gnu-v2-abi.c: White space.
5085 * gnu-v3-abi.c: White space.
5086
5087 * findcmd.c: White space.
5088 * findvar.c: White space.
5089 * fork-child.c: White space.
5090 * frame-base.c: White space.
5091 * frame.c: White space.
5092 * frame-unwind.c: White space.
5093 * f-valprint.c: White space.
5094
5095 * elfread.c: White space.
5096 * environ.c: White space.
5097 * eval.c: White space.
5098 * event-loop.c: White space.
5099 * event-top.c: White space.
5100 * exceptions.c: White space.
5101 * exec.c: White space.
5102 * expprint.c: White space.
5103
5104 * dbxread.c: White space.
5105 * dcache.c: White space.
5106 * disasm.c: White space.
5107 * doublest.c: White space.
5108 * dsrec.c: White space.
5109 * dummy-frame.c: White space.
5110 * dwarf2expr.c: White space.
5111 * dwarf2-frame.c: White space.
5112 * dwarf2loc.c: White space.
5113 * dwarf2read.c: White space.
5114
5115 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5116
5117 PR python/11482
5118
5119 * python/py-value.c (valpy_hash): New function.
5120 (value_object_type): Register valpy_hash.
5121
5122 2010-05-14 Hui Zhu <teawater@gmail.com>
5123 Michael Snyder <msnyder@vmware.com>
5124
5125 * linux-fork.c (gdbthread.h): New include.
5126 (fork_info): Add parent_ptid.
5127 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5128 functions.
5129 (delete_checkpoint_command): Call inferior_call_waitpid.
5130 (checkpoint_command): Set parent_ptid.
5131
5132 2010-05-13 Michael Snyder <msnyder@vmware.com>
5133
5134 * dictionary.c: Re-indent to GNU coding standard.
5135
5136 * charset.c: White space.
5137 * c-lang.c: White space.
5138 * cli-out.c: White space.
5139 * coffread.c: White space.
5140 * complaints.c: White space.
5141 * completer.c: White space.
5142 * corefile.c: White space.
5143 * corelow.c: White space.
5144 * cp-abi.c: White space.
5145 * cp-namespace.c: White space.
5146 * cp-support.c: White space.
5147 * cp-valprint.c: White space.
5148 * c-typeprint.c: White space.
5149 * c-valprint.c: White space.
5150 * blockframe.c: White space.
5151 * breakpoint.c: White space.
5152 * buildsym.c: White space.
5153 * blockframe.c: White space.
5154 * bcache.c: White space.
5155 * gdbarch.sh: White space, add blank lines.
5156 * arch-utils.c: Ditto.
5157 * gdbarch.c: Regenerate.
5158 * frame.c: White space, add blank lines.
5159 * stack.c: White space, add blank lines.
5160 (initialize_stack): Remove long-dead code.
5161
5162 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5163
5164 Code cleanup.
5165 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5166 (locexpr_read_variable, loclist_read_variable): Update the callers.
5167
5168 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5169
5170 Code cleanup.
5171 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5172 Remove check of NULL returned by tag_type_to_type.
5173 (die_containing_type): Remove variable type. Remove type_die variable
5174 initialization. Remove check of NULL returned by tag_type_to_type.
5175
5176 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5177
5178 PR exp/11530.
5179 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5180 names of unnamed structures or unions.
5181
5182 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5183
5184 * procfs.c (proc_watchpoint_address): New function.
5185 (procfs_stopped_by_watchpoint): Remove useless check after
5186 find_procinfo_or_die call.
5187 (procfs_stopped_data_address): New function.
5188 (procfs_use_watchpoints): Register new watchpoint related function.
5189
5190 2010-05-11 Tom Tromey <tromey@redhat.com>
5191
5192 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5193
5194 2010-05-10 Michael Snyder <msnyder@vmware.com>
5195
5196 * utils.c: White space cleanup.
5197
5198 2010-05-10 Tom Tromey <tromey@redhat.com>
5199
5200 * eval.c (ptrmath_type_p): Add 'lang' argument.
5201 (evaluate_subexp_standard): Update.
5202 (evaluate_subexp_with_coercion): Update.
5203 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5204
5205 2010-05-10 Michael Snyder <msnyder@vmware.com>
5206
5207 * utils.c (do_fclose_cleanup) Restore local variable.
5208
5209 2010-05-09 Doug Evans <dje@google.com>
5210
5211 * record.c (init_record_core_ops): Rename record_core to record-core.
5212
5213 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5214
5215 Implement task switching on pa-hpux.
5216 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5217 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5218
5219 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5220
5221 * valops.c (find_overload_match): Add missing i18n markup.
5222
5223 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5224
5225 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5226
5227 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5228
5229 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5230 list for the obconcat call.
5231 * mdebugread.c (parse_symbol): Likewise.
5232 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5233 Likewise.
5234 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5235 New variable ap. Remove variables len and val.
5236 * symfile.h (obconcat): Likewise for the prototype.
5237
5238 2010-05-07 Michael Snyder <msnyder@vmware.com>
5239
5240 * python/python.c (execute_gdb_command): Remove unused variables.
5241 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5242 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5243 Remove unused variable.
5244 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5245 (cmdpy_completer): Remove unused variable.
5246 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5247 * python/py-function.c (fnpy_call): Remove unused variable.
5248 * python/py-objfile.c (objfile_to_objfile_object):
5249 Remove unused variable.
5250 * python/py-param.c (parmpy_init): Remove unused variable.
5251 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5252 Remove unused variable.
5253 (gdbpy_default_visualizer): Remove unused variable.
5254 * python/py-progspace.c (pspace_to_pspace_object):
5255 Remove unused variable.
5256 * python/py-symtab.c (symtab_and_line_to_sal_object):
5257 Remove unused variable.
5258 * python/py-type.c (typy_template_argument):
5259 Remove unused variable.
5260 * python/py-value.c (valpy_string): Remove unused variable.
5261 (convert_value_from_python): Remove unused variables.
5262
5263 2010-05-07 Michael Snyder <msnyder@vmware.com>
5264
5265 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5266 and use it to compute variable 't1'.
5267
5268 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5269
5270 * ada-lang.c (assign_aggregate): Remove unused variable.
5271
5272 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5273
5274 PR C++/7943:
5275 * valops.c (find_overload_match): Handle fsym == NULL case.
5276 Add int no_adl argument.
5277 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5278 when appropriate.
5279 Add int no_adl argument.
5280 (find_oload_champ_namespace): Add int no_adl argument.
5281 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5282 expression.
5283 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5284 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5285 Evaluate arguments and use them to perform ADL lookup.
5286 Pass no_adl argument to find_overload_match.
5287 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5288 * cp-support.h: Added prototype for
5289 make_symbol_overload_list_namespace.
5290 * cp-support.c (make_symbol_overload_list_namespace): New function.
5291 (make_symbol_overload_list_adl_namespace): New function.
5292 (make_symbol_overload_list_adl): New function.
5293 (make_symbol_overload_list_using): Moved code to add function to
5294 overload set to make_symbol_overload_list_namespace.
5295 * c-exp.y: create UNKNOWN_CPP_NAME token.
5296 Add parse rule for ADL functions.
5297 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5298
5299 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5300
5301 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5302 sentinel.
5303
5304 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5305
5306 Implement task switching on solaris targets.
5307 * sol-thread.c (thread_db_find_thread_from_tid)
5308 (sol_get_ada_task_ptid): New functions.
5309 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5310
5311 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5312
5313 * remote.c (remote_query_supported_append): Use reconcat.
5314 (remote_query_supported): Install a cleanup. Use reconcat.
5315
5316 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5317
5318 * gdbarch.sh (qsupported): Delete.
5319 * gdbarch.h, gdbarch.c: Regenerate.
5320 * remote.c (remote_query_supported): Remove use of
5321 gdbarch_qsupported.
5322
5323 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5324
5325 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5326 function.
5327
5328 2010-05-06 Michael Snyder <msnyder@vmware.com>
5329
5330 * xml-support.c (xinclude_start_include): Delete unused variable.
5331 (xml_process_xincludes): Delete unused variable.
5332 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5333 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5334 (tdesc_find_arch_register): Delete unused variable.
5335 (tdesc_use_registers): Delete unused variable.
5336 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5337 * inferior.c (print_inferior): Delete unused variable.
5338 * record.c (record_open_1): Delete unused variable.
5339 (record_restore): Delete unused variable.
5340 (cmd_record_save): Delete unused variable.
5341 * gcore.c (derive_heap_segment): Delete unused variable.
5342 (objfile_find_memory_regions): Use unused variable.
5343 * jit.c (jit_inferior_init): Delete unused variable.
5344 * progspace.c (clone_program_space): Delete unused variable.
5345 (pspace_empty_p): Delete unused variable.
5346
5347 * frame-unwind.c (frame_unwind_find_by_frame):
5348 Delete unused variable.
5349 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5350 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5351 (method_name_from_physname): Delete unused variable.
5352 (cp_func_name): Delete unused variable.
5353 (cp_validate_operator): Delete unused variable.
5354 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5355 Delete unused variable.
5356 * trad-frame.c (trad_frame_get_prev_register):
5357 Delete unused variable.
5358 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5359
5360 * serial.c (serial_for_fd): Delete unused variable.
5361 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5362 * top.c (execute_command): Delete unused variable.
5363 (init_main): Delete unused variable.
5364 * utils.c (do_fclose_cleanup): Delete unused variable.
5365 (do_all_inferior_continuations): Delete unused variable.
5366 (initialize_utils): Delete unused variable.
5367 (internal_problem_mode): Delete unused global.
5368 * frame.c (get_prev_frame): Delete unused global.
5369 (get_frame_locals_address): Delete unused global.
5370 (get_frame_args_address): Delete unused global.
5371
5372 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5373 (pascal_type_print_varspec_prefix): Delete unused variable.
5374 * f-typeprint.c (f_type_print_base): Delete unused variable.
5375 (f_type_print_varspec_suffix): Delete unused variable.
5376 * m2-typeprint.c (m2_print_type): Delete unused variable.
5377 (m2_long_set): Delete unused variable.
5378 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5379 * d-valprint.c (dynamic_array_type): Delete unused variable.
5380 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5381 Delete unused variable.
5382 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5383 * m2-valprint.c (m2_val_print): Delete unused variable.
5384
5385 * ui-out.c (ui_out_field_int): Delete unused variable.
5386 (ui_out_field_fmt_int): Delete unused variable.
5387 * varobj.c (varobj_list_children): Delete unused variable.
5388 (varobj_set_value): Delete unused variable.
5389 (install_new_value_visualizer): Delete unused variable.
5390 (varobj_set_visualizer): Delete unused variable.
5391 (varobj_update): Delete unused variable.
5392 (varobj_editable_p): Delete unused variable.
5393 (c_value_of_root): Delete unused variable.
5394 (cplus_describe_child): Delete unused variable.
5395
5396 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5397 (decode_constrained_packed_array_type): Delete unused variable.
5398 (add_defn_to_vec): Delete unused variable.
5399 (symbol_completion_match): Delete unused variable.
5400 (value_tag_from_contents_and_address): Delete unused variable.
5401 (ada_evaluate_subexp): Delete unused variable.
5402 * c-lang.c (classify_type): Delete unused variable.
5403 * f-lang.c (f_printstr): Delete unused variable.
5404 * objc-lang.c (objc_printstr): Delete unused variable.
5405 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5406 * jv-lang.c (type_from_class): ifdef unused variable.
5407 (java_class_name_from_physname): Delete unused variable.
5408 * m2-lang.c (m2_printstr): Delete unused variable.
5409
5410 * objfiles.c (objfile_relocate): Delete unused variable.
5411 * maint.c (_initialize_maint_cmds): Delete unused variable.
5412 * demangle.c (_initialize_demangler): Delete unused variable.
5413 * corefile.c (reopen_exec_file): Delete unused variable.
5414 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5415 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5416
5417 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5418 * memattr.c (mem_delete): Delete unused variable.
5419 (invalidate_target_mem_regions): Delete unused variable.
5420 * mem-break.c (default_memory_insert_breakpoint):
5421 Delete unused variable.
5422 * target.c (target_get_osdata): Delete unused variable.
5423 * parse.c (length_of_subexp): Delete unused variable.
5424 (prefixify_subexp): Delete unused variable.
5425 (exp_iterate): Delete unused variable.
5426 * reverse.c (delete_bookmark_command): Delete unused variable.
5427
5428 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5429 * macroexp.c (gather_arguments): Delete unused variable.
5430 (substitute_args): Delete unused variable.
5431 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5432 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5433 (_initialize_gdbarch): Delete unused variable.
5434 * gdbarch.c, gdbarch.h: Regenerate.
5435 * arch-utils.c (initialize_current_architecture):
5436 Delete unused variable.
5437 (_initialize_gdbarch_utils): Delete unused variable.
5438 * gdbtypes.c (make_cv_type): Delete unused variable.
5439 (make_type_with_address_space): Delete unused variable.
5440
5441 * linespec.c (decode_compound): Delete unused variable.
5442 * dictionary.c (iterator_next_hashed): Delete unused variable.
5443 * infcall.c (call_function_by_hand): Delete unused variable.
5444 * infcmd.c (step_1): Delete unused variable.
5445 (registers_info): Delete unused variable.
5446 (attach_command): Delete unused variable.
5447 * infrun.c (follow_exec): Delete unused variable.
5448 (handle_step_into_function_backwards): Delete unused variable.
5449 (_initialize_infrun): Delete unused variable.
5450 * stack.c (parse_frame_specification_1): Delete unused variable.
5451 (frame_info): Delete unused variable.
5452 (backtrace_command_1): Delete unused variable.
5453 (catch_info): Delete unused variable.
5454
5455 * eval.c (evaluate_subexp_standard): Delete unused variable.
5456 * valops.c (value_cast_pointers): Delete unused variable.
5457 (value_dynamic_cast): Delete unused variable.
5458 (value_array): Delete unused variable.
5459 (find_overload_match): Delete unused variable.
5460 * valarith.c (value_subscript): Delete unused variable.
5461 (value_binop): Delete unused variable.
5462 * valprint.c (_initialize_valprint): Delete unused variable.
5463 * printcmd.c (print_command_1): Delete unused variable.
5464 (address_info): Delete unused variable.
5465 (printf_command): Delete unused variable.
5466
5467 * auxv.c (target_auxv_search): Delete unused variable.
5468 * blockframe.c (get_frame_block): Delete unused variable.
5469 * regcache.c (regcache_cpy): Delete unused variable.
5470 (regcache_cpy_no_passthrough): Delete unused variable.
5471 * charset.c (wchar_iterate): Delete unused variable.
5472 (find_charset_names): Delete unused variable.
5473 (_initialize_charset): Delete unused variable.
5474 * disasm.c (do_mixed_source_and_assembly):
5475 Delete unused variable.
5476 * source.c (set_default_source_symtab_and_line):
5477 Delete unused variable.
5478 (set_substitute_path_command): Delete unused variable.
5479 * value.c (preserve_values): Delete unused variable.
5480 (value_from_double): Delete unused variable.
5481
5482 2010-05-05 Michael Snyder <msnyder@vmware.com>
5483
5484 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5485 (find_last_source_symtab_from_partial): Delete unused variable.
5486 * symfile.c (place_section): Delete unused variable.
5487 (default_symfile_offsets): Delete unused variable.
5488 (get_debug_link_info): Delete unused variable.
5489 (find_separate_debug_file_by_debuglink): Delete unused variable.
5490 (add_symbol_file_command): Delete unused variable.
5491 (symfile_find_segment_sections): Delete unused variable.
5492 * symmisc.c (free_symtab): Delete unused variable.
5493 (dump_symtab_1): Delete unused variable.
5494 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5495 (find_pc_sect_symtab): Delete unused variable.
5496 (skip_prologue_using_lineinfo): Delete unused variable.
5497 (sources_info): Delete unused variable.
5498 (completion_list_add_name): Delete unused variable.
5499 (expand_line_sal): Delete unused variable.
5500
5501 * breakpoint.c (validate_commands_for_breakpoint):
5502 Delete unused variables.
5503 (insert_catchpoint): Delete unused variable.
5504 (update_watchpoint): Delete unused variable.
5505 (insert_bp_location): Delete unused variable.
5506 (insert_breakpoint_locations): Delete unused variable.
5507 (remove_breakpoint_1): Delete unused variable.
5508 (software_breakpoint_inserted_here_p): Delete unused variable.
5509 (watchpoints_triggered): Delete unused variable.
5510 (bpstat_check_watchpoint): Delete unused variable.
5511 (bpstat_stop_status): Delete unused variable.
5512 (print_one_breakpoint_location): Delete unused variable.
5513 (allocate_bp_location): Delete unused variable.
5514 (create_breakpoint): Delete unused variable.
5515 (watch_command_1): Delete unused variable.
5516 (catch_exception_command_1): Delete unused variable.
5517 (catch_ada_exception_command): Delete unused variable.
5518 (delete_breakpoint): Delete unused variable.
5519 (breakpoint_re_set_one): Delete unused variable.
5520 (do_enable_breakpoint): Delete unused variable.
5521
5522 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5523
5524 * amd64-tdep.c: Include disasm.h.
5525 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5526 (amd64_insn_length): Moved to disasm.c and renamed.
5527 (fixup_riprel): Adjust.
5528 * disasm.c (do_ui_file_delete): New.
5529 (gdb_insn_length): New.
5530 (gdb_buffered_insn_length_fprintf)
5531 (gdb_buffered_insn_length_init_dis)
5532 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5533 renamed.
5534 * disasm.h (gdb_insn_length): Declare.
5535 (gdb_buffered_insn_length): Declare.
5536
5537 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5538
5539 * remote.c (clear_threads_parsing_context): New.
5540 (remote_threads_info): Delete unused null_cleanup. Install a
5541 cleanup to clear the threads_parsing_context in case parsing
5542 throws.
5543
5544 2010-05-05 Michael Snyder <msnyder@vmware.com>
5545
5546 * c-exp.y (parse_string_or_char): Delete unused variable.
5547 (c_lex): Delete unused variable.
5548 * cp-name-parser.y (cpname_lex): Delete unused variable.
5549 * ada-exp.y (find_primitive_type): Delete unused variable.
5550 (write_var_or_type): Delete unused variable.
5551 * jv-exp.y (java_parse): Delete unused variable.
5552 (push_expression_name): Delete unused variable.
5553 * p-exp.y (pascal_lex): Delete unused variable.
5554
5555 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5556
5557 * remote.c (remote_threads_info): Really revert previous previous
5558 change.
5559
5560 2010-05-05 Michael Snyder <msnyder@vmware.com>
5561
5562 * elfread.c (elf_symtab_read): Delete unused variable.
5563 (find_separate_debug_file_by_buildid): Delete unused variables.
5564 (elf_symfile_read): Delete unused variable.
5565
5566 * coffread.c (coff_symfile_read): Delete unused variables.
5567
5568 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5569 (read_pe_exported_syms): Delete unused variable.
5570
5571 * stabsread.c (define_symbol): Delete unused variable.
5572
5573 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5574 (process_psymtab_comp_unit): Delete unused variable.
5575 (dwarf2_build_psymtabs_hard): Delete unused variable.
5576 (load_partial_comp_unit): Delete unused variable.
5577 (create_all_comp_units): Delete unused variable.
5578 (scan_partial_symbols): Delete unused variable.
5579 (add_partial_symbol): Delete unused variable.
5580 (add_partial_namespace): Delete unused variable.
5581 (add_partial_enumeration): Delete unused variable.
5582 (load_full_comp_unit): Delete unused variable.
5583 (process_full_comp_unit): Delete unused variable.
5584 (read_file_scope): Delete unused variable.
5585 (read_type_unit_scope): Delete unused variable.
5586 (process_structure_scope): Delete unused variable.
5587 (process_enumeration_scope): Delete unused variable.
5588 (read_tag_ptr_to_member_type): Delete unused variable.
5589 (read_typedef): Delete unused variable.
5590 (read_partial_die): Delete unused variable.
5591 (decode_locdesc): Delete unused variable.
5592 (zeroed_partial_die): Delete unused global variable.
5593
5594 * tui/tui-interp.c (_initialize_tui_interp):
5595 Delete unused variable.
5596 * tui/tui-regs.c tui_display_registers_from):
5597 Delete unused variable.
5598 (tui_check_register_values): Delete unused variable.
5599 (tui_register_format): Delete unused variable.
5600 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5601 * tui/tui-windata.c (tui_display_data_from_line):
5602 Delete unused variables.
5603 (tui_vertical_data_scroll): Delete unused variables.
5604
5605 2010-05-05 Michael Snyder <msnyder@vmware.com>
5606
5607 * remote.c (remote_threads_info): Revert questionable part of
5608 the previous change.
5609
5610 2010-05-05 Michael Snyder <msnyder@vmware.com>
5611
5612 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5613 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5614 (mi_cmd_var_list_children): Delete unused variable.
5615 (varobj_update_one): Delete unused variable.
5616 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5617 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5618 Delete unused variable.
5619 (mi_cmd_stack_list_variables): Delete unused variable.
5620 (list_args_or_locals): Delete unused variable.
5621 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5622 Delete unused variables.
5623 (mi_cmd_file_list_exec_source_files): Delete unused variable.
5624 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5625 Delete unused variable.
5626 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5627 (mi_cmd_interpreter_exec): Delete unused variable.
5628 (mi_on_normal_stop): Delete unused variable.
5629 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5630 (print_one_inferior): Delete unused variables.
5631 (mi_execute_command): Delete unused variable.
5632 (mi_cmd_execute): Delete unused variable.
5633 (timestamp): Delete unused variable.
5634
5635 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5636 (restore_binary_file): Delete unused variable.
5637 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5638 * cli/cli-script.c (define_command): Delete unused variables.
5639 (recurse_read_control_structure): Delete unused variable.
5640 (script_from_file): Delete unused variable.
5641 * cli/cli-cmds.c (complete_command): Delete unused variable.
5642 (disassemble_command): Delete unused variable.
5643
5644 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5645 * tracepoint.c (delete_trace_variable_command):
5646 Delete unused variables.
5647 (encode_actions_1): Delete unused variables.
5648 (start_tracing): Delete unused variable.
5649 (trace_status_mi): Delete unused variable.
5650 (tfind_1): Delete unused variable.
5651 (trace_find_pc_command): Delete unused variable.
5652 (trace_find_line_command): Delete unused variables.
5653 (trace_find_range_command): Delete unused variables.
5654 (trace_find_outside_command): Delete unused variables.
5655 (parse_tracepoint_definition): Delete unused variables.
5656 (tfile_fetch_registers): Delete unused variable.
5657
5658 * dcache.c (dcache_init): Delete unused variable.
5659 (dcache_info): Delete unused variable.
5660
5661 * remote.c (remote_threads_info): Delete unused variable.
5662 (process_stop_reply) :Delete unused variable.
5663 (remote_get_trace_status): Delete unused variables.
5664
5665 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5666 (thread_from_lwp): Delete unused variable.
5667 (enable_thread_event_reporting): Delete unused variable.
5668 (check_for_thread_db): Delete unused variables.
5669 (thread_db_find_new_threads_2): Delete unused variable.
5670
5671 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5672 (checkpoint_command): Delete unused variable.
5673 (linux_fork_context): Delete unused variables.
5674
5675 * linux-nat.c (linux_parent_pid): Delete unused global variable.
5676 (linux_tracefork_child): Delete unused variable.
5677 (linux_child_follow_fork): Delete unused variable.
5678 (linux_nat_detach): Delete unused variable.
5679 (linux_handle_extended_wait): Delete unused variable.
5680 (linux_nat_has_pending_sigint): Delete unused variable.
5681 (linux_nat_find_memory_regions): Delete unused variable.
5682 (linux_nat_make_corefile_notes): Delete unused variables.
5683 (linux_nat_info_proc_cmd): Delete unused variable.
5684 (linux_proc_pending_signals): Delete unused variable.
5685 (linux_nat_stop_lwp): Delete unused variables.
5686 (_initialize_linux_nat): Delete unused variable.
5687
5688 * ser-pipe.c (pipe_ops): Delete unused global variable.
5689
5690 * linux-record.c (record_linux_system_call):
5691 Delete unused variables.
5692
5693 * corelow.c (core_xfer_partial): Delete unused variables.
5694
5695 * solib-svr4.c (find_program_interpreter): Delete unused variable.
5696 (svr4_solib_create_inferior_hook): Add ifdef around
5697 conditionally-used variable declarations.
5698
5699 * solib.c (solib_find): Delete unused variable.
5700 (free_so_symbols): Delete unused variable.
5701 (info_sharedlibrary_command): Delete unused variable.
5702 (reload_shared_libraries_1): Delete unused variable.
5703 (_initialize_solib): Delete unused variable.
5704
5705 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5706 (i386_collect_xstateregset): Delete unused variable.
5707 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5708
5709 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5710 Delete unused variable 'type'.
5711
5712 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5713
5714 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
5715 ada-lang.c: Remove comment mentioning these macros.
5716 * m2-exp.y: Delete commented out code.
5717
5718 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5719
5720 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5721 for array types.
5722 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5723
5724 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5725
5726 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5727 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5728 ATTRIBUTE_UNUSED.
5729 (cleanup_kernel_helper_return): Likewise.
5730 * arm-tdep.c (copy_unmodified): Likewise.
5731 (copy_preload): Likewise.
5732 (copy_copro_load_store): Likewise.
5733 (cleanup_branch): Likewise.
5734 (copy_b_bl_blx): Likewise.
5735 (copy_bx_blx_reg): Likewise.
5736 (copy_alu_imm): Likewise.
5737 (copy_alu_reg): Likewise.
5738 (copy_alu_shifted_reg): Likewise.
5739 (cleanup_load): Likewise.
5740 (cleanup_store): Likewise.
5741 (cleanup_block_load_pc): Likewise.
5742 (cleanup_svc): Likewise.
5743 (copy_undef): Likewise.
5744 (copy_unpred): Likewise.
5745 * remote.c (register_remote_support_xml): Likewise.
5746
5747 2010-05-05 Hui Zhu <teawater@gmail.com>
5748
5749 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5750
5751 2010-05-04 Mark Kettenis <kettenis@gnu.org>
5752
5753 * remote.c (register_remote_support_xml)
5754 (remote_query_supported_append, remote_query_supported): Add cast
5755 to NULL used as sentinel.
5756 * tracepoint.c (tvariables_info_1): Likewise.
5757 * utils.c (add_internal_problem_command): Likewise.
5758
5759 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5760
5761 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5762 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5763 registers gracefully.
5764
5765 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5766
5767 * exec.c (print_section_info): Display entry point without arch
5768 specific parts.
5769
5770 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5771
5772 PR exp/11349.
5773 * printcmd.c (x_command): Only dereference once implicitly for
5774 TYPE_CODE_REF.
5775
5776 2010-05-03 Doug Evans <dje@google.com>
5777
5778 * event-loop.c (gdb_timer): Delete unused global.
5779 (create_timer): Update.
5780
5781 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5782
5783 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5784 CURRENT->DECLARATION case.
5785 * cp-support.h (struct using_direct): Provide extended comment.
5786
5787 2010-05-03 Mark Kettenis <kettenis@gnu.org>
5788
5789 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5790 HPPABSD_SIZEOF_GREGS.
5791 (HPPAOBSD_SIZEOF_FPREGS): New define.
5792 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5793 (hppaobsd_supply_fpregset): New function.
5794 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5795 (hppaobsd_fpregset): New variable.
5796 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5797 (_initialize_hppabsd_tdep): Remove spurious blank line.
5798
5799 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5800
5801 PR pascal/11349.
5802 * p-valprint.c (pascal_value_print): Always dereference a value with
5803 type code TYPE_CODE_REF.
5804
5805 2010-05-03 Pedro Alves <pedro@codesourcery.com>
5806
5807 * remote.c (remote_notice_signals): New.
5808 (remote_start_remote): In non-stop mode, update the remote end on
5809 which signals it can silently pass.
5810 (init_remote_ops): Install remote_notice_signals.
5811
5812 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5813
5814 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5815 * command.h (error_no_arg): ... here. Remove NORETURN, change
5816 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5817 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5818 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5819 (internal_verror, internal_error, nomem): Remove NORETURN, change
5820 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5821 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5822 (throw_vfatal, throw_error): Remove NORETURN.
5823 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5824 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5825 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5826 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5827 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5828 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5829 NORETURN.
5830 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5831 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5832 ATTRIBUTE_NORETURN.
5833 * target.c (tcomplain): Likewise.
5834 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5835 ATTRIBUTE_NORETURN.
5836 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5837 (internal_error, perror_with_name, nomem): Remove NORETURN.
5838 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5839 ATTRIBUTE_NORETURN.
5840
5841 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5842
5843 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5844 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5845 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5846 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5847 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5848 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5849 * complaints.h (complaint, internal_complaint): Likewise.
5850 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5851 (ATTR_FORMAT): Remove.
5852 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5853 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5854 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5855 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5856 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5857 (internal_error, internal_vwarning, internal_warning, warning)
5858 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5859 * disasm.c (fprintf_disasm): Likewise.
5860 * exceptions.c (throw_it): Likewise.
5861 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5862 (throw_error): Likewise.
5863 * language.h (type_error, range_error): Likewise.
5864 * linespec.c (cplusplus_error): Likewise.
5865 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5866 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5867 * monitor.c (monitor_debug): Likewise.
5868 * parser-defs.h (parser_fprintf): Likewise.
5869 * serial.h (serial_printf): Likewise.
5870 * tui/tui-hooks.c (tui_query_hook): Likewise.
5871 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5872 (uo_message): Likewise.
5873 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5874 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5875 Likewise.
5876 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5877
5878 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5879
5880 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5881 (cli_table_header, cli_begin, cli_end, cli_field_int)
5882 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5883 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5884 Delete forward declarations.
5885 (cli_ui_out_impl): Move below the callbacks.
5886 (_initialize_cli_out): Delete.
5887
5888 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5889
5890 * README: Use consistent `GDB' and `GDBserver' spellings.
5891
5892 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5893
5894 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5895
5896 2010-05-01 Pedro Alves <pedro@codesourcery.com>
5897
5898 * infrun.c (prepare_for_detach): In non-stop, context switch to
5899 the thread that got the event before handling the event.
5900
5901 2010-04-30 Tom Tromey <tromey@redhat.com>
5902
5903 * symtab.c (symbol_set_names): Fix typo.
5904
5905 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5906
5907 * python/py-param.c (parm_constants): Avoid ARI warning
5908 by adding ARI comment.
5909 (parmpy_init): Likewise.
5910
5911 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5912
5913 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5914 and created type for re-use.
5915
5916 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5917
5918 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5919
5920 2010-04-29 Doug Evans <dje@google.com>
5921
5922 * ser-base.h (reschedule): Delete prototype.
5923 * ser-base.c (reschedule): Make static.
5924
5925 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5926
5927 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5928 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5929 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5930 EABI.
5931 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5932 use.
5933
5934 2010-04-29 Pedro Alves <pedro@codesourcery.com>
5935
5936 PR gdb/11557
5937
5938 * regcache.c (registers_changed): Rename to ...
5939 (registers_changed_ptid): ... this, and only delete register cache
5940 entries matching the ptid filter argument.
5941 (registers_changed): Reimplement on top of registers_changed_ptid.
5942 * regcache.h (registers_changed_ptid): Declare.
5943 * target.c (target_resume): Flush register caches.
5944
5945 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
5946 Tom Tromey <tromey@redhat.com>
5947 Thiago Jung Bauermann <bauerman@br.ibm.com>
5948
5949 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5950 (SUBDIR_PYTHON_SRCS): Likewise.
5951 (py-parameter.o): New rule.
5952 * python/py-parameter.c: New file.
5953 * python/python-internal.h (gdbpy_initialize_parameter)
5954 (gdbpy_parameter, gdbpy_parameter_value)
5955 (gdbpy_parse_command_name): Declare.
5956 * python/py-cmd.c (parse_command_name): Rename to
5957 gdbpy_parse_command_name.
5958 (gdbpy_parse_command_name): Accept a starting list parameter and
5959 use over cmdlist.
5960 (cmdpy_init): Use gdbpy_parse_command_name.
5961 * python/python.c (parameter_to_python): Rename to
5962 gdbpy_parameter_to_python. Accept enum var_types and value.
5963 (gdbpy_parameter): Use gdbpy_parameter_value.
5964 (_initialize_python): Call gdbpy_initialize_parameters.
5965
5966 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5967
5968 * MAINTAINERS: Add myself for write after approval privileges.
5969
5970 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5971
5972 D language support.
5973 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5974 (COMMON_OBS): Add d-lang.o d-valprint.o.
5975 (HFILES_NO_SRCDIR): Add d-lang.h.
5976 * NEWS: Mention D language support.
5977 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5978 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5979 * d-lang.c: New file.
5980 * d-lang.h: New file.
5981 * d-valprint.c: New file.
5982 * defs.h (enum language): Add language_d.
5983 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5984 * language.c (binop_result_type, integral_type, character_type)
5985 (string_type, boolean_type, structured_type): Add language_d.
5986 * symfile.c (init_filename_language_table): Add language_d.
5987 * symtab.c: Include d-lang.h.
5988 (symbol_init_language_specific, symbol_find_demangled_name)
5989 (symbol_natural_name, lookup_symbol_in_language)
5990 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5991
5992 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5993
5994 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5995
5996 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5997
5998 * symfile.c (init_filename_language_table): Register .dg files
5999 with language_ada.
6000
6001 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6002
6003 * gdbtypes.h (struct main_type): Expand comment about target_type
6004 field.
6005
6006 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6007 Tristan Gingold <gingold@adacore.com>
6008
6009 * symfile.c (reread_symbols): Also search for file in libraries.
6010 Update comment.
6011
6012 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6013
6014 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6015 in terms of configuration.
6016
6017 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6018
6019 * objfiles.c: Include solist.h.
6020 (free_all_objfiles): New variable so. Check stale solist objfiles.
6021 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6022 and no_shared_libraries.
6023
6024 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6025
6026 ARI warning fix.
6027 * python/py-auto-load.c (source_section_scripts): Remove trailing
6028 new-line in i18n string.
6029
6030 2010-04-26 Doug Evans <dje@google.com>
6031
6032 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6033
6034 2010-04-26 Tom Tromey <tromey@redhat.com>
6035
6036 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6037 command list.
6038
6039 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6040
6041 Removal of config/i386/nm-i386sol2.h native configuration file.
6042 * config/i386/nm-i386sol2.h: Remove file.
6043 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6044 * config/i386/sol2-64.mh: Idem.
6045 * config/djgpp/fnchange.lst: Remove reference to that file.
6046 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6047
6048 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6049
6050 PR breakpoints/11531.
6051 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6052 macro definition and related comment.
6053 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6054 (resume): Remove code and comment related to this macro.
6055
6056 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6057
6058 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6059 Fix whitespace.
6060
6061 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6062
6063 * defs.h: Adjust comment.
6064 * filesystem.h, filesystem.c: New files.
6065 * Makefile.in (SFILES): Add filesystem.c.
6066 (COMMON_OBS): Add filesystem.o.
6067 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6068 different target and host path flavours.
6069 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6070 has_dos_based_file_system on the gdbarch.
6071 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6072 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6073 * i386-tdep.c (i386_go32_init_abi): Ditto.
6074 * gdbarch.sh (has_dos_based_file_system): New.
6075 * gdbarch.h, gdbarch.c: Regenerate.
6076 * NEWS: Mention improved support for remote targets with DOS-based
6077 filesystems. Mention new `set/show target-file-system-kind'
6078 commands.
6079
6080 2010-04-23 Stan Shebs <stan@codesourcery.com>
6081
6082 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6083 comments.
6084 (struct agent_reqs): Remove.
6085 (ax_reg_mask): Declare.
6086 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6087 (free_agent_expr): Free reg_mask.
6088 (ax_print): Add scope and register mask info.
6089 (ax_reqs): Remove agent_reqs argument, use agent expression
6090 fields, and move part of register mask computation to...
6091 (ax_reg_mask): New function.
6092 * ax-gdb.c (gen_trace_static_fields): Call it.
6093 (gen_traced_pop): Ditto.
6094 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6095 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6096 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6097 (gen_eval_for_expr): Ditto, and require an rvalue.
6098 (agent_command): Call ax_reqs.
6099 (agent_eval_command): Ditto.
6100 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6101 (validate_action_line): Ditto.
6102 (collect_symbol): Ditto.
6103 (encode_actions_1): Ditto.
6104
6105 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6106 Paul Pluzhnikov <ppluzhnikov@google.com>
6107 Jan Kratochvil <jan.kratochvil@redhat.com>
6108
6109 Fix deadlock on looped list of loaded shared objects.
6110 * solib-svr4.c (LM_PREV): New function.
6111 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6112 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6113 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6114 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6115
6116 2010-04-23 Doug Evans <dje@google.com>
6117
6118 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6119 python.
6120 * configure: Regenerate.
6121 * main.c: #include "python/python.h".
6122 (captured_main): Defer loading auto-loaded scripts until after
6123 local_gdbinit has been sourced.
6124 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6125 (load_auto_scripts_for_objfile): New function.
6126 (auto_load_new_objfile): Call it.
6127 * python/python.h (gdbpy_global_auto_load): Declare.
6128 (load_auto_scripts_for_objfile): Declare.
6129
6130 Add support for auto-loading scripts from .debug_gdb_scripts section.
6131 * NEWS: Add entry for .debug_gdb_scripts.
6132 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6133 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6134 (py-auto-load.o): New rule.
6135 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6136 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6137 * python/py-auto-load.c: New file.
6138 * python/python-internal.h: #include <stdio.h>.
6139 (set_python_list, show_python_list): Declare.
6140 (gdbpy_initialize_auto_load): Declare.
6141 (source_python_script_for_objfile): Declare.
6142 * python/python.c: Remove #include of observer.h.
6143 (gdbpy_auto_load): Moved to py-auto-load.c.
6144 (GDBPY_AUTO_FILENAME): Ditto.
6145 (gdbpy_new_objfile): Delete.
6146 (source_python_script_for_objfile): New function.
6147 (set_python_list, show_python_list): Make externally visible.
6148 (_initialize_python): Move "auto-load" command to py-auto-load.c
6149 and observer_attach_new_objfile to py-auto-load.c.
6150
6151 2010-04-23 Jerome Guitton <guitton@adacore.com>
6152
6153 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6154 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6155 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6156 New constants.
6157 (alpha_heuristic_analyze_probing_loop): New function.
6158 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6159 and handle cases when a stack probe loop is generated.
6160 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6161 (alpha_mdebug_max_frame_size_exceeded): New function.
6162 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6163 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6164 Return 0 when the maximum debuggable frame size has been exceeded.
6165
6166 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6167
6168 Fix ARI warning.
6169 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6170
6171 2010-04-20 Chris Moller <cmoller@redhat.com>
6172
6173 PR 10179
6174
6175 * symtab.c (rbreak_command): Added code to include a filename
6176 specification in the rbreak argument.
6177 * NEWS: Added a brief description of filename-qualified rbreak.
6178
6179 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6180
6181 Fix crashes on dangling display expressions.
6182 * ada-lang.c (ada_operator_check): New function.
6183 (ada_exp_descriptor): Fill-in the field operator_check.
6184 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6185 * jv-lang.c (exp_descriptor_java): Likewise.
6186 * m2-lang.c (exp_descriptor_modula2): Likewise.
6187 * scm-lang.c (exp_descriptor_scm): Likewise.
6188 * parse.c (exp_descriptor_standard): Likewise.
6189 (operator_check_standard): New function.
6190 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6191 * parser-defs.h (struct exp_descriptor): New field operator_check.
6192 (operator_check_standard, exp_uses_objfile): New declarations.
6193 * printcmd.c: Remove the inclusion of solib.h.
6194 (display_uses_solib_p): Remove the function.
6195 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6196 and exp_uses_objfile instead of display_uses_solib_p.
6197 * solist.h (struct so_list) <objfile>: New comment.
6198 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6199 * symtab.h (lookup_objfile_from_block): New declaration.
6200 (struct general_symbol_info) <obj_section>: Extend the comment.
6201
6202 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6203 Thiago Jung Bauermann <bauerman@br.ibm.com>
6204
6205 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6206 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6207 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6208 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6209 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6210 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6211 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6212 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6213 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6214 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6215 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6216 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6217 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6218 Define, in case <ptrace.h> doesn't provide it.
6219 (booke_debug_info): New variable.
6220 (max_slots_number): Ditto.
6221 (hw_break_tuple): New struct.
6222 (thread_points): Ditto.
6223 (ppc_threads): New variable.
6224 (PPC_DEBUG_CURRENT_VERSION): New define.
6225 (have_ptrace_new_debug_booke): New function.
6226 (ppc_linux_check_watch_resources): Renamed to ...
6227 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6228 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6229 (booke_cmp_hw_point): New function.
6230 (booke_find_thread_points_by_tid): Ditto.
6231 (booke_insert_point): Ditto.
6232 (booke_remove_point): Ditto.
6233 (ppc_linux_insert_hw_breakpoint): Ditto.
6234 (ppc_linux_remove_hw_breakpoint): Ditto.
6235 (get_trigger_type): Ditto.
6236 (ppc_linux_insert_watchpoint): Handle BookE processors.
6237 (ppc_linux_remove_watchpoint): Ditto.
6238 (ppc_linux_new_thread): Ditto.
6239 (ppc_linux_thread_exit): New function..
6240 (ppc_linux_stopped_data_address): Handle BookE processors.
6241 (ppc_linux_watchpoint_addr_within_range): Ditto.
6242 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6243 to_remove_hw_breakpoint fields of the target operations struct.
6244 Add observe for the thread_exit event.
6245
6246 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6247
6248 * i386-linux-nat.c (regmap): Removed.
6249 (fetch_register): Replace regmap with
6250 i386_linux_gregset_reg_offset.
6251 (store_register): Likewise.
6252 (supply_gregset): Likewise.
6253 (fill_gregset): Likewise.
6254
6255 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6256 global.
6257
6258 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6259
6260 2010-04-22 Chris Moller <cmoller@redhat.com>
6261
6262 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6263 method of popping recursion-detection stack with a method based on
6264 obstack_object_size(). (Similar to the PR9167 patch below, but for
6265 the static array obstack rather than the static member obstack.)
6266
6267 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6268
6269 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6270 (_initialize_amd64_linux_nat): Replace
6271 amd64_linux_gregset64_reg_offset with
6272 amd64_linux_gregset_reg_offset.
6273
6274 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6275 global.
6276
6277 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6278
6279 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6280
6281 PR stabs/11479.
6282 * stabsread.c (set_length_in_type_chain): New function.
6283 (read_struct_type): Call set_length_in_type_chain function.
6284 (read_enum_type): Idem.
6285
6286 2010-04-21 Stan Shebs <stan@codesourcery.com>
6287 Nathan Sidwell <nathan@codesourcery.com>
6288
6289 * tracepoint.c (trace_save): Open in binary mode.
6290
6291 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6292
6293 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6294 fields.
6295 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6296 builtin_char32 fields.
6297 * printcmd.c (decode_format): Set char size to '\0'
6298 for strings unless explicit size is given.
6299 (print_formatted): Correct calculation of NEXT_ADDRESS
6300 for 16 or 32 bit strings.
6301 (do_examine): Do not force byte size for strings.
6302 Use builtin_char16 and builtin_char32 types to display
6303 16 or 32 bit-wide strings.
6304 (x_command): Set LAST_SIZE to 'b' for string type.
6305
6306 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6307
6308 PR corefiles/11523
6309 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6310 XCR0 first.
6311
6312 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6313 there is no .reg-xstate section.
6314 (i386_linux_core_read_description): Check XCR0 first.
6315
6316 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6317
6318 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6319 for len <= 8.
6320
6321 2010-04-21 Chris Moller <cmoller@redhat.com>
6322
6323 PR 9167
6324 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6325 method of popping recursion-detection stack with a method based on
6326 obstack_object_size().
6327
6328 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6329
6330 PR pascal/11492.
6331 * p-valprint.c (pascal_val_print): Fix default printing of integer
6332 arrays.
6333
6334 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6335
6336 Fix compilation warning on gcc-4.1.2.
6337 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6338 local variable`pc' to zero.
6339
6340 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6341
6342 Implement thread support with core files on alpha-tru64.
6343 * dec-thread.c (dec_thread_find_new_threads): New function,
6344 extracted from resync_thread_list.
6345 (resync_thread_list): Add OPS parameter. Replace extracted-out
6346 code by call to dec_thread_find_new_threads.
6347 (dec_thread_wait): Update call to resync_thread_list.
6348 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6349
6350 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6351
6352 * ada-lang.c (value_pointer): New function.
6353 (make_array_descriptor): Call value_pointer to convert addresses to
6354 pointers.
6355
6356 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6357
6358 * rs6000-aix-tdep.c: #include exceptions.h.
6359 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6360 while reading the memory at ADDR, then ADDR cannot be a function
6361 descriptor.
6362
6363 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6364
6365 * ada-typeprint.c (ada_print_typedef): New function.
6366 * ada-lang.h (ada_print_typedef): Add declaration.
6367 * ada-lang.c (ada_language_defn): set la_print_typdef field
6368 to ada_print_typedef.
6369
6370 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6371
6372 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6373
6374 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6375
6376 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6377 (iterate_over_mappings): Adjust function profile. Add declaration.
6378 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6379 Adjust accordingly.
6380
6381 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6382
6383 * procfs.c (solib_mappings_callback): Move function up to avoid
6384 a compiler warning.
6385
6386 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6387
6388 * procfs.c (find_signalled_thread, find_stop_signal): Move
6389 these functions down to define them only when used.
6390
6391 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6392
6393 * valprint.c (common_val_print): Fix the value before extracting
6394 its contents.
6395 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6396 * ada-lang.h (ada_to_fixed_value): New function declaration.
6397 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6398 to avoid code duplication and fix a bug in the handling of
6399 fixed types contents.
6400
6401 2010-04-20 Tom Tromey <tromey@redhat.com>
6402
6403 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6404 (read_partial_die): Likewise.
6405 (dwarf_attr_name): Likewise.
6406
6407 2010-04-20 Chris Moller <cmoller@redhat.com>
6408
6409 PR 10867
6410
6411 * cp-valprint.c (global): Adding new static array recursion
6412 detection obstack.
6413 (cp_print_value_fields, cp_print_static_field): Added new static
6414 array recursion detection code.
6415
6416 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6417
6418 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6419 general-purpose register set should be 68 instead of 144.
6420 (i386_linux_sse_regset_sections): Likewise.
6421 (i386_linux_avx_regset_sections): Likewise.
6422
6423 2010-04-20 Stan Shebs <stan@codesourcery.com>
6424 Nathan Sidwell <nathan@codesourcery.com>
6425
6426 * dwarf2loc.c (struct axs_var_loc): New struct.
6427 (dwarf2_tracepoint_var_loc): New function.
6428 (dwarf2_tracepoint_var_access): New function.
6429 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6430 with DW_OP_piece.
6431 (locexpr_describe_location_piece): New function.
6432 (locexpr_describe_location_1): New function.
6433 (locexpr_describe_location): Call it, update signature.
6434 (loclist_describe_location): Rewrite to loop over locations,
6435 update signature.
6436 * symtab.h (struct symbol_computed_ops): Add address to
6437 describe_location arguments, return void.
6438 * printcmd.c (address_info): Get context PC, pass to computed
6439 location description.
6440 * tracepoint.c (scope_info): Ditto.
6441 * ax-gdb.c (trace_kludge): Export.
6442
6443 2010-04-20 Tom Tromey <tromey@redhat.com>
6444
6445 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6446 (struct dwarf2_cie) <segment_size>: New field.
6447 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6448 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6449 DW_FORM_exprloc.
6450 (read_attribute_value): Handle DW_FORM_flag_present,
6451 DW_FORM_sec_offset, DW_FORM_exprloc.
6452 (dump_die_shallow): Likewise.
6453 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6454 (dwarf2_const_value): Handle DW_FORM_exprloc.
6455 (attr_form_is_block): Likewise.
6456 (struct line_header) <maximum_ops_per_instruction>: New field.
6457 (dwarf_decode_line_header): Set new field.
6458 (dwarf_decode_lines): Handle new field.
6459
6460 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6461
6462 * f-exp.y: Add new production to recognize the `logical*8' type.
6463 (LOGICAL_S8_KEYWORD): New token.
6464 * f-lang.c (enum f_primitive_types)
6465 <f_primitive_type_logical_s8>: New field.
6466 (f_language_arch_info): Handling `logical*8' type.
6467 (build_fortran_types): Building `logical*8' type.
6468 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6469
6470 2010-04-19 Doug Evans <dje@google.com>
6471
6472 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6473 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6474 (pipe_close): Ditto.
6475
6476 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6477
6478 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6479
6480 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6481
6482 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6483 type to void function.
6484
6485 2010-04-19 Stan Shebs <stan@codesourcery.com>
6486 Vladimir Prus <vladimir@codesourcery.com>
6487
6488 * tracepoint.c (tfind_1): Add missing newline, report exit from
6489 tfind mode as such.
6490 * target.c (update_current_target): Make default
6491 to_trace_find return -1.
6492
6493 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6494
6495 * objc-lang.c (find_methods): Move symname check up.
6496
6497 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6498
6499 * ada-lang.c (print_recreate_exception)
6500 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6501 not "catch unhandled".
6502
6503 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6504
6505 PR breakpoints/8554.
6506
6507 Implement `save-breakpoints'.
6508
6509 * breakpoint.c (save_cmdlist): New.
6510 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6511 to save_cmdlist.
6512 (print_recreate_catch_fork): New.
6513 (catch_fork_breakpoint_ops): Install it.
6514 (print_recreate_catch_vfork): New.
6515 (catch_vfork_breakpoint_ops): Install it.
6516 (print_recreate_catch_syscall): New.
6517 (catch_syscall_breakpoint_ops): Install it.
6518 (print_recreate_catch_exec): New.
6519 (catch_exec_breakpoint_ops): Install it.
6520 (print_recreate_exception_catchpoint): New.
6521 (gnu_v3_exception_catchpoint_ops): Install it.
6522 (save_breakpoints): New, based on tracepoint_save_command, but
6523 handle all breakpoint types.
6524 (save_breakpoints_command): New.
6525 (tracepoint_save_command): Rename to...
6526 (save_tracepoints_command): ... this, and reimplement using
6527 save_breakpoints.
6528 (save_command): New.
6529 (_initialize_breakpoints): Install the "save" command prefix.
6530 Install the "save breakpoints" command. Make "save-tracepoints" a
6531 deprecated alias for "save tracepoints".
6532 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6533 * ada-lang.c (print_recreate_exception): New.
6534 (print_recreate_catch_exception): New.
6535 (catch_exception_breakpoint_ops): Install it.
6536 (print_recreate_catch_exception_unhandled): New.
6537 (catch_exception_unhandled_breakpoint_ops): Install it.
6538 (print_recreate_catch_assert): New.
6539 (catch_assert_breakpoint_ops): Install it.
6540
6541 * NEWS: Mention the new `save breakpoints' command. Mention the
6542 new `save tracepoints' alias and that `save-tracepoints' is now
6543 deprecated.
6544
6545 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6546
6547 PR tui/9217
6548
6549 * tui/tui-out.c: Include cli-out.h.
6550 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6551 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6552 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6553 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6554 declarations.
6555 (struct ui_out_data): Rename to...
6556 (struct tui_ui_out_data): ... this. Remove `stream' and
6557 `suppress_output' fields, and inherit cli_ui_out_data.
6558 (tui_out_data): New typedef.
6559 (tui_ui_out_impl): Don't initialize fields staticaly.
6560 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6561 (tui_begin, tui_end): Delete.
6562 (tui_field_int): Adjust to delegate most work to the base type.
6563 (tui_field_skip): Delete.
6564 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6565 delegate most work to the base type.
6566 (tui_spaces): Delete.
6567 (tui_text): Adjust to delegate most work to the base type.
6568 (tui_message): Delete.
6569 (tui_wrap_hint): Delete.
6570 (tui_flush): Delete.
6571 (out_field_fmt): Delete.
6572 (field_separator): Delete.
6573 (tui_out_new): Adjust to initialize the base type.
6574 (_initialize_tui_out): Initialize tui_ui_out_impl.
6575 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6576 cli_ui_out_data.
6577 (cli_out_data): Adjust.
6578 (cli_ui_out_impl): Make extern.
6579 (cli_table_header, cli_field_int, cli_field_skip): Use
6580 uo_field_string instead of cli_field_string.
6581 (cli_redirect): Adjust to use cli_out_data.
6582 (cli_out_data_ctor): New.
6583 (cli_out_new): Use it.
6584 * cli-out.h (struct ui_file): Remove forward declaration.
6585 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6586 (cli_ui_out_impl): Declare.
6587 (cli_out_data_ctor): Declare.
6588 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6589 (uo_field_string): No longer static.
6590 (ui_out_data): Change return type to void pointer.
6591 (ui_out_new): Change `data' parameter type to void pointer.
6592 * ui-out.h (struct ui_out_data): Don't forward declare.
6593 (ui_out_data): Change return type to void pointer.
6594 (ui_out_new): Change `data' parameter type to void pointer.
6595 (uo_field_string): Declare.
6596
6597 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6598
6599 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6600 instead of always false.
6601
6602 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6603
6604 PR corefiles/11511
6605 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6606 orig_rax.
6607
6608 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6609
6610 * breakpoint.c (watchpoints_triggered): Use
6611 is_hardware_watchpoint.
6612 (watchpoints_triggered): Ditto.
6613 (bpstat_check_location): Use is_watchpoint and
6614 is_hardware_watchpoint.
6615 (bpstat_check_watchpoint): Use is_watchpoint and
6616 is_hardware_watchpoint.
6617 (bpstat_stop_status): Fix comment.
6618 (user_settable_breakpoint): Use is_watchpoint.
6619 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6620 (disable_watchpoints_before_interactive_call_start): Use
6621 is_watchpoint.
6622 (enable_watchpoints_after_interactive_call_stop): Use
6623 is_watchpoint.
6624 (clear_command): Use is_watchpoint.
6625 (do_enable_breakpoint): Use is_watchpoint.
6626
6627 2010-04-16 Mike Frysinger <vapier@gentoo.org>
6628
6629 * solib-frv.c (enable_break1_done): Delete.
6630 (enable_break2): Do not check enable_break1_done. Move the
6631 enable_break2_done setting and call to
6632 remove_solib_event_breakpoints() to the end. Return without
6633 warning when the contents of _dl_debug_addr are 0.
6634 (enable_break): Do not set enable_break1_done.
6635 (frv_clear_solib): Likewise.
6636
6637 2010-04-16 Kevin Buettner <kevinb@redhat.com>
6638
6639 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6640 instead of an error if no PLT entry is found. Return a
6641 potentially useful result.
6642 (m32c_m16c_pointer_to_address): Add code to search for function
6643 address when no .plt entry is found.
6644
6645 2010-04-16 Stan Shebs <stan@codesourcery.com>
6646
6647 * tracepoint.c (trace_variable_command): Run a cleanup.
6648
6649 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6650
6651 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6652
6653 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6654
6655 Support for Windows OS Thread Information Block.
6656 * NEWS: Document new feature.
6657 * remote.c (PACKET_qGetTIBAddr): New enum element.
6658 (remote_get_tib_address): New function.
6659 (init_remote_ops): Set to_get_tib_address field
6660 to remote_get_tib_address.
6661 (_initialize_remote): Add add_packet_config_cmd
6662 for PACKET_qGetTIBAddr.
6663 * target.c (update_current_target): Set default value for
6664 new to_get_tib_address field.
6665 * target.h (target_ops): New field to_get_tib_address.
6666 (target_get_tib_address): New macro.
6667 * windows-nat.c (thread_info): Add thread_local_base field.
6668 (windows_add_thread): Add tlb argument of type 'void *'.
6669 (fake_create_process): Adapt windows_add_thread call.
6670 (get_windows_debug_event): Idem.
6671 (windows_get_tib_address): New function.
6672 (init_windows_ops): Set to_get_tib_address field
6673 to remote_get_tib_address.
6674 (_initialize_windows_nat): Replace info_w32_cmdlist
6675 initialization by a call to init_w32_command_list.
6676 (info_w32_command, info_w32_cmdlist): Removed from here...
6677 to windows-tdep.c file.
6678 * windows-tdep.h (info_w32_cmdlist): Declare.
6679 (init_w32_command_list): New external function
6680 declaration.
6681 * windows-tdep.c: Add several headers.
6682 (info_w32_cmdlist): to here, made global.
6683 (thread_information_32): New struct.
6684 (thread_information_64): New struct.
6685 (TIB_NAME): New char array.
6686 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6687 (maint_display_all_tib): New static variable.
6688 (windows_get_tlb_type): New function.
6689 (tlb_value_read, tlb_value_write): New functions.
6690 (tlb_value_funcs): New static struct.
6691 (tlb_make_value): New function.
6692 (display_one_tib): New function.
6693 (display_tib): New function.
6694 (show_maint_show_all_tib):New function.
6695 (info_w32_command): Moved from windows-nat.c.
6696 (init_w32_command_list): New function.
6697 (_initialize_windows_tdep): New function.
6698 New "maint set/show show-all-tib" command
6699 New "$_tlb" internal variable.
6700
6701 2010-04-16 Joel Brobecker <brobecker@adacore.com>
6702
6703 * tui/tui-regs.c (tui_display_register): Add comment about
6704 a couple of casts.
6705 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6706
6707 2010-04-15 Stan Shebs <stan@codesourcery.com>
6708
6709 * frame.c: Include tracepoint.h.
6710 (get_current_frame): Allow a trace frame to be an alternate source
6711 of stack frame data.
6712 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6713 it won't succeed.
6714
6715 2010-04-15 Pedro Alves <pedro@codesourcery.com>
6716
6717 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6718 flags.
6719 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6720
6721 2010-04-15 Doug Evans <dje@google.com>
6722
6723 * NEWS: Add entry for python program space support.
6724 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6725 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6726 (py-progspace.o): New rule.
6727 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6728 function.
6729 (find_pretty_printer_from_progspace): New function.
6730 (find_pretty_printer_from_gdb): New function.
6731 (find_pretty_printer): Rewrite.
6732 * python/py-progspace.c: New file.
6733 * python/python-internal.h (program_space): Add forward decl.
6734 (pspace_to_pspace_object, pspy_get_printers): Declare.
6735 (gdbpy_initialize_pspace): Declare.
6736 * python/python.c: #include "progspace.h".
6737 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6738 (_initialize_python): Call gdbpy_initialize_pspace.
6739 (GdbMethods): Add current_progspace, progspaces.
6740
6741 Add -s option to source command.
6742 * NEWS: Document new option.
6743 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6744 Delete from_tty and cleanupp args. Split filep arg into file and
6745 full_pathp. New arg search_path.
6746 (source_script_from_stream): New function.
6747 (source_script_with_search): New function.
6748 (source_script): Rewrite.
6749 (source_command): Parse "-s" option.
6750 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6751 * python/python.c (source_python_script): Make file arg a const char *.
6752 Don't call fclose, leave for caller.
6753 * python/python.h (source_python_script): Update.
6754
6755 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6756 Pedro Alves <pedro@codesourcery.com>
6757
6758 Avoid rereading shared libraries that haven't changed.
6759
6760 * solib.c (free_so_symbols): New function, from ...
6761 (free_so): ... here. Call it.
6762 (solib_read_symbols): Don't warn here if symbols have already been
6763 loaded.
6764 (solib_add): Warn here instead, if a pattern was specified.
6765 (reload_shared_libraries_1): New.
6766 (reload_shared_libraries): Rewrite to not fetch the library list.
6767
6768 2010-04-14 Doug Evans <dje@google.com>
6769
6770 * source.c (openp): Strip DOS drive letter if present before
6771 concatenating string to search path.
6772
6773 2010-04-14 Pedro Alves <pedro@codesourcery.com>
6774
6775 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6776 * objfiles.c (gdb_bfd_close_or_warn): New.
6777 * corelow.c: Include objfiles.h
6778 (core_close): Use gdb_bfd_close_or_warn.
6779 * elfread.c (build_id_verify): Ditto.
6780 * exec.c (exec_close, exec_close_1): Ditto.
6781
6782 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6783 Pedro Alves <pedro@codesourcery.com>
6784
6785 Group errors for many missing shared libraries.
6786
6787 * solist.h (struct so_list): Remove from_tty.
6788 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6789 (solib_map_sections): Take so_list argument. Return 0 if we
6790 failed to open a BFD. Add target sections here.
6791 (symbol_add_stub): Delete.
6792 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6793 not from_tty copied from the so_list. Don't warn a second time
6794 for a missing library.
6795 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6796 add to the section table here. Print out a single warning for all
6797 missing libraries.
6798 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6799 flags.
6800
6801 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6802
6803 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6804 error/warning messages. Capitalize and use complete sentences.
6805 (blpy_block_syms_iternext): Likewise.
6806 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6807 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6808 (frame_info_to_frame_object, frapy_read_var)
6809 (gdbpy_frame_stop_reason_string): Likewise.
6810 * python/py-lazy-string.c (stpy_convert_to_value)
6811 (gdbpy_create_lazy_string_object): Likewise.
6812 * python/py-objfile.c (objfpy_set_printers): Likewise.
6813 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6814 * python/python.c (parameter_to_python): Likewise.
6815 * python/py-type.c (typy_range, typy_target): Likewise.
6816 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6817 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6818
6819
6820 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6821
6822 PR python/11381
6823
6824 * python/py-prettyprint.c (pretty_print_one_value): Test for
6825 Py_None.
6826 (print_string_repr): Test for Py_None. Set flags accordingly.
6827 Return value depending on return type.
6828 (print_children): Take a value indicating whether data was printed
6829 before this function was called. Alter output accordingly.
6830 (apply_val_pretty_printer): Capture return value from
6831 print_string_repr and pass to print_children.
6832
6833 2010-04-13 Mark Kettenis <kettenis@gnu.org>
6834
6835 PR corefiles/11481
6836 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6837 register note sections.
6838 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6839 New variables.
6840 (i386_linux_init_abi): Install list of supported register note
6841 sections that matches the target description.
6842
6843 2010-04-13 Pedro Alves <pedro@codesourcery.com>
6844
6845 * remote.c (remote_get_noisy_reply): Don't error out on empty
6846 replies.
6847 (remote_start_remote): Update and merge tracepoints and trace
6848 state variables as long as the target supports tracepoints.
6849 (remote_trace_init): Fix prototype.
6850 (remote_download_trace_state_variable): Validate reply.
6851 (remote_trace_set_readonly_regions): Fix prototype.
6852 (remote_trace_start): Fix prototype. Check for empty reply.
6853 (remote_get_trace_status): Small cleanup.
6854 (remote_trace_stop): Fix prototype. Check for empty reply.
6855 (remote_trace_find): Check for empty reply.
6856 (remote_save_trace_data): Validate reply.
6857 (remote_set_disconnected_tracing): Check for empty reply, and
6858 validate reply.
6859 (remote_set_circular_trace_buffer): Ditto.
6860
6861 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6862
6863 Suppress unused value warning during compilation.
6864 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6865 calls to void.
6866 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6867
6868 2010-04-12 Stan Shebs <stan@codesourcery.com>
6869
6870 * tracepoint.c (tfile_xfer_partial): Check read result.
6871
6872 2010-04-12 Mike Frysinger <vapier@gentoo.org>
6873
6874 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6875 * remote-sim.c (gdbsim_files_info): Likewise.
6876
6877 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6878
6879 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6880 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6881 variable.
6882 (fetch_vfp_registers): New function to fetch VFP registers.
6883 (store_vfp_registers): New function to store VFP registers.
6884 (arm_linux_fetch_inferior_registers): Add support for VFP
6885 registers.
6886 (arm_linux_store_inferior_registers): Likewise.
6887 (arm_linux_read_description): Likewise.
6888 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6889 until we need it.
6890
6891 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6892
6893 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6894 tdep.
6895 (amd64_collect_xstateregset): Likewise.
6896
6897 2010-04-09 Stan Shebs <stan@codesourcery.com>
6898
6899 * tracepoint.c (trace_status_mi): Report frames created.
6900
6901 * tracepoint.c (trace_dump_command): Include default-collect
6902 expressions.
6903
6904 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6905
6906 * symtab.c (find_function_start_sal): Never return SAL pointing
6907 before function start address, even if line info is missing.
6908
6909 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6910
6911 * NEWS: Mention tracepoints support.
6912
6913 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6914
6915 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6916 circular trace buffer statuses.
6917
6918 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6919
6920 * config/djgpp/fnchange.lst: Fix typo in translations for
6921 symbol-without-target_section.exp and symbol-without-target_section.c.
6922
6923 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6924
6925 * breakpoint.c (condition_command): Pass condition expression to
6926 set_breakpoint_condition stripped from breakpoint number.
6927
6928 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6929 Thiago Jung Bauermann <bauerman@br.ibm.com>
6930 Tom Tromey <tromey@redhat.com>
6931
6932 * breakpoint.c (condition_command): Simplify. Move condition
6933 setting code to ...
6934 (set_breakpoint_condition): ... here. New function.
6935 * breakpoint.h (set_breakpoint_condition): Declare.
6936 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6937 (SUBDIR_PYTHON_SRCS): Likewise.
6938 (py-breakpoint.o): New rule.
6939 * python/py-breakpoint.c: New file.
6940 * python/python-internal.h (gdbpy_breakpoints)
6941 (gdbpy_initialize_breakpoints): Declare.
6942 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6943
6944 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6945
6946 * regformats/regdat.sh: Include server.h. Don't include
6947 regcache.h.
6948
6949 2010-04-08 Stan Shebs <stan@codesourcery.com>
6950 Pedro Alves <pedro@codesourcery.com>
6951
6952 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6953 and circular_buffer.
6954 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6955 * tracepoint.c (trace_status_command): Display target's status for
6956 disconnected tracing and circular buffer.
6957 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6958 query for non-disconnected-tracing case, remove the stop_tracing
6959 call.
6960 (tfile_open): Clear disconnected and circular buffer status.
6961 (trace_save): Save disconnected and circular buffer status.
6962 (parse_trace_status): Parse disconnected and circular buffer status,
6963 also recognize disconnected as a stop reason.
6964 * remote.c (remote_set_disconnected_tracing): Only set
6965 QTDisconnected if the remote end supports disconnected tracing.
6966 Warn otherwise, if trying to enable disconnected tracing.
6967 * infcmd.c (detach_command): Update disconnect_tracing call.
6968 * cli/cli-cmds.c (quit_command): Ditto.
6969
6970 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6971
6972 * i387-tdep.c (i387_collect_xsave): Replace abort with
6973 internal_error.
6974
6975 2010-04-08 Stan Shebs <stan@codesourcery.com>
6976
6977 * breakpoint.c (default_collect_info): New function.
6978 (breakpoints_info): Call it.
6979 (maintenance_info_breakpoints): Ditto.
6980 (tracepoints_info): Ditto.
6981
6982 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6983
6984 * i387-tdep.c (i387_collect_xsave): Re-indent.
6985
6986 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6987
6988 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6989 if HAVE_PTRACE_GETFPXREGS is defined.
6990 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6991 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6992
6993 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6994 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6995 if .reg-xfp section doesn't exist.
6996 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6997
6998 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6999
7000 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7001 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7002 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7003 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7004 (i386_gdbarch_init): Update comments.
7005 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7006
7007 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7008
7009 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7010
7011 * features/Makefile (i386/i386-mmx-expedite): New.
7012 (i386/i386-mmx-linux-expedite): Likewise.
7013 ($(outdir)/i386/i386-mmx.dat): Likewise.
7014 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7015
7016 * features/i386/i386-mmx-linux.c: New.
7017 * features/i386/i386-mmx-linux.xml: Likewise.
7018 * features/i386/i386-mmx.c: Likewise.
7019 * features/i386/i386-mmx.xml: Likewise.
7020 * regformats/i386/i386-mmx-linux.dat: Likewise.
7021 * regformats/i386/i386-mmx.dat: Likewise.
7022
7023 * features/Makefile (WHICH): Add i386/i386-mmx and
7024 i386/i386-mmx-linux.
7025
7026 2010-04-08 Doug Evans <dje@google.com>
7027
7028 * source.c (openp): Skip $cdir in PATH.
7029
7030 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7031
7032 PR python/11417
7033 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7034 a NULL address.
7035 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7036 address and a zero length.
7037
7038 2010-04-08 Hui Zhu <teawater@gmail.com>
7039
7040 * i386-tdep.c (i386_process_record): Add support for insn
7041 rdtsc.
7042
7043 2010-04-07 Doug Evans <dje@google.com>
7044
7045 * python/python.c (source_python_script): Use ensure_python_env
7046 to prepare environment for script.
7047
7048 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7049
7050 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7051 <sys/uio.h> and "i386-xstate.h".
7052 (PTRACE_GETREGSET): New.
7053 (PTRACE_SETREGSET): Likewise.
7054 (have_ptrace_getregset): Likewise.
7055 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7056 registers.
7057 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7058 registers.
7059 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7060 (amd64_linux_store_inferior_registers): Likewise.
7061 (amd64_linux_read_description): Check and enable AVX target
7062 descriptions.
7063
7064 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7065 and "features/i386/amd64-avx-linux.c".
7066 (amd64_linux_regset_sections): New.
7067 (amd64_linux_core_read_description): Check and enable AVX
7068 target description.
7069 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7070 set_gdbarch_core_regset_sections.
7071 (_initialize_amd64_linux_tdep): Call
7072 initialize_tdesc_amd64_avx_linux.
7073
7074 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7075 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7076 (tdesc_amd64_avx_linux): New.
7077 (amd64_linux_update_xstateregset): Likewise.
7078
7079 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7080 (amd64_ymm_names): New.
7081 (amd64_ymmh_names): Likewise.
7082 (amd64_register_name): Likewise.
7083 (amd64_supply_xstateregset): Likewise.
7084 (amd64_collect_xstateregset): Likewise.
7085 (amd64_supply_xsave): Likewise.
7086 (amd64_collect_xsave): Likewise.
7087 (AMD64_NUM_REGS): Removed.
7088 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7089 %xmmN if AVX is available.
7090 (amd64_pseudo_register_name): Support pseudo YMM registers.
7091 (amd64_regset_from_core_section): Support .reg-xstate section.
7092 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7093 and ymm0h_regnum. Call set_gdbarch_register_name.
7094 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7095
7096 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7097 AMD64_YMM15H_REGNUM.
7098 (AMD64_NUM_REGS): New.
7099 (amd64_supply_xsave): Likewise.
7100 (amd64_collect_xsave): Likewise.
7101 (amd64_register_name): Removed.
7102 (amd64_register_type): Likewise.
7103
7104 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7105
7106 * i387-tdep.c: Include "i386-xstate.h".
7107 (XSAVE_XSTATE_BV_ADDR): New.
7108 (xsave_avxh_offset): Likewise.
7109 (XSAVE_AVXH_ADDR): Likewise.
7110 (i387_supply_xsave): Likewise.
7111 (i387_collect_xsave): Likewise.
7112
7113 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7114 (I387_YMM0H_REGNUM): Likewise.
7115 (I387_YMMENDH_REGNUM): Likewise.
7116 (i387_supply_xsave): Likewise.
7117 (i387_collect_xsave): Likewise.
7118
7119 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7120
7121 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7122 <sys/uio.h> and "i386-xstate.h".
7123 (PTRACE_GETREGSET): New.
7124 (PTRACE_SETREGSET): Likewise.
7125 (fetch_xstateregs): Likewise.
7126 (store_xstateregs): Likewise.
7127 (GETXSTATEREGS_SUPPLIES): Likewise.
7128 (regmap): Include 8 upper YMM registers.
7129 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7130 state.
7131 (i386_linux_store_inferior_registers): Likewise.
7132 (i386_linux_read_description): Check and enable AVX target
7133 descriptions.
7134
7135 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7136 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7137 (i386_linux_regset_sections): Add ".reg-xstate".
7138 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7139 (i386_linux_core_read_xcr0): New.
7140 (i386_linux_core_read_description): Check and enable AVX target
7141 description.
7142 (i386_linux_init_abi): Set xsave_xcr0_offset.
7143 (_initialize_i386_linux_tdep): Call
7144 initialize_tdesc_i386_avx_linux.
7145
7146 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7147 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7148 (i386_linux_core_read_xcr0): New.
7149 (tdesc_i386_avx_linux): Likewise.
7150 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7151
7152 * i386-tdep.c: Include "i386-xstate.h" and
7153 "features/i386/i386-avx.c".
7154 (i386_ymm_names): New.
7155 (i386_ymmh_names): Likewise.
7156 (i386_ymmh_regnum_p): Likewise.
7157 (i386_ymm_regnum_p): Likewise.
7158 (i386_xmm_regnum_p): Likewise.
7159 (i386_register_name): Likewise.
7160 (i386_ymm_type): Likewise.
7161 (i386_supply_xstateregset): Likewise.
7162 (i386_collect_xstateregset): Likewise.
7163 (i386_sse_regnum_p): Removed.
7164 (i386_pseudo_register_name): Support pseudo YMM registers.
7165 (i386_pseudo_register_type): Likewise.
7166 (i386_pseudo_register_read): Likewise.
7167 (i386_pseudo_register_write): Likewise.
7168 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7169 %xmmN if AVX is available.
7170 (i386_regset_from_core_section): Support .reg-xstate section.
7171 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7172 (i386_process_record): Replace i386_sse_regnum_p with
7173 i386_xmm_regnum_p.
7174 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7175 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7176 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7177 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7178 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7179 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7180 Set ymm0_regnum.
7181 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7182
7183 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7184 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7185 i386_ymm_type.
7186 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7187 (I386_AVX_NUM_REGS): New.
7188 (i386_xmm_regnum_p): Likewise.
7189 (i386_ymm_regnum_p): Likewise.
7190 (i386_ymmh_regnum_p): Likewise.
7191
7192 * common/i386-xstate.h: New.
7193
7194 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7195
7196 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7197
7198 * features/Makefile (WHICH): Add i386/i386-avx,
7199 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7200 (i386/i386-avx-expedite): New.
7201 (i386/i386-avx-linux-expedite): Likewise.
7202 (i386/x86-64-avx-expedite):Likewise.
7203 (i386/x86-64-avx-linux-expedite): Likewise.
7204 ($(outdir)/i386/i386-avx.dat): New dependency.
7205 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7206 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7207 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7208
7209 * features/i386/32bit-avx.xml: New.
7210 * features/i386/64bit-avx.xml: Likewise.
7211 * features/i386/i386-avx-linux.c: Likewise.
7212 * features/i386/i386-avx-linux.xml: Likewise.
7213 * features/i386/i386-avx.c: Likewise.
7214 * features/i386/i386-avx.xml: Likewise.
7215 * features/i386/x86-64-avx-linux.c: Likewise.
7216 * features/i386/x86-64-avx-linux.xml: Likewise.
7217 * features/i386/x86-64-avx.c: Likewise.
7218 * features/i386/x86-64-avx.xml: Likewise.
7219 * regformats/i386/i386-avx-linux.dat: Likewise.
7220 * regformats/i386/i386-avx.dat: Likewise.
7221 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7222 * regformats/i386/x86-64-avx.dat: Likewise.
7223
7224 2010-04-07 Doug Evans <dje@google.com>
7225
7226 * top.c (source_file_name): Make const char *.
7227 * top.h (source_file_name): Update.
7228 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7229 const char *.
7230 (script_from_file): Change `file' arg to const char *.
7231 * cli/cli-script.h (script_from_file): Update.
7232
7233 2010-04-06 Doug Evans <dje@google.com>
7234
7235 * cli/cli-cmds.c (source_command): Run cleanups.
7236
7237 2010-04-06 Stan Shebs <stan@codesourcery.com>
7238
7239 * defs.h (char_ptr): Move typedef here from...
7240 * ada-lang.c (char_ptr): Remove.
7241 * charset.c (char_ptr): Remove.
7242 * tracepoint.h (struct uploaded_string): Remove.
7243 (struct uploaded_tp): Use vectors for string arrays.
7244 * tracepoint.c (trace_save): Use vectors of actions.
7245 (parse_tracepoint_definition): Ditto.
7246 (get_uploaded_tp): Clear vectors.
7247 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7248 (next_cmd): Change to an int.
7249 (read_next_cmd): Use vector of command strings.
7250
7251 2010-04-06 Doug Evans <dje@google.com>
7252
7253 * top.h (source_script, cd_command): Delete.
7254 * main.c: #include "cli/cli-cmds.h"
7255
7256 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7257
7258 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7259 type in bytes, not bits.
7260
7261 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7262
7263 * stabsread.c (define_symbol): Add support for char
7264 and string constants.
7265
7266 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7267
7268 Remove remaining "%ll" uses.
7269 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7270 hex_string call.
7271 * rs6000-nat.c (rs6000_ptrace64): Idem.
7272 * solib-pa64.c (pa64_current_sos): Idem.
7273 * solib-spu.c (spu_current_sos): Idem.
7274 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7275 plongest call.
7276 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7277 phex (VAR, 8) call.
7278 * sh64-tdep.c (sh64_show_media_regs): Idem.
7279
7280 2010-04-05 Stan Shebs <stan@codesourcery.com>
7281
7282 * tracepoint.c: Include gdbcore.h.
7283 (tfile_xfer_partial): Return partial results, also try reading
7284 from executable.
7285 (tfile_has_all_memory): New function.
7286 (init_tfile_ops): Use it.
7287
7288 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7289
7290 PR gdb/10736:
7291 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7292 the changes in data-directory.
7293 (init_sysinfo): Reload the syscall XML file if the data-directory
7294 has changed.
7295
7296 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7297
7298 Code cleanup.
7299 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7300
7301 2010-04-04 Stan Shebs <stan@codesourcery.com>
7302 Nathan Sidwell <nathan@codesourcery.com>
7303
7304 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7305 breakpoints printed.
7306 (is_hardware_watchpoint): Make argument const.
7307 (is_watchpoint): Ditto.
7308 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7309 use it everywhere.
7310 (breakpoints_info): Pass NULL to breakpoint_1.
7311 (maintenance_info_breakpoints): Ditto.
7312 (watchpoints_info): New function.
7313 (tracepoints_info): Use breakpoint_1 filter.
7314 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7315 (_initialize_breakpoint): Make "info watchpoints" its own command.
7316 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7317 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7318
7319 2010-04-04 Stan Shebs <stan@codesourcery.com>
7320
7321 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7322
7323 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7324
7325 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7326 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7327
7328 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7329
7330 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7331 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7332
7333 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7334
7335 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7336 code form.
7337
7338 2010-04-02 Hui Zhu <teawater@gmail.com>
7339
7340 * i386-tdep.c (OT_DQUAD): New enum.
7341 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7342 SSE3, SSSE3 and SSE4.
7343
7344 2010-04-02 Hui Zhu <teawater@gmail.com>
7345
7346 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7347 "*addr = 0".
7348
7349 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7350
7351 * tracepoint.c (trace_dump_actions): New, factored out from
7352 trace_dump_command, and adjusted to recurse into while-stepping's
7353 action list.
7354 (trace_dump_command): Use it.
7355
7356 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7357
7358 * breakpoint.h (struct counted_command_line): Moved definition to
7359 breakpoint.c, and forward declare.
7360 (breakpoint_commands): Declare.
7361 * breakpoint.c (struct counted_command_line): Moved here.
7362 (breakpoint_commands): New.
7363 * tracepoint.c (encode_actions): Use breakpoint_commands.
7364 * remote.c (remote_download_tracepoint): Ditto.
7365
7366 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7367
7368 * remote.c (remote_parse_stop_reply): Use hex_string instead
7369 of phex_nz for error.
7370
7371 2010-04-01 Stan Shebs <stan@codesourcery.com>
7372 Nathan Sidwell <nathan@codesourcery.com>
7373
7374 * tracepoint.h (enum actionline_type): Remove.
7375 (validate_actionline): Change return to void.
7376 * tracepoint.c (report_agent_reqs_errors): New function.
7377 (validate_actionline): Call it, change return to void, report errors
7378 more consistently.
7379 (collect_symbol): Call report_agent_reqs_errors.
7380 (encode_actions_1): Ditto.
7381 (encode_actions): Don't expect a result from validate_actionline.
7382
7383 2010-04-01 Stan Shebs <stan@codesourcery.com>
7384
7385 * tracepoint.c (trace_start_command): Confirm if trace is running.
7386 (trace_stop_command): Error if trace not running.
7387
7388 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7389
7390 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7391 (AMD64_NUM_LOWER_BYTE_REGS): New.
7392 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7393 (amd64_pseudo_register_write): Likewise.
7394 (amd64_init_abi): Set num_byte_regs to 20.
7395
7396 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7397
7398 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7399 (prev_breakpoint_count): New.
7400 (set_breakpoint_count): Adjust.
7401 (rbreak_start_breakpoint_count): New.
7402 (start_rbreak_breakpoints): Adjust.
7403 (end_rbreak_breakpoints): Adjust.
7404 (struct commands_info) <arg>: New field.
7405 (do_map_commands_command): Tweak output to include breakpoint spec
7406 range.
7407 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7408 ARG was empty on entry. Set INFO's arg.
7409 (create_breakpoint): Adjust.
7410
7411 * NEWS: Clarify `commands' changes.
7412
7413 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7414
7415 * tracepoint.c: Include stack.h.
7416 (struct add_local_symbols_data): New.
7417 (do_collect_symbol): New.
7418 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7419 iterate_over_block_local_vars.
7420 * stack.c (print_block_frame_locals): Rewrite as ...
7421 (iterate_over_block_locals): ... this. Take a callback function
7422 pointer and generic data pointer, and call that instead of
7423 print_variable_and_value.
7424 (struct print_variable_and_value_data): New.
7425 (do_print_variable_and_value): New.
7426 (iterate_over_block_local_vars): New, abstracted out from
7427 print_frame_local_vars.
7428 (print_frame_local_vars): Rewrite using
7429 iterate_over_block_local_vars.
7430 (iterate_over_block_arg_vars): New, abstracted out from
7431 print_frame_arg_vars.
7432 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7433 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7434 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7435
7436 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7437
7438 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7439 instructions. Use the PC+4 if the base of the TBB or TBH is the
7440 PC register.
7441
7442 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7443
7444 Fix crash on reading wrong function declaration DWARF.
7445 * dwarf2read.c (read_subroutine_type): New variable void_type.
7446 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7447 more close to their use.
7448
7449 2010-03-31 Stan Shebs <stan@codesourcery.com>
7450
7451 * breakpoint.c (tracepoint_save_command): Include variables,
7452 conditionals, tracepoint types, and default-collect.
7453 * tracepoint.c (save_trace_state_variables): New function.
7454 * tracepoint.h (save_trace_state_variables): Declare it.
7455
7456 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7457
7458 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7459
7460 2010-03-30 Keith Seitz <keiths@redhat.com>
7461
7462 * c-typeprint.c (c_type_print_args): Don't print "void"
7463 for java, regardless of whether it is TYPE_PROTOTYPED.
7464 Use the passed-in language instead of current_language.
7465 (c_type_print_varspec_suffix): Use current_language instead
7466 of assuming language_c.
7467 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7468 any return type specifier from the physname.
7469
7470 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7471
7472 * tui/tui-interp.c (tui_is_toplevel): New.
7473 (tui_init): Set it.
7474 (tui_allowed_p): New.
7475 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7476 enabling it.
7477 * tui/tui.h (tui_allowed_p): Declare.
7478
7479 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7480
7481 * serial.h: Include winsock2.h before windows.h.
7482
7483 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7484
7485 * NEWS: Mention xmlRegisters= in qSupported packet.
7486
7487 * i386-tdep.c: Include "remote.h".
7488 (_initialize_i386_tdep): Call register_remote_support_xml.
7489
7490 * remote.c (remote_support_xml): New.
7491 (register_remote_support_xml): Likewise.
7492 (remote_query_supported_append): Likewise.
7493 (remote_query_supported): Support remote_support_xml.
7494
7495 * remote.h (register_remote_support_xml): New.
7496
7497 2010-03-29 Stan Shebs <stan@codesourcery.com>
7498
7499 * tracepoint.c (trace_find_line_command): Remove dead code.
7500
7501 * tracepoint.h (struct uploaded_string): New struct.
7502 (struct uploaded_tp): New fields for source strings.
7503 * breakpoint.c (this_utp, next_cmd): New globals.
7504 (read_uploaded_action): New function.
7505 (create_tracepoint_from_upload): Fill in more parts
7506 of a tracepoint.
7507 * tracepoint.c (encode_source_string): New function.
7508 (trace_save): Write out source strings, fix error checks.
7509 (parse_tracepoint_definition): Add source string parsing.
7510 * remote.c (PACKET_TracepointSource): New packet type.
7511 (remote_download_command_source): New function.
7512 (remote_download_tracepoint): Download source pieces also.
7513 (_initialize_remote): Add packet config command.
7514
7515 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7516 expression handler.
7517
7518 * tracepoint.c (start_tracing): Check tracepoints before sending
7519 commands to target, don't start if all tracepoints disabled.
7520
7521 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7522
7523 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7524
7525 2010-03-26 Stan Shebs <stan@codesourcery.com>
7526
7527 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7528
7529 2010-03-26 Tom Tromey <tromey@redhat.com>
7530
7531 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7532
7533 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7534
7535 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7536 (skip_prologue_sal): Remove local definition.
7537 (resolve_sal_pc): Remove now unnecessary code.
7538 * linespec.c (minsym_found): Call skip_prologue_sal.
7539 * symtab.c (find_function_start_pc): Remove.
7540 (find_function_start_sal): Extract prologue skipping into ...
7541 (skip_prologue_sal): ... this new function. Handle code both
7542 with and without debug info. Respect SAL's explicit_pc and
7543 explicit_line flags. Inline old find_function_start_pc.
7544 * symtab.h (find_function_start_pc): Remove.
7545 (skip_prologue_sal): Add prototype.
7546
7547 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7548
7549 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7550 for DW_TAG_imported_module children.
7551
7552 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7553
7554 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7555 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7556 * completer.c (add_struct_fields): Fix inverted logic.
7557
7558 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7559
7560 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7561
7562 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7563
7564 * tracepoint.c (current_trace_status): Don't make sure error_desc
7565 is non-NULL here.
7566 (parse_trace_status): Release a previous error_desc string, and
7567 set it to NULL by default. If stop reason is tracepoint_error,
7568 make sure error_desc is not left NULL.
7569
7570 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7571
7572 * tracepoint.c (trace_save): Remove X from tracepoint error
7573 description.
7574
7575 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7576
7577 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7578 the terror description. Don't expect an X prefix.
7579
7580 2010-03-25 Stan Shebs <stan@codesourcery.com>
7581
7582 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7583 (struct trace_status): New field error_desc.
7584 * tracepoint.c (stop_reason_names): Add terror.
7585 (current_trace_status): Ensure non-NULL error description.
7586 (trace_status_command): Add error report.
7587 (trace_status_mi): Ditto.
7588 (trace_save): Add special case for error description.
7589 (parse_trace_status): Add case for errors.
7590
7591 2010-03-25 Keith Seitz <keiths@redhat.com>
7592
7593 * dwarf2read.c (read_subroutine_type): If the compilation unit
7594 language is Java, mark any formal parameter named "this" as
7595 artificial (GCC/43521).
7596 (dwarf2_name): Add special handling for Java constructors.
7597
7598 2010-03-25 Tom Tromey <tromey@redhat.com>
7599
7600 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7601 * infrun.c (handle_inferior_event): Change initialization of
7602 stop_stack_dummy.
7603 (handle_inferior_event): Change assignment to stop_stack_dummy.
7604 (normal_stop): Update use of stop_stack_dummy.
7605 (struct inferior_status) <stop_stack_dummy>: Change type.
7606 * inferior.h (stop_stack_dummy): Update.
7607 * infcmd.c (stop_stack_dummy): Change type.
7608 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7609 function.
7610 (call_function_by_hand): Call set_std_terminate_breakpoint.
7611 Rewrite std::terminate handling.
7612 * breakpoint.h (enum bptype) <bp_std_terminate,
7613 bp_std_terminate_master>: New.
7614 (enum stop_stack_kind): New.
7615 (struct bpstat_what) <call_dummy>: Change type.
7616 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7617 Declare.
7618 * breakpoint.c (create_std_terminate_master_breakpoint): New
7619 function.
7620 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7621 Call create_std_terminate_master_breakpoint.
7622 (print_it_typical): Handle new breakpoint kinds.
7623 (bpstat_stop_status): Handle bp_std_terminate_master.
7624 (bpstat_what): Correctly set call_dummy field. Handle
7625 bp_std_terminate_master and bp_std_terminate.
7626 (print_one_breakpoint_location): Update.
7627 (allocate_bp_location): Update.
7628 (set_std_terminate_breakpoint): New function.
7629 (delete_std_terminate_breakpoint): Likewise.
7630 (create_thread_event_breakpoint): Update.
7631 (delete_command): Update.
7632 (breakpoint_re_set_one): Update.
7633 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7634
7635 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7636
7637 * symfile.c (build_section_addr_info_from_bfd): New.
7638 (build_section_addr_info_from_objfile): Base it on
7639 build_section_addr_info_from_bfd.
7640 (addrs_section_compar, addrs_section_sort): New.
7641 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7642 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7643 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7644
7645 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7646
7647 * elfread.c (find_separate_debug_file_by_buildid):
7648 Remove unused local variable.
7649
7650 2010-03-24 Tom Tromey <tromey@redhat.com>
7651
7652 PR breakpoints/9352:
7653 * NEWS: Mention changes to `commands' and `rbreak'.
7654 * symtab.c (do_end_rbreak_breakpoints): New function.
7655 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7656 end_rbreak_breakpoints.
7657 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7658 (set_breakpoint_count): Likewise. Clear last_was_multi.
7659 (multi_start, multi_end, last_was_multi): New globals.
7660 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7661 functions.
7662 (struct commands_info): New
7663 (do_map_commands_command): New function.
7664 (commands_command_1): New function.
7665 (commands_command): Use it.
7666 (commands_from_control_command): Likewise.
7667 (do_delete_breakpoint): New function.
7668 (delete_command): Use it.
7669 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7670 (do_map_disable_breakpoint): New function.
7671 (disable_command): Use it.
7672 (do_map_enable_breakpoint): New function.
7673 (enable_command): Use it.
7674 (enable_once_breakpoint): Add argument.
7675 (enable_once_command): Update.
7676 (enable_delete_breakpoint): Add argument.
7677 (enable_delete_command): Update.
7678 (break_command_really): Set last_was_multi when needed.
7679 (check_tracepoint_command): Fix formatting.
7680 (validate_commands_for_breakpoint): New function.
7681 (breakpoint_set_commands): Use it.
7682 (tracepoint_save_command): Update.
7683 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7684 Declare.
7685
7686 2010-03-24 Tom Tromey <tromey@redhat.com>
7687
7688 * breakpoint.h (struct counted_command_line): New struct.
7689 (struct breakpoint) <commands>: Change type.
7690 (struct bpstats) <commands>: Change type.
7691 <commands_left>: New field.
7692 * breakpoint.c (alloc_counted_command_line): New function.
7693 (incref_counted_command_line): Likewise.
7694 (decref_counted_command_line): Likewise.
7695 (do_cleanup_counted_command_line): Likewise.
7696 (make_cleanup_decref_counted_command_line): Likewise.
7697 (breakpoint_set_commands): Use decref_counted_command_line and
7698 alloc_counted_command_line.
7699 (commands_command): Don't error if breakpoint commands are
7700 executing.
7701 (commands_from_control_command): Likewise.
7702 (bpstat_free): Update.
7703 (bpstat_copy): Likewise.
7704 (bpstat_clear_actions): Likewise.
7705 (bpstat_do_actions_1): Likewise.
7706 (bpstat_stop_status): Likewise.
7707 (print_one_breakpoint_location): Likewise.
7708 (delete_breakpoint): Likewise.
7709 (bpstat_alloc): Initialize new field.
7710 (tracepoint_save_command): Update.
7711 * tracepoint.c (encode_actions): Update.
7712 (trace_dump_command): Update.
7713
7714 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7715
7716 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7717 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7718 (read_structure_type): For RealView, set TYPE_STUB on structures with
7719 no byte size and no children.
7720 (read_subroutine_type): Mark functions as prototyped by default.
7721 * symtab.c (producer_is_realview): New function.
7722 * symtab.h (expand_line_sal): Fix declaration formatting.
7723 (producer_is_realview): Declare.
7724
7725 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7726
7727 * arm-tdep.c (skip_prologue_function): New function.
7728 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7729 (thumb_analyze_prologue): Document return value. Recognize more
7730 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7731 Add debug output.
7732 (arm_skip_prologue): Remove call dummy check. Check the prologue
7733 for non-GNU compilers.
7734 (arm_instruction_changes_pc): New function.
7735 (arm_analyze_prologue): New function, broken out from
7736 arm_scan_prologue. Recognize more ARM instructions and skippable
7737 calls. Update comments. Handle NULL cache. Return the address
7738 of the first unrecognized instruction. Do not skip past other
7739 instructions which change control flow. Add debug output.
7740 (arm_scan_prologue): Use arm_analyze_prologue.
7741 (ARM_PC_32): Delete.
7742 (shifted_reg_val): Simplify ARM_PC_32 check.
7743
7744 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7745
7746 * tracepoint.c (tvariables_info_1): Actually compute
7747 the number of rows in the result.
7748
7749 2010-03-24 Pedro Alves <pedro@codesourcery.com>
7750
7751 * remote.c (crc32): Constify `buf' parameter.
7752 (remote_verify_memory): New, abstracted out from...
7753 (compare_sections_command): ... this. Remove hardcoded target
7754 checks.
7755 (init_remote_ops): Install remote_verify_memory.
7756 * target.c (target_verify_memory): New.
7757 * target.h (struct target_ops) <to_verify_memory>: New field.
7758 (target_verify_memory): Declare.
7759
7760 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7761
7762 Implement -trace-save.
7763
7764 * mi-cmds.h (mi_cmds_trace_save): Declare.
7765 * mi-cmds.c (mi_cmds): Register -trace-save.
7766 * mi/mi-main.c (mi_cmd_trace_save): New.
7767 * remote.c (remote_save_trace_data): Take const parameter.
7768 * target.h (struct target_ops::to_save_trace_data): Take
7769 const parameter.
7770 * target.c (update_current_target): Adjust to the above.
7771 * tracepoint.c (trave_save): New, extracted from
7772 (trace_save_command): ...this.
7773 (tfile_trace_find): Remove message that is unnecessary now
7774 that 'tfind' reports found frame.
7775 * tracepoint.h (trace_save): Declare.
7776
7777 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7778
7779 Implement -trace-find.
7780
7781 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7782 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7783 * mi/mi-main.c (mi_cmd_trace_find): New.
7784 * target.h (struct target_ops): Document to_trace_find.
7785 * tracepoint.h (tfind_1): Declare.
7786 * tracepoint.c (finish_tfind_command): Rename to...
7787 (tfind_1): ...this.
7788 * remote.c (remote_trace_find): Return -1 if target say
7789 there's no frame. Improve error diagnostics.
7790
7791 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7792
7793 -trace-define-variable and -trace-list-variables.
7794
7795 * tracepoint.c (create_trace_state_variable): Make
7796 private copy of name, as opposed to assuming the
7797 pointer lives forever.
7798 (tvariables_info_1): New.
7799 (tvariables_info): Use the above.
7800 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7801 Declare.
7802 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7803 and -trace-list-variables.
7804 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7805 (mi_cmd_trace_list_variables): New.
7806 * mi/mi-main.c (mi_cmd_trace_define_variable)
7807 (mi_cmd_trace_list_variables): New.
7808
7809 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7810
7811 Implement -break-passcount.
7812
7813 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7814 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7815 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7816
7817 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7818
7819 -trace-start/-trace-end/-trace-status.
7820
7821 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7822 and -trace-stop.
7823 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7824 (mi_cmd_trace_stop): Declare.
7825 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7826 (mi_cmd_trace_stop): New.
7827 * tracepoint.c (start_tracing): New, extracted from...
7828 (trace_start_command): ...this.
7829 (trace_status_mi): New.
7830 * tracepoint.h (struct trace_status): Document
7831 stopping_tracepoint.
7832 (start_tracing, stop_tracing, trace_status_mi): Declare.
7833
7834 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7835
7836 Implement creating tracepoints with -break-insert.
7837
7838 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7839 to mean that tracepoint should be created.
7840
7841 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7842
7843 * breakpoint.c (check_no_tracepoint_commands): Use
7844 current spelling of 'teval'.
7845
7846 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7847
7848 Unify actions and commands
7849
7850 * defs.h (read_command_lines, read_command_lines_1): New
7851 parameters validator and closure.
7852 * tracepoint.h (struct action_line): Remove.
7853 * breakpoint.h (struct breakpoint): Remove the 'actions'
7854 field.
7855 * defs.h (enum command_control_type): New value
7856 while_stepping_control.
7857 (struct command_line): Add comments.
7858 * breakpoint.c (breakoint_is_tracepoint): New.
7859 (breakpoint_set_commands): For tracepoints,
7860 verify the commands are permissible.
7861 (check_tracepoint_commands): New.
7862 (commands_command): Require that each new line is validated using
7863 check_tracepoint_command, if we set commands for a tracepoint.
7864 (create_tracepoint_from_upload): Likewise.
7865 (print_one_breakpoint_location): Remove the code to print
7866 actions specifically.
7867 (tracepoint_save_command): Relay to print_command_lines.
7868 * cli/cli-script.c (process_next_line): New parameters validator
7869 and closure. Handle 'while-stepping'. Call validator if not null.
7870 (read_command_lines, read_command_lines1): Likewise.
7871 (recurse_read_control_structure): New parameters validator and
7872 closure. Handle while_stepping_control.
7873 (print_command_lines): Handle while-stepping.
7874 (get_command_line, define_command, document_command): Adjust.
7875 * remote.c (remote_download_tracepoint): Adjust.
7876 * tracepoint.c (make_cleanup_free_actions, read_actions)
7877 (free_actions, do_free_actions_cleanup): Remove.
7878 (trace_actions_command): Use read_command_lines.
7879 (validate_actionline): Use error in one place.
7880 (encode_actions_1): New, extracted from...
7881 (encode_actions): ...this. Also use cleanups for exception
7882 safety.
7883 (trace_dump_command): Adjust.
7884 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7885 it's tracepoint.
7886
7887 2010-03-23 Mike Frysinger <vapier@gentoo.org>
7888
7889 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7890
7891 2010-03-22 Stan Shebs <stan@codesourcery.com>
7892
7893 * value.c (value_static_field): Be lazy about the field's value.
7894
7895 2010-03-22 Reid Kleckner <reid@kleckner.net>
7896
7897 PR gdb/11094
7898 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7899 bp_jit_event.
7900 (disable_breakpoints_in_shlibs): Likewise.
7901
7902 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7903
7904 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7905 GCC 4.1 debug info generation (GCC PR c++/28460).
7906 (determine_prefix): Likewise.
7907
7908 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7909
7910 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7911 get_current_arch.
7912 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7913
7914 2010-03-19 Stan Shebs <stan@codesourcery.com>
7915
7916 * ax-gdb.c (gen_fetch): Handle bool.
7917 (gen_usual_unary): Ditto.
7918 (gen_cast): Ditto.
7919 (gen_equal): New function.
7920 (gen_less): New function.
7921 (gen_expr_binop_rest): Call them, also return integer type from
7922 logical operations.
7923 (gen_expr): Ditto.
7924
7925 2010-03-19 Tom Tromey <tromey@redhat.com>
7926
7927 * jv-lang.c (jv_dynamics_objfile_data_key)
7928 (jv_type_objfile_data_key): New globals.
7929 (class_symtab): Move earlier.
7930 (jv_per_objfile_free): New function.
7931 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7932 parameter.
7933 Remove ancient #if 1.
7934 (add_class_symbol): Remove redundant declaration.
7935 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7936 (java_link_class_type): Mark as static. Update.
7937 (jv_clear_object_type): New function.
7938 (set_java_object_type): Likewise.
7939 (get_java_object_type): Use set_java_object_type.
7940 (is_object_type): Likewise.
7941 (_initialize_java_language): Register new objfile keys.
7942 (get_java_class_symtab): Add 'gdbarch' parameter.
7943 (add_class_symtab_symbol): Update.
7944 (type_from_class): Update.
7945
7946 2010-03-19 Stan Shebs <stan@codesourcery.com>
7947
7948 * ax-general.c (ax_const_l): Fix a sizing bug.
7949
7950 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7951
7952 GDB 7.1 released.
7953
7954 2010-03-18 Stan Shebs <stan@codesourcery.com>
7955 Pedro Alves <pedro@codesourcery.com>
7956
7957 * target.h (struct target_ops): New method
7958 to_set_circular_trace_buffer.
7959 (target_set_circular_trace_buffer): New macro.
7960 * target.c (update_current_target): Add
7961 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7962 default behavior.
7963 * remote.c (remote_set_circular_trace_buffer): New function.
7964 (init_remote_ops): Add it to vector.
7965 * tracepoint.h (struct trace_status): New field traceframes_created,
7966 change buffer_size and buffer_free to int.
7967 * tracepoint.c (circular_trace_buffer): New global.
7968 (start_tracing): Send values of disconnected tracing and circular
7969 trace buffer settings.
7970 (set_circular_trace_buffer): New function.
7971 (parse_trace_state): Handle total space and frames created.
7972 (trace_status_command): Display total space and total frames
7973 created.
7974 (trace_save): Write out new status values.
7975 (parse_trace_status): Set traceframe_count, traceframes_created,
7976 buffer_free and buffer_size to -1 by default.
7977 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7978 * NEWS: Mention the circular trace buffer option.
7979
7980 2010-03-18 Tom Tromey <tromey@redhat.com>
7981
7982 * infcmd.c (finish_command_continuation): Wrap print_return_value
7983 in TRY_CATCH.
7984
7985 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7986
7987 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7988 DIE has a name before creating the associated partial symbol.
7989 (read_func_scope): Emit a complaint if the subprogram does not
7990 have a name or when we can't extract the subprogram PC bounds.
7991
7992 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7993
7994 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7995 instead of selected frame architecture.
7996
7997 2010-03-18 Pedro Alves <pedro@codesourcery.com>
7998
7999 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8000 a valid selected thread, and that it is not running.
8001 (advance_command): Ditto.
8002 (finish_command): Ditto.
8003
8004 2010-03-17 Stan Shebs <stan@codesourcery.com>
8005
8006 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8007
8008 * infcall.c: Include tracepoint.h.
8009 (call_function_by_hand): Disallow calls in tfind mode.
8010 * infcmd.c: Include tracepoint.h.
8011 (ensure_not_tfind_mode): New function.
8012 (continue_1): Call it.
8013 (step_1) Ditto.
8014 (jump_command): Ditto.
8015 (signal_command): Ditto.
8016 (advance_command): Ditto.
8017 (until_command): Ditto.
8018 (finish_command): Ditto.
8019 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8020
8021 * ax-gdb.h (struct axs_value): New field optimized_out.
8022 (gen_trace_for_var): Add gdbarch argument.
8023 * ax-gdb.c (gen_trace_static_fields): New function.
8024 (gen_traced_pop): Call it, add gdbarch argument.
8025 (gen_trace_for_expr): Update call to it.
8026 (gen_trace_for_var): Ditto, and report optimized-out variables.
8027 (gen_struct_ref_recursive): Check for optimized-out value.
8028 (gen_struct_elt_for_reference): Ditto.
8029 (gen_static_field): Pass gdbarch instead of expression, assume
8030 optimization if field not found.
8031 (gen_var_ref): Set the optimized_out flag.
8032 (gen_expr): Error on optimized-out variable.
8033 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8034 expressions, skip optimized-out variables with computed locations.
8035 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8036 erroring out if location expression missing.
8037 (loclist_tracepoint_var_ref): Don't error out here.
8038
8039 2010-03-17 Tom Tromey <tromey@redhat.com>
8040
8041 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8042 DWARF data is available.
8043
8044 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8045
8046 * symfile.c (generic_load): Reset breakpoints after loading.
8047
8048 2010-03-17 Tom Tromey <tromey@redhat.com>
8049
8050 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8051
8052 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8053
8054 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8055 create_breakpoint call, adjust the parameters.
8056
8057 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8058 Chandru <chandru@in.ibm.com>
8059
8060 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8061 * valarith.c (value_subscripted_rvalue): Suppress error if
8062 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8063
8064 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8065
8066 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8067
8068 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8069
8070 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8071 before doing the associated thread switch.
8072
8073 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8074
8075 * MAINTAINERS: Update my email address.
8076
8077 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8078
8079 Simplify MI breakpoint setting.
8080
8081 * breakpoint.c (break_command_really): Make nonstatic and
8082 rename to...
8083 (create_breakpoint): ...this. Rename prior function by this name
8084 to...
8085 (create_breakpoint_sal): ...this.
8086 (create_breakpoints): Rename to...
8087 (create_breakpoints_sal): ...this.
8088 (set_breakpoint): Remove.
8089 * breakpoint.h: Adjust to above changes.
8090 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8091
8092 2010-03-15 Stan Shebs <stan@codesourcery.com>
8093
8094 * ax-gdb.c: Include cp-support.h.
8095 (find_field): Remove.
8096 (gen_primitive_field): New function.
8097 (gen_struct_ref_recursive): New function.
8098 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8099 of find_field.
8100 (gen_static_field): New function.
8101 (gen_struct_elt_for_reference): New.
8102 (gen_namespace_elt): New.
8103 (gen_maybe_namespace_elt): New.
8104 (gen_aggregate_elt_ref): New.
8105 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8106
8107 2010-03-15 Tom Tromey <tromey@redhat.com>
8108
8109 * dwarf2read.c (die_needs_namespace): Also return 0 for
8110 DW_TAG_subprogram.
8111
8112 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8113
8114 PR c++/7936:
8115 * cp-support.h: Added char *declaration element to using_direct
8116 data struct.
8117 (cp_add_using): Added char *declaration argument.
8118 (cp_add_using_directive): Ditto.
8119 (cp_lookup_symbol_imports): made extern.
8120 * cp-namespace.c: Updated with the above changes.
8121 * dwarf2read.c (read_import_statement): Ditto.
8122 (read_namespace): Ditto.
8123 (read_import_statement): Support import declarations.
8124 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8125 declarations.
8126 Added support for 'declaration_only' search.
8127 (cp_lookup_symbol_namespace): Attempt to search for the name as
8128 is before consideration of imports.
8129 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8130 search at every block level search.
8131 Now takes language argument.
8132 (lookup_symbol_aux): Updated.
8133
8134 2010-03-15 Tom Tromey <tromey@redhat.com>
8135
8136 * c-exp.y (name_not_typename): Add 'operator' clause.
8137
8138 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8139
8140 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8141 * configure: Regenerate.
8142
8143 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8144
8145 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8146 and ".sdynbss". Update the comment.
8147
8148 2010-03-15 Jie Zhang <jie@codesourcery.com>
8149
8150 * MAINTAINERS: Update my email address.
8151
8152 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8153
8154 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8155
8156 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8157
8158 * charset.c [USE_WIN32API]: Include <windows.h>.
8159 (_initialize_charset): Correct type of w32_host_default_charset.
8160
8161 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8162
8163 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8164
8165 2010-03-12 Tom Tromey <tromey@redhat.com>
8166
8167 PR c++/9708:
8168 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8169 in a lexical block does not need a namespace.
8170 (new_symbol) <DW_TAG_variable>: Put extern variables on
8171 list_in_scope in all cases.
8172
8173 2010-03-12 Stan Shebs <stan@codesourcery.com>
8174
8175 * ax-gdb.c (gen_expr): Add shift expressions.
8176 (gen_expr_binop_rest): Ditto.
8177
8178 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8179
8180 * buildsym.c (finish_block): Reset using_directives pointer
8181 after block initialization.
8182
8183 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8184
8185 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8186 * i386-tdep.c (i386_word_names): Likewise.
8187
8188 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8189
8190 * target.c (memory_xfer_partial): Don't use the stack cache if
8191 inspecting trace frames.
8192 * tracepoint.c (finish_tfind_command): Invalidate the target
8193 dcache.
8194
8195 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8196
8197 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8198 for the PIC displacement, print also the displacement value.
8199 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8200
8201 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8202
8203 * remote-mips.c (close_ports, mips_initialize_cleanups)
8204 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8205 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8206 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8207 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8208 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8209 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8210 comments describing each of these functions.
8211 (mips_enter_debug, mips_exit_debug, common_open)
8212 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8213 blank line after the comment describing the function.
8214
8215 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8216
8217 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8218 parameter displacementp. Update comment.
8219 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8220 element exists. Return if svr4_exec_displacement was not successful.
8221 Update comment.
8222
8223 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8224 Daniel Jacobowitz <dan@codesourcery.com>
8225
8226 * solib-svr4.c (read_program_header): Support type == -1 to read
8227 all program headers.
8228 (read_program_headers_from_bfd): New function.
8229 (svr4_static_exec_displacement): Remove and move the comment ...
8230 (svr4_exec_displacement): ... here. Remove variable found. New
8231 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8232 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8233 targets using read_program_headers_from_bfd. Remove the call of
8234 svr4_static_exec_displacement.
8235
8236 2010-03-10 Tom Tromey <tromey@redhat.com>
8237
8238 * dwarf2read.c (struct pubnames_header): Remove.
8239 (_PUBNAMES_HEADER): Remove.
8240 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8241 (struct aranges_header): Remove.
8242 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8243 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8244 (PUBNAMES_SECTION): Remove.
8245 (ARANGES_SECTION): Remove.
8246 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8247 (dwarf2_build_psymtabs): Remove dead code.
8248 (dwarf2_build_psymtabs_easy): Remove.
8249
8250 2010-03-10 Tom Tromey <tromey@redhat.com>
8251
8252 * elfread.c (elf_symfile_read): Don't call
8253 dwarf2_build_frame_info.
8254 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8255 (struct dwarf2_per_objfile) <objfile>: New field.
8256 (dwarf2_has_info): Now idempotent. Set objfile field.
8257 (dwarf2_read_section): Check and set readin field. Call
8258 posix_madvise.
8259 (dwarf2_build_psymtabs): Don't read all sections.
8260 (read_type_comp_unit_head): Read types section.
8261 (create_debug_types_hash_table): Likewise.
8262 (init_cu_die_reader): Add asserts.
8263 (process_type_comp_unit): Add assert.
8264 (dwarf2_build_psymtabs_hard): Read info section.
8265 (load_partial_comp_unit): Add assert.
8266 (create_all_comp_units): Read info section.
8267 (load_full_comp_unit): Likewise.
8268 (dwarf2_ranges_read): Read ranges section.
8269 (dwarf2_record_block_ranges): Add assert.
8270 (dwarf2_read_abbrevs): Read abbrev section.
8271 (read_indirect_string): Read str section.
8272 (dwarf_decode_line_header): Read line section.
8273 (read_signatured_type_at_offset): Read types section.
8274 (dwarf_decode_macros): Read macinfo section.
8275 (dwarf2_symbol_mark_computed): Read loc section.
8276 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8277 dwarf2_build_frame_info.
8278 (dwarf2_build_frame_info): Unconditionally set
8279 dwarf2_frame_objfile_data on the objfile.
8280 * configure.ac: Check for posix_madvise.
8281 * config.in, configure: Rebuild.
8282
8283 2010-03-10 Tom Tromey <tromey@redhat.com>
8284
8285 * xcoffread.c (xcoff_start_psymtab): Update.
8286 (xcoff_end_psymtab): Update.
8287 * psymtab.c (allocate_psymtab): Remove dead code.
8288 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8289 void*.
8290 * mdebugread.c (parse_partial_symbols): Update.
8291 (new_psymtab): Likewise.
8292 * dwarf2read.c (process_psymtab_comp_unit): Update.
8293 (psymtab_to_symtab_1): Update.
8294 * dbxread.c (start_psymtab): Update.
8295 (end_psymtab): Likewise.
8296
8297 2010-03-10 Tom Tromey <tromey@redhat.com>
8298
8299 * xcoffread.c: Include psymtab.h.
8300 (xcoff_sym_fns): Update.
8301 * symtab.h (struct partial_symbol): Remove.
8302 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8303 (struct partial_symtab): Remove.
8304 (PSYMTAB_TO_SYMTAB): Remove.
8305 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8306 (find_pc_sect_psymtab): Remove.
8307 (find_pc_sect_symtab_via_partial): Declare.
8308 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8309 (find_main_psymtab): Remove.
8310 (find_main_filename): Declare.
8311 (fixup_psymbol_section): Remove.
8312 (fixup_section): Declare.
8313 * symtab.c: Include psymtab.h.
8314 (lookup_symtab): Use lookup_symtab method.
8315 (lookup_partial_symtab): Remove.
8316 (find_pc_sect_psymtab_closer): Remove.
8317 (find_pc_sect_psymtab): Remove.
8318 (find_pc_sect_symtab_via_partial): New function.
8319 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8320 (fixup_section): No longer static.
8321 (fixup_psymbol_section): Remove.
8322 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8323 (lookup_global_symbol_from_objfile): Likewise.
8324 (lookup_symbol_aux_psymtabs): Remove.
8325 (lookup_symbol_aux_quick): New function.
8326 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8327 (lookup_partial_symbol): Remove.
8328 (basic_lookup_transparent_type_quick): New function.
8329 (basic_lookup_transparent_type): Use it.
8330 (find_main_psymtab): Remove.
8331 (find_main_filename): New function.
8332 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8333 (find_line_symtab): Use expand_symtabs_with_filename method.
8334 (output_partial_symbol_filename): New function.
8335 (sources_info): Use map_partial_symbol_filenames.
8336 (struct search_symbols_data): New type.
8337 (search_symbols_file_matches): New function.
8338 (search_symbols_name_matches): Likewise.
8339 (search_symbols): Use expand_symtabs_matching method.
8340 (struct add_name_data): Rename from add_macro_name_data.
8341 (add_macro_name): Update.
8342 (add_partial_symbol_name): New function.
8343 (default_make_symbol_completion_list): Use
8344 map_partial_symbol_names.
8345 (struct add_partial_symbol_name): New type.
8346 (maybe_add_partial_symtab_filename): New function.
8347 (make_source_files_completion_list): Use
8348 map_partial_symbol_filenames.
8349 (expand_line_sal): Use expand_symtabs_with_filename method.
8350 * symmisc.c: Include psymtab.h.
8351 (print_objfile_statistics): Use print_stats method.
8352 (dump_objfile): Use dump method.
8353 (dump_psymtab, maintenance_print_psymbols)
8354 (maintenance_info_psymtabs, maintenance_check_symtabs)
8355 (extend_psymbol_list): Remove.
8356 * symfile.h (struct quick_symbol_functions): New struct.
8357 (struct sym_fns) <qf>: New field.
8358 (sort_pst_symbols): Remove.
8359 (increment_reading_symtab): Declare.
8360 * symfile.c: Include psymtab.h.
8361 (compare_psymbols, sort_pst_symbols): Remove.
8362 (psymtab_to_symtab): Remove.
8363 (increment_reading_symtab): New function.
8364 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8365 method.
8366 (set_initial_language): Use find_main_filename.
8367 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8368 (free_named_symtabs): Remove unused code.
8369 (start_psymtab_common, add_psymbol_to_bcache)
8370 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8371 Remove.
8372 * stack.c: Include psymtab.h, symfile.h.
8373 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8374 * source.h (psymtab_to_fullname): Don't declare.
8375 * source.c: Include psymtab.h.
8376 (select_source_symtab): Use find_last_source_symtab method.
8377 (forget_cached_source_info): Use forget_cached_source_info
8378 method.
8379 (find_and_open_source): No longer static.
8380 (psymtab_to_fullname): Remove.
8381 * somread.c: Include psymtab.h.
8382 (som_sym_fns): Update.
8383 * psympriv.h: New file.
8384 * psymtab.h: New file.
8385 * psymtab.c: New file.
8386 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8387 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8388 * objfiles.c: Include psymtab.h.
8389 (objfile_relocate1): Use relocate method.
8390 (objfile_has_partial_symbols): Use has_symbols method.
8391 * mipsread.c: Include psymtab.h.
8392 (ecoff_sym_fns): Update.
8393 * mi/mi-cmd-file.c: Include psymtab.h.
8394 (print_partial_file_name): New function.
8395 (mi_cmd_file_list_exec_source_files): Use
8396 map_partial_symbol_filenames.
8397 * mdebugread.c: Include psympriv.h.
8398 * machoread.c: Include psympriv.h.
8399 (macho_sym_fns): Update.
8400 * m2-exp.y (yylex): Use lookup_symtab.
8401 * elfread.c: Include psympriv.h.
8402 (elf_sym_fns): Update.
8403 * dwarf2read.c: Include psympriv.h.
8404 * dbxread.c: Include psympriv.h.
8405 (aout_sym_fns): Update.
8406 * cp-support.c: Include psymtab.h.
8407 (read_in_psymtabs): Remove.
8408 (make_symbol_overload_list_qualified): Use
8409 expand_symtabs_for_function method.
8410 * coffread.c: Include psympriv.h.
8411 (coff_sym_fns): Update.
8412 * blockframe.c: Include psymtab.h.
8413 (find_pc_partial_function): Use find_pc_sect_symtab method.
8414 * ada-lang.h (ada_update_initial_language): Update.
8415 * ada-lang.c: Include psymtab.h.
8416 (ada_update_initial_language): Remove 'main_pst' argument.
8417 (ada_lookup_partial_symbol): Remove.
8418 (struct ada_psym_data): New type.
8419 (ada_add_psyms): New function.
8420 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8421 (struct add_partial_datum): New type.
8422 (ada_add_partial_symbol_completions): New function.
8423 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8424 (ada_exception_support_info_sniffer): Update.
8425 * Makefile.in (SFILES): Add psymtab.c.
8426 (COMMON_OBS): Add psymtab.o.
8427 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8428
8429 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8430
8431 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8432
8433 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8434
8435 PR C++/11236:
8436 * cp-namespace.c (cp_add_using): Deleted.
8437 (cp_add_using_directive): Use obstack allocations.
8438 Merged the function cp_add_using into this one.
8439 Added 'struct obstack *' argument.
8440 (cp_scan_for_anonymous_namespaces): Updated.
8441 * cp-support.h: Updated.
8442 * dwarf2read.c (read_import_statement): Updated.
8443 (read_namespace): Updated.
8444
8445 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8446
8447 * windows-nat.c (cygwin_conv_path): Remove old macro.
8448
8449 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8450
8451 * breakpoint.c (condition_command): Handle watchpoint conditions.
8452 (is_hardware_watchpoint): Add comment.
8453 (is_watchpoint): New.
8454 (update_watchpoint): Don't reparse the watchpoint's condition
8455 unless necessary.
8456 (WP_IGNORE): New.
8457 (watchpoint_check): Use it.
8458 (bpstat_check_watchpoint): Handle it.
8459 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8460 conditions in a frame where it makes sense.
8461 (watch_command_1): Store the innermost block of the condition
8462 expression.
8463 (delete_breakpoint): Delete the watchpoint condition expression.
8464 * breakpoint.h (struct bp_location) <cond>: Update comment.
8465 (struct breakpoint): New field `cond_exp_valid_block'.
8466
8467 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8468
8469 Adjust handling of Ada DIEs after dwarf2_physname patch.
8470 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8471
8472 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8473 Pierre Muller <muller@ics.u-strasbg.fr>
8474
8475 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8476 from/to posix/win32.
8477 (windows_make_so): Use non-Cygwin 1.7 specific function.
8478 (windows_create_inferior): Make sure that cygallargs points to
8479 original args in non Cygwin 1.7. case.
8480
8481 2010-03-09 Michael Snyder <msnyder@vmware.com>
8482
8483 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8484 after target_read_memory to get host byte order.
8485 (i386_process_record): Ditto.
8486
8487 2010-03-09 Keith Seitz <keiths@redhat.com>
8488
8489 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8490 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8491 print out const or volatile qualifiers, too.
8492 (c_type_print_args): Add parameters show_artificial and language.
8493 Skip artificial parameters when requested.
8494 Use the appropriate language printer.
8495 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8496 parameters and pass language_c.
8497 * dwarf2read.c (die_list): New file global.
8498 (struct partial_die_info): Update comments for name field.
8499 (pdi_needs_namespace): Renamed to ...
8500 (die_needs_namespace): ... this. Rewrite.
8501 (dwarf2_linkage_name): Remove.
8502 (add_partial_symbol): Do not predicate the call to
8503 partial_die_full_name based on pdi_needs_namespace.
8504 Remove call to cp_check_possible_namespace_symbols and associated
8505 outdated comments.
8506 (guess_structure_name): Do not inspect child subprogram DIEs.
8507 (dwarf2_fullname): Update comments.
8508 Use die_needs_namespace to assist in computing the name.
8509 (read_func_scope): Use dwarf2_name to get the DIE's name.
8510 Use dwarf2_physname to get the "linkage name" of the DIE.
8511 (dwarf2_add_member_field): Use dwarf2_physname instead of
8512 dwarf2_linkage_name.
8513 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8514 (determine_class): Remove.
8515 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8516 except Ada.
8517 (new_symbol): Unconditionally call dwarf2_name.
8518 Compute the "linkage name" using dwarf2_physname.
8519 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8520 When determining to scan for anonymous C++ namespaces, ignore
8521 the linkage name.
8522 (dwarf2_physname): New function.
8523 (dwarf2_full_name): Move content to new function and call
8524 that.
8525 (dwarf2_compute_name): "New" function.
8526 (_initialize_dwarf2_read): Initialize die_list.
8527 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8528 physname.
8529 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8530 without a demangled name.
8531 Print out type information for non-virtual methods.
8532 * linespec.c (decode_line_1): Force ANY string using "::" (or
8533 "." for java) to use decode_compound, and clean up any stray quoting.
8534 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8535 (decode_compound): Stop consuming at an open parenthesis.
8536 Keep template parameters.
8537 Keep any overload information.
8538 Keep keywords like "const".
8539 Remove paren_pointer.
8540 Move is_quoted check from set_flags to here.
8541 Remove #if 0 code from 2000. Ten years is long enough.
8542 (find_method): Before comparing symbol names, canonicalize the string
8543 from the user.
8544 If a specific overload is requested, find it. Otherwise throw an error.
8545 (find_method_overload_end): New function.
8546 (set_flags): Remove.
8547 (decode_compound): Assume that parentheses are matched.
8548 It's a lot easier.
8549 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8550 to cplus_demangle.
8551 * linespec.c (decode_line_1): Keep important keywords like
8552 "const" and "volatile".
8553 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8554 * typeprint.h (c_type_print_args): Add declaration.
8555 * ui-file.c (do_ui_file_obsavestring): New function.
8556 (ui_file_obsavestring): New function.
8557 * ui-file.h (ui_file_obsavestring): Add declaration.
8558 * valops.c (find_overload_match): Resolve the object to
8559 a non-pointer type.
8560 If the object is a data member, search the object for the member
8561 and return with staticp set.
8562 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8563 Do not attempt to extract a function name from non-function types.
8564 If the extracted function name and the original name are the same,
8565 we don't have a C++ method.
8566
8567 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8568 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8569
8570 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8571 and arguments from symbol lookups.
8572 * ax-gdb.c (gen_expr): Likewise.
8573 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8574 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8575 lookup_possible_namespace_symbol): Likewise.
8576 * cp-support.c (read_in_psymtabs): Likewise.
8577 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8578 * language.h (la_lookup_symbol_nonlocal): Likewise.
8579 * scm-valprint.c (scm_inferior_print): Likewise.
8580 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8581 * solib-svr.c (elf_lookup_lib): Likewise.
8582 * solib.c (show_auto_solib_add): Likewise.
8583 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8584 * symmisc.c (maintenance_check_symtabs): Likewise.
8585 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8586 lookup_symbol_aux_local, lookup_symbol_aux_block,
8587 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8588 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8589 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8590 basic_lookup_transparent_type, find_main_psymtab,
8591 lookup_block_symbol): Likewise.
8592 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8593 lookup_symbol_global, lookup_symbol_aux_block,
8594 lookup_symbol_partial_symbol, lookup_block_symbol,
8595 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8596
8597 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8598
8599 * python/python-internal.h: Include symtab.h.
8600
8601 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8602 Pierre Muller <muller@ics.u-strasbg.fr>
8603
8604 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8605 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8606 indentation.
8607
8608 2010-03-08 Tom Tromey <tromey@redhat.com>
8609
8610 * breakpoint.c (breakpoint_1): Add "QUIT".
8611
8612 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8613 Pedro Alves <pedro@codesourcery.com>
8614
8615 * solib.c (solib_find): Replace extension if
8616 solib_symbols_extension is set in the target gdbarch.
8617 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8618 solib_symbols_extension to "sym".
8619 * gdbarch.sh (solib_symbols_extension): New variable.
8620 (pstring): New function.
8621 * gdbarch.h, gdbarch.c: Regenerate.
8622
8623 2010-03-08 Tom Tromey <tromey@redhat.com>
8624
8625 PR cli/9591:
8626 * NEWS: Update.
8627 * utils.c: Include main.h.
8628 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8629 (defaulted_query): Use default answer if `batch_flag'.
8630 * main.h (batch_flag): Declare.
8631 * main.c (batch_flag): New global.
8632 (captured_main): Remove 'batch'. Update.
8633
8634 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8635
8636 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8637 and Kevin Buettner:
8638
8639 * remote-mips.c (rockhopper_ops): New target_ops struct.
8640 (MON_ROCKHOPPER): New mips_monitor_type.
8641 (read_hex_value): New function.
8642 (mips_request): Send 8-byte values with a 'T' packet. Read the
8643 packet argument as a string and use read_hex_value to parse it.
8644 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8645 (rockhopper_open): New function.
8646 (mips_wait): Read the PC, FP and SP fields as strings. Use
8647 read_hex_value to parse them and mips_set_register to commit them.
8648 (mips_set_register): New function.
8649 (mips_fetch_registers): Do not cast register value to "unsigned"
8650 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8651 (mips_store_registers): Use a 'T' packet to set registers when
8652 using MON_ROCKHOPPER.
8653 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8654 and expect the total to be printed before the entry address.
8655 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8656
8657 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8658
8659 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8660 Change return value to int. Store value fetched in location
8661 addressed by `val'. Use function's return value as success
8662 or failure indicator. Adjust all callers.
8663
8664 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
8665
8666 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8667
8668 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8669 Hui Zhu <teawater@gmail.com>
8670
8671 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8672 tmp_to_stopped_data_address.
8673 (record_open): Reset tmp_to_stopped_by_watchpoint and
8674 tmp_to_stopped_data_address.
8675 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8676 to_stopped_data_address.
8677
8678 2010-03-08 Hui Zhu <teawater@gmail.com>
8679
8680 * i386-tdep.c (i386_process_record): Initialize regnum.
8681
8682 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8683
8684 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8685 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8686
8687 2010-03-08 Joel Brobecker <brobecker@adacore.com>
8688
8689 Memory error when reading wrong core file.
8690 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8691 errors while reading the inferior memory, and return zero if
8692 an exception was raised.
8693
8694 2010-03-07 Michael Snyder <msnyder@vmware.com>
8695
8696 * record.c (record_restore): Rename tmpu8 to rectype.
8697
8698 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8699 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8700
8701 (i386_record_push): Rename local tmpulongest to addr.
8702
8703 (i386_process_record): Rename local tmpulongest to addr.
8704
8705 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8706 addr64.
8707
8708 Rename local variable tmpu8 to opcode8 and regnum.
8709
8710 2010-03-07 Joel Brobecker <brobecker@adacore.com>
8711
8712 * remote.c (remote_get_ada_task_ptid): New function.
8713 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8714
8715 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8716
8717 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8718 block. Define helper macros to reduce ifdefs in code.
8719 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8720 size. Call unadorned GetModuleFileNameEx rather than
8721 GetModuleFileNameEx*.
8722 (windows_make_so): Use __PMAX to denote maximum buffer size and
8723 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8724 appropriate.
8725 (get_image_name): Use __PMAX to denote maximum buffer size.
8726 (handle_load_dll): Likewise.
8727 (windows_pid_to_exec_file): Likewise.
8728 (windows_create_inferior): Add many accommodations for older Cygwin and
8729 non-Cygwin.
8730 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8731 __USEWIDE conditional.
8732 (bad_GetModuleFileNameExA): Likewise.
8733 (_initialize_loadable): Just use real function names without the dyn_
8734 part since they are defined earlier.
8735
8736 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
8737 Tom Tromey <tromey@redhat.com>
8738
8739 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8740 (parse_escape): Likewise.
8741 * python/py-utils.c (unicode_to_target_string): Update.
8742 (unicode_to_target_python_string): Update.
8743 (target_string_to_unicode): Update.
8744 * printcmd.c (printf_command): Update.
8745 * p-exp.y (yylex): Update.
8746 * objc-exp.y (yylex): Update.
8747 * mi/mi-parse.c: Include charset.h.
8748 (mi_parse_escape): New function.
8749 (mi_parse_argv): Use it.
8750 * jv-exp.y (yylex): Update.
8751 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8752 function.
8753 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8754 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8755 * gdbarch.c: Rebuild.
8756 * gdbarch.h: Rebuild.
8757 * defs.h (parse_escape): Update.
8758 * cli/cli-setshow.c: Include arch-utils.h.
8759 (do_setshow_command): Update.
8760 * cli/cli-cmds.c (echo_command): Update.
8761 * charset.h (target_charset, target_wide_charset): Update.
8762 * charset.c: Include arch-utils.h.
8763 (target_charset_name): Default to "auto".
8764 (target_wide_charset_name): Likewise.
8765 (show_target_charset_name): Handle "auto".
8766 (show_target_wide_charset_name): Likewise.
8767 (be_le_arch): New global.
8768 (set_be_le_names): Add 'gdbarch' argument.
8769 (validate): Likewise. Don't call set_be_le_names.
8770 (set_charset_sfunc, set_host_charset_sfunc)
8771 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8772 Update.
8773 (target_charset): Add 'gdbarch' argument.
8774 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8775 (auto_target_charset_name): New global.
8776 (default_auto_charset, default_auto_wide_charset): New functions.
8777 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8778 for target charsets. Copy result of nl_langinfo. Use GetACP if
8779 USE_WIN32API.
8780 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8781 remove 'byte_order' argument. Update.
8782 (classify_type): Likewise.
8783 (c_emit_char): Update.
8784 (c_printchar): Update.
8785 (c_printstr): Update.
8786 (c_get_string): Update.
8787 (evaluate_subexp_c): Update.
8788 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8789 Declare.
8790 * python/python.c (gdbpy_target_charset): New function.
8791 (gdbpy_target_wide_charset): Likewise.
8792 (GdbMethods): Update.
8793 * NEWS: Update.
8794
8795 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8796
8797 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8798 off high address bits.
8799
8800 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8801
8802 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8803 address as UnsignedLongLong, not LongLong.
8804
8805 2010-03-05 Kevin Buettner <kevinb@redhat.com>
8806 Pedro Alves <pedro@codesourcery.com>
8807
8808 * remote-mips.c (gdbthread.h): Include.
8809 (remote_mips_ptid): Declare.
8810 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8811 (common_open): Set inferior_ptid, add it as an inferior, and
8812 as a thread too. Delete FIXME comment regarding start_remote().
8813 (mips_close): Invoke generic_mourn_inferior().
8814 (mips_kill): Make sure that target_mourn_inferior is invoked.
8815 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8816 it's now invoked from mips_close().
8817 (mips_load): Don't null out inferior_ptid. Don't call
8818 clear_symtab_users().
8819 (mips_thread_alive, mips_pid_to_str): New functions.
8820 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8821 to_thread_alive and to_pid_to_str operations.
8822
8823 2010-03-04 Tom Tromey <tromey@redhat.com>
8824
8825 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8826 in DWARF 3 and later.
8827 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8828
8829 2010-03-04 Keith Seitz <keiths@redhat.com>
8830
8831 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8832 If the filename portion of the linespec was quoted, recheck the
8833 remainder for additional quoting.
8834 (locate_first_half): Skip over completer chars, too.
8835
8836 2010-03-04 Tom Tromey <tromey@redhat.com>
8837
8838 * printcmd.c (printf_command): Pass dummy argument to
8839 printf_filtered.
8840
8841 2010-03-04 Doug Evans <dje@google.com>
8842
8843 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8844 unwound_fp.
8845
8846 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8847
8848 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8849
8850 * breakpoint.c (update_watchpoint): Create a sentinel location if
8851 the software watchpoint isn't watching any memory.
8852 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8853
8854 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8855
8856 * utils.c (fputs_maybe_filtered): Check if there's already a top
8857 level interpreter before dereferencing it. If there isn't one,
8858 don't paginate either.
8859
8860 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8861
8862 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8863 the state right when single stepping.
8864 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8865 Get the next PC along with the instruction state.
8866 (thumb_get_next_pc): Remove.
8867 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8868
8869 2010-03-04 Hui Zhu <teawater@gmail.com>
8870
8871 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8872
8873 2010-03-03 Pedro Alves <pedro@codesourcery.com>
8874
8875 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8876 top level interpreter is MI.
8877
8878 2010-03-03 Stan Shebs <stan@codesourcery.com>
8879
8880 * remote.c (remote_download_tracepoint): Iterate over locations.
8881 * tracepoint.c (validate_actionline): Ditto.
8882 (encode_actions): Add location argument.
8883 (trace_dump_command): Check all locations to see if stepping
8884 frame.
8885
8886 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8887 Eli Zaretskii <eliz@gnu.org>
8888
8889 * NEWS: Add X86 general purpose registers section.
8890
8891 2010-03-03 Tom Tromey <tromey@redhat.com>
8892
8893 PR mi/11098:
8894 * varobj.c (install_new_value): Handle case where new print_value
8895 is NULL.
8896
8897 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
8898
8899 PR gdb/11345:
8900 * printcmd.c (printf_command): Print end of format string using
8901 printf_filtered.
8902
8903 2010-03-02 Tom Tromey <tromey@redhat.com>
8904
8905 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8906 * defs.h (read_command_lines_1): Add missing 'void'.
8907 * cli/cli-script.c (recurse_read_control_structure): Add missing
8908 'void'.
8909 (read_next_line): Likewise.
8910 (read_command_lines_1): Likewise.
8911
8912 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8913
8914 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8915 store backchain as part of prologue.
8916
8917 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8918
8919 * progspace.c (update_address_spaces): Update inferior address spaces
8920 also.
8921
8922 2010-03-02 Doug Evans <dje@google.com>
8923
8924 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8925 lowpc,highpc args to addrmap_set_empty.
8926
8927 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8928
8929 * amd64-tdep.c (amd64_byte_names): New.
8930 (amd64_word_names): Likewise.
8931 (amd64_dword_names): Likewise.
8932 (amd64_pseudo_register_name): Likewise.
8933 (amd64_pseudo_register_read): Likewise.
8934 (amd64_pseudo_register_write): Likewise.
8935 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8936 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8937 set_gdbarch_pseudo_register_write and
8938 set_tdesc_pseudo_register_name. Don't call
8939 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8940
8941 * i386-tdep.c (i386_num_mmx_regs): Removed.
8942 (i386_num_pseudo_regs): Likewise.
8943 (i386_byte_names): New.
8944 (i386_word_names): Likewise.
8945 (i386_byte_regnum_p): Likewise.
8946 (i386_word_regnum_p): Likewise.
8947 (i386_mmx_regnum_p): Updated.
8948 (i386_pseudo_register_name): Make it global. Handle byte and
8949 word pseudo-registers.
8950 (i386_pseudo_register_read): Likewise.
8951 (i386_pseudo_register_write): Likewise.
8952 (i386_pseudo_register_type): Handle byte, word and dword
8953 pseudo-registers
8954 (i386_register_reggroup_p): Don't include pseudo
8955 registers, except for MXX, in any register groups. Don't
8956 include pseudo byte, word, dword registers in general_reggroup.
8957 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8958 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8959 pseudo-registers after word pseudo-registers. Call
8960 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8961
8962 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8963 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8964 eax_regnum.
8965 (i386_byte_regnum_p): New.
8966 (i386_word_regnum_p): Likewise.
8967 (i386_dword_regnum_p): Likewise.
8968 (i386_pseudo_register_name): Likewise.
8969 (i386_pseudo_register_read): Likewise.
8970 (i386_pseudo_register_write): Likewise.
8971
8972 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8973
8974 * target-descriptions.c (tdesc_type): Remove
8975 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8976 (tdesc_predefined_types): Likewise.
8977 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8978 if flag name is empty.
8979 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8980
8981 * features/i386/32bit-core.xml: Define i386_eflags.
8982 * features/i386/64bit-core.xml: Likewise.
8983
8984 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8985 * features/i386/64bit-sse.xml: Likewise.
8986
8987 * features/i386/amd64-linux.c: Regenerated.
8988 * features/i386/amd64.c: Likewise.
8989 * features/i386/i386-linux.c: Likewise.
8990 * features/i386/i386.c: Likewise.
8991
8992 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8993
8994 * gdbtypes.c (append_composite_type_field_raw): New.
8995 (append_composite_type_field_aligned): Use the new function.
8996 * gdbtypes.h (append_composite_type_field_raw): Declare.
8997 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8998 (struct tdesc_type_flag): New type.
8999 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9000 kind. Add size to u.u. Add u.f for flags.
9001 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9002 (tdesc_free_type): Likewise.
9003 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9004 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9005 (tdesc_add_bitfield, tdesc_add_flag): New.
9006 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9007 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9008 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9009 current_type. Add current_type_size and current_type_is_flags.
9010 (tdesc_start_union): Clear the new fields.
9011 (tdesc_start_struct, tdesc_start_flags): New.
9012 (tdesc_start_field): Handle struct fields, including bitfields.
9013 (field_attributes): Make type optional. Add start and end.
9014 (union_children): Rename to struct_union_children.
9015 (union_attributes): Rename to struct_union_attributes. Add optional
9016 size.
9017 (flags_attributes): New.
9018 (feature_children): Add struct and flags.
9019 * features/gdb-target.dtd: Add flags and struct to features.
9020 Make field type optional. Add field start and end.
9021
9022 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9023
9024 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9025 (amd64_linux_read_description): Likewise.
9026 (_initialize_amd64_linux_nat): Set to_read_description to
9027 amd64_linux_read_description.
9028
9029 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9030 (amd64_linux_register_name): Removed.
9031 (amd64_linux_register_type): Likewise.
9032 (amd64_linux_core_read_description): New.
9033 (amd64_linux_init_abi): Set target description to
9034 tdesc_amd64_linux if needed. Support orig_rax in target
9035 description. Don't call set_gdbarch_register_name nor
9036 set_gdbarch_register_type. Call
9037 set_gdbarch_core_read_description.
9038 (_initialize_amd64_linux_tdep): Call
9039 initialize_tdesc_amd64_linux.
9040
9041 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9042
9043 * amd64-tdep.c: Include "features/i386/amd64.c".
9044 (amd64_register_names): Removed.
9045 (amd64_register_name): Likewise.
9046 (amd64_register_type): Likewise.
9047 (amd64_init_abi): Set num_core_regs and register_names. Set
9048 target description to tdesc_amd64 if needed. Don't call
9049 set_gdbarch_register_name nor set_gdbarch_register_type.
9050 (_initialize_amd64_tdep): New.
9051
9052 * i386-linux-nat.c (i386_linux_read_description): New.
9053 (_initialize_i386_linux_nat): Set to_read_description to
9054 i386_linux_read_description.
9055
9056 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9057 (i386_linux_register_name): Removed.
9058 (i386_linux_core_read_description): New.
9059 (i386_linux_read_description): Likewise.
9060 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9061 Set target description to tdesc_i386_linux if needed. Support
9062 orig_eax. Set register_reggroup_p. Call
9063 set_gdbarch_core_read_description.
9064 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9065
9066 * i386-linux-tdep.h (tdesc_i386_linux): New.
9067
9068 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9069 with I387_NUM_REGS.
9070
9071 * i386-tdep.c: Include "features/i386/i386.c".
9072 (i386_register_names): Make it const.
9073 (i386_mmx_names): Likewise.
9074 (i386_num_register_names): Removed.
9075 (i386_register_name): Likewise.
9076 (i386_eflags_type): Likewise.
9077 (i386_mxcsr_type): Likewise.
9078 (i386_sse_type): Likewise.
9079 (i386_register_type): Likewise.
9080 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9081 (i386_pseudo_register_name): New.
9082 (i386_pseudo_register_type): Likewise.
9083 (i386_mmx_type): Make it static.
9084 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9085 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9086 call set_gdbarch_register_name nor set_gdbarch_register_type.
9087 Set register_reggroup_p. Set target description to tdesc_i386
9088 if needed. Call set_tdesc_pseudo_register_type,
9089 set_tdesc_pseudo_register_name and tdesc_use_registers.
9090 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9091 initialize_tdesc_x86_64.
9092
9093 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9094 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9095 register_names, tdesc and register_reggroup_p.
9096 (I386_NUM_FREGS): Removed.
9097 (i386_eflags_type): Likewise.
9098 (i386_mxcsr_type): Likewise.
9099 (i386_mmx_type): Likewise.
9100 (i386_sse_type): Likewise.
9101 (i386_register_name): Likewise.
9102 (i386_regnum): Add I386_MXCSR_REGNUM.
9103 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9104
9105 * i387-tdep.h (I387_NUM_REGS): New.
9106
9107 * regformats/i386/i386-linux.dat: Generated.
9108 * regformats/i386/i386.dat: Likewise.
9109 * regformats/i386/amd64-linux.dat: Likewise.
9110 * regformats/i386/amd64.dat: Likewise.
9111
9112 * regformats/reg-i386-linux.dat: Removed.
9113 * regformats/reg-i386.dat: Likewise.
9114 * regformats/reg-x86-64-linux.dat: Likewise.
9115 * regformats/reg-x86-64.dat: Likewise.
9116
9117 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9118
9119 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9120 cygwin_conv_path API rather than the deprecated
9121 cygwin_conv_to_full_posix_path.
9122 * windows-nat.c:
9123 (GetModuleFileNameExA): Undefine for Cygwin.
9124 (GetModuleFileNameExW): Define for Cygwin.
9125 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9126 Call GetModuleFileNameExW and convert path to POSIX using
9127 cygwin_conv_path.
9128 (windows_make_so): Always define p. Drop unused variable m.
9129 Don't use Win32 functions to check file existance, rather use
9130 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9131 Use canonicalize_file_name to get full path.
9132 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9133 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9134 use correct target buffer size in call to WideCharToMultiByte.
9135 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9136 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9137 (windows_create_inferior): Convert all paths and arguments to wchar_t
9138 and use CreateProcessW on Cygwin.
9139 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9140 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9141 (bad_GetModuleFileNameExW): Define for Cygwin.
9142 (_initialize_loadable): Load GetModuleFileNameExW into
9143 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9144
9145 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9146
9147 PR python/11036
9148 * python/py-frame.c (frapy_read_var): Add block argument and logic
9149 to cope with user provided blocks.
9150
9151 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9152
9153 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9154 New comment.
9155
9156 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9157
9158 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9159 (COMMON_OBS): ... to here since it's used unconditionally.
9160 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9161 (SFILES): To here.
9162
9163 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9164
9165 * mips-linux-tdep.c: Update struct sigframe comments.
9166 (SIGFRAME_CODE_OFFSET): Delete macro.
9167 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9168 this_frame's sp.
9169 (mips_linux_n32n64_sigframe_init): Same.
9170
9171 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9172
9173 * remote-mips.c (mips_load): Don't use pseudo-register when
9174 invalidating regcache.
9175
9176 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9177
9178 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9179
9180 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9181
9182 * NEWS: Add "New targets" section, and mention ARM Symbian
9183 support.
9184
9185 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9186
9187 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9188 add ADDR_SIZE member.
9189 (allocate_piece_closure): Update.
9190 (copy_pieced_value_closure): Likewise.
9191 (dwarf2_evaluate_loc_desc): Likewise.
9192 (read_pieced_value): Use DWARF address size instead of
9193 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9194
9195 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9196 Tom Tromey <tromey@redhat.com>
9197
9198 * python/py-type.c (typy_lookup_typename): Add in block argument.
9199 If provided restrict lookup to specified blocks.
9200 (gdbpy_lookup_type): Likewise.
9201 (typy_lookup_type): Likewise.
9202
9203 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9204
9205 Symbian config
9206
9207 gdb/
9208 * arm-symbian-tdep.c: New.
9209 * configure.tgt (arm*-*-symbianelf*): New target.
9210 (*-*-symbianelf*): New OS.
9211 * osabi.c (gdb_osabi_names): Add Symbian.
9212 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9213 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9214 (ALLDEPFILES): Add arm-symbian-tdep.c.
9215
9216 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9217
9218 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9219
9220 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9221
9222 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9223
9224 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9225 Tom Tromey <tromey@redhat.com>
9226 Thiago Jung Bauermann <bauerman@br.ibm.com>
9227
9228 * python/python.c (_initialize_python): Call
9229 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9230 gdbpy_initialize_blocks.
9231 * python/python-internal.h: Declare struct symbol, block and
9232 symtab_and_line. Declare block_object_type and
9233 symbol_object_type
9234 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9235 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9236 (symbol_to_symbol_object, block_to_block_object)
9237 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9238 (gdbpy_initialize_blocks ): Declare.
9239 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9240 (frapy_select): Add methods.
9241 (frapy_read_var): Add symbol branch.
9242 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9243 py-block.
9244 (SUBDIR_PYTHON_SRCS): Likewise.
9245 (py-symbol.o): New rule.
9246 (py-symtab.o): Likewise.
9247 (py-block.o): Likewise.
9248 * python/py-symbol.c: New file.
9249 * python/py-symtab.c: Likewise.
9250 * python/py-block.c: Likewise.
9251
9252 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9253
9254 PR gdb/11321
9255
9256 * inferior.h (prepare_for_detach): Declare.
9257 (struct inferior) <detaching>: New field.
9258 * infrun.c (prepare_for_detach): New.
9259 (handle_inferior_event) <random signal>: Don't stop if detaching.
9260 * target.c (target_detach): Call prepare_for_detach.
9261
9262 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9263
9264 Per-process displaced stepping queue.
9265
9266 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9267 (displaced_step_gdbarch, displaced_step_closure,
9268 (displaced_step_original, displaced_step_copy): Move globals to
9269 this...
9270 (struct displaced_step_inferior_state): ... new structure.
9271 (displaced_step_inferior_states): New global.
9272 (get_displaced_stepping_state, add_displaced_stepping_state)
9273 (remove_displaced_stepping_state, infrun_inferior_exit): New
9274 functions.
9275 (displaced_step_clear): Add displaced_step_inferior_state
9276 parameter, and adjust to handle it.
9277 (displaced_step_clear_cleanup): Parameter is now a
9278 displaced_step_inferior_state. Adjust.
9279 (displaced_step_prepare): Adjust.
9280 (displaced_step_fixup, displaced_step_fixup)
9281 (infrun_thread_ptid_changed, resume): Adjust.
9282 (init_wait_for_inferior): Don't call displaced_step_clear.
9283 (infrun_thread_stop_requested): Rewrite.
9284 (_initialize_infrun): Install infrun_inferior_exit as
9285 inferior_exit observer.
9286
9287 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9288
9289 * inferior.h (ptid_match): Declare.
9290 * infrun.c (ptid_match): New.
9291 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9292 (handle_notification): Add debug output.
9293 * linux-nat.c (ptid_match): Delete.
9294
9295 2010-02-24 David S. Miller <davem@davemloft.net>
9296
9297 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9298 * syscalls/sparc-linux.xml: New.
9299 * syscalls/sparc64-linux.xml: New.
9300 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9301 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9302 (sparc32_linux_get_syscall_number): New function.
9303 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9304 syscall number fetcher.
9305 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9306 (sparc64_linux_get_syscall_number): New function.
9307 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9308 syscall number fetcher.
9309
9310 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9311
9312 Multiexec MI
9313
9314 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9315 * inferior.c (add_inferior_silent): Notify inferior_added
9316 observer.
9317 (delete_inferior_1): Notify inferior_removed observer.
9318 (exit_inferior_1): Pass inferior, not pid, to observer.
9319 (inferior_appeared): Likewise.
9320 (add_inferior_with_spaces): New.
9321 (add_inferior_command): Use the above.
9322 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9323 Declare.
9324
9325 * inflow.c (inflow_inferior_exit): Likewise.
9326 * jit.c (jit_inferior_exit_hook): Likewise.
9327
9328 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9329 remove-inferior.
9330 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9331 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9332 (report_initial_inferior): New.
9333 (mi_inferior_removed): Register the above. Make sure
9334 inferior_added observer is called on the first inferior.
9335 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9336 inferior number, not pid.
9337 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9338 affected.
9339 * mi/mi-main.c (current_context): New.
9340 (proceed_thread_callback): Use typed closure.
9341 Proceed everything if pid is 0. Most implementation split into
9342 (proceed_thread): ... this.
9343 (run_one_inferior): New.
9344 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9345 Adjust for multiexec behaviour.
9346 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9347 (mi_cmd_execute): Handle the 'thread-group' option here.
9348 Do some extra checks.
9349 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9350 options.
9351 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9352
9353 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9354
9355 Make -exec-run a proper MI commands.
9356
9357 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9358 * mi/mi-cmds.c (mi_cmds): Adjust.
9359 * mi/mi-main.c (mi_cmd_exec_run): New.
9360
9361 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9362 Stan Shebs <stan@codesourcery.com>
9363
9364 * tracepoint.h (set_traceframe_number)
9365 (cleanup_restore_current_traceframe): Declare.
9366 * tracepoint.c (set_traceframe_number): New.
9367 (struct current_traceframe_cleanup): New.
9368 (do_restore_current_traceframe_cleanup)
9369 (restore_current_traceframe_cleanup_dtor)
9370 (make_cleanup_restore_current_traceframe): New.
9371 * infrun.c: Include tracepoint.h.
9372 (fetch_inferior_event): Switch out and in of tfind mode.
9373
9374 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9375
9376 * breakpoint.c (breakpoint_init_inferior): Also delete
9377 bp_shlib_event breakpoints.
9378 * solib-frv.c (enable_break): Remove call to
9379 remove_solib_event_breakpoints.
9380 * solib-svr4.c (enable_break): Ditto.
9381 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9382 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9383 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9384 * solib-spu.c (spu_enable_break): Ditto.
9385
9386 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9387
9388 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9389
9390 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9391
9392 * varobj.c (varobj_update): Avoid non-constants in initializers.
9393
9394 2010-02-23 Tom Tromey <tromey@redhat.com>
9395
9396 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9397 handle big-endian values.
9398 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9399
9400 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9401
9402 PR9605
9403
9404 gdb/
9405 * breakpoint.c (insert_bp_location): If inserting the read
9406 watchpoint failed, fallback to an access watchpoint.
9407 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9408 if the value changed, if not watching the same memory for writes.
9409 (watchpoint_locations_match): Add comment.
9410 (update_global_location_list): Copy the location's watchpoint type.
9411 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9412 handle read watchpoints here.
9413 (i386_insert_watchpoint): Read watchpoints aren't supported.
9414 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9415 packets.
9416 * target.h (target_insert_watchpoint): Update description.
9417
9418 2010-02-19 Tom Tromey <tromey@redhat.com>
9419
9420 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9421 * m2-typeprint.c (m2_print_type): Update.
9422 * gdbtypes.c (recursive_dump_type): Update.
9423 (copy_type_recursive): Update.
9424 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9425 (c_type_print_base): Update.
9426 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9427 Remove.
9428 (struct cplus_struct_type) <ntemplate_args>: Remove.
9429 <struct template_arg>: Remove.
9430 <is_dynamic>: Move earlier.
9431 (TYPE_TEMPLATE_ARGS): Remove.
9432 (TYPE_NTEMPLATE_ARGS): Remove.
9433 (TYPE_TEMPLATE_ARG): Remove.
9434
9435 2010-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 PR c++/8693, PR c++/9496:
9438 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9439 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9440 write_dollar_variable. Don't try to classify NAME tokens.
9441 (token_and_value): New type.
9442 (token_fifo, popping, name_obstack): New globals.
9443 (classify_name): New function.
9444 (classify_inner_name): Likewise.
9445 (yylex): Likewise.
9446 (VARIABLE): Now has type sval.
9447 (exp : VARIABLE): Call write_dollar_variable.
9448 (qualified_name): Use TYPENAME, not typebase. Add production for
9449 multiple "::" instances.
9450 (variable): Use name_not_typename.
9451 (qualified_type): Remove.
9452 (typebase): Update.
9453
9454 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9455
9456 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9457 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9458 found by bfd_get_section_by_name.
9459 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9460
9461 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9462
9463 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9464 7.0 section" into "Changes in 7.1".
9465
9466 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9467
9468 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9469 * version.in: Bump version to 7.1.50.20100219-cvs.
9470
9471 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9472
9473 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9474 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9475
9476 2010-02-17 Tom Tromey <tromey@redhat.com>
9477
9478 * NEWS: Add Python API Improvements section.
9479
9480 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9481
9482 * NEWS: Correct typo.
9483
9484 2010-02-17 Tom Tromey <tromey@redhat.com>
9485
9486 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9487
9488 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9489
9490 * symfile.c (build_section_addr_info_from_objfile): Include sections
9491 only if they are SEC_ALLOC or SEC_LOAD.
9492
9493 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9494
9495 PR shlibs/11293
9496 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9497 of ULONGEST for address size.
9498
9499 2010-02-17 Tom Tromey <tromey@redhat.com>
9500
9501 * NEWS: Add C++ improvements section.
9502
9503 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9504
9505 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9506 PyThreadState_Swap): Avoid "statement with no effect" warning.
9507
9508 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9509
9510 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9511 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9512
9513 2010-02-17 Tristan Gingold <gingold@adacore.com>
9514 Petr Hluzin <petr.hluzin@gmail.com>
9515
9516 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9517 gdb_assert. Fix info->size for SIG prologue.
9518
9519 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9520
9521 * infcmd.c (show_inferior_tty_command): Check for NULL.
9522 Correct output message.
9523
9524 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9525
9526 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9527 FUNCTION contains parentheses. Improve removal of a trailing
9528 single quote.
9529
9530 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9531
9532 * gcore.c (do_bfd_delete_cleanup): New function.
9533 (gcore_command): Use it. Discard the cleanup after success.
9534 (gcore_copy_callback): Delete dead code.
9535
9536 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9537
9538 * symfile.c (addr_info_make_relative): Always use
9539 find_lowest_section.
9540
9541 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9542
9543 * NEWS: Added entry for namespace fixes.
9544
9545 2010-02-15 Tom Tromey <tromey@redhat.com>
9546
9547 * dwarf2read.c (guess_structure_name): Allocate name on the
9548 objfile obstack.
9549
9550 2010-02-15 Tom Tromey <tromey@redhat.com>
9551
9552 * c-typeprint.c (c_type_print_base): Reverse order of test.
9553
9554 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9555
9556 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9557 initialize it from ELF BFD. Extend the prelink condition by it.
9558
9559 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9560
9561 * defs.h (parse_pid_to_attach): New.
9562 * utils.c (parse_pid_to_attach): New.
9563 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9564 * gnu-nat.c (gnu_attach): Likewise.
9565 * nto-procfs.c (procfs_attach): Likewise.
9566 * procfs.c (procfs_attach): Likewise.
9567 * windows-nat.c (windows_attach): Likewise.
9568 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9569 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9570 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9571 check.
9572
9573 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9574
9575 * MAINTAINERS: Add myself for write after approval privileges.
9576
9577 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9578
9579 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9580 block.
9581
9582 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9583
9584 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9585 only if INFO_VERBOSE.
9586
9587 2010-02-12 Tomas Holmberg <th@virtutech.com>
9588
9589 * mi/mi-main.c: Added the --reverse flag to the following MI
9590 commands: exec-continue, exec-finish, exec-next, exec-step,
9591 exec-next-instruction, exec-step-instruction. This is to
9592 support reverse execution over the MI interface to gdb.
9593
9594 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9595
9596 * tracepoint.c (_initialize_tracepoint): Specify that the address
9597 range of `tfind outsize' is exclusive, and that the address range
9598 of `tfind range' is inclusive, in the commands' help strings.
9599
9600 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9601
9602 Spurious "dll not found" error messages on x64-windows.
9603 * windows-nat.c: Add include of complaints.h.
9604 (handle_unload_dll): Change dll-not-found error into a complaint.
9605
9606 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9607
9608 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9609 bp_tracepoint and bp_fast_tracepoint, not
9610 bp_loc_software_breakpoint.
9611 (update_global_location_list): Tracepoints are never duplicates of
9612 anything.
9613
9614 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9615
9616 * breakpoint.c (break_command_really): Change return type to int.
9617 Return false if no breakpoint was created, true otherwise.
9618 (trace_command): Don't set the tracepoint count if no tracepoint
9619 was created.
9620 (ftrace_command): Ditto.
9621 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9622 created in the breakpoints table.
9623
9624 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9625 Ulrich Weigand <uweigand@de.ibm.com>
9626
9627 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9628
9629 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9630
9631 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9632 the offset value isn't of integral type.
9633
9634 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9635
9636 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9637 New.
9638
9639 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9640
9641 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9642 non-subscriptable types.
9643 * valarith.c (binop_types_user_defined_p): New, abstracted out
9644 from ...
9645 (binop_user_defined_p): ... this.
9646 * value.h (binop_types_user_defined_p): Declare.
9647
9648 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9649
9650 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9651 Merge uploaded TSVs before merging uploaded tracepoints.
9652
9653 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9654
9655 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9656
9657 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
9658
9659 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9660 whitespace character after a dot in comment.
9661 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9662 Likewise.
9663 (list_args_or_locals): For the 'all' (that is
9664 -stack-list-variables) case, always output list of tuples.
9665 Output 'arg' field if variable is argument.
9666
9667 2010-02-10 Tom Tromey <tromey@redhat.com>
9668
9669 * parser-defs.h (parser_debug): Declare.
9670 * parse.c (_initialize_parse): Install "debug parser" set/show
9671 command.
9672 (parser_debug): New global.
9673 (show_parserdebug): New function.
9674 * c-exp.y (c_parse): Set yydebug.
9675
9676 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9677
9678 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9679 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9680 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9681 i386_mxcsr.
9682 (tdesc_find_type): New.
9683 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9684 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9685
9686 * target-descriptions.h (tdesc_find_type): New.
9687
9688 2010-02-10 Michael Snyder <msnyder@vmware.com>
9689
9690 * gdb-gdb.py: Comment fix.
9691
9692 2010-02-09 Tristan Gingold <gingold@adacore.com>
9693
9694 * machoread.c (macho_symfile_relocate): New function.
9695 (macho_sym_fns): Use macho_symfile_relocate instead of
9696 default_symfile_relocate.
9697 (macho_oso_data): New type.
9698 (current_oso): New variable.
9699 (macho_add_oso_symfile): Do not compute section_addr_info, but
9700 instead set vma of sections.
9701 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9702 Set and clear current_oso.
9703
9704 2010-02-09 Joel Brobecker <brobecker@adacore.com>
9705
9706 Wrong type description for tagged type parameter.
9707 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9708 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9709 reference to a tagged type.
9710
9711 2010-02-09 Tristan Gingold <gingold@adacore.com>
9712
9713 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9714 brothers of the parent.
9715
9716 2010-02-08 Tom Tromey <tromey@redhat.com>
9717
9718 PR c++/8017:
9719 * value.h: Update.
9720 * valops.c (search_struct_field): Make 'name' const.
9721 (search_struct_method): Likewise.
9722 (find_method_list): Make 'method' const.
9723 (value_struct_elt): Make 'name' and 'err' const.
9724 (value_find_oload_method_list): Make 'method' const.
9725 (find_overload_match): Make 'name' const.
9726 * eval.c (evaluate_subexp_standard): New locals function,
9727 function_name.
9728 <OP_FUNCALL>: Handle OP_SCOPE specially.
9729
9730 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9731
9732 * infrun.c (handle_inferior_event): Do not look up regcache
9733 for exited processes.
9734
9735 2010-02-08 Chris Moller <moller@mollerware.com>
9736
9737 PR gdb/10728
9738 * valarith.c (value_ptrdiff): Added a test for a zero type length,
9739 warn if found, and assume length = 1.
9740
9741 2010-02-08 Chris Moller <cmoller@redhat.com>
9742
9743 PR gdb/9067
9744 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9745 (cp_print_static_field) Fix use of obstacks.
9746
9747 2010-02-08 Pedro Alves <pedro@codesourcery.com>
9748
9749 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9750 resumed LWPs as resumed.
9751 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9752 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9753 of throwing an internal error. If an LWP of a process we're not
9754 waiting for reports a signal, don't force collecting a SIGSTOP,
9755 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9756 go through all LWPs cancelling breakpoints in non-stop mode.
9757 (resume_stopped_resumed_lwps): New.
9758 (linux_nat_wait): Use it.
9759
9760 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9761
9762 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9763 i386/amd64 and i386/amd64-linux.
9764 (i386/i386-expedite): New.
9765 (i386/i386-linux-expedite): Likewise.
9766 (i386/amd64-expedite):Likewise.
9767 (i386/amd64-linux-expedite): Likewise.
9768 ($(outdir)/i386/i386-linux.dat): Likewise.
9769 ($(outdir)/i386/amd64.dat): Likewise.
9770 ($(outdir)/i386/amd64-linux.dat): Likewise.
9771
9772 * features/i386/32bit-core.xml: New.
9773 * features/i386/32bit-linux.xml: Likewise.
9774 * features/i386/32bit-sse.xml: Likewise.
9775 * features/i386/64bit-core.xml: Likewise.
9776 * features/i386/64bit-linux.xml: Likewise.
9777 * features/i386/64bit-sse.xml: Likewise.
9778 * features/i386/i386-linux.xml: Likewise.
9779 * features/i386/i386.xml: Likewise.
9780 * features/i386/amd64-linux.xml: Likewise.
9781 * features/i386/amd64.xml: Likewise.
9782 * features/i386/i386-linux.c: Likewise.
9783 * features/i386/i386.c: Likewise.
9784 * features/i386/amd64-linux.c: Likewise.
9785 * features/i386/amd64.c: Likewise.
9786
9787 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9788
9789 PR c++/7935:
9790 * cp-support.h: Added char* alias element to using_direct data
9791 struct.
9792 (cp_add_using): Added char* alias argument.
9793 (cp_add_using_directive): Ditto.
9794 * cp-namespace.c: Updated with the above changes.
9795 (cp_lookup_symbol_imports): Check for aliases.
9796 * dwarf2read.c (read_import_statement): Figure out local alias
9797 for the import and pass it on to cp_add_using.
9798 (read_namespace): Pass alias argument to cp_add_using.
9799
9800 2010-02-05 Hui Zhu <teawater@gmail.com>
9801
9802 * defs.h (gdb_bfd_errmsg): New extern.
9803 * exec.c (exec_file_attach): Change bfd_errmsg to
9804 gdb_bfd_errmsg.
9805 * utils.c (AMBIGUOUS_MESS1): New macro.
9806 (AMBIGUOUS_MESS2): New macro.
9807 (gdb_bfd_errmsg): New function.
9808
9809 2010-02-04 Doug Evans <dje@google.com>
9810
9811 * solib-svr4.c (enable_break): Add comment.
9812
9813 2010-02-04 Anthony Green <green@moxielogic.com>
9814
9815 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9816 gracefully.
9817
9818 2010-02-04 Tom Tromey <tromey@redhat.com>
9819
9820 * valops.c (search_struct_field): Account for
9821 value_embedded_offset. Fix check for virtual base past the end of
9822 the object. Use value_copy when making a slice of the value.
9823
9824 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9825
9826 PR tui/9622
9827 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9828 only if gdb_stdout is a tty.
9829
9830 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9831
9832 * target-descriptions.c: Include "osabi.h".
9833 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9834 OSABI.
9835
9836 2010-02-04 Tristan Gingold <gingold@adacore.com>
9837
9838 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9839 (macho_symtab_read): Adjust calls to macho_add_oso.
9840 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9841 (macho_symfile_read): Adjust call to macho_oso_symfile.
9842 (macho_new_init): Move this function after declarations.
9843 (macho_symfile_init): Ditto.
9844 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9845 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9846
9847 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9848
9849 Include MI command in remotelog.
9850
9851 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9852
9853 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9854
9855 * remote.c (remote_state): Remove gdbarch.
9856 (init_remote_state): Don't set gdbarch.
9857 (remote_query_supported): Pass target_gdbarch instead of
9858 rs->gdbarch to gdbarch_qsupported.
9859
9860 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9861
9862 * gdbarch.sh: Add qsupported.
9863
9864 * gdbarch.c: Regenerated.
9865 * gdbarch.h: Likewise.
9866
9867 * remote.c (remote_state): Add gdbarch.
9868 (init_remote_state): Set gdbarch.
9869 (remote_query_supported): Support gdbarch_qsupported.
9870
9871 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9872
9873 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9874 __FreeBSD_kernel_version.
9875
9876 2010-02-03 Tristan Gingold <gingold@adacore.com>
9877
9878 * symfile.h (struct sym_fns): Add sym_relocate field.
9879 (default_symfile_relocate): New prototype.
9880 (symfile_relocate_debug_section): First argument is now an objfile.
9881 * symfile.c (default_symfile_relocate): Rename from
9882 symfile_relocate_debug_section, first argument is now an objfile.
9883 (symfile_relocate_debug_section): New function.
9884 * coffread.c (coff_sym_fns): Set sym_relocate field.
9885 * somread.c (som_sym_fns): Ditto.
9886 * mipsread.c (ecoff_sym_fns): Ditto.
9887 * machoread.c (macho_sym_fns): Ditto.
9888 * elfread.c (elf_sym_fns): Ditto.
9889 * dwarf2read.c (dwarf2_read_section): Ditto.
9890 * xcoffread.c (xcoff_sym_fns): Ditto.
9891 * dbxread.c (aout_sym_fns): Ditto.
9892 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9893 (elfstab_build_psymtabs): Ditto.
9894
9895 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9896
9897 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9898
9899 2010-02-02 Tom Tromey <tromey@redhat.com>
9900
9901 * valops.c (value_cast_structs): Try downcasting using the RTTI
9902 type.
9903
9904 2010-02-02 Tom Tromey <tromey@redhat.com>
9905
9906 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9907 (gnuv2_baseclass_offset): Now static.
9908 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9909 * gnu-v2-abi.h: Remove.
9910
9911 2010-02-02 Tom Tromey <tromey@redhat.com>
9912
9913 * m2-typeprint.c (m2_record_fields): Don't use
9914 TYPE_DECLARED_TYPE.
9915 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9916 (struct main_type) <flag_declared_class>: New field.
9917 (struct cplus_struct_type) <declared_type>: Remove.
9918 <ntemplate_args>: Move earlier.
9919 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9920 (DECLARED_TYPE_TEMPLATE): Remove.
9921 (TYPE_DECLARED_TYPE): Remove.
9922 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9923 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9924 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9925 TYPE_DECLARED_TYPE.
9926
9927 2010-02-02 Tom Tromey <tromey@redhat.com>
9928
9929 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9930 * valops.c (search_struct_field): Compute nbases after calling
9931 CHECK_TYPEDEF.
9932 (check_field): Call CHECK_TYPEDEF.
9933 * cp-valprint.c (cp_print_value): Pass correct address to
9934 baseclass_offset. Fix check for virtual base past the end of the
9935 object. Don't offset address passed to cp_print_value_fields or
9936 apply_val_pretty_printer.
9937 (cp_print_value_fields): Fix call to val_print.
9938 (cp_print_value_fields_rtti): New function.
9939 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9940 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9941 val_print.
9942 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9943 offset to address.
9944 * language.h (struct language_defn) <la_val_print>: Document.
9945 * c-lang.h (cp_print_value_fields_rtti): Declare.
9946
9947 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9948
9949 PR libc/11214:
9950 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9951 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9952 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9953
9954 2010-02-01 Michael Matz <matz@suse.de>
9955 Daniel Jacobowitz <dan@codesourcery.com>
9956
9957 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9958 functions use a frame pointer.
9959
9960 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9961
9962 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9963 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9964 * config/djgpp/fnchange.lst: Add translations for
9965 symbol-without-target_section.exp and symbol-without-target_section.c.
9966
9967 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9968
9969 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9970 (remote_breakpoint_for_pc): Correct invalid_p check.
9971 * gdbarch.c: Regenerated.
9972
9973 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9974
9975 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9976 arm_pc_is_thumb.
9977 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9978 (extend_buffer_earlier): New function.
9979 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9980 (arm_adjust_breakpoint_address): New function.
9981 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9982
9983 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9984
9985 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9986 (arm_linux_thumb2_le_breakpoint): New constants.
9987 (arm_linux_init_abi): Set thumb2_breakpoint and
9988 thumb2_breakpoint_size.
9989 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9990 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9991 Implement support for single stepping through IT blocks if
9992 a 32-bit Thumb breakpoint instruction is available.
9993 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9994 is available, use it when needed.
9995 (arm_remote_breakpoint_from_pc): New function.
9996 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9997 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9998 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9999
10000 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10001
10002 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10003 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10004 * gdbarch.c, gdbarch.h: Regenerated.
10005 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10006 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10007 gdbarch_remote_breakpoint_from_pc.
10008
10009 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10010
10011 * infrun.c (prepare_to_proceed): Handle other signals which might
10012 match a breakpoint.
10013 (handle_inferior_event): Move the check for unusual breakpoint
10014 signals earlier.
10015
10016 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10017
10018 amd64 - function returning record with field straddling 2 registers.
10019 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10020 a record of length <= 16 in which a field straddles the two
10021 eightbytes.
10022
10023 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10024
10025 Implement return values on amd64-windows.
10026 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10027 (amd64_windows_return_value): New function.
10028 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10029 amd64_windows_return_value.
10030
10031 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10032
10033 amd64-windows: 32 bytes allocated on stack by caller for integer
10034 parameter registers.
10035 * i386-tdep.h (struct gdbarch_tdep): Add new field
10036 integer_param_regs_saved_in_caller_frame.
10037 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10038 tdep->integer_param_regs_saved_in_caller_frame to 1.
10039 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10040 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10041
10042 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10043
10044 amd64-windows: memory args passed by pointer during function calls.
10045 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10046 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10047 where tdep->memory_args_by_pointer is non-zero.
10048 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10049 tdep->memory_args_by_pointer to 1.
10050
10051 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10052
10053 amd64-windows: Integer parameters in function calls.
10054 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10055 amd64-tdep.c.
10056 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10057 call_dummy_integer_regs, and classify.
10058 * amd64-tdep.h (amd64_classify): Add declaration.
10059 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10060 (amd64_reg_class): Delete, moved to i386-tdep.h.
10061 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10062 Replace call to amd64_classify by call to tdep->classify.
10063 (amd64_push_arguments): Get the list of registers to use for
10064 passing integer parameters from the gdbarch tdep structure,
10065 rather than using a hardcoded one. Replace calls to amd64_classify
10066 by calls to tdep->classify.
10067 (amd64_push_dummy_call): Get the register number used for
10068 the "hidden" argument from tdep->call_dummy_integer_regs.
10069 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10070 and tdep->call_dummy_integer_regs. Set tdep->classify.
10071 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10072 (amd64_windows_dummy_call_integer_regs): New static global.
10073 (amd64_windows_classify): New function.
10074 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10075 tdep->call_dummy_integer_regs and tdep->classify.
10076
10077 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10078
10079 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10080 for the new regcache. All callers updated.
10081 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10082 (get_thread_arch_regcache): Do not set aspace here.
10083 * regcache.h (regcache_xmalloc): Update declaration.
10084
10085 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10086 regcache_xmalloc updated.
10087
10088 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10089
10090 Another -Wunused-function error in procfs.c (sparc-solaris)
10091 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10092 Only define if SYS_syssgi is defined.
10093 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10094 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10095 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10096 is itself defined.
10097
10098 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10099
10100 * windows-nat.c (windows_initialization_done): New variable.
10101 (get_windows_debug_event): Issue error when process dies before
10102 completely initializing.
10103 (do_initial_windows_stuff): Set flag to indicate when we are done with
10104 the initial steps of attaching to the child.
10105
10106 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10107
10108 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10109
10110 2010-01-27 Doug Evans <dje@google.com>
10111
10112 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10113
10114 * breakpoint.c (bpstat_stop_status): Delete useless code.
10115
10116 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10117
10118 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10119 objfile via SYMBOL_SYMTAB.
10120
10121 2010-01-26 Tom Tromey <tromey@redhat.com>
10122
10123 PR exp/7643:
10124 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10125 coerce_array on result.
10126
10127 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10128
10129 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10130 search_parent argument.
10131 (cp_add_using): Initialize 'searched' field.
10132 (reset_directive_searched): New function.
10133 * cp-support.h: Add 'searched' field to using_direct struct.
10134 (cp_lookup_symbol_imports): Ditto.
10135 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10136 Perform recursive search.
10137 Implement non parent search.
10138 * valops.c (value_maybe_namespace_elt): Updated.
10139
10140 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10141
10142 PR gdb/10929:
10143 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10144 scopes which contain using directives even if they contain no
10145 declarations.
10146 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10147 la_lookup_symbol_nonlocal.
10148 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10149 cp_lookup_symbol_namespace.
10150 (cp_lookup_symbol_namespace): Perform an import lookup at every
10151 block level.
10152 (cp_lookup_symbol_imports): New function.
10153 (cp_lookup_symbol_in_namespace): New function.
10154
10155 2010-01-25 Tom Tromey <tromey@redhat.com>
10156
10157 PR gdb/11049:
10158 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10159 result.
10160
10161 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10162
10163 * configure.ac: Only use host_os part when disabling TUI on osf.
10164 Use test to check variables, prefix strings with x.
10165 * configure: Regenerate.
10166
10167 * solib-osf.c (osf_current_sos): Initialize tail.
10168
10169 2010-01-25 gingold <gingold@adacore.com>
10170
10171 * windows-nat.c (windows_continue): Use %x to print thread id.
10172 (get_windows_debug_event): Ditto.
10173
10174 2010-01-22 Tom Tromey <tromey@redhat.com>
10175
10176 PR symtab/11199:
10177 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10178 type and arguments. Use smash_to_methodptr_type.
10179 (read_structure_type): Call quirk_gcc_member_function_pointer
10180 later.
10181 * gdbtypes.h (smash_to_methodptr_type): Declare.
10182 * gdbtypes.c (smash_to_methodptr_type): New function.
10183 (lookup_methodptr_type): Use it.
10184
10185 2010-01-21 Tom Tromey <tromey@redhat.com>
10186
10187 PR symtab/11198:
10188 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10189 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10190 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10191 (glibc_skip_solib_resolver): Use
10192 lookup_minimal_symbol_and_objfile.
10193
10194 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10195
10196 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10197 WIN32 targets.
10198
10199 2010-01-20 Tom Tromey <tromey@redhat.com>
10200
10201 PR backtrace/10770:
10202 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10203 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10204 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10205 dwarf_stack_values, not CORE_ADDRs.
10206 (execute_stack_op): Change DW_OP_div and comparison operators to
10207 use signed operands.
10208
10209 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10210
10211 Per-inferior args and tty and environment.
10212
10213 * infcmd.c (inferior_args): Rename to ...
10214 (inferior_args_scratch): ... this.
10215 (inferior_io_terminal): Rename to ...
10216 (inferior_io_terminal_scratch): ... this.
10217 (inferior_argc, inferior_argv): Remove.
10218 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10219 inside current_inferior().
10220 (set_inferior_tty_command, show_inferior_tty_command): New.
10221 (get_inferior_args, set_inferior_args): Store inside
10222 current_inferior().
10223 (notice_args_set): Likewise and rename to...
10224 (set_args_command): ... this.
10225 (set_inferior_args_vector): Likewise.
10226 (notice_args_read): Rename to...
10227 (show_args_command): ...new.
10228 (tty_command): Remove.
10229 (run_command_1): Don't free old args, as they are freed by
10230 set_inferior_arg now.
10231 (run_no_args_command): Likewise.
10232 (inferior_environ): Remove.
10233 (run_command_1): Use environment of the current inferior.
10234 (environment_info, set_environment_command)
10235 (unset_environment_command, path_info, path_command): Likewise.
10236 (_initialize_infcmd): Adjust for function and variable renames.
10237 Do not init inferior_environ.
10238 * inferior.h (set_inferior_arg): Adjust prototype.
10239 (struct inferior): New fields args, argc, argv, terminal, environment.
10240 (inferior_environ): Remove declaration.
10241 * inferior.c (free_inferior): Free new fields.
10242 (add_inferior_silent): Initialize 'environment' field.
10243 * main.c (captured_main): Set arguments only after the initial
10244 inferior has been created. Set set_inferior_io_terminal,
10245 not tty_command.
10246 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10247 inferior.
10248 (_initialize_mi_cmd_env): Adjust for disappearance of global
10249 inferior_environ.
10250 * solib.c (solib_find): Use environment of the current inferior.
10251
10252 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10253
10254 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10255 HAVE_PYTHON.
10256 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10257
10258 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10259
10260 Get rid of ada-lang.c:function_name_from_pc.
10261 * ada-lang.c: Add "stack.h" #include.
10262 (function_name_from_pc): Delete.
10263 (is_known_support_routine): Replace call to function_name_from_pc
10264 by call to find_frame_funname.
10265 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10266
10267 2010-01-19 Tom Tromey <tromey@redhat.com>
10268
10269 PR c++/11026:
10270 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10271 objfile obstack.
10272
10273 2010-01-19 Tom Tromey <tromey@redhat.com>
10274
10275 * top.c (stop_sig, float_handler, do_nothing): Remove.
10276
10277 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10278
10279 * breakpoint.c (watchpoint_check): Check the call
10280 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10281 Extend the comment.
10282 * config/djgpp/fnchange.lst: Add translations for
10283 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10284 watchpoint-cond-gone-stripped.c.
10285
10286 2010-01-19 Tom Tromey <tromey@redhat.com>
10287
10288 PR c++/8000:
10289 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10290 into parent scope, and enumerator into grandparent scope.
10291
10292 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10293
10294 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10295
10296 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10297
10298 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10299 i[34567]86-*-solaris2.1[0-9]*.
10300 * configure.tgt: Likewise.
10301
10302 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10303
10304 * NEWS: Document the source command enhancement allowing it
10305 to load Python scripts. Document the "set/show script-extension"
10306 commands.
10307
10308 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10309
10310 Add -Wunused-function to compile flags.
10311 * configure.ac: Add -Wunused-function to build_warnings.
10312 * configure: Regenerate.
10313
10314 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10315
10316 "delete" ada-lex.c:input function, not used.
10317 * ada-lex.l: #define YY_NO_INPUT.
10318
10319 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10320
10321 Delete free_named_symtabs and associated cleanup.
10322 * symfile.h (free_named_symtabs): Delete declaration.
10323 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10324 (cashier_psymtab): Comment function out.
10325 Delete declaration.
10326 (free_named_symtabs): Delete.
10327 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10328 * dbxread.c (end_psymtab): Likewise.
10329 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10330 * exec.c (exec_close_1): Ditto.
10331 * xcoffread.c (xcoff_end_psymtab): Likewise.
10332
10333 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10334
10335 * stack.c (print_block_frame_labels): Comment function out.
10336
10337 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10338
10339 Delete unused or undefined functions.
10340 * breakpoint.c (ep_parse_optional_filename): Delete.
10341 * dcache.c (dcache_write_line): Remove declaration.
10342 * infrun.c (build_infrun): Remove declaration.
10343 * tracepoint.c (tracepoint_save_command): Remove declaration.
10344 * linux-nat.c (init_lwp_list): Delete. No longer used.
10345 * event-loop.c (check_async_signal_handlers): Delete declaration.
10346 * infrun.c (init_execution_control_state): Delete.
10347 (proceed): Update comment to avoid mentioning
10348 init_execution_control_state.
10349 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10350 * ada-lang.c (ada_to_static_fixed_value): Delete.
10351 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10352 * cp-namespace.c (cp_copy_usings): Delete.
10353 * xml-syscall.c (xml_number_of_syscalls): Delete.
10354 * progspace.c (find_program_space_by_num): Delete.
10355 * inflow.c (handle_sigio): Delete declaration.
10356 * hppa-tdep.c (hppa_alignof): Delete.
10357 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10358 (mipsnbsd_core_osabi_sniffer): Delete.
10359
10360 2010-01-18 Tom Tromey <tromey@redhat.com>
10361
10362 PR c++/9680:
10363 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10364 (CONST_CAST): New tokens.
10365 (exp): Add new productions.
10366 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10367 reinterpret_cast.
10368 (is_cast_operator): New function.
10369 (yylex): Handle cast operators specially.
10370 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10371 UNOP_REINTERPRET_CAST>: New cases.
10372 * expprint.c (print_subexp_standard): Likewise.
10373 (op_name_standard): Likewise.
10374 (dump_subexp_body_standard): Likewise.
10375 * parse.c (operator_length_standard): Likewise.
10376 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10377 UNOP_REINTERPRET_CAST.
10378 * gdbtypes.c (class_types_same_p): New function.
10379 (is_ancestor): Use it.
10380 (is_public_ancestor): New function.
10381 (is_unique_ancestor_worker): Likewise.
10382 (is_unique_ancestor): Likewise.
10383 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10384 (is_unique_ancestor): Declare.
10385 * valops.c (value_reinterpret_cast): New function.
10386 (dynamic_cast_check_1): Likewise.
10387 (dynamic_cast_check_2): Likewise.
10388 (value_dynamic_cast): Likewise.
10389 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10390
10391 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10392
10393 Fix build failure when building without Python support.
10394 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10395 is not defined.
10396
10397 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10398
10399 Use XVS field type instead of doing a parallel lookup.
10400 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10401 if it is a reference type instead of doing a type lookup using
10402 the XVS field name.
10403
10404 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10405
10406 Trust PAD types instead of using PAD___XVS.
10407 * ada-lang.c (trust_pad_over_xvs): New static variable.
10408 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10409 parallel XVS type, follow the XVS type instead of the PAD type.
10410 (unwrap_value): Make sure that there is no parallel XVE type
10411 before returning the value as is.
10412 (set_ada_list, show_ada_list): New static variables.
10413 (set_ada_command, show_ada_command): New functions.
10414 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10415 Add new "set/show ada trust-PAD-over-XVS" setting.
10416
10417 2010-01-18 Tom Tromey <tromey@redhat.com>
10418 Thiago Jung Bauermann <bauerman@br.ibm.com>
10419
10420 Allow "source" to load python scripts.
10421 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10422 * python/python.c (source_python_script): New function.
10423 * python/python.h (source_python_script): Add declaration.
10424 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10425 (script_ext_off, script_ext_soft, script_ext_strict)
10426 (script_ext_enums, script_ext_mode): New static constants.
10427 (show_script_ext_mode, find_and_open_script): New functions.
10428 (source_script): Enhance to handle Python scripts.
10429 (init_cli_cmds): Add set/show script-extension commands.
10430
10431 2010-01-16 Stan Shebs <stan@codesourcery.com>
10432
10433 * tracepoint.h (struct trace_status): Use unsigned long long
10434 instead of size_t.
10435 * tracepoint.c (trace_status_command): Fix printf directive.
10436 (trace_save_command): Check fwrite returns, fix printf directive.
10437 (trace_filename): New global.
10438 (tfile_open): Set it, check read returns.
10439 (tfile_close): Free trace_filename.
10440 (tfile_get_traceframe_address): Check read returns.
10441 (tfile_trace_find): Ditto.
10442 (tfile_fetch_registers): Ditto.
10443 (tfile_xfer_partial): Ditto.
10444 (tfile_get_trace_state_variable_value): Ditto.
10445
10446 2010-01-15 Stan Shebs <stan@codesourcery.com>
10447
10448 Add trace file support.
10449 * tracepoint.h (enum trace_stop_reason): New enum.
10450 (struct trace_status): New struct.
10451 (parse_trace_status): Declare.
10452 (struct uploaded_tp): Move here from remote.c,
10453 add fields for actions.
10454 (struct uploaded_tsv): New struct.
10455 * tracepoint.c (tfile_ops): New target vector.
10456 (trace_fd): New global.
10457 (tfile_open): New function.
10458 (tfile_close): New function.
10459 (tfile_files_info): New function.
10460 (tfile_get_trace_status): New function.
10461 (tfile_get_traceframe_address): New function.
10462 (tfile_trace_find): New function.
10463 (tfile_fetch_registers): New function.
10464 (tfile_xfer_partial): New function.
10465 (tfile_get_trace_state_variable_value): New function.
10466 (init_tfile_ops): New function.
10467 (_initialize_tracepoint): Call it, add tfile target.
10468 (trace_status): New global.
10469 (current_trace_status): New function.
10470 (trace_running_p): Remove, change all users to get from
10471 current_trace_status()->running.
10472 (get_trace_status): Remove.
10473 (trace_status_command): Call target_get_trace_status directly,
10474 report more detail including tracing stop reasons.
10475 (trace_find_command): Always allow tfind on a file.
10476 (trace_find_pc_command): Ditto.
10477 (trace_find_tracepoint_command): Ditto.
10478 (trace_find_line_command): Ditto.
10479 (trace_find_range_command): Ditto.
10480 (trace_find_outside_command): Ditto.
10481 (trace_frames_offset, cur_offset): Declare as off_t.
10482 (trace_regblock_size): Rename from reg_size, update users.
10483 (parse_trace_status): New function.
10484 (tfile_interp_line): New function.
10485 (disconnect_or_stop_tracing): Ensure current trace
10486 status before asking what to do.
10487 (stop_reason_names): New global.
10488 (trace_save_command): New command.
10489 (get_uploaded_tp): Move here from remote.c.
10490 (find_matching_tracepoint): Ditto.
10491 (merge_uploaded_tracepoints): New function.
10492 (parse_trace_status): Use stop_reason_names.
10493 (_initialize_tracepoint): Define tsave command.
10494 * target.h (target_ops): New fields to_save_trace_data,
10495 to_upload_tracepoints, to_upload_trace_state_variables,
10496 to_get_raw_trace_data, change to_get_trace_status
10497 to take a pointer to a status struct.
10498 (target_save_trace_data): New macro.
10499 (target_upload_tracepoints): New macro.
10500 (target_upload_trace_state_variables): New macro.
10501 (target_get_raw_trace_data): New macro.
10502 * target.c (update_current_target): Add new methods, change
10503 signature of to_get_trace_status.
10504 * remote.c (hex2bin): Make globally visible.
10505 (bin2hex): Ditto.
10506 (remote_download_trace_state_variable): Download name also.
10507 (remote_get_trace_status): Update parameter, use
10508 parse_trace_status.
10509 (remote_save_trace_data): New function.
10510 (remote_upload_tracepoints): New function.
10511 (remote_upload_trace_state_variables): New function.
10512 (remote_get_raw_trace_data): New function.
10513 (remote_start_remote): Use them.
10514 (_initialize_remote_ops): Add operations.
10515 * ax-gdb.c: Include breakpoint.h.
10516 * breakpoint.c (create_tracepoint_from_upload): Use
10517 break_command_really, return tracepoint, warn about unimplemented
10518 parts.
10519 * NEWS: Mention trace file addition.
10520
10521 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10522
10523 Fix compilation warning on gcc-3.4.
10524 * exec.c (print_section_info): Move the `displacement' variable
10525 initialization to its declaration.
10526
10527 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10528
10529 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10530 comparison.
10531
10532 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10533
10534 "info tasks" broken by typedefs in ATCB type definitions.
10535 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10536 ada_check_typedef before retrieving the length of the type for
10537 regular fields.
10538
10539 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10540
10541 Do not use name-based lookup for unconstrained packed arrays.
10542 * ada-lang.c (find_parallel_type_by_descriptive_type):
10543 Limit the fallback to name-based lookups to the case where
10544 the type is a constrained packed array.
10545
10546 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10547
10548 Enhance gdb-gdb.py to handle main_type.type_specific.
10549 * gdb-gdb.py: Print the type-specific part of struct main_type.
10550
10551 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10552
10553 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10554 * configure: Regenerate.
10555 * config.in: Regenerate.
10556 * utils.c: Include sys/resource.h.
10557 (dump_core, can_dump_core): New.
10558 (internal_vproblem): Update the comment. Check can_dump_core while
10559 setting dump_core_p. Replace two abort calls by dump_core calls.
10560
10561 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10562 Eli Zaretskii <eliz@gnu.org>
10563
10564 * NEWS: Document the PIE support.
10565
10566 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10567
10568 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10569 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10570
10571 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10572
10573 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10574 Replace exec_entry_point call by bfd_get_start_address.
10575
10576 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10577
10578 Support Valgrind attachments broken by the PIE support.
10579 * auxv.c: Include gdbcore.h.
10580 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10581 parameters ops, object and annex. Remove their assertions.
10582 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10583 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10584 (memory_xfer_auxv): ... here.
10585 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10586 memory_xfer_auxv.
10587 * procfs.c (procfs_xfer_partial): Likewise.
10588 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10589 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10590 (svr4_solib_create_inferior_hook): Conditionalize the
10591 svr4_relocate_main_executable call.
10592
10593 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10594
10595 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10596 target_section. Find SECT in current_target_sections, gdb_assert it.
10597 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10598 New variable abfd.
10599 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10600 of separate debug info file.
10601
10602 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10603
10604 Support PIEs with no symfile_objfile.
10605 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10606 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10607
10608 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10609
10610 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10611 code part to ...
10612 (svr4_static_exec_displacement): ... a new function.
10613 (svr4_exec_displacement): New function.
10614 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10615 new_offsets using alloca now. Remove variable old_chain and changed.
10616 Call objfile_relocate unconditionally now.
10617
10618 2010-01-14 Doug Evans <dje@google.com>
10619
10620 * gdbtypes.c (arch_flags_type): Fix comment.
10621 * gdbtypes.h (arch_composite_type): Fix comment.
10622
10623 2009-01-14 Tristan Gingold <gingold@adacore.com>
10624
10625 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10626 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10627 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10628 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10629 macho_add_oso_symfile.
10630 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10631
10632 2010-01-14 Joel Brobecker <brobecker@adacore.com>
10633
10634 Tru64: Dead threads are never deleted.
10635 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10636 (dec_thread_count_gdb_threads): Fix counter increment.
10637 (dec_thread_add_gdb_thread): Fix *listp increment.
10638 (resync_thread_list): Fix bug in deletion of dead threads that
10639 caused all threads to be deleted, instead of just the dead ones.
10640
10641 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10642
10643 PR python/10705
10644
10645 * python/python-internal.h: Add lazy_string_object_type
10646 definition.
10647 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10648 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10649 * python/py-value.c (valpy_lazy_string): New function.
10650 (convert_value_from_python): Add lazy string conversion.
10651 * python/py-prettyprint.c (pretty_print_one_value): Check if
10652 return is also a lazy string.
10653 (print_string_repr): Add lazy string printing branch.
10654 (print_children): Likewise.
10655 * python/py-lazy-string.c: New file. Implement lazy strings.
10656 * python/python.c (_initialize_python): Call
10657 gdbpy_initialize_lazy_string.
10658 * varobj.c (value_get_print_value): Add lazy string printing
10659 branch. Account for encoding.
10660 * c-lang.c (c_printstr): Account for new encoding argument. If
10661 encoding is NULL, find encoding suited for type, otherwise use
10662 user encoding.
10663 * language.h (language_defn): Add encoding argument.
10664 (LA_PRINT_STRING): Likewise.
10665 * language.c (unk_lang_printstr): Update to reflect new encoding
10666 argument to language_defn.
10667 * ada-lang.h (ada_printstr): Likewise.
10668 * c-lang.h (c_printstr): Likewise.
10669 * p-lang.h (pascal_printstr);
10670 * f-lang.c (f_printstr): Likewise.
10671 * m2-lang.c (m2_printstr): Likewise.
10672 * objc-lang.c (objc_printstr): Likewise.
10673 * p-lang.c (pascal_printstr): Likewise.
10674 * scm-lang.c (scm_printstr): Likewise.
10675 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10676 encoding argument.
10677 * ada-valprint.c (ada_printstr): Likewise.
10678 * f-valprint.c (f_val_print): Likewise
10679 * m2-valprint.c (m2_val_print): Likewise.
10680 * p-valprint.c (pascal_val_print): Likewise.
10681 * expprint.c (print_subexp_standard): Likewise.
10682 * valprint.c (val_print_string): Likewise.
10683 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10684 (SUBDIR_PYTHON_SRCS): Likewise.
10685 (py-lazy-string.o): New rule.
10686
10687 2010-01-13 Doug Evans <dje@google.com>
10688
10689 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10690 uninitialized" warning from gcc on local `tree'.
10691
10692 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10693
10694 Implement core awareness.
10695
10696 * bcache.c (compare_ints): Remove
10697 (print_percentage): Use compare_positive_ints.
10698 * defs.h (compare_positive_ints): Declare.
10699 * linux-nat.h (struct lin_lwp): New field core.
10700 (linux_nat_core_of_thread_1): Declare.
10701 * linux-nat.c (add_lwp): Init the 'core' field.
10702 (linux_nat_wait_1): Record the core.
10703 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10704 (linux_nat_add_target): Register the above.
10705 * linux-thread-db.c (update_thread_core): New.
10706 (thread_db_find_new_threads): Update core information for
10707 every thread.
10708 * remote.c (struct private_thread_info): New.
10709 (free_private_thread_info, demand_private_info): New.
10710 (PACKET_qXfer_threads, use_osdata_threads): New.
10711 (struct thread_item, threads_parsing_context
10712 (start_thread, end_thread, thread_attributes)
10713 (thread_children, threads_children, threads_elements): New.
10714 (remote_threads_info): Try qXfer:threads before anything
10715 else.
10716 (remote_protocol_packets): Register qXfer:threads.
10717 (remote_open_1): Init use_osdata_threads.
10718 (struct stop_reply): New field 'core'.
10719 (remote_parse_stop_reply): Parse core number.
10720 (process_stop_reply): Record core number.
10721 (remote_xfer_partial): Handle qXfer:threads.
10722 (remote_core_of_thread): New.
10723 (init_remote_ops): Register remote_core_of_thread.
10724 (_initialize_remote): Register qXfer:read.
10725 * target.c (target_core_of_thread): New
10726 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10727 (struct target_ops): New field to_core_of_threads.
10728 (target_core_of_thread): Declare.
10729 * gdbthread.h (struct thread_info): New field private_dtor.
10730 * thread.c (print_thread_info): Report the core.
10731 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10732 * utils.c (compare_positive_ints): New.
10733 * features/threads.dtd: New.
10734 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10735 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10736 (do_nothing, free_vector_of_osdata_items)
10737 (splay_tree_int_comparator, free_splay_tree): New.
10738 (print_one_inferior_data): Implemented printing of selected
10739 inferiors. Collect and print cores.
10740 (output_cores): New.
10741 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10742 thread groups together with --available.
10743
10744 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10745
10746 * configure: Regenerate (for _STRUCTURED_PROC).
10747
10748 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10749
10750 Delete dead function.
10751 * ada-lang.c (extract_string): Delete. No longer used.
10752
10753 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10754
10755 Fix -Wunused warning in dec-thread.c.
10756 * dec-thread.c (dec_thread_count_gdb_threads)
10757 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10758
10759 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10760
10761 * ada-valprint.c (ada_print_floating): Remove trailing space.
10762
10763 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10764
10765 Add support for DW_AT_GNAT_descriptive_type.
10766 * gdbtypes.h (enum type_specific_kind): New enum.
10767 (struct main_type) [type_specific_field]: New component.
10768 [type_specific]: Add new component "gnat_stuff".
10769 (struct gnat_aux_type): New type.
10770 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10771 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10772 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10773 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10774 (TYPE_SPECIFIC_FIELD): New macros.
10775 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10776 type does not hold any cplus-specific data.
10777 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10778 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10779 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10780 cplus-specific data.
10781 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10782 Set new component TYPE_SPECIFIC_FIELD (type).
10783 (gnat_aux_default): New constant.
10784 (allocate_gnat_aux_type): New function.
10785 (init_type): Add initialization the type-specific stuff for
10786 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10787 (print_gnat_stuff): New function.
10788 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10789 specific data. Adjust code that prints the contents of the
10790 type-specific union using the TYPE_SPECIFIC_FIELD value.
10791 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10792 the type cplus stuff for Ada types.
10793 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10794 Error out if these routines are called with an Ada type.
10795 (read_structure_type, read_array_type, read_subrange_type):
10796 Add call to set_descriptive_type.
10797 (set_die_type): Initialize the gnat-specific data if necessary.
10798 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10799 New functions.
10800 * ada-lang.c (decode_constrained_packed_array_type): Use
10801 decode_constrained_packed_array_type instead of doing a standard
10802 lookup to locate a parallel type.
10803 (find_parallel_type_by_descriptive_type): New function.
10804 (ada_find_parallel_type_with_name): New function.
10805 (ada_find_parallel_type): Reimplement using
10806 ada_find_parallel_type_with_name.
10807 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10808 to check if type has a cplus stuff.
10809 * linespec.c (total_number_of_methods): Likewise.
10810 * mdebugread.c (new_type): Likewise.
10811
10812 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10813
10814 * NEWS: Document the 0b binary number prefix parsing.
10815
10816 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10817
10818 * objfiles.c (objfile_relocate1): Change the return type to int.
10819 Describe the new return value. Return non-zero if data changed.
10820 (objfile_relocate): New variable changed. Set it. Call
10821 breakpoint_re_set depending on CHANGED.
10822
10823 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10824
10825 Implement binary numbers parsing.
10826 * c-exp.y (parse_number): New case 'b' and 'B'.
10827
10828 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10829 Tristan Gingold <gingold@adacore.com>
10830
10831 * solib.c (info_sharedlibrary_command): Replace
10832 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10833 objfile_has_symbols.
10834
10835 2010-01-10 Joel Brobecker <brobecker@adacore.com>
10836
10837 * NEWS: Document the improvements made to the mips-irix port.
10838
10839 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10840
10841 Fix the documentation of valprint.c:value_print.
10842 * valprint.c (value_print): Update the function description to
10843 mention that the syntax of the output follows the current_language,
10844 not necessarily C.
10845
10846 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 Fix displacement of separate debug info files.
10849 * objfiles.c (objfile_relocate): Rename to ...
10850 (objfile_relocate1): ... here and make it static. Extend the comment.
10851 (objfile_relocate): New function.
10852 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10853 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10854 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10855 allocated using alloca.
10856 * symfile.c (copy_section_addr_info): Remove.
10857 (build_section_addr_info_from_objfile): Make it global. New variables
10858 addr_bit and mask, use them.
10859 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10860 (copy_section_addr_info): Remove.
10861
10862 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10863
10864 Signal unwinder for mips-irix N32.
10865 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10866 tramp-frame.h.
10867 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10868 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10869 (SIGCONTEXT_LO_OFF): New macros.
10870 (mips_irix_n32_tramp_frame_init): New function.
10871 (mips_irix_n32_tramp_frame): New static constant.
10872 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10873
10874 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10875
10876 Breakpoint in shared library does not work on mips-irix.
10877 * procfs.c: #include "observer.h".
10878 (procfs_inferior_created): New function, moving here the code
10879 which unsets the syssgi syscall-exit notifications.
10880 (procfs_create_inferior): Remove the code which unsets the syssgi
10881 syscall-exit notifications. It is too early to do this here.
10882 (_initialize_procfs): Attach the procfs_inferior_created observer.
10883
10884 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10885
10886 Wrong return convention for arrays (mips-irix).
10887 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10888 128 bits or smaller are returned the same way as structs
10889 and unions of the the same size.
10890
10891 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10892
10893 Cannot set the PC on mips-irix.
10894 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10895 register number, no the cooked one.
10896
10897 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10898
10899 Error while loading core file on mips-irix.
10900 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10901 if debugging from a core file.
10902
10903 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10904
10905 GDB hangs when attaching to process on mips-irix.
10906 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10907 attaching to a process.
10908
10909 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10910
10911 Use the correct breakpoint instruction on mips-irix.
10912 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10913 containing the correct breakpoint instruction to use on mips-irix.
10914 Use it when the osabi is GDB_OSABI_IRIX.
10915
10916 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10917
10918 -Wunused warning in procfs.c (mips-irix only).
10919 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10920 throughout instead of using praddset and prdelset respectively.
10921
10922 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10923
10924 GDB crash while stepping into function.
10925 * infrun.c (handle_inferior_event): Refetch the current frame
10926 after handling what.main_action, in case that pointer became
10927 dangling.
10928
10929 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10930
10931 Fix build failure of solaris-hosted cross debuggers.
10932 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10933
10934 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
10935
10936 Fix build failure on sparc-solaris.
10937 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10938
10939 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10940
10941 Move some symfile code into subroutines.
10942 * symfile.h (relative_addr_info_to_section_offsets)
10943 (addr_info_make_relative): New prototypes.
10944 * symfile.c (default_symfile_offsets): Move a part to ...
10945 (relative_addr_info_to_section_offsets): ... this new function.
10946 (default_symfile_offsets): Call it.
10947 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10948 this part to ...
10949 (addr_info_make_relative): ... this new function.
10950
10951 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10952
10953 Add from_tty to solib_create_inferior_hook.
10954 * infcmd.c (post_create_inferior): Move solib_add after
10955 solib_create_inferior_hook. Pass from_tty to
10956 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10957 0 from_tty and comment why.
10958 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10959 * linux-nat.c (linux_child_follow_fork): Likewise.
10960 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10961 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10962 from_tty.
10963 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10964 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10965 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10966 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10967 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10968 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10969 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10970 Pass it to svr4_so_ops.solib_create_inferior_hook.
10971 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10972 from_tty.
10973 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10974 solib_add.
10975 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10976 enable_break.
10977 * solib-target.c (solib_target_solib_create_inferior_hook): New
10978 parameter from_tty.
10979 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10980 it to ops->solib_create_inferior_hook.
10981 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10982 Move solib_add after solib_create_inferior_hook, call it now with
10983 from_tty as 0. New comment there.
10984 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10985 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10986 Likewise.
10987
10988 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10989
10990 Fix multiexec race.
10991 * infrun.c (handle_inferior_event): Use get_thread_regcache
10992 with events ptid, not get_current_regcache.
10993
10994 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10995
10996 GDB crash with empty executable name (MinGW).
10997 * source.c (openp): Add assert that parameter string is not NULL.
10998 if parameter string is an empty string, then return with a failure
10999 immediately.
11000
11001 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11002
11003 Get rid of support for VAX Floats.
11004 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11005 (ada_vax_float_print_function): Delete.
11006 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11007 (ada_vax_float_print_function): Delete.
11008 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11009 (ada_print_type): Remove support for VAX floats.
11010 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11011
11012 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11013
11014 * stabsread.c (read_args): Handle zero arguments.
11015
11016 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11017
11018 Cannot find in-tree libiconv.a after reconfigure.
11019 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11020 that we can use, then cache the path to this archive.
11021 * configure: Regenerate.
11022
11023 2010-01-07 Stan Shebs <stan@codesourcery.com>
11024
11025 Make tracepoint operations go through target vector.
11026 * target.h (enum trace_find_type): New enum.
11027 (struct target_ops): New fields to_trace_init,
11028 to_download_tracepoint, to_download_trace_state_variable,
11029 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11030 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11031 to_set_disconnected_tracing.
11032 (target_trace_init): New macro.
11033 (target_download_tracepoint): New macro.
11034 (target_download_trace_state_variable): New macro.
11035 (target_trace_start): New macro.
11036 (target_trace_set_readonly_regions): New macro.
11037 (target_get_trace_status): New macro.
11038 (target_trace_stop): New macro.
11039 (target_trace_find): New macro.
11040 (target_get_trace_state_variable_value): New macro.
11041 (target_set_disconnected_tracing): New macro.
11042 * target.c (update_current_target): Inherit and set defaults for
11043 tracepoint operations.
11044 * tracepoint.c (default_collect): Make globally visible.
11045 (target_is_remote): Remove, along with all calls.
11046 (tvariables_info): Call target_get_trace_state_variable_value.
11047 (remote_set_transparent_ranges): Remove.
11048 (trace_start_command): Call target_trace_init,
11049 target_download_tracepoint, etc.
11050 (download_tracepoint): Remove.
11051 (trace_stop_command): Simplify.
11052 (stop_tracing): Call target_trace_stop.
11053 (get_trace_status): Call target_get_trace_status.
11054 (trace_status_command): Add case for targets that cannot trace.
11055 (finish_tfind_command): Change to take numerical arguments, call
11056 target_trace_find.
11057 (trace_find_command): Update call to finish_tfind_command.
11058 (trace_find_pc_command): Ditto.
11059 (trace_find_tracepoint_command): Ditto.
11060 (trace_find_line_command): Ditto.
11061 (trace_find_range_command): Ditto.
11062 (trace_find_outside_command): Ditto.
11063 (set_disconnected_tracing_value): Call
11064 target_set_disconnected_tracing.
11065 * remote.c: Add protocol encoding bits from tracepoint.c.
11066 (trace_error): Move from tracepoint.c.
11067 (remote_get_noisy_reply): Ditto.
11068 (free_actions_list_cleanup_wrapper): Ditto.
11069 (free_actions_list): Ditto.
11070 (remote_trace_init): New function.
11071 (remote_download_tracepoint): New function.
11072 (remote_download_trace_state_variable): New function.
11073 (remote_trace_set_readonly_regions): New function.
11074 (remote_trace_start): New function.
11075 (remote_get_trace_status): New function.
11076 (remote_trace_stop): New function.
11077 (remote_trace_find): New function.
11078 (remote_download_trace_state_variable): New function.
11079 (remote_set_disconnected_tracing): New function.
11080 (init_remote_ops): Add tracepoint operations.
11081
11082 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11083
11084 2010-01-07 Tristan Gingold <gingold@adacore.com>
11085
11086 * symfile.c (build_section_addr_info_from_objfile): New function.
11087 (symbol_file_add_separate): Don't use offsets from objfile but
11088 built an addr info.
11089
11090 2010-01-06 Stan Shebs <stan@codesourcery.com>
11091
11092 Support disconnected tracing.
11093 * infcmd.c (detach_command): Ask whether to stop tracing.
11094 * cli/cli-cmds.c (quit_command): Ditto.
11095 * breakpoint.h (struct breakpoint): New field number_on_target.
11096 * breakpoint.c (create_tracepoint_from_upload): New function.
11097 (get_tracepoint_by_number_on_target): New function.
11098 * remote.c (struct remote): New field disconnected_tracing.
11099 (remote_disconnected_tracing_feature): New function.
11100 (remote_protocol_features): Add DisconnectedTracing.
11101 (struct uploaded_tp): New struct.
11102 (uploaded_tps): New global.
11103 (get_uploaded_tp): New function.
11104 (find_matching_tracepoint): New function.
11105 (remote_get_tracing_state): New function.
11106 (remote_start_remote): Call it.
11107 * tracepoint.c (disconnected_tracing): New global.
11108 (trace_start_command): Initialize number_on_target.
11109 (stop_tracing): New function, split out from...
11110 (trace_stop_command): Call stop_tracing.
11111 (get_trace_status): New function, split out from...
11112 (trace_status_command): Call get_trace_status, add info on
11113 disconnection behavior.
11114 (disconnect_or_stop_tracing): New function.
11115 (finish_tfind_command): Translate from number on target.
11116 (trace_find_tracepoint_command): Translate to number on target.
11117 (send_disconnected_tracing_value): New function.
11118 (set_disconnected_tracing): New function.
11119 (_initialize_tracepoint): Add disconnected-tracing variable.
11120 * NEWS: Mention disconnected tracing.
11121
11122 2010-01-06 Tristan Gingold <gingold@adacore.com>
11123
11124 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11125 parameter to main_objfile. Iterate on all separate debug objfiles.
11126 * symfile.h (symbol_file_add_separate)
11127 (find_separate_debug_file_by_debuglink): Remove parameter names.
11128 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11129 (reread_symbols): Use free_objfile_separate_debug.
11130 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11131 Adjust comment.
11132 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11133 (free_objfile_separate_debug): New prototypes.
11134 * objfiles.c (objfile_separate_debug_iterate): New function.
11135 (add_separate_debug_objfile, free_objfile_separate_debug): New
11136 functions.
11137 (free_objfile): Use free_objfile_separate_debug. Adjust for
11138 multiple separate debug objfile.
11139 (objfile_has_symbols): Adjust comment. Iterate on all separate
11140 debug objfiles.
11141 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11142 debug objfile.
11143 (lookup_minimal_symbol_text): Ditto.
11144 (lookup_minimal_symbol_by_pc_name): Ditto.
11145 (lookup_minimal_symbol_solib_trampoline): Ditto.
11146 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11147 debug objfiles.
11148
11149 2010-01-05 Stan Shebs <stan@codesourcery.com>
11150
11151 Add fast tracepoints.
11152 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11153 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11154 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11155 * breakpoint.c (tracepoint_type): New function.
11156 (ALL_TRACEPOINTS): Use it.
11157 (should_be_inserted): Ditto.
11158 (bpstat_check_location): Ditto.
11159 (print_one_breakpoint_location): Ditto.
11160 (user_settable_breakpoint): Ditto.
11161 (set_breakpoint_location_function): Ditto.
11162 (disable_breakpoints_in_shlibs): Ditto.
11163 (delete_trace_command): Ditto.
11164 (print_it_typical): Add bp_fast_tracepoint case.
11165 (bpstat_what): Ditto.
11166 (print_one_breakpoint_location): Ditto.
11167 (allocate_bp_location): Ditto.
11168 (mention): Ditto.
11169 (breakpoint_re_set_one): Ditto.
11170 (disable_command): Ditto.
11171 (enable_command): Ditto.
11172 (check_fast_tracepoint_sals): New function.
11173 (break_command_really): Call it.
11174 (ftrace_command): New function.
11175 (_initialize_breakpoint): Add ftrace command.
11176 * gdbarch.sh (fast_tracepoint_valid_at): New.
11177 * gdbarch.h, gdbarch.c: Regenerate.
11178 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11179 (i386_gdbarch_init): Use it.
11180 * remote.c (struct remote_state): New field fast_tracepoints.
11181 (PACKET_FastTracepoints): New packet config type.
11182 (remote_fast_tracepoint_feature): New function.
11183 (remote_protocol_features): Add FastTracepoints.
11184 (remote_supports_fast_tracepoints): New function.
11185 (_initialize_remote): Add FastTracepoints.
11186 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11187 * NEWS: Mention fast tracepoints.
11188
11189 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11190
11191 * gdb-gdb.py: New file.
11192
11193 2010-01-05 Michael Snyder <msnyder@vmware.com>
11194
11195 * infrun.c (handle_inferior_event): Fix typo in comment.
11196
11197 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11198
11199 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11200
11201 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11202
11203 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11204 and s390x-linux64.
11205 (s390-linux32-expedite): Define.
11206 (s390-linux64-expedite): Define.
11207 (s390x-linux64-expedite): Define.
11208 * features/s390-acr.xml: New file.
11209 * features/s390-fpr.xml: New file.
11210 * features/s390-core32.xml: New file.
11211 * features/s390-core64.xml: New file.
11212 * features/s390x-core64.xml: New file.
11213 * features/s390-linux32.xml: New file.
11214 * features/s390-linux64.xml: New file.
11215 * features/s390x-linux64.xml: New file.
11216 * features/s390-linux32.c: New generated file.
11217 * features/s390-linux64.c: New generated file.
11218 * features/s390x-linux64.c: New generated file.
11219
11220 * regformats/s390-linux32.dat: New generated file.
11221 * regformats/s390-linux64.dat: New generated file.
11222 * regformats/s390x-linux64.dat: New generated file.
11223 * regformats/reg-s390.dat: Remove.
11224 * regformats/reg-s390x.dat: Remove.
11225
11226 * s390-nat.c: Include "auxv.h" and <elf.h>.
11227 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11228 (s390_target_wordsize): New function.
11229 (s390_auxv_parse): Likewise.
11230 (s390_get_hwcap): Likewise.
11231 (s390_read_description): Likewise.
11232 (_initialize_s390_nat): Install s390_auxv_parse and
11233 s390_read_description.
11234
11235 * s390-tdep.c: Include "features/s390-linux32.c",
11236 "features/s390-linux64.c", and "features/s390x-linux64.c".
11237 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11238 (s390_register_call_saved): New function.
11239 (s390_register_name): Remove.
11240 (s390_register_type): Remove.
11241 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11242 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11243 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11244 (s390_pseudo_register_name): New function.
11245 (s390_pseudo_register_type): New function.
11246 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11247 Handle full GPR pesudos and varying pseudo register numbers.
11248 (s390_pseudo_register_write): Likewise
11249 (s390x_pseudo_register_read): Remove.
11250 (s390x_pseudo_register_write): Likewise.
11251 (s390_register_group): Remove.
11252 (s390_pseudo_register_group): New function.
11253 (s390_regmap_gregset): Add GPR upper halves.
11254 (s390x_regmap_gregset): Likewise.
11255 (s390_regmap_fpregset): Likewise.
11256 (s390_regmap_upper): New global variable.
11257 (s390_upper_regset): New global variable.
11258 (s390_upper_regset_sections): New global variable.
11259 (s390_regset_from_core_section): Handle GPR upper halves.
11260 (s390_core_read_description): New function.
11261 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11262 register information. Handle varying pseudo register numbers.
11263 (s390_backchain_frame_unwind_cache): Likewise.
11264 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11265 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11266 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11267 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11268 Handle varying pseudo register numbers.
11269 (s390_unwind_pc): Handle varying pseudo register numbers.
11270 (s390_dwarf2_prev_register): New function.
11271 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11272 register information. Handle varying pseudo register numbers.
11273 Install s390_dwarf2_prev_register to unwind full GPRs.
11274 (s390_gdbarch_init): Handle target descriptions. Assign varying
11275 pseudo register numbers. Install s390_adjust_frame_regnum.
11276 (_initialize_s390_tdep): Initialize target descriptions.
11277
11278 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11279 (S390_NUM_REGS): Redefine to include upper half registers.
11280 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11281 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11282 (tdesc_s390_linux32): Add declaration.
11283 (tdesc_s390_linux64): Likewise.
11284 (tdesc_s390x_linux64): Likewise.
11285
11286 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11287
11288 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11289 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11290 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11291 (ppc_linux_vmx_regset_sections): Likewise.
11292 (ppc_linux_fp_regset_sections): Likewise.
11293
11294 * corelow.c (get_core_register_section): Constify arguments.
11295 (get_core_registers): Use gdbarch_core_regset_sections instead
11296 of hard-coded platform-specific register section names.
11297
11298 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11299
11300 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11301 a register, assume the least-significant part is used.
11302 (write_pieced_value): Likewise.
11303
11304 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11305
11306 * printcmd.c: Include "arch-utils.h".
11307 (do_one_display): Re-parse expression if current architecture changed.
11308
11309 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11310 Joel Brobecker <brobecker@adacore.com>
11311
11312 * gdbtypes.c (check_typedef): New comment on type length.
11313 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11314 comment on type length.
11315 (value_primitive_field): Keep the original TYPE value, new comment.
11316
11317 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11318
11319 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11320 p_start. Change != comparisons to > and < comparisons.
11321
11322 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11323
11324 * cli/cli-script.c (process_next_line): Check P2 overrun.
11325
11326 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11327
11328 Update the copyright hearder to add year 2010 for most GDB files.
11329
11330 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11331
11332 Fix build failure in inf-ptrace.c.
11333 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11334
11335 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11336
11337 * top.c (print_gdb_version): Update copyright year.
11338
11339 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11340
11341 Fix break *FUN'address thread NUM.
11342 * ada-lex.l (task): Expand rule to also match the thread keyword.
11343
11344 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11345
11346 Fix break *FUN'address task NUM.
11347 * ada-lex.l (task): New rule.
11348 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11349 been built before using it.
11350
11351 For older changes see ChangeLog-2009.
11352 \f
11353 Local Variables:
11354 mode: change-log
11355 left-margin: 8
11356 fill-column: 74
11357 version-control: never
11358 coding: utf-8
11359 End: