2010-08-30 Yao Qi <yao@codesourcery.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2010-08-30 Yao Qi <yao@codesourcery.com>
2
3 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
4 (arm_linux_syscall_next_pc): New.
5 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
6 (arm_linux_init_abi): Initialize syscall_next_pc.
7 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
8 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
9 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
10 Declare arm_frame_is_thumb.
11
12 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
13
14 Code cleanup.
15 * breakpoint.c (bpstat_alloc): Remove unused prototype.
16 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
17 code.
18 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
19 calls of bpstat_alloc. Remove explicit bs chain termination.
20
21 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
22
23 Code cleanup.
24 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
25 (my_waitpid): Likewise.
26
27 2010-08-27 Doug Evans <dje@google.com>
28
29 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
30 as appropriate.
31
32 2010-08-27 Tom Tromey <tromey@redhat.com>
33
34 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
35 TYPE_FIELD_IGNORE_BITS.
36
37 2010-08-27 Doug Evans <dje@google.com>
38
39 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
40 the order they're defined in. munmap .debug_types buffer.
41
42 2010-08-26 Doug Evans <dje@google.com>
43
44 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
45 (dw2_forget_cached_source_info): Rename local cu to per_cu.
46 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
47 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
48 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
49 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
50 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
51 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
52 (write_psymtabs_to_index): Ditto.
53
54 2010-08-26 Pedro Alves <pedro@codesourcery.com>
55
56 * NEWS: Mention libthread_db debugging with core files.
57
58 2010-08-26 Doug Evans <dje@google.com>
59
60 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
61 forward decl. Pass pst->dirname to dwarf_decode_lines.
62 (psymtab_include_file_name): New function.
63 (dwarf_decode_lines): Call it. Update comments.
64
65 2010-08-25 Pedro Alves <pedro@codesourcery.com>
66
67 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
68 compilation unit being different from target die's.
69
70 2010-08-24 Doug Evans <dje@google.com>
71
72 PR symtab/11942
73 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
74 debug_types_type_hash.
75 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
76 All uses updated.
77 (lookup_die_type): Renamed from tag_type_to_tag. First look in
78 appropriate type_hash table. All callers updated.
79 (allocate_signatured_type_table): Renamed from
80 allocate_signatured_type_hash_table. All callers updated.
81 (create_signatured_type_table_from_index): Renamed from
82 create_signatured_type_hash_from_index. All callers updated.
83 (read_die_type): Add comment. Move actual reading to ...
84 (read_die_type_1): ... here. New function.
85 (follow_die_ref_or_sig): Tweak comment.
86 (set_die_type): Rewrite to use appropriate choice of
87 debug_info_type_hash or debug_types_type_hash.
88 (get_die_type_at_offset): New function.
89 (get_die_type): Call it.
90
91 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
92
93 * python/py-type.c (typy_richcompare): Initialize worklist.
94
95 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
96 Kazu Hirata <kazu@codesourcery.com>
97 Jonathan Larmour <jifl@eCosCentric.com>
98
99 * arm-tdep.c: Include features/arm-with-m.c.
100 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
101 call this function.
102 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
103 Check is_m after force-mode.
104 (arm_gdbarch_init): Check the binary before the target description.
105 Add check for M profile attribute. If we have an M-profile device,
106 but no target register description, use arm-with-m. Recognize the
107 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
108 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
109 * arm-tdep.h (XPSR_T): Define.
110 (struct gdbarch_tdep): Add is_m member.
111 * features/arm-m-profile.xml, features/arm-with-m.c,
112 features/arm-with-m.xml: New files.
113
114 2010-08-23 Doug Evans <dje@google.com>
115
116 * dwarf2read.c (read_structure_type): Add comment.
117 (read_enumeration_type): Add comment.
118 (process_enumeration_scope): Move definition of some locals
119 closer to their use.
120 (read_namespace_type): Add comment.
121 (set_die_type): Fix typo in comment.
122
123 2010-08-23 Tom Tromey <tromey@redhat.com>
124
125 PR python/11145:
126 * python/py-value.c: Include expression.h.
127 (valpy_do_cast): New function.
128 (valpy_cast): Use it.
129 (valpy_dynamic_cast): New function.
130 (valpy_reinterpret_cast): Likewise.
131 (value_object_methods): Add dynamic_cast, reinterpret_cast.
132
133 2010-08-23 Tom Tromey <tromey@redhat.com>
134
135 PR python/11391:
136 * python/py-value.c (valpy_nonzero): Don't throw error for other
137 Value types.
138
139 2010-08-23 Tom Tromey <tromey@redhat.com>
140
141 PR python/10676:
142 * python/py-type.c: Include bcache.h, vec.h.
143 (struct type_equality_entry): New.
144 (compare_strings): New function.
145 (check_types_equal): Likewise.
146 (check_types_worklist): Likewise.
147 (typy_richcompare): Likewise.
148 (type_object_type): Set tp_richcompare field.
149
150 2010-08-23 Tom Tromey <tromey@redhat.com>
151
152 PR python/10953:
153 * python/py-type.c (typy_fields): Call check_typedef.
154 (typy_template_argument): Add TRY_CATCH.
155
156 2010-08-23 Tom Tromey <tromey@redhat.com>
157
158 PR python/11915:
159 * python/py-type.c (typy_array): New function.
160 (type_object_methods): Add "array".
161
162 2010-08-20 Pedro Alves <pedro@codesourcery.com>
163
164 * python/python.c: Include "serial.h".
165 (gdbpy_event_fds): Change type to `struct serial *' a array from
166 int array.
167 (gdbpy_run_events): Change parameters. Use serial_readchar in
168 place of read.
169 (gdbpy_post_event): Use serial_write in place of write.
170 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
171 serial_async in place of add_file_handler.
172
173 2010-08-20 Pedro Alves <pedro@codesourcery.com>
174
175 * serial.h (gdb_pipe, serial_pipe): Declare.
176 * serial.c (serial_interface_lookup): Take a const char pointer.
177 (serial_fdopen): Rename to ...
178 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
179 Call the OPS' fdopen function if there is one.
180 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
181 (serial_pipe): New.
182 (struct serial_ops) <fdopen>: New field.
183
184 * ser-mingw.c (free_pipe_state):
185 (free_pipe_state): Close output on non-pex pipes.
186 (pipe_windows_fdopen): New.
187 (gdb_pipe): New.
188 (_initialize_ser_windows): Register pipe_windows_fdopen.
189 * ser-go32.c (gdb_pipe): New.
190 * ser-pipe.c (pipe_close): Close file descriptor even if there's
191 no state pointer.
192 (pipe_ops): Delete.
193 (gdb_pipe): New.
194
195 2010-08-20 Keith Seitz <keiths@redhat.com>
196
197 PR symtab/11465:
198 * dwarf2read.c (struct delayed_method_info): New struct.
199 (struct dwarf2_cu): Add vector method_list.
200 (scan_partial_symbols): Count methods for union, class, structure,
201 and interface types.
202 (add_to_method_list): New function.
203 (free_delayed_list): New function.
204 (compute_delayed_physnames): New function.
205 (process_full_comp_unit): Make a cleanup for the CU's delayed
206 physname list, compute the delayed physnames, and free the
207 the list.
208 (dwarf2_add_member_fn): For C++ and Java, delay the computation
209 of the physname until after the CU is read.
210
211 * dwarf2read.c (read_structure_type): Check if the current
212 DIE's type was already completed after dwarf2_full_name
213 was called.
214
215 2010-08-19 Stan Shebs <stan@codesourcery.com>
216
217 * NEWS: Mention some additional changes.
218
219 2010-08-19 Tom Tromey <tromey@redhat.com>
220
221 * Makefile.in (install-python): Add DESTDIR.
222
223 2010-08-19 Doug Evans <dje@google.com>
224
225 PR exp/11926
226 * parser-defs.h (parse_float, parse_c_float): Declare.
227 * parse.c (parse_float, parse_c_float): New function.
228 * c-exp.y (parse_number): Call parse_c_float.
229 * objc-exp.y (parse_number): Ditto.
230 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
231 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
232
233 2010-08-19 Joel Brobecker <brobecker@adacore.com>
234
235 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
236 the arguments in the correct order.
237 * symtab.c (maybe_add_partial_symtab_filename): Declare
238 the arguments in the correct order.
239
240 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
241
242 * varobj.c (varobj_create): Replace variable old_fi with old_id,
243 initialize it by null_frame_id, wrap its usage by get_frame_id,
244 frame_id_p and frame_find_by_id.
245
246 2010-08-18 Tom Tromey <tromey@redhat.com>
247
248 PR python/11900:
249 * configure: Rebuild.
250 * configure.ac: Add install-python to CONFIG_INSTALL.
251 * Makefile.in (install-python): New.
252
253 2010-08-18 Doug Evans <dje@google.com>
254
255 * gdb_assert.h (gdb_assert_not_reached): New macro.
256 (gdb_assert_fail): Fix typo in comment.
257 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
258 gdb_assert (0).
259 * darwin-nat.c (darwin_check_new_threads): Ditto.
260 * dwarf2read.c (dwarf2_get_section_info): Ditto.
261 (munmap_section_buffer): Ditto.
262 * m32c-tdep.c (make_types): Ditto.
263 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
264 * macroexp.c (get_character_constant): Ditto.
265 (get_string_literal): Ditto.
266 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
267 (mep_pseudo_cr_index, mep_register_type): Ditto.
268 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
269 (mep_get_insn, mep_analyze_prologue): Ditto.
270 * objfiles.c (qsort_cmp): Ditto.
271 * prologue-value.c (pv_is_identical): Ditto.
272 * record.c (record_get_loc): Ditto.
273 * value.c (value_static_field): Ditto.
274 * xtensa-tdep.c (call0_track_op): Ditto.
275
276 2010-08-18 Tom Tromey <tromey@redhat.com>
277
278 PR symtab/11919:
279 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
280 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
281 name-copying lower. Document exception behavior.
282 * completer.c (expression_completer): Catch exceptions from
283 parse_field_expression.
284
285 2010-08-18 Pedro Alves <pedro@codesourcery.com>
286
287 PR corefile/8210
288
289 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
290 workaround on core files.
291 (try_thread_db_load_1): Don't try enabling thread event reporting
292 on core files.
293 (thread_db_load): Allow thread_db on core files.
294 (attach_thread): Don't check thread signals on core files, nor try
295 really attaching to the thread, nor enabling thread event event
296 reporting.
297 (thread_db_detach): Don't try disabing thread event reporting or
298 removing thread event breakpoints when debugging a core file.
299 (find_new_threads_callback): Don't try enabling thread event
300 reporting on core files.
301 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
302 debugging a core file.
303 (thread_db_find_new_threads): Don't update thread
304 cores (processors) when debugging a core (dump).
305
306 2010-08-18 Pedro Alves <pedro@codesourcery.com>
307
308 PR corefile/8210
309
310 * corelow.c (add_to_thread_list): Don't use
311 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
312 (get_core_register_section): Don't use
313 gdbarch_core_reg_section_encodes_pid.
314
315 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
316 * gdbarch.h, gdbarch.c: Regenerate.
317 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
318 gdbarch_core_reg_section_encodes_pid.
319 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
320 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
321 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
322
323 2010-08-18 Yao Qi <yao@codesourcery.com>
324
325 * MAINTAINERS : Add myself under Write After Approval.
326
327 2010-08-17 Tom Tromey <tromey@redhat.com>
328
329 * NEWS: Mention template parameter support.
330
331 2010-08-17 Pedro Alves <pedro@codesourcery.com>
332
333 PR breakpoints/11371
334
335 * breakpoint.c (decref_bp_location): Assert the reference count is
336 sane.
337
338 2010-08-17 Pedro Alves <pedro@codesourcery.com>
339
340 PR breakpoints/11371
341
342 * breakpoint.c (breakpoint_init_inferior): Decrement the
343 location's reference count instead of deleting right away.
344 (bpstat_free): Decrement the location's reference count. Make
345 static.
346 (bpstat_copy): Increment the location's reference count.
347 (bpstat_find_breakpoint): Adjust.
348 (bpstat_num): Adjust.
349 (print_it_typical): Adjust. Use the breakpoint pointer in the
350 bpstat instead of the location's owner.
351 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
352 Adjust to record the location's owner in the bpstat.
353 (watchpoint_check): Use the breakpoint pointer in the bpstat
354 instead of the location's owner.
355 (bpstat_check_breakpoint_conditions): Don't handle
356 bp_watchpoint_scope here. Use the breakpoint pointer in the
357 bpstat instead of the location's owner.
358 (bpstat_stop_status): Defer inferior function calls to after
359 building the bpstat list. Handle bp_watchpoint_scope here. Use
360 the breakpoint pointer in the bpstat instead of the location's
361 owner.
362 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
363 the location's owner.
364 (free_bp_location): Don't walk bpstats clearing locations.
365 (incref_bp_location): New.
366 (decref_bp_location): New.
367 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
368 instead of the location's owner.
369 (update_global_location_list): Clear the location's owner, and
370 decrement the location's reference count instead of deleting it
371 right away.
372 (breakpoint_retire_moribund): Decrement the location's reference
373 count instead of deleting it right away.
374 (bpstat_remove_bp_location): Delete.
375 (bpstat_remove_breakpoint): New.
376 (bpstat_remove_bp_location_callback): Delete.
377 (bpstat_remove_breakpoint_callback): New.
378 (delete_breakpoint): Iterate over all threads' stop_bpstat's
379 clearing references to the breakpoint that is being deleted.
380
381 * breakpoint.h (struct bp_location) <refc>: New field.
382 <owner>: Update comments.
383 (bpstat_free): Delete declaration.
384 (struct bpstats): Change the type of the breakpoint_at field to
385 struct breakpoint point, from struct bp_location pointer. Add new
386 field bp_location_at.
387
388 2010-08-16 Tom Tromey <tromey@redhat.com>
389
390 * NEWS: Fix typo.
391
392 2010-08-16 Tom Tromey <tromey@redhat.com>
393
394 * NEWS: Mention watch -location.
395
396 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
397
398 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
399 EXP_STRING_REPARSE to EXP_STRING.
400 (watch_command_1): Set also EXP_STRING_REPARSE.
401 (delete_breakpoint): Free also EXP_STRING_REPARSE.
402 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
403 Update comment for exp_string.
404
405 2010-08-16 Tom Tromey <tromey@redhat.com>
406
407 * value.c (release_value): Clear 'next' pointer.
408 * breakpoint.c (watch_command_1): Add 'just_location' argument.
409 (watch_command_wrapper): Update.
410 (watch_maybe_just_location): New function.
411 (watch_command): Update.
412 (rwatch_command_wrapper): Update.
413 (rwatch_command): Update.
414 (awatch_command_wrapper): Update.
415 (awatch_command): Update.
416 (check_for_argument): New function.
417 (_initialize_breakpoint): Update help text.
418
419 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
420
421 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
422 typedef'ed function types correctly.
423
424 2010-08-13 Tom Tromey <tromey@redhat.com>
425
426 * python/python-internal.h (gdbpy_get_hook_function): Don't
427 declare.
428
429 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
430
431 * cli-logging.c (logging_overwrite, logging_redirect): Make them
432 static.
433
434 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
435
436 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
437 the format strings to be compatible with Python 2.4.
438
439 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
440
441 Easier and more stubborn MI memory read commands.
442
443 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
444 and data-write-memory-bytes.
445 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
446 (mi_cmd_data_write_memory_bytes): New.
447 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
448 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
449 New.
450 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
451 * target.c (target_read_until_error): Remove.
452 (read_whatever_is_readable, free_memory_read_result_vector)
453 (read_memory_robust): New.
454 * target.h (target_read_until_error): Remove.
455 (struct memory_read_result, free_memory_read_result_vector)
456 (read_memory_robust): New.
457
458 2010-08-13 Hui Zhu <teawater@gmail.com>
459
460 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
461 (read_comp_unit): Initialize back_to.
462
463 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
464 Pedro Alves <pedro@codesourcery.com>
465
466 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
467 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
468 (struct partial_die_info) <has_template_arguments>: New field.
469 <num_attrs>: Change type to unsigned char.
470 <building_fullname>: New field.
471 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
472 allocate a CU if we don't have one already. Add a cleanup for the
473 CU.
474 (partial_die_full_name): Handle template arguments not in
475 DW_AT_name.
476 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
477 (load_full_comp_unit): Only allocate a CU if we don't have one
478 already.
479 (do_ui_file_peek_last): New.
480 (dwarf2_compute_name): Handle template parameters not in
481 DW_AT_name.
482 (read_comp_unit): Read and free abbrevs if not read yet.
483 (load_partial_dies): Handle template arguments not in DW_AT_name.
484 (find_partial_die): If we have a CU, but no a partial dies yet,
485 also read in the CU.
486 (dwarf2_const_value_attr): New, abstracted out from
487 dwarf2_const_value.
488 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
489 dwarf2_const_value_attr.
490 (determine_prefix): Detect and break loops created by RCVT's debug
491 info.
492 (maybe_queue_comp_unit): Bail out early if reading partial
493 symbols.
494 (follow_die_offset): Load full CU if we have no dies.
495 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
496 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
497
498 2010-08-11 Tom Tromey <tromey@redhat.com>
499 Phil Muldoon <pmuldoon@redhat.com>
500
501 * python/python.c (gdbpy_run_events): New function.
502 (gdbpy_post_event): Likewise.
503 (gdbpy_initialize_events): Likewise.
504 (_initialize_python): Call gdbpy_initialize_events.
505
506 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
507
508 * gdb/valarith.c (vector_binop): New function.
509 (scalar_binop): Likewise.
510 (value_binop): Call scalar_binop or vector_binop depending on the types.
511 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
512 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
513 to pointers.
514 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
515
516 2010-08-11 Brad Roberts <braddr@puremagic.com>
517
518 * d-lang.c (extract_identifiers): Handle multiple digits.
519
520 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
521
522 Code cleanup.
523 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
524 Rename to dummy_frame_unwind.
525 (dummy_frame_unwind): Remove.
526 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
527 * frame-unwind.c (frame_unwind_init): Use address of
528 dummy_frame_unwind and inline_frame_unwind.
529 * frame.c (create_sentinel_frame): Use address of
530 sentinel_frame_unwind.
531 * inline-frame.c (inline_frame_unwinder): Rename to
532 inline_frame_unwind.
533 (inline_frame_unwind): Remove.
534 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
535 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
536 sentinel_frame_unwind.
537 (sentinel_frame_unwind): Remove.
538 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
539 struct.
540
541 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
542
543 Code cleanup.
544 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
545 and returned value. New comment from frame-unwind.h.
546 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
547 Extend the comment.
548 * frame.c (get_frame_id, frame_unwind_register_value)
549 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
550 (get_frame_type, frame_unwind_arch): Do not use the return value of
551 frame_unwind_find_by_frame.
552
553 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
554 Thiago Jung Bauermann <bauerman@br.ibm.com>
555 Tom Tromey <tromey@redhat.com>
556
557 * python/python.c (gdbpy_solib_address): New function.
558 (gdbpy_decode_line): Likewise.
559
560 2010-08-10 Tom Tromey <tromey@redhat.com>
561
562 Revert gdb-add-index addition:
563 * Makefile.in (install-only): Don't install gdb-add-index.
564 * gdb-add-index.sh: Remove.
565
566 2010-08-09 Kevin Buettner <kevinb@redhat.com>
567
568 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
569 `target_has_execution' check with `to_has_memory' check.
570 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
571 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
572 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
573
574 2010-08-09 Kevin Buettner <kevinb@redhat.com>
575
576 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
577 (resume_siggnal, resume_step): Move these static globals...
578 (struct sim_inferior_data): ...into this new struct.
579 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
580 New static globals.
581 (gdb_callback, callbacks_initialized): Move these globals to
582 a point earlier in the file.
583 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
584 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
585 (gdbsim_close_inferior, gdbsim_resume_inferior)
586 (gdbsim_stop_inferior): New functions.
587 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
588 New constants.
589 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
590 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
591 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
592 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
593 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
594 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
595 new local variable `sim_data' in each of these functions. Use
596 `sim_data' to reference former globals `program_loaded',
597 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
598 `resume_step'.
599 (gdbsim_open): Remove local variable `argv'. Put results of call
600 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
601 make a cleanup for it. Free it though when a sim instance cannot
602 be obtained.
603 (gdbsim_close): Free sim_argv and null it out as appropriate.
604 Close sim instances in all inferiors.
605 (gdbsim_cntrl_c): Stop all inferiors.
606 (gdbsim_wait):
607 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
608
609 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
610
611 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
612 function after symbol construction is complete.
613 Do the same for template symbol addition to template_symbols list.
614
615 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
616
617 * symtab.c (symbol_get_demangled_name): Remove assertion and
618 return NULL when language_specific.cplus_specific is not initialized.
619 * stabsread.c (define_symbol): Set the name before calling
620 cp_scan_for_anonymous_namespaces.
621
622 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
623
624 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
625 SYMBOL_SET_LANGUAGE.
626 (symbol_init_language_specific): Renamed to symbol_set_language.
627 * symtab.c (symbol_init_language_specific): Removed redundant check
628 for language_cplus.
629 Renamed to symbol_set_language.
630 * stabsread.c (define_symbol): Updated.
631 (read_enum_type): Updated
632 * psymtab.c (add_psymbol_to_bcache): Updated.
633 * minsyms.c (install_minimal_symbols): Updated.
634 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
635 SYMBOL_LANGUAGE to set the language.
636 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
637 * mdebugread.c (new_symbol): Ditto.
638 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
639 * dwarf2read.c (new_symbol_full): Ditto.
640 * jv-lang.c (add_class_symbol): Ditto.
641
642 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
643
644 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
645 (make_cleanup_restore_page_info)
646 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
647 * gdbcmd.h (execute_command_to_string): New declaration.
648 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
649 (make_cleanup_restore_ui_file): Move to utils.c
650 (execute_gdb_command) <to_string>: Move ...
651 * top.c (execute_command_to_string): ... here. Call
652 set_batch_flag_and_make_cleanup_restore_page_info.
653 * utils.c (make_cleanup_restore_integer): New source file blank line.
654 (make_cleanup_restore_uinteger): New.
655 (struct restore_ui_file_closure, do_restore_ui_file)
656 (make_cleanup_restore_ui_file): Move here from python/python.c.
657 (init_page_info) <batch_flag>
658 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
659 (set_batch_flag_and_make_cleanup_restore_page_info): New.
660
661 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
662
663 * thread.c (add_thread_silent): Use null_ptid instead of
664 minus_one_ptid while getting rid of stale inferior_ptid.
665
666 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
667
668 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
669 Throughout, call read_encoded_value with ptr_size rather than addr_size.
670 (decode_frame_entry_1): Remove redundant setting of
671 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
672 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
673 on examined frame section. Add comment to explain why.
674 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
675 comment to explain usage.
676 * gdbarch.c: Regenerate.
677 * gdbarch.h: Regenerate.
678
679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
680
681 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
682
683 Code cleanup.
684 * varobj.c (varobj_create): Move variables fi, old_fi and block to
685 a more inner block.
686
687 2010-08-05 Pedro Alves <pedro@codesourcery.com>
688
689 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
690 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
691 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
692 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
693 linux-tdep.o to gdb_target_obs.
694
695 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
696
697 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
698 argument.
699
700 2010-08-05 Hui Zhu <teawater@gmail.com>
701
702 * mips-linux-tdep.c(regset.h): New include.
703 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
704 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
705 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
706 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
707 mips_linux_regset_from_core_section): New functions.
708 (fetch_core_registers, regset_core_fns): Deleted.
709 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
710 Deleted regset_core_fns.
711 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
712 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
713 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
714 and fpregset64.
715
716 2010-08-04 Pedro Alves <pedro@codesourcery.com>
717
718 * s390-tdep.c: Include linux-tdep.h.
719 (s390_gdbarch_init): Call linux_init_abi.
720
721 2010-08-04 Pedro Alves <pedro@codesourcery.com>
722
723 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
724 instead of printing "Thread" here.
725 * linux-tdep.c: Include inferior.h.
726 (linux_core_pid_to_str): New.
727 (linux_init_abi): New.
728 * linux-tdep.h (linux_init_abi): Declare.
729 * alpha-linux-tdep.c: Include linux-tdep.h.
730 (alpha_linux_init_abi): Call linux_init_abi.
731 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
732 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
733 * frv-linux-tdep.c: Include linux-tdep.h
734 (frv_linux_init_abi): Call linux_init_abi.
735 * hppa-linux-tdep.c: Include linux-tdep.h
736 (hppa_linux_init_abi): Call linux_init_abi.
737 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
738 * ia64-linux-tdep.c: Include linux-tdep.h.
739 (ia64_linux_init_abi): Call linux_init_abi.
740 * m32r-linux-tdep.c: Include linux-tdep.h.
741 (m32r_linux_init_abi): Call linux_init_abi.
742 * m68klinux-tdep.c: Include linux-tdep.h.
743 (m68k_linux_init_abi): Call linux_init_abi.
744 * microblaze-linux-tdep.c: Include linux-tdep.h.
745 (microblaze_linux_init_abi): Call linux_init_abi.
746 * mips-linux-tdep.c: Include linux-tdep.h.
747 (mips_linux_init_abi): Call linux_init_abi.
748 * mn10300-linux-tdep.c: Include linux-tdep.h.
749 (am33_linux_init_osabi): Call linux_init_abi. Rename the
750 'gdbinfo' parameter to 'info'.
751 * ppc-linux-tdep.c: Include linux-tdep.h.
752 (ppc_linux_init_abi): Call linux_init_abi.
753 * sh-linux-tdep.c: Include linux-tdep.h.
754 (sh_linux_init_abi): Call linux_init_abi.
755 * sparc-linux-tdep.c: Include linux-tdep.h.
756 (sparc32_linux_init_abi): Call linux_init_abi.
757 * sparc64-linux-tdep.c: Include linux-tdep.h.
758 (sparc64_linux_init_abi): Call linux_init_abi.
759 * xtensa-linux-tdep.c: Include linux-tdep.h.
760 (xtensa_linux_init_abi): Call linux_init_abi.
761 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
762 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
763 callback.
764
765 2010-08-03 Doug Evans <dje@google.com>
766
767 * breakpoint.c (bpdisp_text): Constify bpdisps.
768 * solib-svr4.c (solib_break_names): Constify.
769 (bkpt_names, main_name_list): Constify.
770 (match_main): Constify soname arg.
771 (bfd_lookup_symbol): Remove unnecessary forward decl.
772 Constify symname arg.
773 (enable_break): Constify bkpt_namep.
774 * symtab.c (search_symbols): Constify types, types2, types3, types4.
775 (symtab_symbol_info): Constify classnames.
776
777 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
778
779 * NEWS: Document Python value inferior function calls.
780
781 2010-08-02 Doug Evans <dje@google.com>
782
783 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
784
785 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
786
787 * linux-thread-db.c (libthread_db_debug): New variable.
788 (thread_db_find_new_threads_silently): Control verbosity with it.
789 (try_thread_db_load_1, try_thread_db_load): Likewise.
790 (find_new_threads_once): Likewise.
791 (_initialize_thread_db): Set/show it.
792
793 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
794
795 * common/signals.c (signals): Move the content to signals.def.
796 Include it. Remove the INDENT comments.
797
798 2010-07-30 Tom Tromey <tromey@redhat.com>
799
800 * Makefile.in (install-only): Install gdb-add-index.
801 * gdb-add-index.sh: New file.
802
803 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
804
805 * MAINTAINERS: Add myself for write after approval privileges.
806
807 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
808
809 * symfile.c (addr_section_name): New function.
810 (addrs_section_compar): Use it.
811 (addr_info_make_relative): Use it. Move variable sect_name into a more
812 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
813
814 2010-07-30 Tom Tromey <tromey@redhat.com>
815
816 * configure: Rebuild.
817 * configure.ac: Add missing case for Python 2.7.
818
819 2010-07-29 DJ Delorie <dj@redhat.com>
820
821 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
822 conditions.
823
824 2010-07-29 Pedro Alves <pedro@codesourcery.com>
825
826 * PROBLEMS: Remove mention of all problems.
827
828 2010-07-28 Pedro Alves <pedro@codesourcery.com>
829
830 PR build/11848
831 * configure.ac: Check for wresize.
832 * configure, config.in: Regenerate.
833 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
834 with HAVE_WRESIZE.
835
836 2010-07-28 Tom Tromey <tromey@redhat.com>
837
838 PR python/11060:
839 * python/py-type.c (typy_legacy_template_argument): New function,
840 extracted from typy_template_argument.
841 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
842 value when needed.
843
844 2010-07-28 Oleg Nesterov <oleg@redhat.com>
845
846 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
847
848 2010-07-27 Tom Tromey <tromey@redhat.com>
849
850 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
851
852 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
853
854 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
855 handling DW_AT_object_pointer, and workaround GCC PR 43053.
856
857 2010-07-28 Tom Tromey <tromey@redhat.com>
858
859 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
860
861 2010-07-28 Joel Brobecker <brobecker@adacore.com>
862
863 * remote.c (remote_download_tracepoint): Add missing gettext markup.
864 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
865
866 2010-07-28 Joel Brobecker <brobecker@adacore.com>
867
868 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
869 down, just before the block that parse the breakpoint addr_string.
870
871 2010-07-28 Tom Tromey <tromey@redhat.com>
872
873 PR c++/9946:
874 * symfile.c (reread_symbols): Clear template_symbols.
875 * symtab.h (struct symbol) <is_cplus_template_function>: New
876 field.
877 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
878 (struct template_symbol): New.
879 * symtab.c (lookup_symbol_aux_local): Use
880 cp_lookup_symbol_imports_or_template.
881 * objfiles.h (struct objfile) <template_symbols>: New field.
882 * objfiles.c (relocate_one_symbol): New function.
883 (objfile_relocate1): Use it. Relocate isolated symbols.
884 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
885 template_arguments>: New fields.
886 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
887 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
888 (TYPE_TEMPLATE_ARGUMENT): Likewise.
889 (lookup_typename): Update.
890 * gdbtypes.c (lookup_typename): Constify "block" argument.
891 * dwarf2read.c: Include vec.h.
892 (symbolp): New typedef.
893 (read_func_scope): Read template arguments. Allocate a
894 template_symbol when needed.
895 (read_structure_type): Read template arguments.
896 (new_symbol_full): New function, from new_symbol. Handle
897 DW_TAG_template_type_param and DW_TAG_template_value_param.
898 (new_symbol): Rewrite as wrapper.
899 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
900 * cp-namespace.c: Include language.h.
901 (search_symbol_list): New function.
902 (cp_lookup_symbol_imports_or_template): Likewise.
903
904 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
905
906 * tui/tui-win.c (make_visible_with_new_height): Resize and move
907 the command window to the new size and position.
908
909 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
910
911 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
912 coordinates.
913
914 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
915
916 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
917 after a detecting a resize.
918 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
919 call.
920
921 2010-07-28 Pedro Alves <pedro@codesourcery.com>
922
923 * configure.ac: Check for resize_term.
924 * configure, config.in: Regenerate.
925
926 2010-07-27 Joel Brobecker <brobecker@adacore.com>
927
928 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
929
930 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
931
932 * dwarf2read.c (read_string): Rename to ...
933 (read_direct_string): ... this.
934 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
935 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
936
937 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
938
939 * linux-nat.c (linux_nat_lp_status_is_event): New function.
940 (count_events_callback, select_event_lwp_callback)
941 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
942
943 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
944
945 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
946 (_initialize_ia64_linux_nat): Install it.
947 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
948 (linux_nat_set_status_is_event): New.
949 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
950 cancel_breakpoints_callback, linux_nat_filter_event)
951 (linux_nat_wait_1): Use linux_nat_status_is_event.
952 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
953
954 2010-07-27 Tom Tromey <tromey@redhat.com>
955
956 * NEWS: Mention labels, .gdb_index.
957
958 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
959
960 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
961 "start,+length" form of arguments.
962 * NEWS: Add "Changed commands" (disassemble) section for "Changes
963 since GDB 7.1"; and merge two separated paragraphs of disassemble
964 description in "Changes in GDB 7.0".
965
966 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
967
968 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
969 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
970 (fputs_maybe_filtered): Do not do filtering also on
971 ! INPUT_FROM_TERMINAL_P.
972
973 2010-07-27 Joel Brobecker <brobecker@adacore.com>
974
975 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
976 in warning message.
977
978 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
979
980 * python/py-value.c (valpy_call): New Function.
981
982 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
983
984 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
985 types_list_elements variables.
986
987 2010-07-26 Tom Tromey <tromey@redhat.com>
988
989 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
990 TLS with DW_OP_const4u or DW_OP_const8u.
991
992 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
993
994 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
995 VSX registers contents.
996
997 2010-07-26 Jerome Guitton <guitton@adacore.com>
998
999 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1000 its adress is null. Add comment to explain why.
1001 (new_symbol): Ditto.
1002
1003 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1004
1005 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1006 the host signal first.
1007
1008 2010-07-23 Tom Tromey <tromey@redhat.com>
1009
1010 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1011 type_comp_units>: New fields.
1012 (dw2_get_cu): New function.
1013 (create_cus_from_index): Remove unused argument.
1014 (create_signatured_type_hash_from_index): New function.
1015 (create_addrmap_from_index): Update.
1016 (dwarf2_read_index): Handle version 2.
1017 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1018 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1019 (dw2_print_stats, dw2_expand_all_symtabs)
1020 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1021 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1022 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1023 (allocate_signatured_type_hash_table): New function.
1024 (add_signatured_type_cu_to_list): Likewise.
1025 (create_debug_types_hash_table): Use them. Set type_comp_units.
1026 (read_signatured_type): Ensure section data is available.
1027 (add_address_entry): Don't record empty ranges.
1028 (struct signatured_type_index_data): New.
1029 (write_one_signatured_type): New function.
1030 (write_psymtabs_to_index): Write type CUs.
1031 (save_gdb_index_command): Update comment.
1032 (process_type_comp_unit): Move inititalization of
1033 from_debug_types...
1034 (create_debug_types_hash_table): ... here.
1035
1036 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1037
1038 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
1039 cleanup and generating of gdb script to it.
1040 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
1041 and terminal size. Convert $tmpfile to a series of -ex-es.
1042
1043 2010-07-23 Keith Seitz <keiths@redhat.com>
1044
1045 * symtab.c (basic_lookup_transparent_type): Call pre-expand
1046 hook for STATIC_BLOCK types, too.
1047
1048 2010-07-23 Keith Seitz <keiths@redhat.com>
1049
1050 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
1051 and vector definition.
1052
1053 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1054
1055 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
1056
1057 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1058
1059 * dwarf2read.c: Include completer.h.
1060 (save_gdb_index_command): Use matching usage command name.
1061 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
1062 Set filename_completer for it.
1063
1064 2010-07-22 Tom Tromey <tromey@redhat.com>
1065
1066 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
1067 type signature's per-CU data.
1068
1069 2010-07-22 Pedro Alves <pedro@codesourcery.com>
1070
1071 * NEWS: Mention target reported shared libraries support by
1072 default.
1073
1074 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1075
1076 PR symtab/11827
1077
1078 Revert:
1079 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1080 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1081 and DW_TAG_volatile_type.
1082 (new_symbol): Likewise.
1083
1084 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
1085
1086 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
1087 function symbols before overload resolution.
1088
1089 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1090
1091 * breakpoint.c (bptype_string): New, abstracted out from
1092 print_one_breakpoint_location.
1093 (print_one_breakpoint_location): Adjust.
1094 (breakpoint_1): Adjust the type column width dynamically.
1095
1096 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1097
1098 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1099 a gdb_assert call, new comment.
1100
1101 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1102
1103 * linux-nat.c (linux_handle_extended_wait): Handle case when
1104 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
1105
1106 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1107
1108 Code cleanup.
1109 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
1110 linux_nat_wait_1. Use always LP->STATUS afterwards.
1111
1112 2010-07-20 Hui Zhu <teawater@gmail.com>
1113
1114 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
1115 (inf_ptrace_attach): Ditto.
1116
1117 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1118
1119 Make core files the process_stratum.
1120 * corefile.c (core_target): New variable.
1121 (core_file_command): Remove variable t, use core_target.
1122 * corelow.c (core_ops): Make it static.
1123 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
1124 * defs.h (make_cleanup_unpush_target): New prototype.
1125 * gdbarch.h: Regenerate.
1126 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
1127 * gdbcore.h (core_target): New declaration.
1128 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
1129 variables ops_already_pushed and back_to. Use push_target,
1130 make_cleanup_unpush_target and discard_cleanups calls.
1131 * record.c (record_open): Replace core_stratum by a core_bfd check.
1132 * target.c (target_is_pushed): New function.
1133 (find_core_target): Remove.
1134 * target.h (enum strata) <core_stratum>: Remove.
1135 (target_is_pushed): New declaration.
1136 (find_core_target): Remove declaration.
1137 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
1138 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
1139
1140 2010-07-19 Hui Zhu <teawater@gmail.com>
1141
1142 * breakpoint.c (single_step_breakpoints_inserted): New
1143 function.
1144 * breakpoint.h (single_step_breakpoints_inserted): Extern.
1145 * infrun.c (maybe_software_singlestep): Add check code.
1146 * record.c (record_resume): Add code for software single step.
1147 (record_wait): Ditto.
1148
1149 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1150
1151 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
1152 a more inner block. Remove its unused declaration initializer.
1153
1154 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
1155
1156 * NEWS: Mention support for the new ptrace interface and hardware
1157 accelerated watchpoint conditions on powerpc-linux.
1158
1159 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
1160
1161 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
1162 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
1163 and host_address_to_string() and %s for pointers.
1164 (debug_to_remove_breakpoint): Likewise.
1165 (debug_to_region_ok_for_hw_watchpoint): Likewise.
1166 (debug_to_can_accel_watchpoint_condition): Likewise.
1167 (debug_to_stopped_data_address): Likewise.
1168 (debug_to_watchpoint_addr_within_range): Likewise.
1169 (debug_to_insert_hw_breakpoint): Likewise.
1170 (debug_to_remove_hw_breakpoint): Likewise.
1171 (debug_to_insert_watchpoint): Likewise.
1172 (debug_to_remove_watchpoint): Likewise.
1173
1174 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1175
1176 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
1177 argument.
1178 (cplus_specific): New struct.
1179 * symtab.c (symbol_set_demangled_name): Updated.
1180 Use cplus_specific for cplus symbols.
1181 (symbol_get_demangled_name): Retrive the name from the cplus_specific
1182 struct for cplus symbols.
1183 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
1184 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
1185 * symtab.c (symbol_init_cplus_specific): New function.
1186
1187 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1188
1189 * symtab.h (symbol_set_demangled_name): New function.
1190 (symbol_get_demangled_name): New function.
1191 * symtab.c (symbol_set_demangled_name): New function.
1192 (symbol_get_demangled_name): New function.
1193 (symbol_init_language_specific): Use demangled_name setter and getter.
1194 (symbol_set_names): Ditto.
1195 (symbol_natural_name): Ditto.
1196 (symbol_demangled_name): Ditto.
1197 * dwarf2read.c (new_symbol): Ditto.
1198
1199 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1200
1201 * symtab.h: Renamed cplus_specific to mangled_lang.
1202 * symtab.c (symbol_init_language_specific): Updated.
1203 (symbol_set_names): Updated.
1204 (symbol_natural_name): Updated.
1205 (symbol_demangled_name): Updated.
1206 * ada-lang.c (ada_decode_symbol): Updated.
1207 * dwarf2read.c (new_symbol): Updated.
1208
1209 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1210
1211 * valops.c (value_assign): Do not call to value_coerce_to_target.
1212 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
1213
1214 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1215
1216 * MAINTAINERS: Add myself for write after approval privileges.
1217
1218 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
1219
1220 * c-valprint.c (c_val_print): Add embedded_offset to address in
1221 call to val_print_array_elements.
1222
1223 2010-07-13 Tom Tromey <tromey@redhat.com>
1224
1225 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
1226
1227 2010-07-13 Tom Tromey <tromey@redhat.com>
1228
1229 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
1230 objfile.
1231
1232 2010-07-13 Tom Tromey <tromey@redhat.com>
1233
1234 * symfile.c (set_initial_language): Update.
1235 (deduce_language_from_filename): Argument type now const.
1236 * symtab.h (find_main_filename): Update.
1237 (deduce_language_from_filename): Update.
1238 * symtab.c (find_main_filename): Make result const.
1239 * dwarf2read.c (dw2_find_symbol_file): Change return type.
1240 * psymtab.c (find_symbol_file_from_partial): Change return type.
1241 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1242 Make result const.
1243
1244 2010-07-13 Tom Tromey <tromey@redhat.com>
1245
1246 * breakpoint.c (save_cmdlist): No longer static.
1247 * gdbcmd.h (save_cmdlist): Declare.
1248 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
1249 OBJF_READNOW on objfile if readnow_symbol_files.
1250 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
1251 (elf_sym_fns_gdb_index): New global.
1252 * dwarf2read.c: Include exceptions.h.
1253 (offset_type): New.
1254 (struct mapped_index): New.
1255 (dwarf2_per_cu_data_ptr): New typedef.
1256 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
1257 New fields.
1258 (GDB_INDEX_SECTION): New define.
1259 (struct dwarf2_per_cu_quick_data): New.
1260 (struct dwarf2_per_cu_data) <objfile>: New field.
1261 <psymtab>: Removed.
1262 <v>: New field.
1263 (byte_swap): New function.
1264 (MAYBE_SWAP): New macro.
1265 (INDEX_SUFFIX): New macro.
1266 (dw2_do_instantiate_symtab): New function.
1267 (dw2_instantiate_symtab): Likewise.
1268 (create_cus_from_index): Likewise.
1269 (create_addrmap_from_index): Likewise.
1270 (mapped_index_string_hash): Likewise.
1271 (find_slot_in_mapped_hash): Likewise.
1272 (dwarf2_read_index): Likewise.
1273 (dw2_setup): Likewise.
1274 (dw2_require_line_header): Likewise.
1275 (dw2_require_full_path): Likewise.
1276 (dw2_find_last_source_symtab): Likewise.
1277 (dw2_forget_cached_source_info): Likewise.
1278 (dw2_lookup_symtab): Likewise.
1279 (dw2_lookup_symbol): Likewise.
1280 (dw2_do_expand_symtabs_matching): Likewise.
1281 (dw2_pre_expand_symtabs_matching): Likewise.
1282 (dw2_print_stats): Likewise.
1283 (dw2_dump): Likewise.
1284 (dw2_relocate): Likewise.
1285 (dw2_expand_symtabs_for_function): Likewise.
1286 (dw2_expand_all_symtabs): Likewise.
1287 (dw2_expand_symtabs_with_filename): Likewise.
1288 (dw2_find_symbol_file): Likewise.
1289 (dw2_map_ada_symtabs): Likewise.
1290 (dw2_expand_symtabs_matching): Likewise.
1291 (dw2_find_pc_sect_symtab): Likewise.
1292 (dw2_map_symbol_names): Likewise.
1293 (dw2_map_symbol_filenames): Likewise.
1294 (dw2_has_symbols): Likewise.
1295 (dwarf2_gdb_index_functions): New global.
1296 (dwarf2_initialize_objfile): New function.
1297 (process_psymtab_comp_unit): Update.
1298 (add_partial_subprogram): Likewise.
1299 (dwarf2_psymtab_to_symtab): Likewise.
1300 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
1301 (process_full_comp_unit): Update.
1302 (find_file_and_directory): New function.
1303 (read_file_scope): Use find_file_and_directory.
1304 (dwarf2_per_cu_objfile): Update.
1305 (dwarf2_per_cu_addr_size): Update.
1306 (dwarf2_per_cu_offset_size): Update.
1307 (dwarf2_free_objfile): Free the index, if needed.
1308 (dwarf2_per_objfile_free): Unmap the index, if needed.
1309 (struct strtab_entry): New.
1310 (hash_strtab_entry): New function.
1311 (eq_strtab_entry): Likewise.
1312 (create_strtab): Likewise.
1313 (add_string): Likewise.
1314 (struct symtab_index_entry): New.
1315 (struct mapped_symtab): New.
1316 (hash_symtab_entry): New function.
1317 (eq_symtab_entry): Likewise.
1318 (delete_symtab_entry): Likewise.
1319 (create_index_table): Likewise.
1320 (create_mapped_symtab): Likewise.
1321 (cleanup_mapped_symtab): Likewise.
1322 (find_slot): Likewise.
1323 (hash_expand): Likewise.
1324 (add_index_entry): Likewise.
1325 (add_indices_to_cpool): Likewise.
1326 (write_hash_table): Likewise.
1327 (add_address_entry): Likewise.
1328 (write_psymbols): Likewise.
1329 (write_obstack): Likewise.
1330 (unlink_if_set): Likewise.
1331 (write_psymtabs_to_index): Likewise.
1332 (save_gdb_index_command): Likewise.
1333 (_initialize_dwarf2_read): Install "save gdb-index"
1334 command.
1335 (create_all_comp_units): Initialize 'objfile' field of CU.
1336 (dwarf2_locate_sections): Check for .gdb_index.
1337 * psymtab.h (dwarf2_gdb_index_functions): Declare.
1338 * symfile.h (dwarf2_initialize_objfile): Declare.
1339
1340 2010-07-13 Tom Tromey <tromey@redhat.com>
1341
1342 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
1343 (basic_lookup_transparent_type): Likewise.
1344 * symfile.h (struct quick_symbol_functions)
1345 <pre_expand_symtabs_matching>: New field.
1346 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
1347 (psym_functions): Update.
1348
1349 2010-07-13 Tom Tromey <tromey@redhat.com>
1350
1351 PR breakpoints/8357:
1352 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
1353 * linespec.c (decode_line_1): Update comment. Call decode_label.
1354 (decode_label): New function.
1355 (symbol_found): Handle LOC_LABEL.
1356 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
1357 domain. Call add_symbol_to_list.
1358
1359 2010-07-13 Tom Tromey <tromey@redhat.com>
1360
1361 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
1362 * dwarf2loc.c (find_location_expression): Use
1363 dwarf2_per_cu_text_offset.
1364 (dwarf2_evaluate_loc_desc): Likewise.
1365 (dwarf2_loc_desc_needs_frame): Likewise.
1366 (compile_dwarf_to_ax): Likewise.
1367 (loclist_describe_location): Likewise.
1368 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
1369 (dwarf2_per_cu_objfile): Update comment.
1370
1371 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1372
1373 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
1374 * p-lang.c (pascal_printstr): Likewise.
1375
1376 2010-07-09 Tom Tromey <tromey@redhat.com>
1377
1378 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
1379 'hint' if it is NULL.
1380
1381 2010-07-09 Hui Zhu <teawater@gmail.com>
1382
1383 * source.c (print_source_lines_base): Add check for noprint.
1384
1385 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1386
1387 * python/python-config.py: Resync with Python 2.7 version of this
1388 script.
1389
1390 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1391
1392 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
1393
1394 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1395
1396 * NEWS: Create a new section for the next release branch.
1397 Rename the section of the current branch, now that it has
1398 been cut.
1399
1400 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1401
1402 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
1403 * version.in: Bump version to 7.2.50.20100707-cvs.
1404
1405 2010-07-07 Tom Tromey <tromey@redhat.com>
1406
1407 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
1408 LOC_COMPUTED symbol.
1409 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
1410 (dwarf2_loc_desc_needs_frame): Likewise.
1411 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
1412 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
1413 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
1414 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
1415 'offset' argument.
1416 (struct dwarf2_frame_cache) <text_offset>: New field.
1417 (dwarf2_frame_cache): Set new field.
1418 (dwarf2_frame_prev_register): Update.
1419 (dwarf2_frame_sniffer): Update.
1420 (dwarf2_frame_base_sniffer): Update.
1421 (dwarf2_frame_find_fde): Add 'out_offset' argument.
1422
1423 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1424 Thiago Jung Bauermann <bauerman@br.ibm.com>
1425
1426 Support for hw accelerated condition watchpoints in booke powerpc.
1427
1428 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
1429 and move to eval.c. Change callers.
1430 (insert_bp_location): Pass watchpoint condition in
1431 target_insert_watchpoint.
1432 (remove_breakpoint_1) Pass watchpoint condition in
1433 target_remove_watchpoint.
1434 (watchpoint_locations_match): Call
1435 target_can_accel_watchpoint_condition.
1436 * eval.c: Include wrapper.h.
1437 (fetch_subexp_value): Moved from breakpoint.c.
1438 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
1439 Formatting fix.
1440 (can_use_watchpoint_cond_accel): New function.
1441 (calculate_dvc): Likewise.
1442 (num_memory_accesses): Likewise.
1443 (check_condition): Likewise.
1444 (ppc_linux_can_accel_watchpoint_condition): Likewise
1445 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
1446 check_condition and calculate_dvc.
1447 (ppc_linux_remove_watchpoint): Likewise.
1448 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
1449 ppc_linux_can_accel_watchpoint_condition
1450 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
1451 condition.
1452 (debug_to_remove_watchpoint): Likewise.
1453 (debug_to_can_accel_watchpoint_condition): New function.
1454 (update_current_target): Set to_can_accel_watchpoint_condition.
1455 (setup_target_debug): Set to_can_accel_watchpoint_condition.
1456 * target.h: Add opaque declaration for struct expression.
1457 (struct target_ops) <to_insert_watchpoint>,
1458 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
1459 <to_can_accel_watchpoint_condition>: New member.
1460 condition. Update all callers and implementations.
1461 (target_can_accel_watchpoint_condition): New macro.
1462 * value.c (free_value_chain): New function.
1463 * value.h (fetch_subexp_value): New prototype.
1464 (free_value_chain): Likewise.
1465
1466 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
1467
1468 * linux-nat.c (linux_nat_do_thread_registers): Use section size
1469 from gdbarch_core_regset_sections also for .reg if present.
1470
1471 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
1472 section size for .reg.
1473 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1474 (ppc_linux_vmx_regset_sections): Likewise.
1475 (ppc_linux_fp_regset_sections): Likewise.
1476 (ppc64_linux_vsx_regset_sections): New variable.
1477 (ppc64_linux_vmx_regset_sections): Likewise.
1478 (ppc64_linux_fp_regset_sections): Likewise.
1479 (ppc_linux_init_abi): Install core_regset_section lists appropriate
1480 for current word size.
1481
1482 2010-07-06 Joel Brobecker <brobecker@adacore.com>
1483
1484 * server.c (myresume): Make static.
1485
1486 2010-07-06 Tom Tromey <tromey@redhat.com>
1487
1488 * configure, config.in: Rebuild.
1489 * configure.ac (HAVE_LIBPYTHON2_7): New define.
1490 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
1491
1492 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1493
1494 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
1495 "clear".
1496
1497 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
1498
1499 * gdbtypes.h (floatformats_ieee_half): Add declaration.
1500 * gdbtypes.c (floatformats_ieee_half): New variable.
1501 * doublest.c (floatformat_from_length): Set format to
1502 gdbarch_half_format if length matches.
1503 * gdbarch.sh (half_bit): New architecture method.
1504 (half_format): Likewise.
1505 * gdbarch.h: Regenerate.
1506 * gdbarch.c: Likewise.
1507
1508 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1509 Joel Brobecker <brobecker@adacore.com>
1510
1511 Fix re-run of PIE executable, PR shlibs/11776.
1512 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
1513 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
1514
1515 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1516 Joel Brobecker <brobecker@adacore.com>
1517
1518 * auxv.c (memory_xfer_auxv): Update attach comment.
1519 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
1520 svr4_relocate_main_executable.
1521 (svr4_solib_create_inferior_hook): Make the call to
1522 svr4_relocate_main_executable unconditional.
1523
1524 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1525 Joel Brobecker <brobecker@adacore.com>
1526
1527 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
1528
1529 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1530 Joel Brobecker <brobecker@adacore.com>
1531
1532 Fix attaching to PIEs prelinked on the disk after the process was
1533 started.
1534 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
1535 Verify it against bfd_get_arch_size. Try to match arbitrary
1536 displacement for the phdrs comparison.
1537
1538 2010-07-02 Tom Tromey <tromey@redhat.com>
1539
1540 PR exp/11780:
1541 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
1542 value as optimized-out.
1543
1544 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1545 Thiago Jung Bauermann <bauerman@br.ibm.com>
1546
1547 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
1548 represent?" question in comment. Change comment to a proper sentence.
1549
1550 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
1551
1552 * c-valprint.c (c_val_print): Fix printing of character vectors.
1553
1554 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1555
1556 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
1557 create_breakpoint prototype.
1558
1559 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1560
1561 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
1562 usefulness suggestion of multiple breakpoints at same location.
1563
1564 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1565
1566 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
1567
1568 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1569
1570 * dwarf2loc.c (locexpr_tracepoint_var_ref)
1571 (loclist_tracepoint_var_ref): Handle optimized out values.
1572
1573 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1574
1575 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
1576 unnecessary space in string.
1577 * filesystem.c (_initialize_filesystem): Ditto.
1578 * frame.c (_initialize_frame): Ditto.
1579 * infcmd.c (step_once): Ditto.
1580 * infrun.c (_initialize_infrun): Ditto.
1581 * linux-nat.c (linux_child_follow_fork): Ditto.
1582 * maint.c (maintenance_deprecate): Ditto.
1583 * memattr.c (_initialize_mem): Ditto.
1584 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1585 * monitor.c (monitor_open): Ditto.
1586 * procfs.c (procfs_xfer_memory): Ditto.
1587 * reverse.c (bookmarks_info): Ditto.
1588 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
1589 * stack.c (_initialize_stack): Ditto.
1590 * tracepoint.c (_initialize_tracepoint): Ditto.
1591 * xtensa-tdep.c (xtensa_supply_gregset,
1592 xtensa_regset_from_core_section): Ditto.
1593
1594 2010-07-01 Tom Tromey <tromey@redhat.com>
1595
1596 * value.h (struct lval_funcs) <check_any_valid>: Rename from
1597 check_all_valid.
1598 * value.c (value_entirely_optimized_out): Invert result. Update
1599 for new function name.
1600
1601 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1602
1603 Static tracepoints support.
1604
1605 * NEWS: Mention new support for static tracepoints.
1606 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
1607 qXfer:statictrace:read.
1608 (New features in the GDB remote stub, GDBserver): Mention static
1609 tracepoints support using an UST based backend.
1610 (New commands): Mention "info static-tracepoint-markers" and
1611 "strace".
1612 * breakpoint.c (is_marker_spec): New.
1613 (is_tracepoint): Handle static tracepoints.
1614 (validate_commands_for_breakpoint): Static tracepoints can't do
1615 while-stepping.
1616 (static_tracepoints_here): New.
1617 (bpstat_what): Handle static tracepoints.
1618 (print_one_breakpoint_location, allocate_bp_location, mention):
1619 Ditto.
1620 (create_breakpoint_sal): Ditto.
1621 (decode_static_tracepoint_spec): New.
1622 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
1623 `type_wanted'. Adjust. Handle static tracepoint marker
1624 locations.
1625 (break_command_1): Adjust.
1626 (update_static_tracepoint): New.
1627 (update_breakpoint_locations): Handle static tracepoints.
1628 (breakpoint_re_set_one): Handle static tracepoint marker
1629 locations.
1630 (disable_command, enable_command): Handle static tracepoints.
1631 (trace_command, ftrace_command): Adjust.
1632 (strace_command): New.
1633 (create_tracepoint_from_upload): Adjust.
1634 (save_breakpoints): Handle static tracepoints.
1635 (_initialize_breakpoint): Install the "strace" command.
1636 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
1637 (struct breakpoint): New fields static_trace_marker_id and
1638 static_trace_marker_id_idx.
1639 (breakpoints_here_p): Declare.
1640 (create_breakpoint): Adjust.
1641 (static_tracepoints_here): Declare.
1642 * remote.c (struct remote_state) <static_tracepoints>: New field.
1643 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
1644 (remote_static_tracepoint_marker_at): New.
1645 (remote_static_tracepoint_markers_by_strid): New.
1646 (remote_static_tracepoint_feature): New.
1647 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
1648 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
1649 (remote_supports_static_tracepoints): New.
1650 (remote_download_tracepoint): Download static tracepoints.
1651 (init_remote_ops): Install remote_static_tracepoint_marker_at and
1652 remote_static_tracepoint_markers_by_strid.
1653 (_initialize_remote): Install set|show remote static-tracepoints,
1654 and set|show remote read-sdata-object commands.
1655 * target.c (update_current_target): Inherit and default
1656 to_static_tracepoint_marker_at, and
1657 to_static_tracepoint_markers_by_strid.
1658 * target.h (static_tracepoint_marker): Forward declare.
1659 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
1660 (static_tracepoint_marker_p): New typedef.
1661 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
1662 (struct target_ops): New fields to_static_tracepoint_marker_at and
1663 to_static_tracepoint_markers_by_strid.
1664 (target_static_tracepoint_marker_at)
1665 (target_static_tracepoint_markers_by_strid): New.
1666 * tracepoint.c: Include source.h.
1667 (validate_actionline): Handle $_sdata.
1668 (struct collection_list): New field strace_data.
1669 (add_static_trace_data): New.
1670 (clear_collection_list): Clear strace_data.
1671 (stringify_collection_list): Account for a possible static trace
1672 data collection.
1673 (encode_actions_1): Encode an $_sdata collection.
1674 (parse_tracepoint_definition): Handle static tracepoints.
1675 (parse_static_tracepoint_marker_definition): New.
1676 (release_static_tracepoint_marker): New.
1677 (print_one_static_tracepoint_marker): New.
1678 (info_static_tracepoint_markers_command): New.
1679 (sdata_make_value): New.
1680 (_initialize_tracepoint): Create the $_sdata convenience variable.
1681 Add the "info static-tracepoint-markers" command.
1682 Mention $_sdata in the "collect" command's help output.
1683 * tracepoint.h (struct static_tracepoint_marker): New.
1684 (parse_static_tracepoint_marker_definition)
1685 (release_static_tracepoint_marker): Declare.
1686 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
1687 * python/py-breakpoint.c (bppy_new): Adjust.
1688
1689 2010-06-30 Joel Brobecker <brobecker@adacore.com>
1690
1691 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
1692 including Python.h.
1693
1694 2010-06-29 Doug Evans <dje@google.com>
1695
1696 PR gdb/11702
1697 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
1698 DW_AT_external is present.
1699
1700 PR gdb/11702
1701 * NEWS: Add entry.
1702 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
1703 create a symbol for the field and record the value.
1704 (new_symbol): Handle DW_TAG_member.
1705 * gdbtypes.c (field_is_static): Remove FIXME.
1706 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
1707 only ignore LOC_CONST symbols that are enums.
1708
1709 * dwarf2read.c: Remove trailing whitespace.
1710
1711 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
1712 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
1713 (struct main_type, field loc): Delete dwarf_block.
1714 (FIELD_DWARF_BLOCK): Delete.
1715 (SET_FIELD_DWARF_BLOCK): Delete.
1716 (TYPE_FIELD_DWARF_BLOCK): Delete.
1717 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
1718 Update.
1719
1720 2010-06-29 Hui Zhu <teawater@gmail.com>
1721
1722 * record.c (set_record_pic_cmdlist,
1723 show_record_pic_cmdlist): New variables.
1724 (set_record_pic_command,
1725 show_record_pic_command): New functions.
1726 (record_pic_function, record_pic_line, record_pic_enum,
1727 set_record_pic_type, record_pic_hide_nofunction,
1728 record_pic_hide_nosource, record_pic_hide_same): New variables.
1729 (record_pic_fputs): New function.
1730 (function_list, node_list, edge_list): New struct.
1731 (function_list, node_list, edge_list): New variables.
1732 (record_pic_cleanups, record_pic_node,
1733 record_pic_edge, cmd_record_pic): New functions.
1734 (_initialize_record): Add new commands for record pic.
1735
1736 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1737
1738 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
1739 ALLOCATE_CPLUS_STRUCT_TYPE.
1740
1741 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
1742 Tom Tromey <tromey@redhat.com>
1743 Thiago Jung Bauermann <bauerman@br.ibm.com>
1744
1745 * value.c (pack_unsigned_long): New function.
1746 (value_from_ulongest): New function.
1747 * value.h (value_from_ulongest): Declare.
1748 * python/python.c (_initialize_python): Call
1749 gdbpy_initialize_thread and gdbpy_initialize_inferior.
1750 * python/python-internal.h: Define thread_object.
1751 (gdbpy_inferiors, gdbpy_selected_thread)
1752 (frame_info_to_frame_object, create_thread_object)
1753 (find_thread_object, find_inferior_object)
1754 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
1755 (gdbpy_is_value_object, get_addr_from_python): Declare.
1756 * python/py-value.c (builtin_type_upylong): Define.
1757 (convert_value_from_python): Add logic for ulongest.
1758 (gdbpy_is_value_object): New function.
1759 * python/py-utils.c (get_addr_from_python): New function.
1760 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
1761 (gdbpy_selected_frame): Use PyObject over frame_info.
1762 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
1763 py-infthread.
1764 (SUBDIR_PYTHON_SRCS): Likewise.
1765 (py-inferior.o): New Rule.
1766 (py-infthread.o): New Rule.
1767 * python/py-inferior.c: New File.
1768 * python/py-infthread.c: New File.
1769
1770 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1771
1772 * c-typeprint.c (c_type_print_base): For no fields check include also
1773 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
1774 * dwarf2read.c (struct typedef_field_list)
1775 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
1776 (dwarf2_add_typedef): New.
1777 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
1778 Copy also FI.TYPEDEF_FIELD_LIST.
1779 * gdbtypes.h (struct typedef_field)
1780 (struct cplus_struct_type) <typedef_field, typedef_field_count>
1781 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
1782 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
1783
1784 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1785
1786 * cp-namespace.c (cp_lookup_nested_type): New variable
1787 concatenated_name. Turn the current return condition into a reverse
1788 one. Call also lookup_static_symbol_aux on the constructed qualified
1789 name.
1790 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
1791 other files into a called ...
1792 (lookup_static_symbol_aux): ... new function here.
1793 * symtab.h (lookup_static_symbol_aux): New prototype.
1794 * valops.c (value_maybe_namespace_elt): Call also
1795 lookup_static_symbol_aux if we failed otherwise.
1796
1797 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1798
1799 Fix PR c++/11703 and PR gdb/1448.
1800 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
1801 FIRST_ITER check.
1802
1803 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1804
1805 Fix modification of cplus_struct_default.
1806 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
1807 Call ALLOCATE_CPLUS_STRUCT_TYPE.
1808 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
1809
1810 2010-06-28 Joel Brobecker <brobecker@adacore.com>
1811
1812 * NEWS: Add entry announcing the python directory.
1813
1814 2010-06-28 Tom Tromey <tromey@redhat.com>
1815
1816 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
1817
1818 2010-06-28 Doug Evans <dje@google.com>
1819
1820 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
1821 All callers updated.
1822
1823 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1824
1825 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
1826 obstack_begin after each obstack_free.
1827
1828 2010-06-27 Doug Evans <dje@google.com>
1829
1830 * value.c (value_static_field): Use `switch' instead of `if'.
1831 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
1832
1833 * valops.c (search_struct_field): Fix typo in error message.
1834
1835 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
1836
1837 * dwarf2expr.c (execute_stack_op): Place preprocessor
1838 directives at the start of the source line.
1839
1840 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
1841
1842 * defs.h (make_command_stats_cleanup): Declare.
1843 (set_display_time): Declare.
1844 (set_display_space): Declare.
1845 * event-top.c (command_handler): Use make_command_stats_cleanup.
1846 * main.c (display_time, display_space): Move definitions to utils.c.
1847 (captured_main): Use make_command_stats_cleanup to get start-up
1848 statistics.
1849 Use set_display_time and set_display_space for processing OPT_STATISTICS
1850 case.
1851 * maint.c (maintenance_time_display): Use set_display_time.
1852 (maintenance_space_display): Use set_display_space.
1853 * top.c (execute_command): Remove obsolete 'maint time' code.
1854 (command_loop): Use make_command_stats_cleanup.
1855 * utils.c (struct cmd_stats): Structure for storing initial time
1856 and space usage.
1857 (display_time, display_space): Move definitions here from utils.c.
1858 (set_display_time): New function.
1859 (set_display_space): New function.
1860 (make_command_stats_cleanup): New function.
1861 (report_command_stats): New auxiliary function for
1862 make_command_stats_cleanup.
1863
1864 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1865
1866 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
1867 hosts where CORE_ADDR is long long.
1868
1869 2010-06-25 Tom Tromey <tromey@redhat.com>
1870
1871 PR python/10808:
1872 * python/python.c (execute_gdb_command): Add keywords. Accept
1873 "to_string" argument.
1874 (struct restore_ui_file_closure): New.
1875 (restore_ui_file): New function.
1876 (make_cleanup_restore_ui_file): Likewise.
1877 (GdbMethods) <execute>: Update.
1878
1879 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1880
1881 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
1882 during inferior call stack frame setup.
1883
1884 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
1885
1886 * solib-spu.c: Include "exception.h".
1887 (ocl_program_data_key): New variable.
1888 (append_ocl_sos): New function.
1889 (ocl_enable_break): Likewise.
1890 (spu_current_sos): Call append_ocl_sos.
1891 (spu_solib_loaded): Call ocl_enable_break.
1892 (_initialize_spu_solib): Register ocl_program_data_key.
1893
1894 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1895
1896 * cp-support.c (reset_directive_searched): New function.
1897 (make_symbol_overload_list_using): Prevent recursive calls.
1898
1899 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
1900
1901 * printcmd.c (print_variable_and_value): Print error message on
1902 caught exception.
1903
1904 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1905
1906 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
1907 of stack values.
1908 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
1909 "value" member.
1910 (dwarf_expr_push): Change input type to ULONGEST.
1911 (dwarf_expr_fetch): Change return type to ULONGEST.
1912 (dwarf_expr_fetch_address): Add prototype.
1913 (dwarf2_read_address): Remove prototype.
1914 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
1915 Truncate stack values to ctx->addr_size bytes.
1916 (dwarf_expr_fetch): Change return value to ULONGEST.
1917 (dwarf_expr_fetch_address): New function.
1918 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
1919 when appropriate. Update for struct dwarf_expr_piece changes.
1920 (dwarf2_read_address): Remove.
1921 (unsigned_address_type): Remove.
1922 (signed_address_type): Remove.
1923 (execute_stack_op): Use dwarf_expr_fetch_address instead of
1924 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
1925 values. Perform operations on ULONGEST instead of on GDB values,
1926 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
1927 values and DW_OP_deref results as unsigned integers.
1928 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
1929 changes.
1930 (write_pieced_value): Likewise.
1931 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
1932 dwarf_expr_fetch when appropriate.
1933 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
1934 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
1935 instead of dwarf_expr_fetch when appropriate.
1936
1937 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
1938
1939 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
1940
1941 2010-06-24 Joel Brobecker <brobecker@adacore.com>
1942
1943 * python/python.c (_initialize_python): Add new "constant"
1944 PYTHONDIR in gdb module. Insert this path at the head of
1945 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
1946 exec its __init__.py script if it exists in that directory.
1947
1948 2010-06-24 Kevin Buettner <kevinb@redhat.com>
1949
1950 * rx-tdep.c (RX_ACC_REGNUM): Define.
1951 (RX_NUM_REGS): Redefine to 26.
1952 (rx_register_name): Add register "acc". Change order of several
1953 registers. Change name of "vct" register to "fintv" to match RX
1954 documentation.
1955 (rx_register_type): Add case for RX_ACC_REGNUM.
1956
1957 2010-06-24 Tom Tromey <tromey@redhat.com>
1958
1959 * psymtab.c (lookup_partial_symbol): Mark definition as static.
1960
1961 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1962 Tom Tromey <tromey@redhat.com>
1963
1964 Fix GDB startup on readonly filesystem.
1965 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
1966
1967 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1968 Pedro Alves <pedro@codesourcery.com>
1969
1970 Fix PR 9436.
1971 * breakpoint.c (handle_jit_event): New function.
1972 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
1973 jit, err, table and bs_class. New variables shlib_event, jit_event,
1974 this_action and bptype. Change bs_class assignments to this_action
1975 assignments. new unhandled bptype internal error. Move here
1976 shlib_event and jit_event handling from handle_inferior_event.
1977 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
1978 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
1979 BPSTAT_WHAT_CHECK_JIT.
1980 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
1981 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
1982 (handle_inferior_event): Reinitialize frame and gdbarch after
1983 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
1984 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
1985 gdbarch when frame gets reinitialized.
1986
1987 2010-06-24 Hui Zhu <teawater@gmail.com>
1988
1989 * printcmd.c (ui_printf): New function.
1990 (printf_command): Call ui_printf.
1991 (_initialize_printcmd): New command "eval".
1992
1993 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
1994
1995 * infrun.c (handle_inferior_event): Handle presence of single-step
1996 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
1997 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
1998 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
1999 * breakpoint.c (detach_single_step_breakpoints): New function.
2000 (detach_breakpoints): Call it.
2001 (cancel_single_step_breakpoints): New function.
2002 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2003
2004 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2005 (spu_gdbarch_init): Install it.
2006
2007 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2008
2009 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2010 * configure: Regenerate.
2011
2012 2010-06-22 Hui Zhu <teawater@gmail.com>
2013
2014 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2015 (i386_process_record): Ditto.
2016 * record.c (record_memory_query): New variable.
2017 (_initialize_record): New command "set record memory-query".
2018 * record.h (record_memory_query): New extern.
2019
2020 2010-06-21 Doug Evans <dje@google.com>
2021
2022 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2023 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2024 (i386_syscall_p): Change type of lengthp to int.
2025 (i386_displaced_step_fixup): Handle kernels that run one past a
2026 syscall insn.
2027 * i386-linux-tdep.c (i386_linux_init_abi): Use
2028 i386_displaced_step_copy_insn instead of
2029 simple_displaced_step_copy_insn.
2030
2031 2010-06-21 Tom Tromey <tromey@redhat.com>
2032
2033 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
2034 (dwarf_type_encoding_name): Likewise.
2035
2036 2010-06-21 Tom Tromey <tromey@redhat.com>
2037
2038 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
2039 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
2040 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
2041 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
2042 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
2043 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
2044 * dwarf2read.c (tag_type_to_type): Create a new error type on
2045 failure.
2046 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
2047 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
2048
2049 2010-06-21 Michael Snyder <msnyder@vmware.com>
2050
2051 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
2052 not add_abbrev_prefix_cmd, for "enable breakpoints".
2053
2054 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
2055
2056 * dwarf2loc.c (find_location_expression): Add relocation offset
2057 to base-address-selection entry base addresses. Read addresses
2058 (and offsets) as signed/unsigned integers, depending on the
2059 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
2060 (loclist_describe_location): Likewise.
2061 (disassemble_dwarf_expression): Read DW_OP_addr operand as
2062 unsigned integer. Do not call dwarf2_read_address.
2063 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
2064
2065 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2066
2067 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
2068 value instead of hard-coded SPU_LS_SIZE.
2069 (spu_software_single_step): Likewise.
2070 * spu-tdep.h (SPU_LS_SIZE): Remove.
2071
2072 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2073
2074 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
2075 limit on local store memory accesses.
2076 * spu-linux-nat.c (spu_xfer_partial): Likewise.
2077 * spu-tdep.c (spu_lslr): Remove.
2078 (spu_pointer_to_address): Do not truncate addresses.
2079 (spu_integer_to_address): Likewise.
2080 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
2081 * spu-tdep.h: Add comments.
2082 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
2083 (SPU_OVERLAY_LMA): Define.
2084
2085 2010-06-18 Stan Shebs <stan@codesourcery.com>
2086
2087 * osdata.c (get_osdata): Warn separately if target does not report
2088 type list.
2089 (info_osdata_command): Allow empty type, report error if target
2090 does not return available types of OS data.
2091 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
2092 types if no annex supplied.
2093
2094 * thread.c (thread_id_make_value): Make a value representing the
2095 current thread.
2096 (_initialize_thread): Create $_thread.
2097
2098 2010-06-17 Joel Brobecker <brobecker@adacore.com>
2099
2100 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
2101 last local variable declaration. No real code change.
2102
2103 2010-06-17 Tom Tromey <tromey@redhat.com>
2104
2105 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
2106 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
2107 temporary obstack.
2108
2109 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
2110 Jan Kratochvil <jan.kratochvil@redhat.com>
2111
2112 * breakpoint.c: Include parser-defs.h.
2113 (watchpoint_exp_is_const): New function.
2114 (watch_command_1): Call watchpoint_exp_is_const to check
2115 if the expression is constant.
2116
2117 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
2118
2119 * configure.ac: Check for RDYNAMIC also for cross builds.
2120 * configure: Regenerate.
2121
2122 2010-06-15 Pedro Alves <pedro@codesourcery.com>
2123
2124 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2125 (SFILES): Remove solib-null.c, add solib-target.c.
2126 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
2127 (ALLDEPFILES): Remove solib-target.c.
2128 * solib-target.c (_initialize_solib_target): Set
2129 current_target_so_ops to solib_target_so_ops if not already set.
2130 * solib-null.c: Delete.
2131
2132 2010-06-14 Pedro Alves <pedro@codesourcery.com>
2133
2134 * NEWS: Mention GDBserver's JIT compilation of tracepoint
2135 bytecode.
2136
2137 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2138
2139 * cp-valprint.c (cp_print_static_field): Members of
2140 dont_print_stat_array_obstack are of type "struct type *".
2141 (_initialize_cp_valprint): Likewise.
2142
2143 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2144
2145 * frame.c (frame_register_unwind): Do not access contents
2146 of "optimized out" unwound register value.
2147
2148 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2149
2150 * ada-lang.h (ada_print_type): Make varstring const.
2151 * ada-typeprint.c (print_func_type): Make name const.
2152 (ada_print_type): Make varstring const.
2153 * c-lang.h (c_print_type): Make varstring const.
2154 * c-typeprint.c (c_print_type): Likewise.
2155 * f-lang.h (f_print_type): Likewise.
2156 * f-typeprint.c (f_print_type): Likewise.
2157 * jv-lang.h (java_print_type): Likewise.
2158 * jv-typeprint.c (java_print_type): Likewise.
2159 * language.c (unk_lang_print_type): Likewise.
2160 * language.h (struct language_defn) <la_print_type>: Likewise.
2161 * m2-lang.h (m2_print_type): Likewise.
2162 * m2-typeprint.c (m2_print_type): Likewise.
2163 * p-lang.h (pascal_print_type): Likewise.
2164 * p-typeprint.c (pascal_print_type): Likewise.
2165
2166 2010-06-11 Stan Shebs <stan@codesourcery.com>
2167
2168 Add per-operation permission flags.
2169
2170 * target.h (struct target_ops): New method to_set_permissions.
2171 (target_set_permissions): New macro.
2172 (target_insert_breakpoint): Change macro to function.
2173 (target_remove_breakpoint): Ditto.
2174 (target_stop): Ditto.
2175 (may_write_registers): Declare.
2176 (may_write_memory): Declare.
2177 (may_insert_breakpoints): Declare.
2178 (may_insert_tracepoints): Declare.
2179 (may_insert_fast_tracepoints): Declare.
2180 (may_stop): Declare.
2181 * target.c (may_write_registers, may_write_registers_1): New globals.
2182 (may_write_memory, may_write_memory_1): New globals.
2183 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
2184 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
2185 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
2186 globals.
2187 (may_stop, may_stop_1): New global.
2188 (target_xfer_partial): Test for write permission.
2189 (target_store_registers): Ditto.
2190 (target_insert_breakpoint): New function.
2191 (target_remove_breakpoint): New function.
2192 (target_stop): New function.
2193 (_initialize_targets): Add new set/show variables.
2194 (set_write_memory_permission): New function.
2195 (update_target_permissions): New function.
2196 (set_target_permissions): New function.
2197 (update_current_target): Default to_set_permissions.
2198 (_initialize_targets): Use new globals and setter function.
2199 * tracepoint.c (start_tracing): Test for permission.
2200 * inferior.h (update_observer_mode): Declare.
2201 * infrun.c (non_stop_1): Define earlier.
2202 (observer_mode, observer_mode_1): New globals.
2203 (set_observer_mode, show_observer_mode): New functions.
2204 (update_observer_mode): New function.
2205 (_initialize_infrun): Define "set observer" command.
2206 * remote.c (PACKET_QAllow): New optional packet.
2207 (remote_protocol_features): Add QAllow.
2208 (remote_set_permissions): New function.
2209 (remote_start_remote): Call it.
2210 (init_remote_ops): Add it to target vector.
2211 (_initialize_remote): Add config command for QAllow.
2212
2213 2010-06-11 Tom Tromey <tromey@redhat.com>
2214
2215 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
2216 DW_AT_vtable_elem_location even when GCC extension is seen.
2217
2218 2010-06-11 Tom Tromey <tromey@redhat.com>
2219
2220 PR gdb/9977, PR exp/11636:
2221 * value.h (value_offset): Update.
2222 (struct lval_funcs) <check_validity>: New field.
2223 <copy_closure>: Make argument const.
2224 (value_computed_closure): Update.
2225 (value_contents_for_printing): Declare.
2226 (value_bits_valid): Likewise.
2227 (val_print): Likewise.
2228 (set_value_component_location): Update.
2229 (value_entirely_optimized_out): Declare.
2230 * value.c (value_offset): Argument now const.
2231 (require_not_optimized_out): New function.
2232 (value_contents_for_printing): New function.
2233 (value_contents_all): Call require_not_optimized_out.
2234 (value_contents): Likewise.
2235 (value_bits_valid): New function.
2236 (value_computed_closure): Argument now const.
2237 (set_value_component_location): Make 'whole' argument const.
2238 (value_entirely_optimized_out): New function.
2239 (value_bitsize): Argument now 'const'.
2240 (value_bitpos): Likewise.
2241 (value_type): Likewise.
2242 * valprint.h (val_print_array_elements): Update.
2243 * valprint.c (val_print): Add 'val' argument. Use
2244 valprint_check_validity.
2245 (valprint_check_validity): New function.
2246 (value_check_printable): Use value_entirely_optimized_out.
2247 (common_val_print): Update.
2248 (value_print): Likewise.
2249 (val_print_array_elements): Add 'val' argument.
2250 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
2251 value_bits_valid. Reinit frame cache for lval_computed.
2252 * sh64-tdep.c (sh64_do_register): Update.
2253 * scm-valprint.c (scm_val_print): Add 'val' argument.
2254 * scm-lang.h (scm_val_print): Update.
2255 * python/python.h (apply_val_pretty_printer): Update.
2256 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
2257 argument. Call set_value_component_location.
2258 * printcmd.c (print_scalar_formatted): Update.
2259 * p-valprint.c (pascal_val_print): Add 'val' argument.
2260 (pascal_object_print_value_fields): Likewise.
2261 (pascal_object_print_value): Likewise.
2262 (pascal_object_print_static_field): Update.
2263 * p-lang.h (pascal_val_print): Update.
2264 (pascal_object_print_value_fields): Update.
2265 * mt-tdep.c (mt_registers_info): Update.
2266 * mi/mi-main.c (get_register): Update.
2267 (mi_cmd_data_evaluate_expression): Use common_val_print.
2268 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
2269 (m2_print_unbounded_array): Likewise.
2270 (m2_val_print): Likewise.
2271 * m2-lang.h (m2_val_print): Update.
2272 * language.h (struct language_defn) <la_val_print>: Add 'val'
2273 argument.
2274 (LA_VAL_PRINT): Likewise.
2275 * language.c (unk_lang_val_print): Add 'val' argument.
2276 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
2277 (java_val_print): Likewise.
2278 * jv-lang.h (java_val_print): Add 'val' argument.
2279 * infcmd.c (default_print_registers_info): Update.
2280 * f-valprint.c (f77_print_array_1): Add 'val' argument.
2281 (f77_print_array): Likewise.
2282 (f_val_print): Likewise.
2283 * f-lang.h (f_val_print): Add 'val' argument.
2284 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
2285 value_bitpos.
2286 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
2287 set_value_optimized_out.
2288 (write_pieced_value): Use value_bitsize and value_bitpos.
2289 <default>: Don't exit loop.
2290 (check_pieced_value_validity): New function.
2291 (pieced_value_funcs): Reference check_pieced_value_validity,
2292 check_pieced_value_invalid.
2293 (copy_pieced_value_closure): Update.
2294 (check_pieced_value_bits): New function.
2295 (check_pieced_value_invalid): New function.
2296 * d-valprint.c (dynamic_array_type): Add 'val' argument.
2297 (d_val_print): Likewise.
2298 * d-lang.h (d_val_print): Update.
2299 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
2300 (cp_print_value_fields_rtti): Likewise.
2301 (cp_print_value): Likewise.
2302 (cp_print_static_field): Update.
2303 * c-valprint.c (c_val_print): Add 'val' argument.
2304 (c_value_print): Update.
2305 * c-lang.h (c_val_print): Update.
2306 (cp_print_value_fields): Likewise.
2307 (cp_print_value_fields_rtti): Likewise.
2308 * ada-valprint.c (struct ada_val_print_args): Remove.
2309 (val_print_packed_array_elements): Add 'val' argument.
2310 (ada_val_print): Likewise. Rewrite.
2311 (ada_val_print_stub): Remove.
2312 (ada_val_print_array): Add 'val' argument.
2313 (ada_val_print_1): Likewise.
2314 (print_variant_part): Likewise.
2315 (ada_value_print): Update.
2316 (print_record): Add 'val' argument.
2317 (print_field_values): Likewise.
2318 * ada-lang.h (ada_val_print): Update.
2319
2320 2010-06-11 Tom Tromey <tromey@redhat.com>
2321
2322 * vec.h (VEC_cleanup): New macro.
2323 (DEF_VEC_ALLOC_FUNC_I): Update.
2324 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2325 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2326 * dwarf2loc.c (struct axs_var_loc): Remove.
2327 (unimplemented): New function.
2328 (translate_register): Likewise.
2329 (access_memory): Likewise.
2330 (compile_dwarf_to_ax): Likewise.
2331 (dwarf2_tracepoint_var_loc): Remove.
2332 (dwarf2_tracepoint_var_access): Likewise.
2333 (dwarf2_tracepoint_var_ref): Likewise.
2334 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
2335 (loclist_tracepoint_var_ref): Likewise.
2336 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
2337 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
2338 require_composition. No longer static.
2339 (execute_stack_op): Update.
2340 * ax-gdb.h (trace_kludge): Declare.
2341
2342 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2343
2344 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
2345 (should_be_inserted): Return zero also on NULL OWNER.
2346 (breakpoint_program_space_exit): New OWNER comment.
2347 (insert_breakpoint_locations): Extend comment for OWNER.
2348 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
2349 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
2350 New OWNER comment.
2351 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
2352 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
2353 (bpstat_check_location): New assert on OWNER.
2354 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
2355 and B initializations to the code block. New assert on them.
2356 (print_one_breakpoint_location): New OWNER comment.
2357 (watchpoint_locations_match): Assert on OWNER.
2358 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
2359 initializations to the code block. New assert on OWNER.
2360 (set_breakpoint_location_function): New assert on OWNER.
2361 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
2362 (bp_location_compare, update_global_location_list)
2363 (update_global_location_list): New OWNER comment.
2364
2365 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2366
2367 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
2368
2369 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2370
2371 * config/nm-linux.h (struct target_ops): Remove forward declaration.
2372 (lin_thread_get_thread_signals): Remove prototype.
2373 (GET_THREAD_SIGNALS): Remove.
2374 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
2375 * linux-thread-db.c (check_thread_signals): Directly call
2376 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
2377
2378 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2379
2380 * gregset.h (GDB_FPXREGSET_T): Remove.
2381 (gdb_fpxregset_t): Likewise.
2382 (supply_fpxregset): Remove prototype.
2383 (fill_fpxregset): Likewise.
2384 * i386-linux-nat.c (supply_fpxregset): Remove.
2385 (fill_fpxregset): Likewise.
2386 (fetch_fpxregs): Inline supply_fpxregset call.
2387 (store_fpxregs): Inline fill_fpxregset call.
2388
2389 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
2390 * config/i386/nm-linux.h: Remove file.
2391
2392 2010-06-09 Michael Snyder <msnyder@vmware.com>
2393
2394 * target.c (update_current_target): Fix spelling error in comment.
2395 (target_mourn_inferior): Fix spelling error in error message.
2396
2397 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
2398
2399 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
2400 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
2401
2402 2010-06-08 Michael Snyder <msnyder@vmware.com>
2403
2404 * remote.c (remote_close): Set inferior_ptid to null_ptid.
2405
2406 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2407
2408 * configure.ac <"${have_libpython}" != no>: New workaround of
2409 python#4434.
2410 * configure: Regenerate.
2411
2412 2010-06-08 Hui Zhu <teawater@gmail.com>
2413
2414 * record.c (record_wait): Move signal out of replay code.
2415
2416 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2417
2418 Fix PR 10640.
2419 * dwarf2-frame.c (no_dwarf_call): New function.
2420 (execute_stack_op): Set CTX->DWARF_CALL.
2421 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
2422 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
2423 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
2424 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
2425 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
2426 (needs_frame_dwarf_call): New function.
2427 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
2428 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
2429 Update the comment. Move variables die, offset and error call to ...
2430 (follow_die_ref): ... a new function.
2431 (dwarf2_fetch_die_location_block): New function.
2432 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
2433
2434 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2435
2436 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
2437 (dwarf_expr_tls_address): Use per_cu instead of objfile.
2438 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
2439 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
2440 this change.
2441 (struct needs_frame_baton): New field per_cu.
2442 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
2443 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2444
2445 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2446
2447 * cp-support.c (make_symbol_overload_list_namespace): Only search
2448 static and global blocks.
2449 (make_symbol_overload_list_block): New function.
2450 (make_symbol_overload_list): Separate namespace search from block
2451 search.
2452 (make_symbol_overload_list_qualified): Use
2453 make_symbol_overload_list_block.
2454
2455 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2456
2457 * value.h: Created oload_search_type enum.
2458 (find_overload_match): Use oload_search_type enum.
2459 * valops.c (find_overload_match): Support combined member and
2460 non-member search.
2461 * eval.c (evaluate_subexp_standard): Calls to
2462 find_overload_match now use oload_search_type enum.
2463 (oload_method_static): Verify index is a proper value.
2464 * valarith.c (value_user_defined_cpp_op): Search for and handle
2465 both member and non-member operators.
2466 (value_user_defined_cpp_op): New function.
2467 (value_user_defined_op): New function.
2468 (value_x_unop): Use value_user_defined_op.
2469 (value_x_binop): Ditto.
2470 * cp-support.c (make_symbol_overload_list_using): Added block
2471 iteration.
2472 Add check for namespace aliases and imported declarations.
2473
2474 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2475
2476 * breakpoint.h (owner): Extend the comment.
2477
2478 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2479
2480 Clear stale specific bp_location from former whole breakpoint.
2481 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
2482 code ...
2483 (free_bp_location): ... here. Rename there the called function to
2484 bpstat_remove_bp_location_callback.
2485 (bpstat_remove_breakpoint_callback): Rename to ...
2486 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
2487 to struct bp_location. Change the called function to
2488 bpstat_remove_bp_location. Create new declaration for the function.
2489 (bpstat_remove_breakpoint): Rename to ...
2490 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
2491 code for the new parameter type.
2492
2493 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
2494
2495 * README: Make version-agnostic.
2496
2497 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2498
2499 Fix duplicate types for single DIE.
2500 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
2501 set_die_type.
2502 (read_array_type): Remove type initialization. Recheck get_die_type
2503 after initial die_type. Move set_die_type before set_descriptive_type.
2504 (read_set_type): New variable domain_type. Recheck get_die_type after
2505 initial die_type. Move attr initialization later.
2506 (read_tag_pointer_type, read_tag_reference_type): New variable
2507 target_type. Recheck get_die_type after initial die_type.
2508 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
2509 die_type and die_containing_type.
2510 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
2511 Recheck get_die_type after initial die_type.
2512 (read_subrange_type): Recheck get_die_type after initial die_type.
2513 Move set_die_type before set_descriptive_type.
2514 (set_die_type): Extend the function comment. Call complaint if DIE has
2515 some type already set.
2516
2517 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
2518
2519 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
2520 for current naming of thread groups (iN, not N).
2521
2522 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2523
2524 * ada-lang.c (ada_operator_length): Constify `struct expression'.
2525 * parse.c (operator_length): Likewise.
2526 (operator_length_standard): Likewise.
2527 * parser-defs.h (operator_length): Likewise.
2528 (operator_length_standard): Likewise.
2529 (struct exp_descriptor <operator_length>): Likewise.
2530
2531 2010-06-04 Doug Evans <dje@google.com>
2532
2533 Add support for enabling/disabling individual pretty-printers.
2534 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
2535 * python/python-internal.h (gdbpy_enabled_cst): Declare.
2536 * python/python.c (gdbpy_enabled_cst): Define.
2537 (_initialize_python): Initialize gdbpy_enabled_cst.
2538 * NEWS: Add entry.
2539
2540 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2541
2542 * breakpoint.c (update_global_location_list): Fix comment typo.
2543
2544 2010-06-04 Hui Zhu <teawater@gmail.com>
2545
2546 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2547
2548 2010-06-03 Doug Evans <dje@google.com>
2549
2550 * configure.ac: Don't fail if python is unusable when
2551 configured with --with-python=auto.
2552 * configure: Regenerate.
2553
2554 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
2555
2556 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2557
2558 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
2559
2560 * valprint.h (get_array_bounds): Change low and high parameter types
2561 to LONGEST *.
2562 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
2563 compute bounds.
2564 (val_print_array_elements): Adapt to change above.
2565 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
2566 * p-valprint.c (pascal_val_print): Likewise.
2567
2568 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2569
2570 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
2571 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
2572 .F08.
2573
2574 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2575
2576 Support DW_TAG_module as separate namespaces.
2577 * dwarf2read.c (typename_concat): New parameter physname.
2578 (read_module_type): New function and declaration.
2579 (scan_partial_symbols): Scan also DW_TAG_module children.
2580 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
2581 to typename_concat backward compatible physname value 0.
2582 (partial_die_full_name, read_namespace_type): Pass to typename_concat
2583 backward compatible physname value 0.
2584 (add_partial_module, read_module): Remove FIXME comment.
2585 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
2586 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
2587 DIEs under DW_TAG_module.
2588 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
2589 DW_AT_MIPS_linkage_name first, extend it for language_fortran
2590 && physname and return there instead of just setting NAME. Extend
2591 the main block for language_fortran. Pass physname parameter to the
2592 typename_concat call.
2593 (read_import_statement, read_func_scope, get_scope_pc_bounds)
2594 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
2595 (new_symbol): Fill in cplus_specific.demangled_name if it is still
2596 missing from SYMBOL_SET_NAMES in the language_fortran case.
2597 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
2598 variables.
2599 (read_type_die) <DW_TAG_module>: New.
2600 (MAX_SEP_LEN): Increase to 7.
2601 (typename_concat): New parameter physname. New variable lead. Support
2602 also language_fortran.
2603 * f-exp.y (yylex): Consider : also as a symbol name character class.
2604 * f-lang.c: Include cp-support.h.
2605 (f_word_break_characters, f_make_symbol_completion_list): New functions.
2606 (f_language_defn): Use cp_lookup_symbol_nonlocal,
2607 f_word_break_characters and f_make_symbol_completion_list.
2608 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
2609 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
2610 * symtab.c (symbol_init_language_specific): Support language_fortran.
2611 (symbol_find_demangled_name): New comment on language_fortran.
2612 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
2613 for language_fortran.
2614 (lookup_symbol_aux_local): Check imports also for language_fortran.
2615 (default_make_symbol_completion_list): Rename to ...
2616 (default_make_symbol_completion_list_break_on): ... this name. New
2617 parameter break_on, use it.
2618 (default_make_symbol_completion_list): New stub.
2619 * symtab.h (default_make_symbol_completion_list_break_on): New
2620 prototype.
2621
2622 2010-06-02 Joel Brobecker <brobecker@adacore.com>
2623
2624 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
2625 to error.
2626
2627 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2628
2629 * dwarf2read.c (typename_concat): Add const to the variable sep.
2630
2631 2010-06-02 Tom Tromey <tromey@redhat.com>
2632
2633 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
2634 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
2635 type is const. Add 'def' argument. Add missing operators, remove
2636 unhandled ones.
2637 (decode_locdesc): Update.
2638 (dwarf2_always_disassemble): New global.
2639 (show_dwarf2_always_disassemble): New function.
2640 (_initialize_dwarf2_read): Add always-disassemble.
2641 (dwarf2_per_cu_offset_size): New function.
2642 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
2643 (piece_end_p): New function.
2644 (locexpr_describe_location_piece): Replace 'size' argument with
2645 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
2646 some constants. Remove errors.
2647 (disassemble_dwarf_expression): New function.
2648 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
2649 Add 'offset_size' argument.
2650 (loclist_describe_location): Change output formatting.
2651 * dwarf2expr.h (dwarf_stack_op_name): Declare.
2652
2653 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
2654
2655 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
2656 anonymous type case.
2657
2658 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
2659
2660 * dwarf2read.c (read_subrange_type): Handle missing base type
2661 according to Dwarf-2 specifications.
2662
2663 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
2664
2665 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
2666 BINOP_EXCL.
2667 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
2668 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
2669 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
2670 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
2671 UNOP_CHMAX, UNOP_CHMIN.
2672 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
2673 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
2674 UNOP_CHMIN>: Remove opcodes.
2675
2676 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
2677
2678 * dwarf2read.c (read_func_scope): Do not complain for
2679 external function if bounds are not found.
2680
2681 2010-06-01 Pedro Alves <pedro@codesourcery.com>
2682
2683 * NEWS: Mention gdbserver fast tracepoints support.
2684
2685 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
2686
2687 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
2688 New macros.
2689 (windows_set_console_info): New function.
2690 (windows_create_inferior): Call windows_set_console_info
2691 if NEW_CONSOLE is true.
2692 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
2693 (_initialize_loadable): Initialize GetConsoleFontSize and
2694 GetCurrentConsoleFont.
2695
2696 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2697
2698 * Makefile.in (RDYNAMIC): New.
2699 (SFILES): Add proc-service.list.
2700 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
2701 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
2702 * config/arm/linux.mh: Likewise.
2703 * config/i386/linux.mh: Likewise.
2704 * config/i386/linux64.mh: Likewise.
2705 * config/ia64/linux.mh: Likewise.
2706 * config/m32r/linux.mh: Likewise.
2707 * config/m68k/linux.mh: Likewise.
2708 * config/mips/linux.mh: Likewise.
2709 * config/pa/linux.mh: Likewise.
2710 * config/powerpc/linux.mh: Likewise.
2711 * config/powerpc/ppc64-linux.mh: Likewise.
2712 * config/s390/s390.mh: Likewise.
2713 * config/sparc/linux.mh: Likewise.
2714 * config/sparc/linux64.mh: Likewise.
2715 * config/xtensa/linux.mh: Likewise.
2716 * configure.ac: New RDYNAMIC on native host and GCC.
2717 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
2718 * configure: Regenerate.
2719 * proc-service.list: New.
2720
2721 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2722
2723 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
2724 CONTENT.
2725
2726 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2727
2728 * linux-nat.c (linux_nat_wait_1): Do not call
2729 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
2730 TARGET_WAITKIND_SIGNALLED.
2731
2732 2010-05-27 Joel Brobecker <brobecker@adacore.com>
2733
2734 * ada-lang.c (ada_inferior_data): New struct.
2735 (ada_inferior_data): New static global.
2736 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
2737 (ada_get_tsd_type): New functions.
2738 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
2739 to look the tsd type up.
2740 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
2741 event. Set ada_inferior_data.
2742
2743 2010-05-27 Pedro Alves <pedro@codesourcery.com>
2744
2745 * remote.c (unpack_varlen_hex): Remove forward declaration.
2746 (remote_console_output): Make static, and add forward declaration.
2747 * remote.h: Drop FIXME comment.
2748 (unpack_varlen_hex): Declare.
2749 (remote_console_output, remote_cisco_objfile_relocate)
2750 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
2751 Delete declarations.
2752 * tracepoint.c: Include "remote.h".
2753 (unpack_varlen_hex): Delete declaration.
2754
2755 2010-05-27 Tom Tromey <tromey@redhat.com>
2756
2757 * dwarf2loc.c (struct piece_closure) <refc>: New field.
2758 (allocate_piece_closure): Initialize refc.
2759 (copy_pieced_value_closure): Use refc.
2760 (free_pieced_value_closure): Likewise.
2761
2762 2010-05-27 Tom Tromey <tromey@redhat.com>
2763
2764 * arm-tdep.c (push_stack_item): 'contents' now const.
2765 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
2766 value_contents_writeable. Introduce new temporary.
2767
2768 2010-05-27 Tom Tromey <tromey@redhat.com>
2769
2770 * findcmd.c (parse_find_args): Use value_contents, not
2771 value_contents_raw.
2772
2773 2010-05-27 Tom Tromey <tromey@redhat.com>
2774
2775 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
2776 const. Use value_contents, not value_contents_writeable.
2777
2778 2010-05-27 Joel Brobecker <brobecker@adacore.com>
2779
2780 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
2781 by call to value_contents.
2782
2783 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
2784
2785 * MAINTAINERS: Add myself for write after approval privileges.
2786
2787 2010-05-26 Doug Evans <dje@google.com>
2788
2789 Allow python to find its files if moved from original location.
2790 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
2791 (GDB_AC_WITH_DIR): Call it.
2792 * configure.ac: Define WITH_PYTHON_PATH if we can find the
2793 python installation directory.
2794 * config.in: Regenerate.
2795 * configure: Regenerate.
2796 * defs.h (python_libdir): Declare.
2797 * main.c (python_libdir): Define.
2798 (captured_main): Initialize python_libdir.
2799 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
2800 call Py_SetProgramName to make sure python can find its libraries
2801 and modules.
2802
2803 * configure.ac: Try to use python's distutils to fetch compilation
2804 parameters.
2805 * configure: Regenerate.
2806 * python/python-config.py: New file.
2807
2808 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
2809
2810 * ser-tcp.c (net_open): Check error return from socket() call by its
2811 equality to -1 not by it being negative.
2812 (net_close): Likewise.
2813
2814 2010-05-26 Pedro Alves <pedro@codesourcery.com>
2815
2816 * NEWS: Mention the `qRelocInsn' feature.
2817 * gdbarch.sh (relocate_instruction): New.
2818 * amd64-tdep.c (rip_relative_offset): New.
2819 (append_insns): New.
2820 (amd64_relocate_instruction): New.
2821 (amd64_init_abi): Install it.
2822 * i386-tdep.c (append_insns): New.
2823 (i386_relocate_instruction): New.
2824 (i386_gdbarch_init): Install it.
2825 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
2826 * gdbarch.h, gdbarch.c: Regenerate.
2827
2828 2010-05-26 Tom Tromey <tromey@redhat.com>
2829
2830 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
2831 (struct dwarf2_loclist_baton) <data>: Likewise.
2832 * dwarf2loc.c (find_location_expression): Constify return type.
2833 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
2834 (dwarf2_loc_desc_needs_frame): Likewise.
2835 (loclist_read_variable): Constify.
2836 (loclist_describe_location): Likewise.
2837 (loclist_tracepoint_var_ref): Likewise.
2838
2839 2010-05-25 Tom Tromey <tromey@redhat.com>
2840
2841 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
2842 (dwarf_expr_frame_base_1): Likewise.
2843 (read_pieced_value): Update.
2844 (needs_frame_frame_base): Constify.
2845 (dwarf2_tracepoint_var_loc): Likewise.
2846 (dwarf2_tracepoint_var_access): Likewise.
2847 (locexpr_describe_location_piece): Likewise.
2848 (locexpr_describe_location_1): Likewise.
2849 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
2850 Constify.
2851 (data): Now const.
2852 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
2853 (dwarf_expr_eval, read_uleb128, read_sleb128)
2854 (dwarf2_read_address): Update.
2855 * dwarf2expr.c (dwarf_expr_eval): Constify.
2856 (read_uleb128): Likewise.
2857 (read_sleb128): Likewise.
2858 (dwarf2_read_address): Likewise.
2859 (require_composition): Likewise.
2860 (execute_stack_op): Likewise.
2861 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
2862 "const gdb_byte *".
2863 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
2864 Now const.
2865 (no_get_frame_base): Constify.
2866 (execute_stack_op): Likewise.
2867 (execute_cfa_program): Likewise.
2868 (read_encoded_value): Likewise.
2869
2870 2010-05-25 Doug Evans <dje@google.com>
2871
2872 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
2873
2874 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
2875 * event-loop.c: ... here.
2876 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
2877 `error' for clarity.
2878 (tui_getc): Pass correct value for `error' parameter to
2879 tui_readline_output.
2880
2881 Add python gdb.GdbError and gdb.string_to_argv.
2882 * NEWS: Document them.
2883 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
2884 the exception is gdb.GdbError. Print a second traceback if there's
2885 an error computing the error message.
2886 (gdbpy_string_to_argv): New function.
2887 * python/py-utils.c (gdbpy_obj_to_string): New function.
2888 (gdbpy_exception_to_string): New function.
2889 * python/python-internal.h (gdbpy_string_to_argv): Declare.
2890 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
2891 (gdbpy_gdberror_exc): Declare.
2892 * python/python.c (gdbpy_gdberror_exc): New global.
2893 (_initialize_python): Initialize gdbpy_gdberror_exc and create
2894 gdb.GdbError.
2895 (GdbMethods): Add string_to_argv.
2896
2897 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2898
2899 * windows-nat.c (display_selector): Call GetLastError to give better
2900 failure explanation.
2901
2902 2010-05-24 Pedro Alves <pedro@codesourcery.com>
2903
2904 * config.in: Regenerate.
2905
2906 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2907
2908 Code cleanup.
2909 * target.c (push_target): Return only void. Remove the return value
2910 comment.
2911 * target.h (push_target): Return only void.
2912
2913 2010-05-23 Pedro Alves <pedro@codesourcery.com>
2914
2915 Update gnulib from latest git.
2916 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2917
2918 * gnulib/memcmp.c: Removed.
2919 * gnulib/memchr.valgrind: New.
2920 * gnulib/stddef.in.h: New.
2921 * gnulib/Makefile.am: Updated.
2922 * gnulib/memchr.c: Updated.
2923 * gnulib/memmem.c: Updated.
2924 * gnulib/stdint.in.h: Updated.
2925 * gnulib/str-two-way.h: Updated.
2926 * gnulib/string.in.h: Updated.
2927 * gnulib/wchar.in.h: Updated.
2928
2929 * gnulib/extra/link-warning.h: Removed.
2930 * gnulib/extra/c++defs.h: New.
2931 * gnulib/extra/warn-on-use.h: New.
2932 * gnulib/extra/arg-nonnull.h: Updated.
2933
2934 * gnulib/m4/extensions.m4: Updated.
2935 * gnulib/m4/gnulib-cache.m4: Updated.
2936 * gnulib/m4/gnulib-common.m4: Updated.
2937 * gnulib/m4/gnulib-comp.m4: Updated.
2938 * gnulib/m4/gnulib-tool.m4: Updated.
2939 * gnulib/m4/include_next.m4: Updated.
2940 * gnulib/m4/longlong.m4: Updated.
2941 * gnulib/m4/memchr.m4: Updated.
2942 * gnulib/m4/memmem.m4: Updated.
2943 * gnulib/m4/stdint.m4: Updated.
2944 * gnulib/m4/string_h.m4: Updated.
2945 * gnulib/m4/memcmp.m4: Removed.
2946 * gnulib/m4/onceonly_2_57.m4: Removed.
2947 * gnulib/m4/00gnulib.m4: New.
2948 * gnulib/m4/mmap-anon.m4: New.
2949 * gnulib/m4/multiarch.m4: New.
2950 * gnulib/m4/onceonly.m4: New.
2951 * gnulib/m4/stddef_h.m4: New.
2952 * gnulib/m4/warn-on-use.m4: New.
2953 * gnulib/m4/wchar.m4: Removed.
2954 * gnulib/m4/wchar_h.m4: New.
2955 * gnulib/m4/wchar_t.m4: New.
2956 * gnulib/m4/wint_t.m4: New.
2957
2958 * aclocal.m4: Regenerate.
2959 * config.in: Likewise.
2960 * configure: Likewise.
2961 * gnulib/Makefile.in: Likewise.
2962
2963 2010-05-21 Tom Tromey <tromey@redhat.com>
2964
2965 * dwarf2loc.c (extract_bits_primitive): New function.
2966 (extract_bits): Likewise.
2967 (insert_bits): Likewise.
2968 (copy_bitwise): Likewise.
2969 (read_pieced_value): Do all operations in bits.
2970 (write_pieced_value): Likewise.
2971 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
2972 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
2973 Always use xrealloc to resize piece array.
2974 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
2975 <DW_OP_piece>: Update.
2976 <DW_OP_bit_piece>: New case.
2977
2978 2010-05-21 Tom Tromey <tromey@redhat.com>
2979
2980 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
2981 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
2982 * dwarf2expr.h (enum dwarf_value_location)
2983 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
2984 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
2985 (add_piece): Handle empty piece.
2986 (execute_stack_op) <DW_OP_piece>: Handle
2987 DWARF_VALUE_OPTIMIZED_OUT.
2988
2989 2010-05-21 Tom Tromey <tromey@redhat.com>
2990
2991 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
2992 evaluate_subexp, not evaluate_subexp_with_coercion.
2993
2994 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2995
2996 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2997 attribute.
2998
2999 2010-05-21 Tom Tromey <tromey@redhat.com>
3000
3001 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3002 offset.
3003 (write_pieced_value): Likewise.
3004
3005 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3006
3007 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3008 and DW_TAG_volatile_type.
3009 (new_symbol): Likewise.
3010
3011 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3012
3013 * p-valprint.c (pascal_val_print): Call get_array_bounds
3014 to obtain the number of elements in an array.
3015
3016 2010-05-19 Doug Evans <dje@google.com>
3017
3018 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3019
3020 * python.c (source_python_script): Add comment.
3021 (source_python_script_for_objfile): Remove unnecessary call to
3022 gdbpy_print_stack.
3023
3024 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3025 Sergio Durigan Junior <sergiodj@redhat.com>
3026
3027 Code cleanup.
3028 * parse.c (exp_iterate): Use operator_length wrapper function.
3029
3030 2010-05-18 Michael Snyder <msnyder@vmware.com>
3031
3032 * ada-lang.c: White space.
3033 * ada-typeprint.c: White space.
3034 * ada-valprint.c: White space.
3035 * addrmap.c: White space.
3036 * auxv.c: White space.
3037 * ax-gdb.c: White space.
3038
3039 2010-05-18 Hui Zhu <teawater@gmail.com>
3040
3041 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
3042 for oldfp.
3043 (inferior_call_waitpid): Move make_cleanup out of check.
3044 Check the return of waitpid.
3045 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
3046
3047 2010-05-17 Michael Snyder <msnyder@vmware.com>
3048
3049 * tui/tui.c: White space.
3050 * tui/tui-data.c: White space.
3051 * tui/tui-disasm.c: White space.
3052 * tui/tui-file.c: White space.
3053 * tui/tui-interp.c: White space.
3054 * tui/tui-main.c: White space.
3055 * tui/tui-out.c: White space.
3056 * tui/tui-regs.c: White space.
3057 * tui/tui-source.c: White space.
3058 * tui/tui-stack.c: White space.
3059 * tui/tui-win.c: White space.
3060 * tui/tui-winsource.c: White space.
3061
3062 * procfs.c: White space.
3063
3064 * python/py-auto-load.c: White space.
3065 * python/py-block.c: White space.
3066 * python/py-breakpoint.c: White space.
3067 * python/py-cmd.c: White space.
3068 * python/py-function.c: White space.
3069 * python/py-lazy-string.c: White space.
3070 * python/py-objfile.c: White space.
3071 * python/py-param.c: White space.
3072 * python/py-prettyprint.c: White space.
3073 * python/py-progspace.c: White space.
3074 * python/py-symtab.c: White space.
3075 * python/python.c: White space.
3076 * python/py-type.c: White space.
3077 * python/py-utils.c: White space.
3078 * python/py-value.c: White space.
3079
3080 * mi/mi-cmd-break.c: White space.
3081 * mi/mi-cmd-env.c: White space.
3082 * mi/mi-cmds.c: White space.
3083 * mi/mi-cmd-stack.c: White space.
3084 * mi/mi-cmd-var.c: White space.
3085 * mi/mi-console.c: White space.
3086 * mi/mi-getopt.c: White space.
3087 * mi/mi-interp.c: White space.
3088 * mi/mi-main.c: White space.
3089 * mi/mi-out.c: White space.
3090 * mi/mi-parse.c: White space.
3091
3092 * cli/cli-cmds.c: White space.
3093 * cli/cli-decode.c: White space.
3094 * cli/cli-dump.c: White space.
3095 * cli/cli-interp.c: White space.
3096 * cli/cli-logging.c: White space.
3097 * cli/cli-script.c: White space.
3098 * cli/cli-setshow.c: White space.
3099
3100 * valarith.c: White space.
3101 * valops.c: White space.
3102 * valprint.c: White space.
3103 * value.c: White space.
3104 * varobj.c: White space.
3105 * xcoffread.c: White space.
3106 * xml-support.c: White space.
3107 * xml-tdesc.c: White space.
3108
3109 2010-05-17 Andreas Schwab <schwab@redhat.com>
3110
3111 PR gdb/11092
3112 * c-lang.c (c_printstr): Compute real length of NUL terminated
3113 string at first.
3114
3115 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3116
3117 * parse.c (parse_exp_in_context): When block is not NULL, use
3118 its associated language to parse the expression instead of
3119 the current_language.
3120
3121 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3122
3123 * jv-lang.c (java_lookup_class): Remove commented out code.
3124 (type_from_class): Likewise.
3125 (java_op_print_tab): Remove commented-out elements.
3126
3127 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3128
3129 * ada-lang.c (to_fixed_range_type): The the raw index type as
3130 argument instead of the raw type name. Remove orig_type parameter.
3131 Update calls throughout.
3132 (ada_fixup_array_indexes_type): New function.
3133 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
3134 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
3135 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
3136 Remove name parameter.
3137 (print_array_type): Add call to ada_fixup_array_indexes_type.
3138 Update calls to print_range_type.
3139 (ada_print_type): Update calls to print_range_type.
3140
3141 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3142
3143 * dwarf2read.c (read_set_type): Set type length if
3144 DW_AT_byte_size attribute is present.
3145
3146 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3147
3148 * p-valprint.c (pascal_val_print): Handle set type if range limits
3149 are undefined but size is known.
3150
3151 2010-05-17 Pedro Alves <pedro@codesourcery.com>
3152
3153 * procfs.c: Reformat.
3154
3155 2010-05-16 Michael Snyder <msnyder@vmware.com>
3156
3157 * target.c: White space.
3158 * target-descriptions.c: White space.
3159 * target-memory.c: White space.
3160 * thread.c: White space.
3161 * top.c: White space.
3162 * tracepoint.c: White space.
3163 * trad-frame.c: White space.
3164 * tramp-frame.c: White space.
3165 * ui-file.c: White space.
3166 * ui-out.c: White space.
3167 * user-regs.c: White space.
3168 * utils.c: White space.
3169
3170 * scm-exp.c: White space.
3171 * scm-lang.c: White space.
3172 * scm-valprint.c: White space.
3173 * sentinel-frame.c: White space.
3174 * ser-base.c: White space.
3175 * ser-go32.c: White space.
3176 * serial.c: White space.
3177 * ser-mingw.c: White space.
3178 * ser-pipe.c: White space.
3179 * ser-tcp.c: White space.
3180 * ser-unix.c: White space.
3181 * solib.c: White space.
3182 * solib-darwin.c: White space.
3183 * solib-frv.c: White space.
3184 * solib-irix.c: White space.
3185 * solib-osf.c: White space.
3186 * solib-pa64.c: White space.
3187 * solib-som.c: White space.
3188 * solib-spu.c: White space.
3189 * solib-svr4.c: White space.
3190 * solib-target.c: White space.
3191 * source.c: White space.
3192 * stabsread.c: White space.
3193 * stack.c: White space.
3194 * std-regs.c: White space.
3195 * symfile.c: White space.
3196 * symmisc.c: White space.
3197 * symtab.c: White space.
3198
3199 2010-05-16 Michael Snyder <msnyder@vmware.com>
3200
3201 * source.c (_initialize_source): Add "rev" as an abbreviation
3202 for the "reverse-search" command.
3203
3204 2010-05-16 Michael Snyder <msnyder@vmware.com>
3205
3206 * record.c: White space.
3207 * regcache.c: White space.
3208 * reggroups.c: White space.
3209 * remote-fileio.c: White space.
3210 * remote-m32r-sdi.c: White space.
3211 * remote-mips.c: White space.
3212 * remote-sim.c: White space.
3213 * remote.c: White space.
3214 (process_g_packet): Remove orphan braces.
3215
3216 2010-05-15 Michael Snyder <msnyder@vmware.com>
3217
3218 * parse.c: White space.
3219 * p-lang.c: White space.
3220 * posix-hdep.c: White space.
3221 * printcmd.c: White space.
3222 * progspace.c: White space.
3223 * prologue-value.c: White space.
3224 * psymtab.c: White space.
3225 * p-typeprint.c: White space.
3226 * p-valprint.c: White space.
3227
3228 * objc-lang.c: White space.
3229 * objfiles.c: White space.
3230 * observer.c: White space.
3231 * osabi.c: White space.
3232 * osdata.c: White space.
3233
3234 * m2-lang.c: White space.
3235 * m2-valprint.c: White space.
3236 * macrocmd.c: White space.
3237 * macroexp.c: White space.
3238 * macroscope.c: White space.
3239 * macrotab.c: White space.
3240 * main.c: White space.
3241 * maint.c: White space.
3242 * mdebugread.c: White space.
3243 * memattr.c: White space.
3244 * minsyms.c: White space.
3245 * monitor.c: White space.
3246
3247 2010-05-14 Michael Snyder <msnyder@vmware.com>
3248
3249 * jv-lang.c: White space.
3250 * jv-typeprint.c: White space.
3251 * jv-valprint.c: White space.
3252 * language.c: White space.
3253 * libunwind-frame.c: White space.
3254 * linespec.c: White space.
3255 * linux-nat.c: White space.
3256 * linux-record.c: White space.
3257 * linux-thread-db.c: White space.
3258
3259 * infcall.c: White space.
3260 * inf-child.c: White space.
3261 * infcmd.c: White space.
3262 * inferior.c: White space.
3263 * inf-loop.c: White space.
3264 * inflow.c: White space.
3265 * inline-frame.c: White space.
3266 * interps.c: White space.
3267
3268 * gcore.c: White space.
3269 * gdb.c: White space.
3270 * gdbtypes.c: White space.
3271 * gnu-nat.c: White space.
3272 * gnu-v2-abi.c: White space.
3273 * gnu-v3-abi.c: White space.
3274
3275 * findcmd.c: White space.
3276 * findvar.c: White space.
3277 * fork-child.c: White space.
3278 * frame-base.c: White space.
3279 * frame.c: White space.
3280 * frame-unwind.c: White space.
3281 * f-valprint.c: White space.
3282
3283 * elfread.c: White space.
3284 * environ.c: White space.
3285 * eval.c: White space.
3286 * event-loop.c: White space.
3287 * event-top.c: White space.
3288 * exceptions.c: White space.
3289 * exec.c: White space.
3290 * expprint.c: White space.
3291
3292 * dbxread.c: White space.
3293 * dcache.c: White space.
3294 * disasm.c: White space.
3295 * doublest.c: White space.
3296 * dsrec.c: White space.
3297 * dummy-frame.c: White space.
3298 * dwarf2expr.c: White space.
3299 * dwarf2-frame.c: White space.
3300 * dwarf2loc.c: White space.
3301 * dwarf2read.c: White space.
3302
3303 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
3304
3305 PR python/11482
3306
3307 * python/py-value.c (valpy_hash): New function.
3308 (value_object_type): Register valpy_hash.
3309
3310 2010-05-14 Hui Zhu <teawater@gmail.com>
3311 Michael Snyder <msnyder@vmware.com>
3312
3313 * linux-fork.c (gdbthread.h): New include.
3314 (fork_info): Add parent_ptid.
3315 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
3316 functions.
3317 (delete_checkpoint_command): Call inferior_call_waitpid.
3318 (checkpoint_command): Set parent_ptid.
3319
3320 2010-05-13 Michael Snyder <msnyder@vmware.com>
3321
3322 * dictionary.c: Re-indent to GNU coding standard.
3323
3324 * charset.c: White space.
3325 * c-lang.c: White space.
3326 * cli-out.c: White space.
3327 * coffread.c: White space.
3328 * complaints.c: White space.
3329 * completer.c: White space.
3330 * corefile.c: White space.
3331 * corelow.c: White space.
3332 * cp-abi.c: White space.
3333 * cp-namespace.c: White space.
3334 * cp-support.c: White space.
3335 * cp-valprint.c: White space.
3336 * c-typeprint.c: White space.
3337 * c-valprint.c: White space.
3338 * blockframe.c: White space.
3339 * breakpoint.c: White space.
3340 * buildsym.c: White space.
3341 * blockframe.c: White space.
3342 * bcache.c: White space.
3343 * gdbarch.sh: White space, add blank lines.
3344 * arch-utils.c: Ditto.
3345 * gdbarch.c: Regenerate.
3346 * frame.c: White space, add blank lines.
3347 * stack.c: White space, add blank lines.
3348 (initialize_stack): Remove long-dead code.
3349
3350 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3351
3352 Code cleanup.
3353 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
3354 (locexpr_read_variable, loclist_read_variable): Update the callers.
3355
3356 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3357
3358 Code cleanup.
3359 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
3360 Remove check of NULL returned by tag_type_to_type.
3361 (die_containing_type): Remove variable type. Remove type_die variable
3362 initialization. Remove check of NULL returned by tag_type_to_type.
3363
3364 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3365
3366 PR exp/11530.
3367 * gdbtypes.c (lookup_struct_elt_type): Also lookup
3368 names of unnamed structures or unions.
3369
3370 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3371
3372 * procfs.c (proc_watchpoint_address): New function.
3373 (procfs_stopped_by_watchpoint): Remove useless check after
3374 find_procinfo_or_die call.
3375 (procfs_stopped_data_address): New function.
3376 (procfs_use_watchpoints): Register new watchpoint related function.
3377
3378 2010-05-11 Tom Tromey <tromey@redhat.com>
3379
3380 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
3381
3382 2010-05-10 Michael Snyder <msnyder@vmware.com>
3383
3384 * utils.c: White space cleanup.
3385
3386 2010-05-10 Tom Tromey <tromey@redhat.com>
3387
3388 * eval.c (ptrmath_type_p): Add 'lang' argument.
3389 (evaluate_subexp_standard): Update.
3390 (evaluate_subexp_with_coercion): Update.
3391 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
3392
3393 2010-05-10 Michael Snyder <msnyder@vmware.com>
3394
3395 * utils.c (do_fclose_cleanup) Restore local variable.
3396
3397 2010-05-09 Doug Evans <dje@google.com>
3398
3399 * record.c (init_record_core_ops): Rename record_core to record-core.
3400
3401 2010-05-08 Joel Brobecker <brobecker@adacore.com>
3402
3403 Implement task switching on pa-hpux.
3404 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
3405 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
3406
3407 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3408
3409 * valops.c (find_overload_match): Add missing i18n markup.
3410
3411 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3412
3413 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
3414
3415 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3416
3417 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
3418 list for the obconcat call.
3419 * mdebugread.c (parse_symbol): Likewise.
3420 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
3421 Likewise.
3422 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
3423 New variable ap. Remove variables len and val.
3424 * symfile.h (obconcat): Likewise for the prototype.
3425
3426 2010-05-07 Michael Snyder <msnyder@vmware.com>
3427
3428 * python/python.c (execute_gdb_command): Remove unused variables.
3429 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
3430 * python/py-breakpoint.c (gdbpy_breakpoint_created):
3431 Remove unused variable.
3432 * python/py-cmd.c (cmdpy_function): Remove unused variable.
3433 (cmdpy_completer): Remove unused variable.
3434 * python/py-frame.c (frapy_find_sal): Remove unused variable.
3435 * python/py-function.c (fnpy_call): Remove unused variable.
3436 * python/py-objfile.c (objfile_to_objfile_object):
3437 Remove unused variable.
3438 * python/py-param.c (parmpy_init): Remove unused variable.
3439 * python/py-prettyprint.c (apply_varobj_pretty_printer):
3440 Remove unused variable.
3441 (gdbpy_default_visualizer): Remove unused variable.
3442 * python/py-progspace.c (pspace_to_pspace_object):
3443 Remove unused variable.
3444 * python/py-symtab.c (symtab_and_line_to_sal_object):
3445 Remove unused variable.
3446 * python/py-type.c (typy_template_argument):
3447 Remove unused variable.
3448 * python/py-value.c (valpy_string): Remove unused variable.
3449 (convert_value_from_python): Remove unused variables.
3450
3451 2010-05-07 Michael Snyder <msnyder@vmware.com>
3452
3453 * valops.c (value_cast_pointers): Restore unused variable 'type1',
3454 and use it to compute variable 't1'.
3455
3456 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3457
3458 * ada-lang.c (assign_aggregate): Remove unused variable.
3459
3460 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
3461
3462 PR C++/7943:
3463 * valops.c (find_overload_match): Handle fsym == NULL case.
3464 Add int no_adl argument.
3465 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
3466 when appropriate.
3467 Add int no_adl argument.
3468 (find_oload_champ_namespace): Add int no_adl argument.
3469 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
3470 expression.
3471 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
3472 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
3473 Evaluate arguments and use them to perform ADL lookup.
3474 Pass no_adl argument to find_overload_match.
3475 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
3476 * cp-support.h: Added prototype for
3477 make_symbol_overload_list_namespace.
3478 * cp-support.c (make_symbol_overload_list_namespace): New function.
3479 (make_symbol_overload_list_adl_namespace): New function.
3480 (make_symbol_overload_list_adl): New function.
3481 (make_symbol_overload_list_using): Moved code to add function to
3482 overload set to make_symbol_overload_list_namespace.
3483 * c-exp.y: create UNKNOWN_CPP_NAME token.
3484 Add parse rule for ADL functions.
3485 (classify_name): Recognize an UNKNOWN_CPP_NAME.
3486
3487 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3488
3489 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
3490 sentinel.
3491
3492 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3493
3494 Implement task switching on solaris targets.
3495 * sol-thread.c (thread_db_find_thread_from_tid)
3496 (sol_get_ada_task_ptid): New functions.
3497 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
3498
3499 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3500
3501 * remote.c (remote_query_supported_append): Use reconcat.
3502 (remote_query_supported): Install a cleanup. Use reconcat.
3503
3504 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3505
3506 * gdbarch.sh (qsupported): Delete.
3507 * gdbarch.h, gdbarch.c: Regenerate.
3508 * remote.c (remote_query_supported): Remove use of
3509 gdbarch_qsupported.
3510
3511 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3512
3513 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
3514 function.
3515
3516 2010-05-06 Michael Snyder <msnyder@vmware.com>
3517
3518 * xml-support.c (xinclude_start_include): Delete unused variable.
3519 (xml_process_xincludes): Delete unused variable.
3520 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
3521 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
3522 (tdesc_find_arch_register): Delete unused variable.
3523 (tdesc_use_registers): Delete unused variable.
3524 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
3525 * inferior.c (print_inferior): Delete unused variable.
3526 * record.c (record_open_1): Delete unused variable.
3527 (record_restore): Delete unused variable.
3528 (cmd_record_save): Delete unused variable.
3529 * gcore.c (derive_heap_segment): Delete unused variable.
3530 (objfile_find_memory_regions): Use unused variable.
3531 * jit.c (jit_inferior_init): Delete unused variable.
3532 * progspace.c (clone_program_space): Delete unused variable.
3533 (pspace_empty_p): Delete unused variable.
3534
3535 * frame-unwind.c (frame_unwind_find_by_frame):
3536 Delete unused variable.
3537 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
3538 * cp-support.c (mangled_name_to_comp): Delete unused variable.
3539 (method_name_from_physname): Delete unused variable.
3540 (cp_func_name): Delete unused variable.
3541 (cp_validate_operator): Delete unused variable.
3542 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
3543 Delete unused variable.
3544 * trad-frame.c (trad_frame_get_prev_register):
3545 Delete unused variable.
3546 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
3547
3548 * serial.c (serial_for_fd): Delete unused variable.
3549 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
3550 * top.c (execute_command): Delete unused variable.
3551 (init_main): Delete unused variable.
3552 * utils.c (do_fclose_cleanup): Delete unused variable.
3553 (do_all_inferior_continuations): Delete unused variable.
3554 (initialize_utils): Delete unused variable.
3555 (internal_problem_mode): Delete unused global.
3556 * frame.c (get_prev_frame): Delete unused global.
3557 (get_frame_locals_address): Delete unused global.
3558 (get_frame_args_address): Delete unused global.
3559
3560 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
3561 (pascal_type_print_varspec_prefix): Delete unused variable.
3562 * f-typeprint.c (f_type_print_base): Delete unused variable.
3563 (f_type_print_varspec_suffix): Delete unused variable.
3564 * m2-typeprint.c (m2_print_type): Delete unused variable.
3565 (m2_long_set): Delete unused variable.
3566 * ada-valprint.c (ada_val_print_1): Delete unused variable.
3567 * d-valprint.c (dynamic_array_type): Delete unused variable.
3568 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
3569 Delete unused variable.
3570 (f77_create_arrayprint_offset_tbl): Delete unused variable.
3571 * m2-valprint.c (m2_val_print): Delete unused variable.
3572
3573 * ui-out.c (ui_out_field_int): Delete unused variable.
3574 (ui_out_field_fmt_int): Delete unused variable.
3575 * varobj.c (varobj_list_children): Delete unused variable.
3576 (varobj_set_value): Delete unused variable.
3577 (install_new_value_visualizer): Delete unused variable.
3578 (varobj_set_visualizer): Delete unused variable.
3579 (varobj_update): Delete unused variable.
3580 (varobj_editable_p): Delete unused variable.
3581 (c_value_of_root): Delete unused variable.
3582 (cplus_describe_child): Delete unused variable.
3583
3584 * ada-lang.c (add_defn_to_vec): Delete unused variable.
3585 (decode_constrained_packed_array_type): Delete unused variable.
3586 (add_defn_to_vec): Delete unused variable.
3587 (symbol_completion_match): Delete unused variable.
3588 (value_tag_from_contents_and_address): Delete unused variable.
3589 (ada_evaluate_subexp): Delete unused variable.
3590 * c-lang.c (classify_type): Delete unused variable.
3591 * f-lang.c (f_printstr): Delete unused variable.
3592 * objc-lang.c (objc_printstr): Delete unused variable.
3593 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
3594 * jv-lang.c (type_from_class): ifdef unused variable.
3595 (java_class_name_from_physname): Delete unused variable.
3596 * m2-lang.c (m2_printstr): Delete unused variable.
3597
3598 * objfiles.c (objfile_relocate): Delete unused variable.
3599 * maint.c (_initialize_maint_cmds): Delete unused variable.
3600 * demangle.c (_initialize_demangler): Delete unused variable.
3601 * corefile.c (reopen_exec_file): Delete unused variable.
3602 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
3603 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
3604
3605 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
3606 * memattr.c (mem_delete): Delete unused variable.
3607 (invalidate_target_mem_regions): Delete unused variable.
3608 * mem-break.c (default_memory_insert_breakpoint):
3609 Delete unused variable.
3610 * target.c (target_get_osdata): Delete unused variable.
3611 * parse.c (length_of_subexp): Delete unused variable.
3612 (prefixify_subexp): Delete unused variable.
3613 (exp_iterate): Delete unused variable.
3614 * reverse.c (delete_bookmark_command): Delete unused variable.
3615
3616 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
3617 * macroexp.c (gather_arguments): Delete unused variable.
3618 (substitute_args): Delete unused variable.
3619 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
3620 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
3621 (_initialize_gdbarch): Delete unused variable.
3622 * gdbarch.c, gdbarch.h: Regenerate.
3623 * arch-utils.c (initialize_current_architecture):
3624 Delete unused variable.
3625 (_initialize_gdbarch_utils): Delete unused variable.
3626 * gdbtypes.c (make_cv_type): Delete unused variable.
3627 (make_type_with_address_space): Delete unused variable.
3628
3629 * linespec.c (decode_compound): Delete unused variable.
3630 * dictionary.c (iterator_next_hashed): Delete unused variable.
3631 * infcall.c (call_function_by_hand): Delete unused variable.
3632 * infcmd.c (step_1): Delete unused variable.
3633 (registers_info): Delete unused variable.
3634 (attach_command): Delete unused variable.
3635 * infrun.c (follow_exec): Delete unused variable.
3636 (handle_step_into_function_backwards): Delete unused variable.
3637 (_initialize_infrun): Delete unused variable.
3638 * stack.c (parse_frame_specification_1): Delete unused variable.
3639 (frame_info): Delete unused variable.
3640 (backtrace_command_1): Delete unused variable.
3641 (catch_info): Delete unused variable.
3642
3643 * eval.c (evaluate_subexp_standard): Delete unused variable.
3644 * valops.c (value_cast_pointers): Delete unused variable.
3645 (value_dynamic_cast): Delete unused variable.
3646 (value_array): Delete unused variable.
3647 (find_overload_match): Delete unused variable.
3648 * valarith.c (value_subscript): Delete unused variable.
3649 (value_binop): Delete unused variable.
3650 * valprint.c (_initialize_valprint): Delete unused variable.
3651 * printcmd.c (print_command_1): Delete unused variable.
3652 (address_info): Delete unused variable.
3653 (printf_command): Delete unused variable.
3654
3655 * auxv.c (target_auxv_search): Delete unused variable.
3656 * blockframe.c (get_frame_block): Delete unused variable.
3657 * regcache.c (regcache_cpy): Delete unused variable.
3658 (regcache_cpy_no_passthrough): Delete unused variable.
3659 * charset.c (wchar_iterate): Delete unused variable.
3660 (find_charset_names): Delete unused variable.
3661 (_initialize_charset): Delete unused variable.
3662 * disasm.c (do_mixed_source_and_assembly):
3663 Delete unused variable.
3664 * source.c (set_default_source_symtab_and_line):
3665 Delete unused variable.
3666 (set_substitute_path_command): Delete unused variable.
3667 * value.c (preserve_values): Delete unused variable.
3668 (value_from_double): Delete unused variable.
3669
3670 2010-05-05 Michael Snyder <msnyder@vmware.com>
3671
3672 * psymtab.c (lookup_partial_symbol): Delete unused variable.
3673 (find_last_source_symtab_from_partial): Delete unused variable.
3674 * symfile.c (place_section): Delete unused variable.
3675 (default_symfile_offsets): Delete unused variable.
3676 (get_debug_link_info): Delete unused variable.
3677 (find_separate_debug_file_by_debuglink): Delete unused variable.
3678 (add_symbol_file_command): Delete unused variable.
3679 (symfile_find_segment_sections): Delete unused variable.
3680 * symmisc.c (free_symtab): Delete unused variable.
3681 (dump_symtab_1): Delete unused variable.
3682 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
3683 (find_pc_sect_symtab): Delete unused variable.
3684 (skip_prologue_using_lineinfo): Delete unused variable.
3685 (sources_info): Delete unused variable.
3686 (completion_list_add_name): Delete unused variable.
3687 (expand_line_sal): Delete unused variable.
3688
3689 * breakpoint.c (validate_commands_for_breakpoint):
3690 Delete unused variables.
3691 (insert_catchpoint): Delete unused variable.
3692 (update_watchpoint): Delete unused variable.
3693 (insert_bp_location): Delete unused variable.
3694 (insert_breakpoint_locations): Delete unused variable.
3695 (remove_breakpoint_1): Delete unused variable.
3696 (software_breakpoint_inserted_here_p): Delete unused variable.
3697 (watchpoints_triggered): Delete unused variable.
3698 (bpstat_check_watchpoint): Delete unused variable.
3699 (bpstat_stop_status): Delete unused variable.
3700 (print_one_breakpoint_location): Delete unused variable.
3701 (allocate_bp_location): Delete unused variable.
3702 (create_breakpoint): Delete unused variable.
3703 (watch_command_1): Delete unused variable.
3704 (catch_exception_command_1): Delete unused variable.
3705 (catch_ada_exception_command): Delete unused variable.
3706 (delete_breakpoint): Delete unused variable.
3707 (breakpoint_re_set_one): Delete unused variable.
3708 (do_enable_breakpoint): Delete unused variable.
3709
3710 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3711
3712 * amd64-tdep.c: Include disasm.h.
3713 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
3714 (amd64_insn_length): Moved to disasm.c and renamed.
3715 (fixup_riprel): Adjust.
3716 * disasm.c (do_ui_file_delete): New.
3717 (gdb_insn_length): New.
3718 (gdb_buffered_insn_length_fprintf)
3719 (gdb_buffered_insn_length_init_dis)
3720 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
3721 renamed.
3722 * disasm.h (gdb_insn_length): Declare.
3723 (gdb_buffered_insn_length): Declare.
3724
3725 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3726
3727 * remote.c (clear_threads_parsing_context): New.
3728 (remote_threads_info): Delete unused null_cleanup. Install a
3729 cleanup to clear the threads_parsing_context in case parsing
3730 throws.
3731
3732 2010-05-05 Michael Snyder <msnyder@vmware.com>
3733
3734 * c-exp.y (parse_string_or_char): Delete unused variable.
3735 (c_lex): Delete unused variable.
3736 * cp-name-parser.y (cpname_lex): Delete unused variable.
3737 * ada-exp.y (find_primitive_type): Delete unused variable.
3738 (write_var_or_type): Delete unused variable.
3739 * jv-exp.y (java_parse): Delete unused variable.
3740 (push_expression_name): Delete unused variable.
3741 * p-exp.y (pascal_lex): Delete unused variable.
3742
3743 2010-05-05 Pedro Alves <pedro@codesourcery.com>
3744
3745 * remote.c (remote_threads_info): Really revert previous previous
3746 change.
3747
3748 2010-05-05 Michael Snyder <msnyder@vmware.com>
3749
3750 * elfread.c (elf_symtab_read): Delete unused variable.
3751 (find_separate_debug_file_by_buildid): Delete unused variables.
3752 (elf_symfile_read): Delete unused variable.
3753
3754 * coffread.c (coff_symfile_read): Delete unused variables.
3755
3756 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
3757 (read_pe_exported_syms): Delete unused variable.
3758
3759 * stabsread.c (define_symbol): Delete unused variable.
3760
3761 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
3762 (process_psymtab_comp_unit): Delete unused variable.
3763 (dwarf2_build_psymtabs_hard): Delete unused variable.
3764 (load_partial_comp_unit): Delete unused variable.
3765 (create_all_comp_units): Delete unused variable.
3766 (scan_partial_symbols): Delete unused variable.
3767 (add_partial_symbol): Delete unused variable.
3768 (add_partial_namespace): Delete unused variable.
3769 (add_partial_enumeration): Delete unused variable.
3770 (load_full_comp_unit): Delete unused variable.
3771 (process_full_comp_unit): Delete unused variable.
3772 (read_file_scope): Delete unused variable.
3773 (read_type_unit_scope): Delete unused variable.
3774 (process_structure_scope): Delete unused variable.
3775 (process_enumeration_scope): Delete unused variable.
3776 (read_tag_ptr_to_member_type): Delete unused variable.
3777 (read_typedef): Delete unused variable.
3778 (read_partial_die): Delete unused variable.
3779 (decode_locdesc): Delete unused variable.
3780 (zeroed_partial_die): Delete unused global variable.
3781
3782 * tui/tui-interp.c (_initialize_tui_interp):
3783 Delete unused variable.
3784 * tui/tui-regs.c tui_display_registers_from):
3785 Delete unused variable.
3786 (tui_check_register_values): Delete unused variable.
3787 (tui_register_format): Delete unused variable.
3788 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
3789 * tui/tui-windata.c (tui_display_data_from_line):
3790 Delete unused variables.
3791 (tui_vertical_data_scroll): Delete unused variables.
3792
3793 2010-05-05 Michael Snyder <msnyder@vmware.com>
3794
3795 * remote.c (remote_threads_info): Revert questionable part of
3796 the previous change.
3797
3798 2010-05-05 Michael Snyder <msnyder@vmware.com>
3799
3800 * mi/mi-out.c (mi_table_begin): Delete unused variable.
3801 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
3802 (mi_cmd_var_list_children): Delete unused variable.
3803 (varobj_update_one): Delete unused variable.
3804 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
3805 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
3806 Delete unused variable.
3807 (mi_cmd_stack_list_variables): Delete unused variable.
3808 (list_args_or_locals): Delete unused variable.
3809 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
3810 Delete unused variables.
3811 (mi_cmd_file_list_exec_source_files): Delete unused variable.
3812 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
3813 Delete unused variable.
3814 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
3815 (mi_cmd_interpreter_exec): Delete unused variable.
3816 (mi_on_normal_stop): Delete unused variable.
3817 * mi/mi-main.c (run_one_inferior): Delete unused variable.
3818 (print_one_inferior): Delete unused variables.
3819 (mi_execute_command): Delete unused variable.
3820 (mi_cmd_execute): Delete unused variable.
3821 (timestamp): Delete unused variable.
3822
3823 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
3824 (restore_binary_file): Delete unused variable.
3825 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
3826 * cli/cli-script.c (define_command): Delete unused variables.
3827 (recurse_read_control_structure): Delete unused variable.
3828 (script_from_file): Delete unused variable.
3829 * cli/cli-cmds.c (complete_command): Delete unused variable.
3830 (disassemble_command): Delete unused variable.
3831
3832 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
3833 * tracepoint.c (delete_trace_variable_command):
3834 Delete unused variables.
3835 (encode_actions_1): Delete unused variables.
3836 (start_tracing): Delete unused variable.
3837 (trace_status_mi): Delete unused variable.
3838 (tfind_1): Delete unused variable.
3839 (trace_find_pc_command): Delete unused variable.
3840 (trace_find_line_command): Delete unused variables.
3841 (trace_find_range_command): Delete unused variables.
3842 (trace_find_outside_command): Delete unused variables.
3843 (parse_tracepoint_definition): Delete unused variables.
3844 (tfile_fetch_registers): Delete unused variable.
3845
3846 * dcache.c (dcache_init): Delete unused variable.
3847 (dcache_info): Delete unused variable.
3848
3849 * remote.c (remote_threads_info): Delete unused variable.
3850 (process_stop_reply) :Delete unused variable.
3851 (remote_get_trace_status): Delete unused variables.
3852
3853 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
3854 (thread_from_lwp): Delete unused variable.
3855 (enable_thread_event_reporting): Delete unused variable.
3856 (check_for_thread_db): Delete unused variables.
3857 (thread_db_find_new_threads_2): Delete unused variable.
3858
3859 * linux-fork.c (info_checkpoints_command): Delete unused variables.
3860 (checkpoint_command): Delete unused variable.
3861 (linux_fork_context): Delete unused variables.
3862
3863 * linux-nat.c (linux_parent_pid): Delete unused global variable.
3864 (linux_tracefork_child): Delete unused variable.
3865 (linux_child_follow_fork): Delete unused variable.
3866 (linux_nat_detach): Delete unused variable.
3867 (linux_handle_extended_wait): Delete unused variable.
3868 (linux_nat_has_pending_sigint): Delete unused variable.
3869 (linux_nat_find_memory_regions): Delete unused variable.
3870 (linux_nat_make_corefile_notes): Delete unused variables.
3871 (linux_nat_info_proc_cmd): Delete unused variable.
3872 (linux_proc_pending_signals): Delete unused variable.
3873 (linux_nat_stop_lwp): Delete unused variables.
3874 (_initialize_linux_nat): Delete unused variable.
3875
3876 * ser-pipe.c (pipe_ops): Delete unused global variable.
3877
3878 * linux-record.c (record_linux_system_call):
3879 Delete unused variables.
3880
3881 * corelow.c (core_xfer_partial): Delete unused variables.
3882
3883 * solib-svr4.c (find_program_interpreter): Delete unused variable.
3884 (svr4_solib_create_inferior_hook): Add ifdef around
3885 conditionally-used variable declarations.
3886
3887 * solib.c (solib_find): Delete unused variable.
3888 (free_so_symbols): Delete unused variable.
3889 (info_sharedlibrary_command): Delete unused variable.
3890 (reload_shared_libraries_1): Delete unused variable.
3891 (_initialize_solib): Delete unused variable.
3892
3893 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
3894 (i386_collect_xstateregset): Delete unused variable.
3895 * i387-tdep.c (i387_print_float_info): Delete unused variable.
3896
3897 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
3898 Delete unused variable 'type'.
3899
3900 2010-05-05 Joel Brobecker <brobecker@adacore.com>
3901
3902 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
3903 ada-lang.c: Remove comment mentioning these macros.
3904 * m2-exp.y: Delete commented out code.
3905
3906 2010-05-05 Joel Brobecker <brobecker@adacore.com>
3907
3908 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
3909 for array types.
3910 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
3911
3912 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
3913
3914 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
3915 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
3916 ATTRIBUTE_UNUSED.
3917 (cleanup_kernel_helper_return): Likewise.
3918 * arm-tdep.c (copy_unmodified): Likewise.
3919 (copy_preload): Likewise.
3920 (copy_copro_load_store): Likewise.
3921 (cleanup_branch): Likewise.
3922 (copy_b_bl_blx): Likewise.
3923 (copy_bx_blx_reg): Likewise.
3924 (copy_alu_imm): Likewise.
3925 (copy_alu_reg): Likewise.
3926 (copy_alu_shifted_reg): Likewise.
3927 (cleanup_load): Likewise.
3928 (cleanup_store): Likewise.
3929 (cleanup_block_load_pc): Likewise.
3930 (cleanup_svc): Likewise.
3931 (copy_undef): Likewise.
3932 (copy_unpred): Likewise.
3933 * remote.c (register_remote_support_xml): Likewise.
3934
3935 2010-05-05 Hui Zhu <teawater@gmail.com>
3936
3937 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
3938
3939 2010-05-04 Mark Kettenis <kettenis@gnu.org>
3940
3941 * remote.c (register_remote_support_xml)
3942 (remote_query_supported_append, remote_query_supported): Add cast
3943 to NULL used as sentinel.
3944 * tracepoint.c (tvariables_info_1): Likewise.
3945 * utils.c (add_internal_problem_command): Likewise.
3946
3947 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3948
3949 * dwarf2loc.c (read_pieced_value, write_pieced_value,
3950 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
3951 registers gracefully.
3952
3953 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3954
3955 * exec.c (print_section_info): Display entry point without arch
3956 specific parts.
3957
3958 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
3959
3960 PR exp/11349.
3961 * printcmd.c (x_command): Only dereference once implicitly for
3962 TYPE_CODE_REF.
3963
3964 2010-05-03 Doug Evans <dje@google.com>
3965
3966 * event-loop.c (gdb_timer): Delete unused global.
3967 (create_timer): Update.
3968
3969 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3970
3971 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
3972 CURRENT->DECLARATION case.
3973 * cp-support.h (struct using_direct): Provide extended comment.
3974
3975 2010-05-03 Mark Kettenis <kettenis@gnu.org>
3976
3977 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
3978 HPPABSD_SIZEOF_GREGS.
3979 (HPPAOBSD_SIZEOF_FPREGS): New define.
3980 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
3981 (hppaobsd_supply_fpregset): New function.
3982 (hppaobsd_gregset): Renamed from hppabsd_gregset.
3983 (hppaobsd_fpregset): New variable.
3984 (hppaobsd_regset_from_core_section): Handle floating-point registers.
3985 (_initialize_hppabsd_tdep): Remove spurious blank line.
3986
3987 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3988
3989 PR pascal/11349.
3990 * p-valprint.c (pascal_value_print): Always dereference a value with
3991 type code TYPE_CODE_REF.
3992
3993 2010-05-03 Pedro Alves <pedro@codesourcery.com>
3994
3995 * remote.c (remote_notice_signals): New.
3996 (remote_start_remote): In non-stop mode, update the remote end on
3997 which signals it can silently pass.
3998 (init_remote_ops): Install remote_notice_signals.
3999
4000 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4001
4002 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4003 * command.h (error_no_arg): ... here. Remove NORETURN, change
4004 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4005 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4006 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4007 (internal_verror, internal_error, nomem): Remove NORETURN, change
4008 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4009 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4010 (throw_vfatal, throw_error): Remove NORETURN.
4011 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4012 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4013 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4014 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4015 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4016 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4017 NORETURN.
4018 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4019 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4020 ATTRIBUTE_NORETURN.
4021 * target.c (tcomplain): Likewise.
4022 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4023 ATTRIBUTE_NORETURN.
4024 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4025 (internal_error, perror_with_name, nomem): Remove NORETURN.
4026 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4027 ATTRIBUTE_NORETURN.
4028
4029 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4030
4031 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4032 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
4033 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
4034 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4035 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
4036 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4037 * complaints.h (complaint, internal_complaint): Likewise.
4038 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
4039 (ATTR_FORMAT): Remove.
4040 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
4041 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
4042 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
4043 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
4044 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
4045 (internal_error, internal_vwarning, internal_warning, warning)
4046 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4047 * disasm.c (fprintf_disasm): Likewise.
4048 * exceptions.c (throw_it): Likewise.
4049 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
4050 (throw_error): Likewise.
4051 * language.h (type_error, range_error): Likewise.
4052 * linespec.c (cplusplus_error): Likewise.
4053 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
4054 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
4055 * monitor.c (monitor_debug): Likewise.
4056 * parser-defs.h (parser_fprintf): Likewise.
4057 * serial.h (serial_printf): Likewise.
4058 * tui/tui-hooks.c (tui_query_hook): Likewise.
4059 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
4060 (uo_message): Likewise.
4061 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
4062 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
4063 Likewise.
4064 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
4065
4066 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4067
4068 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
4069 (cli_table_header, cli_begin, cli_end, cli_field_int)
4070 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
4071 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
4072 Delete forward declarations.
4073 (cli_ui_out_impl): Move below the callbacks.
4074 (_initialize_cli_out): Delete.
4075
4076 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4077
4078 * README: Use consistent `GDB' and `GDBserver' spellings.
4079
4080 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4081
4082 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
4083
4084 2010-05-01 Pedro Alves <pedro@codesourcery.com>
4085
4086 * infrun.c (prepare_for_detach): In non-stop, context switch to
4087 the thread that got the event before handling the event.
4088
4089 2010-04-30 Tom Tromey <tromey@redhat.com>
4090
4091 * symtab.c (symbol_set_names): Fix typo.
4092
4093 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4094
4095 * python/py-param.c (parm_constants): Avoid ARI warning
4096 by adding ARI comment.
4097 (parmpy_init): Likewise.
4098
4099 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4100
4101 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
4102 and created type for re-use.
4103
4104 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4105
4106 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
4107
4108 2010-04-29 Doug Evans <dje@google.com>
4109
4110 * ser-base.h (reschedule): Delete prototype.
4111 * ser-base.c (reschedule): Make static.
4112
4113 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4114
4115 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
4116 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
4117 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
4118 EABI.
4119 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
4120 use.
4121
4122 2010-04-29 Pedro Alves <pedro@codesourcery.com>
4123
4124 PR gdb/11557
4125
4126 * regcache.c (registers_changed): Rename to ...
4127 (registers_changed_ptid): ... this, and only delete register cache
4128 entries matching the ptid filter argument.
4129 (registers_changed): Reimplement on top of registers_changed_ptid.
4130 * regcache.h (registers_changed_ptid): Declare.
4131 * target.c (target_resume): Flush register caches.
4132
4133 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
4134 Tom Tromey <tromey@redhat.com>
4135 Thiago Jung Bauermann <bauerman@br.ibm.com>
4136
4137 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
4138 (SUBDIR_PYTHON_SRCS): Likewise.
4139 (py-parameter.o): New rule.
4140 * python/py-parameter.c: New file.
4141 * python/python-internal.h (gdbpy_initialize_parameter)
4142 (gdbpy_parameter, gdbpy_parameter_value)
4143 (gdbpy_parse_command_name): Declare.
4144 * python/py-cmd.c (parse_command_name): Rename to
4145 gdbpy_parse_command_name.
4146 (gdbpy_parse_command_name): Accept a starting list parameter and
4147 use over cmdlist.
4148 (cmdpy_init): Use gdbpy_parse_command_name.
4149 * python/python.c (parameter_to_python): Rename to
4150 gdbpy_parameter_to_python. Accept enum var_types and value.
4151 (gdbpy_parameter): Use gdbpy_parameter_value.
4152 (_initialize_python): Call gdbpy_initialize_parameters.
4153
4154 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4155
4156 * MAINTAINERS: Add myself for write after approval privileges.
4157
4158 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
4159
4160 D language support.
4161 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
4162 (COMMON_OBS): Add d-lang.o d-valprint.o.
4163 (HFILES_NO_SRCDIR): Add d-lang.h.
4164 * NEWS: Mention D language support.
4165 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
4166 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
4167 * d-lang.c: New file.
4168 * d-lang.h: New file.
4169 * d-valprint.c: New file.
4170 * defs.h (enum language): Add language_d.
4171 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
4172 * language.c (binop_result_type, integral_type, character_type)
4173 (string_type, boolean_type, structured_type): Add language_d.
4174 * symfile.c (init_filename_language_table): Add language_d.
4175 * symtab.c: Include d-lang.h.
4176 (symbol_init_language_specific, symbol_find_demangled_name)
4177 (symbol_natural_name, lookup_symbol_in_language)
4178 (symbol_demangled_name, symbol_matches_domain): Add language_d.
4179
4180 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4181
4182 * solib-svr4.c (solib_svr4_r_map): Expand function description.
4183
4184 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4185
4186 * symfile.c (init_filename_language_table): Register .dg files
4187 with language_ada.
4188
4189 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4190
4191 * gdbtypes.h (struct main_type): Expand comment about target_type
4192 field.
4193
4194 2010-04-27 Pedro Alves <pedro@codesourcery.com>
4195 Tristan Gingold <gingold@adacore.com>
4196
4197 * symfile.c (reread_symbols): Also search for file in libraries.
4198 Update comment.
4199
4200 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4201
4202 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
4203 in terms of configuration.
4204
4205 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4206
4207 * objfiles.c: Include solist.h.
4208 (free_all_objfiles): New variable so. Check stale solist objfiles.
4209 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
4210 and no_shared_libraries.
4211
4212 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4213
4214 ARI warning fix.
4215 * python/py-auto-load.c (source_section_scripts): Remove trailing
4216 new-line in i18n string.
4217
4218 2010-04-26 Doug Evans <dje@google.com>
4219
4220 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
4221
4222 2010-04-26 Tom Tromey <tromey@redhat.com>
4223
4224 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
4225 command list.
4226
4227 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4228
4229 Removal of config/i386/nm-i386sol2.h native configuration file.
4230 * config/i386/nm-i386sol2.h: Remove file.
4231 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
4232 * config/i386/sol2-64.mh: Idem.
4233 * config/djgpp/fnchange.lst: Remove reference to that file.
4234 * Makefile.in (HFILES_NO_SRCDIR): Idem.
4235
4236 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4237
4238 PR breakpoints/11531.
4239 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
4240 macro definition and related comment.
4241 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
4242 (resume): Remove code and comment related to this macro.
4243
4244 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4245
4246 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
4247 Fix whitespace.
4248
4249 2010-04-24 Pedro Alves <pedro@codesourcery.com>
4250
4251 * defs.h: Adjust comment.
4252 * filesystem.h, filesystem.c: New files.
4253 * Makefile.in (SFILES): Add filesystem.c.
4254 (COMMON_OBS): Add filesystem.o.
4255 * solib.c (solib_find): Handle DOS-based filesystems. Handle
4256 different target and host path flavours.
4257 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4258 has_dos_based_file_system on the gdbarch.
4259 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
4260 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
4261 * i386-tdep.c (i386_go32_init_abi): Ditto.
4262 * gdbarch.sh (has_dos_based_file_system): New.
4263 * gdbarch.h, gdbarch.c: Regenerate.
4264 * NEWS: Mention improved support for remote targets with DOS-based
4265 filesystems. Mention new `set/show target-file-system-kind'
4266 commands.
4267
4268 2010-04-23 Stan Shebs <stan@codesourcery.com>
4269
4270 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
4271 comments.
4272 (struct agent_reqs): Remove.
4273 (ax_reg_mask): Declare.
4274 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
4275 (free_agent_expr): Free reg_mask.
4276 (ax_print): Add scope and register mask info.
4277 (ax_reqs): Remove agent_reqs argument, use agent expression
4278 fields, and move part of register mask computation to...
4279 (ax_reg_mask): New function.
4280 * ax-gdb.c (gen_trace_static_fields): Call it.
4281 (gen_traced_pop): Ditto.
4282 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
4283 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
4284 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
4285 (gen_eval_for_expr): Ditto, and require an rvalue.
4286 (agent_command): Call ax_reqs.
4287 (agent_eval_command): Ditto.
4288 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
4289 (validate_action_line): Ditto.
4290 (collect_symbol): Ditto.
4291 (encode_actions_1): Ditto.
4292
4293 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4294 Paul Pluzhnikov <ppluzhnikov@google.com>
4295 Jan Kratochvil <jan.kratochvil@redhat.com>
4296
4297 Fix deadlock on looped list of loaded shared objects.
4298 * solib-svr4.c (LM_PREV): New function.
4299 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
4300 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
4301 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
4302 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
4303
4304 2010-04-23 Doug Evans <dje@google.com>
4305
4306 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4307 python.
4308 * configure: Regenerate.
4309 * main.c: #include "python/python.h".
4310 (captured_main): Defer loading auto-loaded scripts until after
4311 local_gdbinit has been sourced.
4312 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
4313 (load_auto_scripts_for_objfile): New function.
4314 (auto_load_new_objfile): Call it.
4315 * python/python.h (gdbpy_global_auto_load): Declare.
4316 (load_auto_scripts_for_objfile): Declare.
4317
4318 Add support for auto-loading scripts from .debug_gdb_scripts section.
4319 * NEWS: Add entry for .debug_gdb_scripts.
4320 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
4321 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
4322 (py-auto-load.o): New rule.
4323 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
4324 * cli/cli-cmds.h (find_and_open_script): Update prototype.
4325 * python/py-auto-load.c: New file.
4326 * python/python-internal.h: #include <stdio.h>.
4327 (set_python_list, show_python_list): Declare.
4328 (gdbpy_initialize_auto_load): Declare.
4329 (source_python_script_for_objfile): Declare.
4330 * python/python.c: Remove #include of observer.h.
4331 (gdbpy_auto_load): Moved to py-auto-load.c.
4332 (GDBPY_AUTO_FILENAME): Ditto.
4333 (gdbpy_new_objfile): Delete.
4334 (source_python_script_for_objfile): New function.
4335 (set_python_list, show_python_list): Make externally visible.
4336 (_initialize_python): Move "auto-load" command to py-auto-load.c
4337 and observer_attach_new_objfile to py-auto-load.c.
4338
4339 2010-04-23 Jerome Guitton <guitton@adacore.com>
4340
4341 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
4342 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
4343 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
4344 New constants.
4345 (alpha_heuristic_analyze_probing_loop): New function.
4346 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
4347 and handle cases when a stack probe loop is generated.
4348 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
4349 (alpha_mdebug_max_frame_size_exceeded): New function.
4350 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
4351 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
4352 Return 0 when the maximum debuggable frame size has been exceeded.
4353
4354 2010-04-23 Joel Brobecker <brobecker@adacore.com>
4355
4356 Fix ARI warning.
4357 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
4358
4359 2010-04-20 Chris Moller <cmoller@redhat.com>
4360
4361 PR 10179
4362
4363 * symtab.c (rbreak_command): Added code to include a filename
4364 specification in the rbreak argument.
4365 * NEWS: Added a brief description of filename-qualified rbreak.
4366
4367 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4368
4369 Fix crashes on dangling display expressions.
4370 * ada-lang.c (ada_operator_check): New function.
4371 (ada_exp_descriptor): Fill-in the field operator_check.
4372 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
4373 * jv-lang.c (exp_descriptor_java): Likewise.
4374 * m2-lang.c (exp_descriptor_modula2): Likewise.
4375 * scm-lang.c (exp_descriptor_scm): Likewise.
4376 * parse.c (exp_descriptor_standard): Likewise.
4377 (operator_check_standard): New function.
4378 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
4379 * parser-defs.h (struct exp_descriptor): New field operator_check.
4380 (operator_check_standard, exp_uses_objfile): New declarations.
4381 * printcmd.c: Remove the inclusion of solib.h.
4382 (display_uses_solib_p): Remove the function.
4383 (clear_dangling_display_expressions): Call lookup_objfile_from_block
4384 and exp_uses_objfile instead of display_uses_solib_p.
4385 * solist.h (struct so_list) <objfile>: New comment.
4386 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
4387 * symtab.h (lookup_objfile_from_block): New declaration.
4388 (struct general_symbol_info) <obj_section>: Extend the comment.
4389
4390 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4391 Thiago Jung Bauermann <bauerman@br.ibm.com>
4392
4393 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
4394 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
4395 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
4396 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
4397 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
4398 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
4399 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
4400 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
4401 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
4402 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
4403 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
4404 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
4405 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
4406 Define, in case <ptrace.h> doesn't provide it.
4407 (booke_debug_info): New variable.
4408 (max_slots_number): Ditto.
4409 (hw_break_tuple): New struct.
4410 (thread_points): Ditto.
4411 (ppc_threads): New variable.
4412 (PPC_DEBUG_CURRENT_VERSION): New define.
4413 (have_ptrace_new_debug_booke): New function.
4414 (ppc_linux_check_watch_resources): Renamed to ...
4415 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
4416 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
4417 (booke_cmp_hw_point): New function.
4418 (booke_find_thread_points_by_tid): Ditto.
4419 (booke_insert_point): Ditto.
4420 (booke_remove_point): Ditto.
4421 (ppc_linux_insert_hw_breakpoint): Ditto.
4422 (ppc_linux_remove_hw_breakpoint): Ditto.
4423 (get_trigger_type): Ditto.
4424 (ppc_linux_insert_watchpoint): Handle BookE processors.
4425 (ppc_linux_remove_watchpoint): Ditto.
4426 (ppc_linux_new_thread): Ditto.
4427 (ppc_linux_thread_exit): New function..
4428 (ppc_linux_stopped_data_address): Handle BookE processors.
4429 (ppc_linux_watchpoint_addr_within_range): Ditto.
4430 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
4431 to_remove_hw_breakpoint fields of the target operations struct.
4432 Add observe for the thread_exit event.
4433
4434 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4435
4436 * i386-linux-nat.c (regmap): Removed.
4437 (fetch_register): Replace regmap with
4438 i386_linux_gregset_reg_offset.
4439 (store_register): Likewise.
4440 (supply_gregset): Likewise.
4441 (fill_gregset): Likewise.
4442
4443 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
4444 global.
4445
4446 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
4447
4448 2010-04-22 Chris Moller <cmoller@redhat.com>
4449
4450 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4451 method of popping recursion-detection stack with a method based on
4452 obstack_object_size(). (Similar to the PR9167 patch below, but for
4453 the static array obstack rather than the static member obstack.)
4454
4455 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4456
4457 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
4458 (_initialize_amd64_linux_nat): Replace
4459 amd64_linux_gregset64_reg_offset with
4460 amd64_linux_gregset_reg_offset.
4461
4462 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
4463 global.
4464
4465 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
4466
4467 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4468
4469 PR stabs/11479.
4470 * stabsread.c (set_length_in_type_chain): New function.
4471 (read_struct_type): Call set_length_in_type_chain function.
4472 (read_enum_type): Idem.
4473
4474 2010-04-21 Stan Shebs <stan@codesourcery.com>
4475 Nathan Sidwell <nathan@codesourcery.com>
4476
4477 * tracepoint.c (trace_save): Open in binary mode.
4478
4479 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4480
4481 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4482 fields.
4483 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
4484 builtin_char32 fields.
4485 * printcmd.c (decode_format): Set char size to '\0'
4486 for strings unless explicit size is given.
4487 (print_formatted): Correct calculation of NEXT_ADDRESS
4488 for 16 or 32 bit strings.
4489 (do_examine): Do not force byte size for strings.
4490 Use builtin_char16 and builtin_char32 types to display
4491 16 or 32 bit-wide strings.
4492 (x_command): Set LAST_SIZE to 'b' for string type.
4493
4494 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
4495
4496 PR corefiles/11523
4497 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4498 XCR0 first.
4499
4500 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
4501 there is no .reg-xstate section.
4502 (i386_linux_core_read_description): Check XCR0 first.
4503
4504 2010-04-21 Mike Frysinger <vapier@gentoo.org>
4505
4506 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
4507 for len <= 8.
4508
4509 2010-04-21 Chris Moller <cmoller@redhat.com>
4510
4511 PR 9167
4512 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4513 method of popping recursion-detection stack with a method based on
4514 obstack_object_size().
4515
4516 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4517
4518 PR pascal/11492.
4519 * p-valprint.c (pascal_val_print): Fix default printing of integer
4520 arrays.
4521
4522 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4523
4524 Fix compilation warning on gcc-4.1.2.
4525 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
4526 local variable`pc' to zero.
4527
4528 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4529
4530 Implement thread support with core files on alpha-tru64.
4531 * dec-thread.c (dec_thread_find_new_threads): New function,
4532 extracted from resync_thread_list.
4533 (resync_thread_list): Add OPS parameter. Replace extracted-out
4534 code by call to dec_thread_find_new_threads.
4535 (dec_thread_wait): Update call to resync_thread_list.
4536 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
4537
4538 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4539
4540 * ada-lang.c (value_pointer): New function.
4541 (make_array_descriptor): Call value_pointer to convert addresses to
4542 pointers.
4543
4544 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4545
4546 * rs6000-aix-tdep.c: #include exceptions.h.
4547 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
4548 while reading the memory at ADDR, then ADDR cannot be a function
4549 descriptor.
4550
4551 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4552
4553 * ada-typeprint.c (ada_print_typedef): New function.
4554 * ada-lang.h (ada_print_typedef): Add declaration.
4555 * ada-lang.c (ada_language_defn): set la_print_typdef field
4556 to ada_print_typedef.
4557
4558 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4559
4560 * procfs.c (procfs_address_to_host_pointer): Only define when used.
4561
4562 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4563
4564 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
4565 (iterate_over_mappings): Adjust function profile. Add declaration.
4566 (insert_dbx_link_bpt_in_region, info_mappings_callback):
4567 Adjust accordingly.
4568
4569 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4570
4571 * procfs.c (solib_mappings_callback): Move function up to avoid
4572 a compiler warning.
4573
4574 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4575
4576 * procfs.c (find_signalled_thread, find_stop_signal): Move
4577 these functions down to define them only when used.
4578
4579 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4580
4581 * valprint.c (common_val_print): Fix the value before extracting
4582 its contents.
4583 * ada-lang.c (ada_to_fixed_value): Make this function extern.
4584 * ada-lang.h (ada_to_fixed_value): New function declaration.
4585 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
4586 to avoid code duplication and fix a bug in the handling of
4587 fixed types contents.
4588
4589 2010-04-20 Tom Tromey <tromey@redhat.com>
4590
4591 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
4592 (read_partial_die): Likewise.
4593 (dwarf_attr_name): Likewise.
4594
4595 2010-04-20 Chris Moller <cmoller@redhat.com>
4596
4597 PR 10867
4598
4599 * cp-valprint.c (global): Adding new static array recursion
4600 detection obstack.
4601 (cp_print_value_fields, cp_print_static_field): Added new static
4602 array recursion detection code.
4603
4604 2010-04-20 Mark Kettenis <kettenis@gnu.org>
4605
4606 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
4607 general-purpose register set should be 68 instead of 144.
4608 (i386_linux_sse_regset_sections): Likewise.
4609 (i386_linux_avx_regset_sections): Likewise.
4610
4611 2010-04-20 Stan Shebs <stan@codesourcery.com>
4612 Nathan Sidwell <nathan@codesourcery.com>
4613
4614 * dwarf2loc.c (struct axs_var_loc): New struct.
4615 (dwarf2_tracepoint_var_loc): New function.
4616 (dwarf2_tracepoint_var_access): New function.
4617 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
4618 with DW_OP_piece.
4619 (locexpr_describe_location_piece): New function.
4620 (locexpr_describe_location_1): New function.
4621 (locexpr_describe_location): Call it, update signature.
4622 (loclist_describe_location): Rewrite to loop over locations,
4623 update signature.
4624 * symtab.h (struct symbol_computed_ops): Add address to
4625 describe_location arguments, return void.
4626 * printcmd.c (address_info): Get context PC, pass to computed
4627 location description.
4628 * tracepoint.c (scope_info): Ditto.
4629 * ax-gdb.c (trace_kludge): Export.
4630
4631 2010-04-20 Tom Tromey <tromey@redhat.com>
4632
4633 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
4634 (struct dwarf2_cie) <segment_size>: New field.
4635 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
4636 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
4637 DW_FORM_exprloc.
4638 (read_attribute_value): Handle DW_FORM_flag_present,
4639 DW_FORM_sec_offset, DW_FORM_exprloc.
4640 (dump_die_shallow): Likewise.
4641 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
4642 (dwarf2_const_value): Handle DW_FORM_exprloc.
4643 (attr_form_is_block): Likewise.
4644 (struct line_header) <maximum_ops_per_instruction>: New field.
4645 (dwarf_decode_line_header): Set new field.
4646 (dwarf_decode_lines): Handle new field.
4647
4648 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4649
4650 * f-exp.y: Add new production to recognize the `logical*8' type.
4651 (LOGICAL_S8_KEYWORD): New token.
4652 * f-lang.c (enum f_primitive_types)
4653 <f_primitive_type_logical_s8>: New field.
4654 (f_language_arch_info): Handling `logical*8' type.
4655 (build_fortran_types): Building `logical*8' type.
4656 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
4657
4658 2010-04-19 Doug Evans <dje@google.com>
4659
4660 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
4661 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
4662 (pipe_close): Ditto.
4663
4664 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4665
4666 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
4667
4668 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4669
4670 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
4671 type to void function.
4672
4673 2010-04-19 Stan Shebs <stan@codesourcery.com>
4674 Vladimir Prus <vladimir@codesourcery.com>
4675
4676 * tracepoint.c (tfind_1): Add missing newline, report exit from
4677 tfind mode as such.
4678 * target.c (update_current_target): Make default
4679 to_trace_find return -1.
4680
4681 2010-04-19 Mike Frysinger <vapier@gentoo.org>
4682
4683 * objc-lang.c (find_methods): Move symname check up.
4684
4685 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4686
4687 * ada-lang.c (print_recreate_exception)
4688 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
4689 not "catch unhandled".
4690
4691 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4692
4693 PR breakpoints/8554.
4694
4695 Implement `save-breakpoints'.
4696
4697 * breakpoint.c (save_cmdlist): New.
4698 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
4699 to save_cmdlist.
4700 (print_recreate_catch_fork): New.
4701 (catch_fork_breakpoint_ops): Install it.
4702 (print_recreate_catch_vfork): New.
4703 (catch_vfork_breakpoint_ops): Install it.
4704 (print_recreate_catch_syscall): New.
4705 (catch_syscall_breakpoint_ops): Install it.
4706 (print_recreate_catch_exec): New.
4707 (catch_exec_breakpoint_ops): Install it.
4708 (print_recreate_exception_catchpoint): New.
4709 (gnu_v3_exception_catchpoint_ops): Install it.
4710 (save_breakpoints): New, based on tracepoint_save_command, but
4711 handle all breakpoint types.
4712 (save_breakpoints_command): New.
4713 (tracepoint_save_command): Rename to...
4714 (save_tracepoints_command): ... this, and reimplement using
4715 save_breakpoints.
4716 (save_command): New.
4717 (_initialize_breakpoints): Install the "save" command prefix.
4718 Install the "save breakpoints" command. Make "save-tracepoints" a
4719 deprecated alias for "save tracepoints".
4720 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
4721 * ada-lang.c (print_recreate_exception): New.
4722 (print_recreate_catch_exception): New.
4723 (catch_exception_breakpoint_ops): Install it.
4724 (print_recreate_catch_exception_unhandled): New.
4725 (catch_exception_unhandled_breakpoint_ops): Install it.
4726 (print_recreate_catch_assert): New.
4727 (catch_assert_breakpoint_ops): Install it.
4728
4729 * NEWS: Mention the new `save breakpoints' command. Mention the
4730 new `save tracepoints' alias and that `save-tracepoints' is now
4731 deprecated.
4732
4733 2010-04-18 Pedro Alves <pedro@codesourcery.com>
4734
4735 PR tui/9217
4736
4737 * tui/tui-out.c: Include cli-out.h.
4738 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4739 (tui_begin, tui_end, tui_field_int, tui_field_skip)
4740 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
4741 (tui_message, tui_wrap_hint, tui_flush): Delete forward
4742 declarations.
4743 (struct ui_out_data): Rename to...
4744 (struct tui_ui_out_data): ... this. Remove `stream' and
4745 `suppress_output' fields, and inherit cli_ui_out_data.
4746 (tui_out_data): New typedef.
4747 (tui_ui_out_impl): Don't initialize fields staticaly.
4748 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4749 (tui_begin, tui_end): Delete.
4750 (tui_field_int): Adjust to delegate most work to the base type.
4751 (tui_field_skip): Delete.
4752 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
4753 delegate most work to the base type.
4754 (tui_spaces): Delete.
4755 (tui_text): Adjust to delegate most work to the base type.
4756 (tui_message): Delete.
4757 (tui_wrap_hint): Delete.
4758 (tui_flush): Delete.
4759 (out_field_fmt): Delete.
4760 (field_separator): Delete.
4761 (tui_out_new): Adjust to initialize the base type.
4762 (_initialize_tui_out): Initialize tui_ui_out_impl.
4763 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
4764 cli_ui_out_data.
4765 (cli_out_data): Adjust.
4766 (cli_ui_out_impl): Make extern.
4767 (cli_table_header, cli_field_int, cli_field_skip): Use
4768 uo_field_string instead of cli_field_string.
4769 (cli_redirect): Adjust to use cli_out_data.
4770 (cli_out_data_ctor): New.
4771 (cli_out_new): Use it.
4772 * cli-out.h (struct ui_file): Remove forward declaration.
4773 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
4774 (cli_ui_out_impl): Declare.
4775 (cli_out_data_ctor): Declare.
4776 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
4777 (uo_field_string): No longer static.
4778 (ui_out_data): Change return type to void pointer.
4779 (ui_out_new): Change `data' parameter type to void pointer.
4780 * ui-out.h (struct ui_out_data): Don't forward declare.
4781 (ui_out_data): Change return type to void pointer.
4782 (ui_out_new): Change `data' parameter type to void pointer.
4783 (uo_field_string): Declare.
4784
4785 2010-04-17 Pedro Alves <pedro@codesourcery.com>
4786
4787 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
4788 instead of always false.
4789
4790 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
4791
4792 PR corefiles/11511
4793 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
4794 orig_rax.
4795
4796 2010-04-17 Pedro Alves <pedro@codesourcery.com>
4797
4798 * breakpoint.c (watchpoints_triggered): Use
4799 is_hardware_watchpoint.
4800 (watchpoints_triggered): Ditto.
4801 (bpstat_check_location): Use is_watchpoint and
4802 is_hardware_watchpoint.
4803 (bpstat_check_watchpoint): Use is_watchpoint and
4804 is_hardware_watchpoint.
4805 (bpstat_stop_status): Fix comment.
4806 (user_settable_breakpoint): Use is_watchpoint.
4807 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
4808 (disable_watchpoints_before_interactive_call_start): Use
4809 is_watchpoint.
4810 (enable_watchpoints_after_interactive_call_stop): Use
4811 is_watchpoint.
4812 (clear_command): Use is_watchpoint.
4813 (do_enable_breakpoint): Use is_watchpoint.
4814
4815 2010-04-16 Mike Frysinger <vapier@gentoo.org>
4816
4817 * solib-frv.c (enable_break1_done): Delete.
4818 (enable_break2): Do not check enable_break1_done. Move the
4819 enable_break2_done setting and call to
4820 remove_solib_event_breakpoints() to the end. Return without
4821 warning when the contents of _dl_debug_addr are 0.
4822 (enable_break): Do not set enable_break1_done.
4823 (frv_clear_solib): Likewise.
4824
4825 2010-04-16 Kevin Buettner <kevinb@redhat.com>
4826
4827 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
4828 instead of an error if no PLT entry is found. Return a
4829 potentially useful result.
4830 (m32c_m16c_pointer_to_address): Add code to search for function
4831 address when no .plt entry is found.
4832
4833 2010-04-16 Stan Shebs <stan@codesourcery.com>
4834
4835 * tracepoint.c (trace_variable_command): Run a cleanup.
4836
4837 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4838
4839 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
4840
4841 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4842
4843 Support for Windows OS Thread Information Block.
4844 * NEWS: Document new feature.
4845 * remote.c (PACKET_qGetTIBAddr): New enum element.
4846 (remote_get_tib_address): New function.
4847 (init_remote_ops): Set to_get_tib_address field
4848 to remote_get_tib_address.
4849 (_initialize_remote): Add add_packet_config_cmd
4850 for PACKET_qGetTIBAddr.
4851 * target.c (update_current_target): Set default value for
4852 new to_get_tib_address field.
4853 * target.h (target_ops): New field to_get_tib_address.
4854 (target_get_tib_address): New macro.
4855 * windows-nat.c (thread_info): Add thread_local_base field.
4856 (windows_add_thread): Add tlb argument of type 'void *'.
4857 (fake_create_process): Adapt windows_add_thread call.
4858 (get_windows_debug_event): Idem.
4859 (windows_get_tib_address): New function.
4860 (init_windows_ops): Set to_get_tib_address field
4861 to remote_get_tib_address.
4862 (_initialize_windows_nat): Replace info_w32_cmdlist
4863 initialization by a call to init_w32_command_list.
4864 (info_w32_command, info_w32_cmdlist): Removed from here...
4865 to windows-tdep.c file.
4866 * windows-tdep.h (info_w32_cmdlist): Declare.
4867 (init_w32_command_list): New external function
4868 declaration.
4869 * windows-tdep.c: Add several headers.
4870 (info_w32_cmdlist): to here, made global.
4871 (thread_information_32): New struct.
4872 (thread_information_64): New struct.
4873 (TIB_NAME): New char array.
4874 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
4875 (maint_display_all_tib): New static variable.
4876 (windows_get_tlb_type): New function.
4877 (tlb_value_read, tlb_value_write): New functions.
4878 (tlb_value_funcs): New static struct.
4879 (tlb_make_value): New function.
4880 (display_one_tib): New function.
4881 (display_tib): New function.
4882 (show_maint_show_all_tib):New function.
4883 (info_w32_command): Moved from windows-nat.c.
4884 (init_w32_command_list): New function.
4885 (_initialize_windows_tdep): New function.
4886 New "maint set/show show-all-tib" command
4887 New "$_tlb" internal variable.
4888
4889 2010-04-16 Joel Brobecker <brobecker@adacore.com>
4890
4891 * tui/tui-regs.c (tui_display_register): Add comment about
4892 a couple of casts.
4893 * tui/tui-stack.c (tui_show_locator_content): Ditto.
4894
4895 2010-04-15 Stan Shebs <stan@codesourcery.com>
4896
4897 * frame.c: Include tracepoint.h.
4898 (get_current_frame): Allow a trace frame to be an alternate source
4899 of stack frame data.
4900 * tracepoint.c (tfind_1): Don't try to get current stack frame if
4901 it won't succeed.
4902
4903 2010-04-15 Pedro Alves <pedro@codesourcery.com>
4904
4905 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
4906 flags.
4907 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
4908
4909 2010-04-15 Doug Evans <dje@google.com>
4910
4911 * NEWS: Add entry for python program space support.
4912 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
4913 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
4914 (py-progspace.o): New rule.
4915 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
4916 function.
4917 (find_pretty_printer_from_progspace): New function.
4918 (find_pretty_printer_from_gdb): New function.
4919 (find_pretty_printer): Rewrite.
4920 * python/py-progspace.c: New file.
4921 * python/python-internal.h (program_space): Add forward decl.
4922 (pspace_to_pspace_object, pspy_get_printers): Declare.
4923 (gdbpy_initialize_pspace): Declare.
4924 * python/python.c: #include "progspace.h".
4925 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
4926 (_initialize_python): Call gdbpy_initialize_pspace.
4927 (GdbMethods): Add current_progspace, progspaces.
4928
4929 Add -s option to source command.
4930 * NEWS: Document new option.
4931 * cli/cli-cmds.c (find_and_open_script): Add function comment.
4932 Delete from_tty and cleanupp args. Split filep arg into file and
4933 full_pathp. New arg search_path.
4934 (source_script_from_stream): New function.
4935 (source_script_with_search): New function.
4936 (source_script): Rewrite.
4937 (source_command): Parse "-s" option.
4938 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
4939 * python/python.c (source_python_script): Make file arg a const char *.
4940 Don't call fclose, leave for caller.
4941 * python/python.h (source_python_script): Update.
4942
4943 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4944 Pedro Alves <pedro@codesourcery.com>
4945
4946 Avoid rereading shared libraries that haven't changed.
4947
4948 * solib.c (free_so_symbols): New function, from ...
4949 (free_so): ... here. Call it.
4950 (solib_read_symbols): Don't warn here if symbols have already been
4951 loaded.
4952 (solib_add): Warn here instead, if a pattern was specified.
4953 (reload_shared_libraries_1): New.
4954 (reload_shared_libraries): Rewrite to not fetch the library list.
4955
4956 2010-04-14 Doug Evans <dje@google.com>
4957
4958 * source.c (openp): Strip DOS drive letter if present before
4959 concatenating string to search path.
4960
4961 2010-04-14 Pedro Alves <pedro@codesourcery.com>
4962
4963 * objfiles.h (gdb_bfd_close_or_warn): Declare.
4964 * objfiles.c (gdb_bfd_close_or_warn): New.
4965 * corelow.c: Include objfiles.h
4966 (core_close): Use gdb_bfd_close_or_warn.
4967 * elfread.c (build_id_verify): Ditto.
4968 * exec.c (exec_close, exec_close_1): Ditto.
4969
4970 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4971 Pedro Alves <pedro@codesourcery.com>
4972
4973 Group errors for many missing shared libraries.
4974
4975 * solist.h (struct so_list): Remove from_tty.
4976 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
4977 (solib_map_sections): Take so_list argument. Return 0 if we
4978 failed to open a BFD. Add target sections here.
4979 (symbol_add_stub): Delete.
4980 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
4981 not from_tty copied from the so_list. Don't warn a second time
4982 for a missing library.
4983 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
4984 add to the section table here. Print out a single warning for all
4985 missing libraries.
4986 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
4987 flags.
4988
4989 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
4990
4991 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
4992 error/warning messages. Capitalize and use complete sentences.
4993 (blpy_block_syms_iternext): Likewise.
4994 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
4995 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
4996 (frame_info_to_frame_object, frapy_read_var)
4997 (gdbpy_frame_stop_reason_string): Likewise.
4998 * python/py-lazy-string.c (stpy_convert_to_value)
4999 (gdbpy_create_lazy_string_object): Likewise.
5000 * python/py-objfile.c (objfpy_set_printers): Likewise.
5001 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5002 * python/python.c (parameter_to_python): Likewise.
5003 * python/py-type.c (typy_range, typy_target): Likewise.
5004 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5005 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5006
5007
5008 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5009
5010 PR python/11381
5011
5012 * python/py-prettyprint.c (pretty_print_one_value): Test for
5013 Py_None.
5014 (print_string_repr): Test for Py_None. Set flags accordingly.
5015 Return value depending on return type.
5016 (print_children): Take a value indicating whether data was printed
5017 before this function was called. Alter output accordingly.
5018 (apply_val_pretty_printer): Capture return value from
5019 print_string_repr and pass to print_children.
5020
5021 2010-04-13 Mark Kettenis <kettenis@gnu.org>
5022
5023 PR corefiles/11481
5024 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5025 register note sections.
5026 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5027 New variables.
5028 (i386_linux_init_abi): Install list of supported register note
5029 sections that matches the target description.
5030
5031 2010-04-13 Pedro Alves <pedro@codesourcery.com>
5032
5033 * remote.c (remote_get_noisy_reply): Don't error out on empty
5034 replies.
5035 (remote_start_remote): Update and merge tracepoints and trace
5036 state variables as long as the target supports tracepoints.
5037 (remote_trace_init): Fix prototype.
5038 (remote_download_trace_state_variable): Validate reply.
5039 (remote_trace_set_readonly_regions): Fix prototype.
5040 (remote_trace_start): Fix prototype. Check for empty reply.
5041 (remote_get_trace_status): Small cleanup.
5042 (remote_trace_stop): Fix prototype. Check for empty reply.
5043 (remote_trace_find): Check for empty reply.
5044 (remote_save_trace_data): Validate reply.
5045 (remote_set_disconnected_tracing): Check for empty reply, and
5046 validate reply.
5047 (remote_set_circular_trace_buffer): Ditto.
5048
5049 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
5050
5051 Suppress unused value warning during compilation.
5052 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
5053 calls to void.
5054 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5055
5056 2010-04-12 Stan Shebs <stan@codesourcery.com>
5057
5058 * tracepoint.c (tfile_xfer_partial): Check read result.
5059
5060 2010-04-12 Mike Frysinger <vapier@gentoo.org>
5061
5062 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
5063 * remote-sim.c (gdbsim_files_info): Likewise.
5064
5065 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5066
5067 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
5068 * arm-linux-nat.c (arm_linux_vfp_register_count): New
5069 variable.
5070 (fetch_vfp_registers): New function to fetch VFP registers.
5071 (store_vfp_registers): New function to store VFP registers.
5072 (arm_linux_fetch_inferior_registers): Add support for VFP
5073 registers.
5074 (arm_linux_store_inferior_registers): Likewise.
5075 (arm_linux_read_description): Likewise.
5076 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
5077 until we need it.
5078
5079 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
5080
5081 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
5082 tdep.
5083 (amd64_collect_xstateregset): Likewise.
5084
5085 2010-04-09 Stan Shebs <stan@codesourcery.com>
5086
5087 * tracepoint.c (trace_status_mi): Report frames created.
5088
5089 * tracepoint.c (trace_dump_command): Include default-collect
5090 expressions.
5091
5092 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
5093
5094 * symtab.c (find_function_start_sal): Never return SAL pointing
5095 before function start address, even if line info is missing.
5096
5097 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5098
5099 * NEWS: Mention tracepoints support.
5100
5101 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5102
5103 * tracepoint.c (trace_status_mi): Report disconnected tracing and
5104 circular trace buffer statuses.
5105
5106 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5107
5108 * config/djgpp/fnchange.lst: Fix typo in translations for
5109 symbol-without-target_section.exp and symbol-without-target_section.c.
5110
5111 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5112
5113 * breakpoint.c (condition_command): Pass condition expression to
5114 set_breakpoint_condition stripped from breakpoint number.
5115
5116 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
5117 Thiago Jung Bauermann <bauerman@br.ibm.com>
5118 Tom Tromey <tromey@redhat.com>
5119
5120 * breakpoint.c (condition_command): Simplify. Move condition
5121 setting code to ...
5122 (set_breakpoint_condition): ... here. New function.
5123 * breakpoint.h (set_breakpoint_condition): Declare.
5124 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
5125 (SUBDIR_PYTHON_SRCS): Likewise.
5126 (py-breakpoint.o): New rule.
5127 * python/py-breakpoint.c: New file.
5128 * python/python-internal.h (gdbpy_breakpoints)
5129 (gdbpy_initialize_breakpoints): Declare.
5130 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
5131
5132 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5133
5134 * regformats/regdat.sh: Include server.h. Don't include
5135 regcache.h.
5136
5137 2010-04-08 Stan Shebs <stan@codesourcery.com>
5138 Pedro Alves <pedro@codesourcery.com>
5139
5140 * tracepoint.h (struct trace_status): New fields disconnected_tracing
5141 and circular_buffer.
5142 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
5143 * tracepoint.c (trace_status_command): Display target's status for
5144 disconnected tracing and circular buffer.
5145 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
5146 query for non-disconnected-tracing case, remove the stop_tracing
5147 call.
5148 (tfile_open): Clear disconnected and circular buffer status.
5149 (trace_save): Save disconnected and circular buffer status.
5150 (parse_trace_status): Parse disconnected and circular buffer status,
5151 also recognize disconnected as a stop reason.
5152 * remote.c (remote_set_disconnected_tracing): Only set
5153 QTDisconnected if the remote end supports disconnected tracing.
5154 Warn otherwise, if trying to enable disconnected tracing.
5155 * infcmd.c (detach_command): Update disconnect_tracing call.
5156 * cli/cli-cmds.c (quit_command): Ditto.
5157
5158 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5159
5160 * i387-tdep.c (i387_collect_xsave): Replace abort with
5161 internal_error.
5162
5163 2010-04-08 Stan Shebs <stan@codesourcery.com>
5164
5165 * breakpoint.c (default_collect_info): New function.
5166 (breakpoints_info): Call it.
5167 (maintenance_info_breakpoints): Ditto.
5168 (tracepoints_info): Ditto.
5169
5170 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5171
5172 * i387-tdep.c (i387_collect_xsave): Re-indent.
5173
5174 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5175
5176 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
5177 if HAVE_PTRACE_GETFPXREGS is defined.
5178 (i386_linux_read_description): Set have_ptrace_getfpxregs and
5179 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
5180
5181 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
5182 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
5183 if .reg-xfp section doesn't exist.
5184 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
5185
5186 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
5187
5188 * i386-tdep.c: Include "features/i386/i386-mmx.c".
5189 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
5190 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
5191 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
5192 (i386_gdbarch_init): Update comments.
5193 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
5194
5195 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
5196
5197 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
5198
5199 * features/Makefile (i386/i386-mmx-expedite): New.
5200 (i386/i386-mmx-linux-expedite): Likewise.
5201 ($(outdir)/i386/i386-mmx.dat): Likewise.
5202 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
5203
5204 * features/i386/i386-mmx-linux.c: New.
5205 * features/i386/i386-mmx-linux.xml: Likewise.
5206 * features/i386/i386-mmx.c: Likewise.
5207 * features/i386/i386-mmx.xml: Likewise.
5208 * regformats/i386/i386-mmx-linux.dat: Likewise.
5209 * regformats/i386/i386-mmx.dat: Likewise.
5210
5211 * features/Makefile (WHICH): Add i386/i386-mmx and
5212 i386/i386-mmx-linux.
5213
5214 2010-04-08 Doug Evans <dje@google.com>
5215
5216 * source.c (openp): Skip $cdir in PATH.
5217
5218 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
5219
5220 PR python/11417
5221 * python/py-lazy-string.c (stpy_convert_to_value): Check for
5222 a NULL address.
5223 (gdbpy_create_lazy_string_object): Allow strings with a NULL
5224 address and a zero length.
5225
5226 2010-04-08 Hui Zhu <teawater@gmail.com>
5227
5228 * i386-tdep.c (i386_process_record): Add support for insn
5229 rdtsc.
5230
5231 2010-04-07 Doug Evans <dje@google.com>
5232
5233 * python/python.c (source_python_script): Use ensure_python_env
5234 to prepare environment for script.
5235
5236 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5237
5238 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
5239 <sys/uio.h> and "i386-xstate.h".
5240 (PTRACE_GETREGSET): New.
5241 (PTRACE_SETREGSET): Likewise.
5242 (have_ptrace_getregset): Likewise.
5243 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
5244 registers.
5245 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
5246 registers.
5247 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
5248 (amd64_linux_store_inferior_registers): Likewise.
5249 (amd64_linux_read_description): Check and enable AVX target
5250 descriptions.
5251
5252 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
5253 and "features/i386/amd64-avx-linux.c".
5254 (amd64_linux_regset_sections): New.
5255 (amd64_linux_core_read_description): Check and enable AVX
5256 target description.
5257 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
5258 set_gdbarch_core_regset_sections.
5259 (_initialize_amd64_linux_tdep): Call
5260 initialize_tdesc_amd64_avx_linux.
5261
5262 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
5263 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
5264 (tdesc_amd64_avx_linux): New.
5265 (amd64_linux_update_xstateregset): Likewise.
5266
5267 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
5268 (amd64_ymm_names): New.
5269 (amd64_ymmh_names): Likewise.
5270 (amd64_register_name): Likewise.
5271 (amd64_supply_xstateregset): Likewise.
5272 (amd64_collect_xstateregset): Likewise.
5273 (amd64_supply_xsave): Likewise.
5274 (amd64_collect_xsave): Likewise.
5275 (AMD64_NUM_REGS): Removed.
5276 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
5277 %xmmN if AVX is available.
5278 (amd64_pseudo_register_name): Support pseudo YMM registers.
5279 (amd64_regset_from_core_section): Support .reg-xstate section.
5280 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
5281 and ymm0h_regnum. Call set_gdbarch_register_name.
5282 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
5283
5284 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
5285 AMD64_YMM15H_REGNUM.
5286 (AMD64_NUM_REGS): New.
5287 (amd64_supply_xsave): Likewise.
5288 (amd64_collect_xsave): Likewise.
5289 (amd64_register_name): Removed.
5290 (amd64_register_type): Likewise.
5291
5292 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5293
5294 * i387-tdep.c: Include "i386-xstate.h".
5295 (XSAVE_XSTATE_BV_ADDR): New.
5296 (xsave_avxh_offset): Likewise.
5297 (XSAVE_AVXH_ADDR): Likewise.
5298 (i387_supply_xsave): Likewise.
5299 (i387_collect_xsave): Likewise.
5300
5301 * i387-tdep.h (I387_NUM_YMM_REGS): New.
5302 (I387_YMM0H_REGNUM): Likewise.
5303 (I387_YMMENDH_REGNUM): Likewise.
5304 (i387_supply_xsave): Likewise.
5305 (i387_collect_xsave): Likewise.
5306
5307 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5308
5309 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5310 <sys/uio.h> and "i386-xstate.h".
5311 (PTRACE_GETREGSET): New.
5312 (PTRACE_SETREGSET): Likewise.
5313 (fetch_xstateregs): Likewise.
5314 (store_xstateregs): Likewise.
5315 (GETXSTATEREGS_SUPPLIES): Likewise.
5316 (regmap): Include 8 upper YMM registers.
5317 (i386_linux_fetch_inferior_registers): Support XSAVE extended
5318 state.
5319 (i386_linux_store_inferior_registers): Likewise.
5320 (i386_linux_read_description): Check and enable AVX target
5321 descriptions.
5322
5323 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
5324 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
5325 (i386_linux_regset_sections): Add ".reg-xstate".
5326 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
5327 (i386_linux_core_read_xcr0): New.
5328 (i386_linux_core_read_description): Check and enable AVX target
5329 description.
5330 (i386_linux_init_abi): Set xsave_xcr0_offset.
5331 (_initialize_i386_linux_tdep): Call
5332 initialize_tdesc_i386_avx_linux.
5333
5334 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
5335 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
5336 (i386_linux_core_read_xcr0): New.
5337 (tdesc_i386_avx_linux): Likewise.
5338 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
5339
5340 * i386-tdep.c: Include "i386-xstate.h" and
5341 "features/i386/i386-avx.c".
5342 (i386_ymm_names): New.
5343 (i386_ymmh_names): Likewise.
5344 (i386_ymmh_regnum_p): Likewise.
5345 (i386_ymm_regnum_p): Likewise.
5346 (i386_xmm_regnum_p): Likewise.
5347 (i386_register_name): Likewise.
5348 (i386_ymm_type): Likewise.
5349 (i386_supply_xstateregset): Likewise.
5350 (i386_collect_xstateregset): Likewise.
5351 (i386_sse_regnum_p): Removed.
5352 (i386_pseudo_register_name): Support pseudo YMM registers.
5353 (i386_pseudo_register_type): Likewise.
5354 (i386_pseudo_register_read): Likewise.
5355 (i386_pseudo_register_write): Likewise.
5356 (i386_dbx_reg_to_regnum): Return %ymmN register number for
5357 %xmmN if AVX is available.
5358 (i386_regset_from_core_section): Support .reg-xstate section.
5359 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
5360 (i386_process_record): Replace i386_sse_regnum_p with
5361 i386_xmm_regnum_p.
5362 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
5363 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
5364 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
5365 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
5366 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
5367 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
5368 Set ymm0_regnum.
5369 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
5370
5371 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
5372 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
5373 i386_ymm_type.
5374 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
5375 (I386_AVX_NUM_REGS): New.
5376 (i386_xmm_regnum_p): Likewise.
5377 (i386_ymm_regnum_p): Likewise.
5378 (i386_ymmh_regnum_p): Likewise.
5379
5380 * common/i386-xstate.h: New.
5381
5382 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5383
5384 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
5385
5386 * features/Makefile (WHICH): Add i386/i386-avx,
5387 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
5388 (i386/i386-avx-expedite): New.
5389 (i386/i386-avx-linux-expedite): Likewise.
5390 (i386/x86-64-avx-expedite):Likewise.
5391 (i386/x86-64-avx-linux-expedite): Likewise.
5392 ($(outdir)/i386/i386-avx.dat): New dependency.
5393 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
5394 ($(outdir)/i386/x86-avx-64.dat): Likewise.
5395 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
5396
5397 * features/i386/32bit-avx.xml: New.
5398 * features/i386/64bit-avx.xml: Likewise.
5399 * features/i386/i386-avx-linux.c: Likewise.
5400 * features/i386/i386-avx-linux.xml: Likewise.
5401 * features/i386/i386-avx.c: Likewise.
5402 * features/i386/i386-avx.xml: Likewise.
5403 * features/i386/x86-64-avx-linux.c: Likewise.
5404 * features/i386/x86-64-avx-linux.xml: Likewise.
5405 * features/i386/x86-64-avx.c: Likewise.
5406 * features/i386/x86-64-avx.xml: Likewise.
5407 * regformats/i386/i386-avx-linux.dat: Likewise.
5408 * regformats/i386/i386-avx.dat: Likewise.
5409 * regformats/i386/x86-64-avx-linux.dat: Likewise.
5410 * regformats/i386/x86-64-avx.dat: Likewise.
5411
5412 2010-04-07 Doug Evans <dje@google.com>
5413
5414 * top.c (source_file_name): Make const char *.
5415 * top.h (source_file_name): Update.
5416 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
5417 const char *.
5418 (script_from_file): Change `file' arg to const char *.
5419 * cli/cli-script.h (script_from_file): Update.
5420
5421 2010-04-06 Doug Evans <dje@google.com>
5422
5423 * cli/cli-cmds.c (source_command): Run cleanups.
5424
5425 2010-04-06 Stan Shebs <stan@codesourcery.com>
5426
5427 * defs.h (char_ptr): Move typedef here from...
5428 * ada-lang.c (char_ptr): Remove.
5429 * charset.c (char_ptr): Remove.
5430 * tracepoint.h (struct uploaded_string): Remove.
5431 (struct uploaded_tp): Use vectors for string arrays.
5432 * tracepoint.c (trace_save): Use vectors of actions.
5433 (parse_tracepoint_definition): Ditto.
5434 (get_uploaded_tp): Clear vectors.
5435 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
5436 (next_cmd): Change to an int.
5437 (read_next_cmd): Use vector of command strings.
5438
5439 2010-04-06 Doug Evans <dje@google.com>
5440
5441 * top.h (source_script, cd_command): Delete.
5442 * main.c: #include "cli/cli-cmds.h"
5443
5444 2010-04-06 Kevin Buettner <kevinb@redhat.com>
5445
5446 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
5447 type in bytes, not bits.
5448
5449 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5450
5451 * stabsread.c (define_symbol): Add support for char
5452 and string constants.
5453
5454 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5455
5456 Remove remaining "%ll" uses.
5457 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
5458 hex_string call.
5459 * rs6000-nat.c (rs6000_ptrace64): Idem.
5460 * solib-pa64.c (pa64_current_sos): Idem.
5461 * solib-spu.c (spu_current_sos): Idem.
5462 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
5463 plongest call.
5464 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
5465 phex (VAR, 8) call.
5466 * sh64-tdep.c (sh64_show_media_regs): Idem.
5467
5468 2010-04-05 Stan Shebs <stan@codesourcery.com>
5469
5470 * tracepoint.c: Include gdbcore.h.
5471 (tfile_xfer_partial): Return partial results, also try reading
5472 from executable.
5473 (tfile_has_all_memory): New function.
5474 (init_tfile_ops): Use it.
5475
5476 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
5477
5478 PR gdb/10736:
5479 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
5480 the changes in data-directory.
5481 (init_sysinfo): Reload the syscall XML file if the data-directory
5482 has changed.
5483
5484 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5485
5486 Code cleanup.
5487 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
5488
5489 2010-04-04 Stan Shebs <stan@codesourcery.com>
5490 Nathan Sidwell <nathan@codesourcery.com>
5491
5492 * breakpoint.c (breakpoint_1): Add filter argument, return number of
5493 breakpoints printed.
5494 (is_hardware_watchpoint): Make argument const.
5495 (is_watchpoint): Ditto.
5496 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
5497 use it everywhere.
5498 (breakpoints_info): Pass NULL to breakpoint_1.
5499 (maintenance_info_breakpoints): Ditto.
5500 (watchpoints_info): New function.
5501 (tracepoints_info): Use breakpoint_1 filter.
5502 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
5503 (_initialize_breakpoint): Make "info watchpoints" its own command.
5504 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
5505 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
5506
5507 2010-04-04 Stan Shebs <stan@codesourcery.com>
5508
5509 * tracepoint.c (tfile_fetch_registers): Add fallback case.
5510
5511 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5512
5513 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
5514 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
5515
5516 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5517
5518 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
5519 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
5520
5521 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5522
5523 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
5524 code form.
5525
5526 2010-04-02 Hui Zhu <teawater@gmail.com>
5527
5528 * i386-tdep.c (OT_DQUAD): New enum.
5529 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
5530 SSE3, SSSE3 and SSE4.
5531
5532 2010-04-02 Hui Zhu <teawater@gmail.com>
5533
5534 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
5535 "*addr = 0".
5536
5537 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5538
5539 * tracepoint.c (trace_dump_actions): New, factored out from
5540 trace_dump_command, and adjusted to recurse into while-stepping's
5541 action list.
5542 (trace_dump_command): Use it.
5543
5544 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5545
5546 * breakpoint.h (struct counted_command_line): Moved definition to
5547 breakpoint.c, and forward declare.
5548 (breakpoint_commands): Declare.
5549 * breakpoint.c (struct counted_command_line): Moved here.
5550 (breakpoint_commands): New.
5551 * tracepoint.c (encode_actions): Use breakpoint_commands.
5552 * remote.c (remote_download_tracepoint): Ditto.
5553
5554 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5555
5556 * remote.c (remote_parse_stop_reply): Use hex_string instead
5557 of phex_nz for error.
5558
5559 2010-04-01 Stan Shebs <stan@codesourcery.com>
5560 Nathan Sidwell <nathan@codesourcery.com>
5561
5562 * tracepoint.h (enum actionline_type): Remove.
5563 (validate_actionline): Change return to void.
5564 * tracepoint.c (report_agent_reqs_errors): New function.
5565 (validate_actionline): Call it, change return to void, report errors
5566 more consistently.
5567 (collect_symbol): Call report_agent_reqs_errors.
5568 (encode_actions_1): Ditto.
5569 (encode_actions): Don't expect a result from validate_actionline.
5570
5571 2010-04-01 Stan Shebs <stan@codesourcery.com>
5572
5573 * tracepoint.c (trace_start_command): Confirm if trace is running.
5574 (trace_stop_command): Error if trace not running.
5575
5576 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5577
5578 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
5579 (AMD64_NUM_LOWER_BYTE_REGS): New.
5580 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
5581 (amd64_pseudo_register_write): Likewise.
5582 (amd64_init_abi): Set num_byte_regs to 20.
5583
5584 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5585
5586 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
5587 (prev_breakpoint_count): New.
5588 (set_breakpoint_count): Adjust.
5589 (rbreak_start_breakpoint_count): New.
5590 (start_rbreak_breakpoints): Adjust.
5591 (end_rbreak_breakpoints): Adjust.
5592 (struct commands_info) <arg>: New field.
5593 (do_map_commands_command): Tweak output to include breakpoint spec
5594 range.
5595 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
5596 ARG was empty on entry. Set INFO's arg.
5597 (create_breakpoint): Adjust.
5598
5599 * NEWS: Clarify `commands' changes.
5600
5601 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5602
5603 * tracepoint.c: Include stack.h.
5604 (struct add_local_symbols_data): New.
5605 (do_collect_symbol): New.
5606 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
5607 iterate_over_block_local_vars.
5608 * stack.c (print_block_frame_locals): Rewrite as ...
5609 (iterate_over_block_locals): ... this. Take a callback function
5610 pointer and generic data pointer, and call that instead of
5611 print_variable_and_value.
5612 (struct print_variable_and_value_data): New.
5613 (do_print_variable_and_value): New.
5614 (iterate_over_block_local_vars): New, abstracted out from
5615 print_frame_local_vars.
5616 (print_frame_local_vars): Rewrite using
5617 iterate_over_block_local_vars.
5618 (iterate_over_block_arg_vars): New, abstracted out from
5619 print_frame_arg_vars.
5620 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
5621 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
5622 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
5623
5624 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
5625
5626 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
5627 instructions. Use the PC+4 if the base of the TBB or TBH is the
5628 PC register.
5629
5630 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5631
5632 Fix crash on reading wrong function declaration DWARF.
5633 * dwarf2read.c (read_subroutine_type): New variable void_type.
5634 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
5635 more close to their use.
5636
5637 2010-03-31 Stan Shebs <stan@codesourcery.com>
5638
5639 * breakpoint.c (tracepoint_save_command): Include variables,
5640 conditionals, tracepoint types, and default-collect.
5641 * tracepoint.c (save_trace_state_variables): New function.
5642 * tracepoint.h (save_trace_state_variables): Declare it.
5643
5644 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
5645
5646 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
5647
5648 2010-03-30 Keith Seitz <keiths@redhat.com>
5649
5650 * c-typeprint.c (c_type_print_args): Don't print "void"
5651 for java, regardless of whether it is TYPE_PROTOTYPED.
5652 Use the passed-in language instead of current_language.
5653 (c_type_print_varspec_suffix): Use current_language instead
5654 of assuming language_c.
5655 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
5656 any return type specifier from the physname.
5657
5658 2010-03-30 Pedro Alves <pedro@codesourcery.com>
5659
5660 * tui/tui-interp.c (tui_is_toplevel): New.
5661 (tui_init): Set it.
5662 (tui_allowed_p): New.
5663 * tui/tui.c (tui_enable): Check if the TUI is allowed before
5664 enabling it.
5665 * tui/tui.h (tui_allowed_p): Declare.
5666
5667 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
5668
5669 * serial.h: Include winsock2.h before windows.h.
5670
5671 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
5672
5673 * NEWS: Mention xmlRegisters= in qSupported packet.
5674
5675 * i386-tdep.c: Include "remote.h".
5676 (_initialize_i386_tdep): Call register_remote_support_xml.
5677
5678 * remote.c (remote_support_xml): New.
5679 (register_remote_support_xml): Likewise.
5680 (remote_query_supported_append): Likewise.
5681 (remote_query_supported): Support remote_support_xml.
5682
5683 * remote.h (register_remote_support_xml): New.
5684
5685 2010-03-29 Stan Shebs <stan@codesourcery.com>
5686
5687 * tracepoint.c (trace_find_line_command): Remove dead code.
5688
5689 * tracepoint.h (struct uploaded_string): New struct.
5690 (struct uploaded_tp): New fields for source strings.
5691 * breakpoint.c (this_utp, next_cmd): New globals.
5692 (read_uploaded_action): New function.
5693 (create_tracepoint_from_upload): Fill in more parts
5694 of a tracepoint.
5695 * tracepoint.c (encode_source_string): New function.
5696 (trace_save): Write out source strings, fix error checks.
5697 (parse_tracepoint_definition): Add source string parsing.
5698 * remote.c (PACKET_TracepointSource): New packet type.
5699 (remote_download_command_source): New function.
5700 (remote_download_tracepoint): Download source pieces also.
5701 (_initialize_remote): Add packet config command.
5702
5703 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
5704 expression handler.
5705
5706 * tracepoint.c (start_tracing): Check tracepoints before sending
5707 commands to target, don't start if all tracepoints disabled.
5708
5709 2010-03-28 Pedro Alves <pedro@codesourcery.com>
5710
5711 * cli/cli-script.c (process_next_line): Handle 'stepping'.
5712
5713 2010-03-26 Stan Shebs <stan@codesourcery.com>
5714
5715 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
5716
5717 2010-03-26 Tom Tromey <tromey@redhat.com>
5718
5719 * breakpoint.c (commands_command_1): Duplicate 'arg'.
5720
5721 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5722
5723 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
5724 (skip_prologue_sal): Remove local definition.
5725 (resolve_sal_pc): Remove now unnecessary code.
5726 * linespec.c (minsym_found): Call skip_prologue_sal.
5727 * symtab.c (find_function_start_pc): Remove.
5728 (find_function_start_sal): Extract prologue skipping into ...
5729 (skip_prologue_sal): ... this new function. Handle code both
5730 with and without debug info. Respect SAL's explicit_pc and
5731 explicit_line flags. Inline old find_function_start_pc.
5732 * symtab.h (find_function_start_pc): Remove.
5733 (skip_prologue_sal): Add prototype.
5734
5735 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5736
5737 * dwarf2read.c (read_func_scope): Also scan specification DIEs
5738 for DW_TAG_imported_module children.
5739
5740 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5741
5742 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
5743 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
5744 * completer.c (add_struct_fields): Fix inverted logic.
5745
5746 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5747
5748 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
5749
5750 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5751
5752 * tracepoint.c (current_trace_status): Don't make sure error_desc
5753 is non-NULL here.
5754 (parse_trace_status): Release a previous error_desc string, and
5755 set it to NULL by default. If stop reason is tracepoint_error,
5756 make sure error_desc is not left NULL.
5757
5758 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5759
5760 * tracepoint.c (trace_save): Remove X from tracepoint error
5761 description.
5762
5763 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5764
5765 * tracepoint.c (parse_trace_status): Don't allow plain strings in
5766 the terror description. Don't expect an X prefix.
5767
5768 2010-03-25 Stan Shebs <stan@codesourcery.com>
5769
5770 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
5771 (struct trace_status): New field error_desc.
5772 * tracepoint.c (stop_reason_names): Add terror.
5773 (current_trace_status): Ensure non-NULL error description.
5774 (trace_status_command): Add error report.
5775 (trace_status_mi): Ditto.
5776 (trace_save): Add special case for error description.
5777 (parse_trace_status): Add case for errors.
5778
5779 2010-03-25 Keith Seitz <keiths@redhat.com>
5780
5781 * dwarf2read.c (read_subroutine_type): If the compilation unit
5782 language is Java, mark any formal parameter named "this" as
5783 artificial (GCC/43521).
5784 (dwarf2_name): Add special handling for Java constructors.
5785
5786 2010-03-25 Tom Tromey <tromey@redhat.com>
5787
5788 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
5789 * infrun.c (handle_inferior_event): Change initialization of
5790 stop_stack_dummy.
5791 (handle_inferior_event): Change assignment to stop_stack_dummy.
5792 (normal_stop): Update use of stop_stack_dummy.
5793 (struct inferior_status) <stop_stack_dummy>: Change type.
5794 * inferior.h (stop_stack_dummy): Update.
5795 * infcmd.c (stop_stack_dummy): Change type.
5796 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
5797 function.
5798 (call_function_by_hand): Call set_std_terminate_breakpoint.
5799 Rewrite std::terminate handling.
5800 * breakpoint.h (enum bptype) <bp_std_terminate,
5801 bp_std_terminate_master>: New.
5802 (enum stop_stack_kind): New.
5803 (struct bpstat_what) <call_dummy>: Change type.
5804 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
5805 Declare.
5806 * breakpoint.c (create_std_terminate_master_breakpoint): New
5807 function.
5808 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
5809 Call create_std_terminate_master_breakpoint.
5810 (print_it_typical): Handle new breakpoint kinds.
5811 (bpstat_stop_status): Handle bp_std_terminate_master.
5812 (bpstat_what): Correctly set call_dummy field. Handle
5813 bp_std_terminate_master and bp_std_terminate.
5814 (print_one_breakpoint_location): Update.
5815 (allocate_bp_location): Update.
5816 (set_std_terminate_breakpoint): New function.
5817 (delete_std_terminate_breakpoint): Likewise.
5818 (create_thread_event_breakpoint): Update.
5819 (delete_command): Update.
5820 (breakpoint_re_set_one): Update.
5821 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
5822
5823 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5824
5825 * symfile.c (build_section_addr_info_from_bfd): New.
5826 (build_section_addr_info_from_objfile): Base it on
5827 build_section_addr_info_from_bfd.
5828 (addrs_section_compar, addrs_section_sort): New.
5829 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
5830 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
5831 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
5832
5833 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
5834
5835 * elfread.c (find_separate_debug_file_by_buildid):
5836 Remove unused local variable.
5837
5838 2010-03-24 Tom Tromey <tromey@redhat.com>
5839
5840 PR breakpoints/9352:
5841 * NEWS: Mention changes to `commands' and `rbreak'.
5842 * symtab.c (do_end_rbreak_breakpoints): New function.
5843 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
5844 end_rbreak_breakpoints.
5845 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
5846 (set_breakpoint_count): Likewise. Clear last_was_multi.
5847 (multi_start, multi_end, last_was_multi): New globals.
5848 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
5849 functions.
5850 (struct commands_info): New
5851 (do_map_commands_command): New function.
5852 (commands_command_1): New function.
5853 (commands_command): Use it.
5854 (commands_from_control_command): Likewise.
5855 (do_delete_breakpoint): New function.
5856 (delete_command): Use it.
5857 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
5858 (do_map_disable_breakpoint): New function.
5859 (disable_command): Use it.
5860 (do_map_enable_breakpoint): New function.
5861 (enable_command): Use it.
5862 (enable_once_breakpoint): Add argument.
5863 (enable_once_command): Update.
5864 (enable_delete_breakpoint): Add argument.
5865 (enable_delete_command): Update.
5866 (break_command_really): Set last_was_multi when needed.
5867 (check_tracepoint_command): Fix formatting.
5868 (validate_commands_for_breakpoint): New function.
5869 (breakpoint_set_commands): Use it.
5870 (tracepoint_save_command): Update.
5871 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
5872 Declare.
5873
5874 2010-03-24 Tom Tromey <tromey@redhat.com>
5875
5876 * breakpoint.h (struct counted_command_line): New struct.
5877 (struct breakpoint) <commands>: Change type.
5878 (struct bpstats) <commands>: Change type.
5879 <commands_left>: New field.
5880 * breakpoint.c (alloc_counted_command_line): New function.
5881 (incref_counted_command_line): Likewise.
5882 (decref_counted_command_line): Likewise.
5883 (do_cleanup_counted_command_line): Likewise.
5884 (make_cleanup_decref_counted_command_line): Likewise.
5885 (breakpoint_set_commands): Use decref_counted_command_line and
5886 alloc_counted_command_line.
5887 (commands_command): Don't error if breakpoint commands are
5888 executing.
5889 (commands_from_control_command): Likewise.
5890 (bpstat_free): Update.
5891 (bpstat_copy): Likewise.
5892 (bpstat_clear_actions): Likewise.
5893 (bpstat_do_actions_1): Likewise.
5894 (bpstat_stop_status): Likewise.
5895 (print_one_breakpoint_location): Likewise.
5896 (delete_breakpoint): Likewise.
5897 (bpstat_alloc): Initialize new field.
5898 (tracepoint_save_command): Update.
5899 * tracepoint.c (encode_actions): Update.
5900 (trace_dump_command): Update.
5901
5902 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
5903
5904 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
5905 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
5906 (read_structure_type): For RealView, set TYPE_STUB on structures with
5907 no byte size and no children.
5908 (read_subroutine_type): Mark functions as prototyped by default.
5909 * symtab.c (producer_is_realview): New function.
5910 * symtab.h (expand_line_sal): Fix declaration formatting.
5911 (producer_is_realview): Declare.
5912
5913 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
5914
5915 * arm-tdep.c (skip_prologue_function): New function.
5916 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
5917 (thumb_analyze_prologue): Document return value. Recognize more
5918 Thumb instructions, skippable calls, and some Thumb-2 instructions.
5919 Add debug output.
5920 (arm_skip_prologue): Remove call dummy check. Check the prologue
5921 for non-GNU compilers.
5922 (arm_instruction_changes_pc): New function.
5923 (arm_analyze_prologue): New function, broken out from
5924 arm_scan_prologue. Recognize more ARM instructions and skippable
5925 calls. Update comments. Handle NULL cache. Return the address
5926 of the first unrecognized instruction. Do not skip past other
5927 instructions which change control flow. Add debug output.
5928 (arm_scan_prologue): Use arm_analyze_prologue.
5929 (ARM_PC_32): Delete.
5930 (shifted_reg_val): Simplify ARM_PC_32 check.
5931
5932 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5933
5934 * tracepoint.c (tvariables_info_1): Actually compute
5935 the number of rows in the result.
5936
5937 2010-03-24 Pedro Alves <pedro@codesourcery.com>
5938
5939 * remote.c (crc32): Constify `buf' parameter.
5940 (remote_verify_memory): New, abstracted out from...
5941 (compare_sections_command): ... this. Remove hardcoded target
5942 checks.
5943 (init_remote_ops): Install remote_verify_memory.
5944 * target.c (target_verify_memory): New.
5945 * target.h (struct target_ops) <to_verify_memory>: New field.
5946 (target_verify_memory): Declare.
5947
5948 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5949
5950 Implement -trace-save.
5951
5952 * mi-cmds.h (mi_cmds_trace_save): Declare.
5953 * mi-cmds.c (mi_cmds): Register -trace-save.
5954 * mi/mi-main.c (mi_cmd_trace_save): New.
5955 * remote.c (remote_save_trace_data): Take const parameter.
5956 * target.h (struct target_ops::to_save_trace_data): Take
5957 const parameter.
5958 * target.c (update_current_target): Adjust to the above.
5959 * tracepoint.c (trave_save): New, extracted from
5960 (trace_save_command): ...this.
5961 (tfile_trace_find): Remove message that is unnecessary now
5962 that 'tfind' reports found frame.
5963 * tracepoint.h (trace_save): Declare.
5964
5965 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5966
5967 Implement -trace-find.
5968
5969 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
5970 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
5971 * mi/mi-main.c (mi_cmd_trace_find): New.
5972 * target.h (struct target_ops): Document to_trace_find.
5973 * tracepoint.h (tfind_1): Declare.
5974 * tracepoint.c (finish_tfind_command): Rename to...
5975 (tfind_1): ...this.
5976 * remote.c (remote_trace_find): Return -1 if target say
5977 there's no frame. Improve error diagnostics.
5978
5979 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5980
5981 -trace-define-variable and -trace-list-variables.
5982
5983 * tracepoint.c (create_trace_state_variable): Make
5984 private copy of name, as opposed to assuming the
5985 pointer lives forever.
5986 (tvariables_info_1): New.
5987 (tvariables_info): Use the above.
5988 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
5989 Declare.
5990 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
5991 and -trace-list-variables.
5992 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
5993 (mi_cmd_trace_list_variables): New.
5994 * mi/mi-main.c (mi_cmd_trace_define_variable)
5995 (mi_cmd_trace_list_variables): New.
5996
5997 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5998
5999 Implement -break-passcount.
6000
6001 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6002 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6003 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6004
6005 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6006
6007 -trace-start/-trace-end/-trace-status.
6008
6009 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6010 and -trace-stop.
6011 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6012 (mi_cmd_trace_stop): Declare.
6013 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6014 (mi_cmd_trace_stop): New.
6015 * tracepoint.c (start_tracing): New, extracted from...
6016 (trace_start_command): ...this.
6017 (trace_status_mi): New.
6018 * tracepoint.h (struct trace_status): Document
6019 stopping_tracepoint.
6020 (start_tracing, stop_tracing, trace_status_mi): Declare.
6021
6022 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6023
6024 Implement creating tracepoints with -break-insert.
6025
6026 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6027 to mean that tracepoint should be created.
6028
6029 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6030
6031 * breakpoint.c (check_no_tracepoint_commands): Use
6032 current spelling of 'teval'.
6033
6034 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6035
6036 Unify actions and commands
6037
6038 * defs.h (read_command_lines, read_command_lines_1): New
6039 parameters validator and closure.
6040 * tracepoint.h (struct action_line): Remove.
6041 * breakpoint.h (struct breakpoint): Remove the 'actions'
6042 field.
6043 * defs.h (enum command_control_type): New value
6044 while_stepping_control.
6045 (struct command_line): Add comments.
6046 * breakpoint.c (breakoint_is_tracepoint): New.
6047 (breakpoint_set_commands): For tracepoints,
6048 verify the commands are permissible.
6049 (check_tracepoint_commands): New.
6050 (commands_command): Require that each new line is validated using
6051 check_tracepoint_command, if we set commands for a tracepoint.
6052 (create_tracepoint_from_upload): Likewise.
6053 (print_one_breakpoint_location): Remove the code to print
6054 actions specifically.
6055 (tracepoint_save_command): Relay to print_command_lines.
6056 * cli/cli-script.c (process_next_line): New parameters validator
6057 and closure. Handle 'while-stepping'. Call validator if not null.
6058 (read_command_lines, read_command_lines1): Likewise.
6059 (recurse_read_control_structure): New parameters validator and
6060 closure. Handle while_stepping_control.
6061 (print_command_lines): Handle while-stepping.
6062 (get_command_line, define_command, document_command): Adjust.
6063 * remote.c (remote_download_tracepoint): Adjust.
6064 * tracepoint.c (make_cleanup_free_actions, read_actions)
6065 (free_actions, do_free_actions_cleanup): Remove.
6066 (trace_actions_command): Use read_command_lines.
6067 (validate_actionline): Use error in one place.
6068 (encode_actions_1): New, extracted from...
6069 (encode_actions): ...this. Also use cleanups for exception
6070 safety.
6071 (trace_dump_command): Adjust.
6072 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
6073 it's tracepoint.
6074
6075 2010-03-23 Mike Frysinger <vapier@gentoo.org>
6076
6077 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
6078
6079 2010-03-22 Stan Shebs <stan@codesourcery.com>
6080
6081 * value.c (value_static_field): Be lazy about the field's value.
6082
6083 2010-03-22 Reid Kleckner <reid@kleckner.net>
6084
6085 PR gdb/11094
6086 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
6087 bp_jit_event.
6088 (disable_breakpoints_in_shlibs): Likewise.
6089
6090 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
6091
6092 * dwarf2read.c (partial_die_parent_scope): Work around buggy
6093 GCC 4.1 debug info generation (GCC PR c++/28460).
6094 (determine_prefix): Likewise.
6095
6096 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
6097
6098 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
6099 get_current_arch.
6100 * tui/tui-layout.c (extract_display_start_addr): Likewise.
6101
6102 2010-03-19 Stan Shebs <stan@codesourcery.com>
6103
6104 * ax-gdb.c (gen_fetch): Handle bool.
6105 (gen_usual_unary): Ditto.
6106 (gen_cast): Ditto.
6107 (gen_equal): New function.
6108 (gen_less): New function.
6109 (gen_expr_binop_rest): Call them, also return integer type from
6110 logical operations.
6111 (gen_expr): Ditto.
6112
6113 2010-03-19 Tom Tromey <tromey@redhat.com>
6114
6115 * jv-lang.c (jv_dynamics_objfile_data_key)
6116 (jv_type_objfile_data_key): New globals.
6117 (class_symtab): Move earlier.
6118 (jv_per_objfile_free): New function.
6119 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
6120 parameter.
6121 Remove ancient #if 1.
6122 (add_class_symbol): Remove redundant declaration.
6123 (java_lookup_class): Use alloc_type, not alloc_type_arch.
6124 (java_link_class_type): Mark as static. Update.
6125 (jv_clear_object_type): New function.
6126 (set_java_object_type): Likewise.
6127 (get_java_object_type): Use set_java_object_type.
6128 (is_object_type): Likewise.
6129 (_initialize_java_language): Register new objfile keys.
6130 (get_java_class_symtab): Add 'gdbarch' parameter.
6131 (add_class_symtab_symbol): Update.
6132 (type_from_class): Update.
6133
6134 2010-03-19 Stan Shebs <stan@codesourcery.com>
6135
6136 * ax-general.c (ax_const_l): Fix a sizing bug.
6137
6138 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6139
6140 GDB 7.1 released.
6141
6142 2010-03-18 Stan Shebs <stan@codesourcery.com>
6143 Pedro Alves <pedro@codesourcery.com>
6144
6145 * target.h (struct target_ops): New method
6146 to_set_circular_trace_buffer.
6147 (target_set_circular_trace_buffer): New macro.
6148 * target.c (update_current_target): Add
6149 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
6150 default behavior.
6151 * remote.c (remote_set_circular_trace_buffer): New function.
6152 (init_remote_ops): Add it to vector.
6153 * tracepoint.h (struct trace_status): New field traceframes_created,
6154 change buffer_size and buffer_free to int.
6155 * tracepoint.c (circular_trace_buffer): New global.
6156 (start_tracing): Send values of disconnected tracing and circular
6157 trace buffer settings.
6158 (set_circular_trace_buffer): New function.
6159 (parse_trace_state): Handle total space and frames created.
6160 (trace_status_command): Display total space and total frames
6161 created.
6162 (trace_save): Write out new status values.
6163 (parse_trace_status): Set traceframe_count, traceframes_created,
6164 buffer_free and buffer_size to -1 by default.
6165 (_initialize_tracepoint): New setshow for circular-trace-buffer.
6166 * NEWS: Mention the circular trace buffer option.
6167
6168 2010-03-18 Tom Tromey <tromey@redhat.com>
6169
6170 * infcmd.c (finish_command_continuation): Wrap print_return_value
6171 in TRY_CATCH.
6172
6173 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6174
6175 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
6176 DIE has a name before creating the associated partial symbol.
6177 (read_func_scope): Emit a complaint if the subprogram does not
6178 have a name or when we can't extract the subprogram PC bounds.
6179
6180 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6181
6182 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
6183 instead of selected frame architecture.
6184
6185 2010-03-18 Pedro Alves <pedro@codesourcery.com>
6186
6187 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
6188 a valid selected thread, and that it is not running.
6189 (advance_command): Ditto.
6190 (finish_command): Ditto.
6191
6192 2010-03-17 Stan Shebs <stan@codesourcery.com>
6193
6194 * ax-gdb.c (require_rvalue): Disallow non-scalars.
6195
6196 * infcall.c: Include tracepoint.h.
6197 (call_function_by_hand): Disallow calls in tfind mode.
6198 * infcmd.c: Include tracepoint.h.
6199 (ensure_not_tfind_mode): New function.
6200 (continue_1): Call it.
6201 (step_1) Ditto.
6202 (jump_command): Ditto.
6203 (signal_command): Ditto.
6204 (advance_command): Ditto.
6205 (until_command): Ditto.
6206 (finish_command): Ditto.
6207 * tracepoint.h (disconnect_or_stop_tracing): Declare.
6208
6209 * ax-gdb.h (struct axs_value): New field optimized_out.
6210 (gen_trace_for_var): Add gdbarch argument.
6211 * ax-gdb.c (gen_trace_static_fields): New function.
6212 (gen_traced_pop): Call it, add gdbarch argument.
6213 (gen_trace_for_expr): Update call to it.
6214 (gen_trace_for_var): Ditto, and report optimized-out variables.
6215 (gen_struct_ref_recursive): Check for optimized-out value.
6216 (gen_struct_elt_for_reference): Ditto.
6217 (gen_static_field): Pass gdbarch instead of expression, assume
6218 optimization if field not found.
6219 (gen_var_ref): Set the optimized_out flag.
6220 (gen_expr): Error on optimized-out variable.
6221 * tracepoint.c (collect_symbol): Handle struct-valued vars as
6222 expressions, skip optimized-out variables with computed locations.
6223 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
6224 erroring out if location expression missing.
6225 (loclist_tracepoint_var_ref): Don't error out here.
6226
6227 2010-03-17 Tom Tromey <tromey@redhat.com>
6228
6229 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
6230 DWARF data is available.
6231
6232 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6233
6234 * symfile.c (generic_load): Reset breakpoints after loading.
6235
6236 2010-03-17 Tom Tromey <tromey@redhat.com>
6237
6238 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
6239
6240 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6241
6242 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
6243 create_breakpoint call, adjust the parameters.
6244
6245 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6246 Chandru <chandru@in.ibm.com>
6247
6248 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
6249 * valarith.c (value_subscripted_rvalue): Suppress error if
6250 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
6251
6252 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
6253
6254 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
6255
6256 2010-03-16 Joel Brobecker <brobecker@adacore.com>
6257
6258 * ada-tasks.c (task_command_1): Check that the task ptid is valid
6259 before doing the associated thread switch.
6260
6261 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
6262
6263 * MAINTAINERS: Update my email address.
6264
6265 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
6266
6267 Simplify MI breakpoint setting.
6268
6269 * breakpoint.c (break_command_really): Make nonstatic and
6270 rename to...
6271 (create_breakpoint): ...this. Rename prior function by this name
6272 to...
6273 (create_breakpoint_sal): ...this.
6274 (create_breakpoints): Rename to...
6275 (create_breakpoints_sal): ...this.
6276 (set_breakpoint): Remove.
6277 * breakpoint.h: Adjust to above changes.
6278 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
6279
6280 2010-03-15 Stan Shebs <stan@codesourcery.com>
6281
6282 * ax-gdb.c: Include cp-support.h.
6283 (find_field): Remove.
6284 (gen_primitive_field): New function.
6285 (gen_struct_ref_recursive): New function.
6286 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
6287 of find_field.
6288 (gen_static_field): New function.
6289 (gen_struct_elt_for_reference): New.
6290 (gen_namespace_elt): New.
6291 (gen_maybe_namespace_elt): New.
6292 (gen_aggregate_elt_ref): New.
6293 (gen_expr): Add OP_SCOPE, display opcode name in error message.
6294
6295 2010-03-15 Tom Tromey <tromey@redhat.com>
6296
6297 * dwarf2read.c (die_needs_namespace): Also return 0 for
6298 DW_TAG_subprogram.
6299
6300 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
6301
6302 PR c++/7936:
6303 * cp-support.h: Added char *declaration element to using_direct
6304 data struct.
6305 (cp_add_using): Added char *declaration argument.
6306 (cp_add_using_directive): Ditto.
6307 (cp_lookup_symbol_imports): made extern.
6308 * cp-namespace.c: Updated with the above changes.
6309 * dwarf2read.c (read_import_statement): Ditto.
6310 (read_namespace): Ditto.
6311 (read_import_statement): Support import declarations.
6312 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
6313 declarations.
6314 Added support for 'declaration_only' search.
6315 (cp_lookup_symbol_namespace): Attempt to search for the name as
6316 is before consideration of imports.
6317 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
6318 search at every block level search.
6319 Now takes language argument.
6320 (lookup_symbol_aux): Updated.
6321
6322 2010-03-15 Tom Tromey <tromey@redhat.com>
6323
6324 * c-exp.y (name_not_typename): Add 'operator' clause.
6325
6326 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
6327
6328 * configure.ac: Exit if ${gdb_target_obs}" is not set.
6329 * configure: Regenerate.
6330
6331 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6332
6333 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
6334 and ".sdynbss". Update the comment.
6335
6336 2010-03-15 Jie Zhang <jie@codesourcery.com>
6337
6338 * MAINTAINERS: Update my email address.
6339
6340 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6341
6342 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
6343
6344 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6345
6346 * charset.c [USE_WIN32API]: Include <windows.h>.
6347 (_initialize_charset): Correct type of w32_host_default_charset.
6348
6349 2010-03-14 Pedro Alves <pedro@codesourcery.com>
6350
6351 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
6352
6353 2010-03-12 Tom Tromey <tromey@redhat.com>
6354
6355 PR c++/9708:
6356 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
6357 in a lexical block does not need a namespace.
6358 (new_symbol) <DW_TAG_variable>: Put extern variables on
6359 list_in_scope in all cases.
6360
6361 2010-03-12 Stan Shebs <stan@codesourcery.com>
6362
6363 * ax-gdb.c (gen_expr): Add shift expressions.
6364 (gen_expr_binop_rest): Ditto.
6365
6366 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
6367
6368 * buildsym.c (finish_block): Reset using_directives pointer
6369 after block initialization.
6370
6371 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
6372
6373 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
6374 * i386-tdep.c (i386_word_names): Likewise.
6375
6376 2010-03-12 Pedro Alves <pedro@codesourcery.com>
6377
6378 * target.c (memory_xfer_partial): Don't use the stack cache if
6379 inspecting trace frames.
6380 * tracepoint.c (finish_tfind_command): Invalidate the target
6381 dcache.
6382
6383 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6384
6385 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
6386 for the PIC displacement, print also the displacement value.
6387 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
6388
6389 2010-03-10 Kevin Buettner <kevinb@redhat.com>
6390
6391 * remote-mips.c (close_ports, mips_initialize_cleanups)
6392 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
6393 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
6394 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
6395 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
6396 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
6397 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
6398 comments describing each of these functions.
6399 (mips_enter_debug, mips_exit_debug, common_open)
6400 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
6401 blank line after the comment describing the function.
6402
6403 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6404
6405 * solib-svr4.c (svr4_exec_displacement): Return now success, new
6406 parameter displacementp. Update comment.
6407 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
6408 element exists. Return if svr4_exec_displacement was not successful.
6409 Update comment.
6410
6411 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6412 Daniel Jacobowitz <dan@codesourcery.com>
6413
6414 * solib-svr4.c (read_program_header): Support type == -1 to read
6415 all program headers.
6416 (read_program_headers_from_bfd): New function.
6417 (svr4_static_exec_displacement): Remove and move the comment ...
6418 (svr4_exec_displacement): ... here. Remove variable found. New
6419 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
6420 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
6421 targets using read_program_headers_from_bfd. Remove the call of
6422 svr4_static_exec_displacement.
6423
6424 2010-03-10 Tom Tromey <tromey@redhat.com>
6425
6426 * dwarf2read.c (struct pubnames_header): Remove.
6427 (_PUBNAMES_HEADER): Remove.
6428 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
6429 (struct aranges_header): Remove.
6430 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
6431 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
6432 (PUBNAMES_SECTION): Remove.
6433 (ARANGES_SECTION): Remove.
6434 (dwarf2_locate_sections): Don't handle pubnames or aranges.
6435 (dwarf2_build_psymtabs): Remove dead code.
6436 (dwarf2_build_psymtabs_easy): Remove.
6437
6438 2010-03-10 Tom Tromey <tromey@redhat.com>
6439
6440 * elfread.c (elf_symfile_read): Don't call
6441 dwarf2_build_frame_info.
6442 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
6443 (struct dwarf2_per_objfile) <objfile>: New field.
6444 (dwarf2_has_info): Now idempotent. Set objfile field.
6445 (dwarf2_read_section): Check and set readin field. Call
6446 posix_madvise.
6447 (dwarf2_build_psymtabs): Don't read all sections.
6448 (read_type_comp_unit_head): Read types section.
6449 (create_debug_types_hash_table): Likewise.
6450 (init_cu_die_reader): Add asserts.
6451 (process_type_comp_unit): Add assert.
6452 (dwarf2_build_psymtabs_hard): Read info section.
6453 (load_partial_comp_unit): Add assert.
6454 (create_all_comp_units): Read info section.
6455 (load_full_comp_unit): Likewise.
6456 (dwarf2_ranges_read): Read ranges section.
6457 (dwarf2_record_block_ranges): Add assert.
6458 (dwarf2_read_abbrevs): Read abbrev section.
6459 (read_indirect_string): Read str section.
6460 (dwarf_decode_line_header): Read line section.
6461 (read_signatured_type_at_offset): Read types section.
6462 (dwarf_decode_macros): Read macinfo section.
6463 (dwarf2_symbol_mark_computed): Read loc section.
6464 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
6465 dwarf2_build_frame_info.
6466 (dwarf2_build_frame_info): Unconditionally set
6467 dwarf2_frame_objfile_data on the objfile.
6468 * configure.ac: Check for posix_madvise.
6469 * config.in, configure: Rebuild.
6470
6471 2010-03-10 Tom Tromey <tromey@redhat.com>
6472
6473 * xcoffread.c (xcoff_start_psymtab): Update.
6474 (xcoff_end_psymtab): Update.
6475 * psymtab.c (allocate_psymtab): Remove dead code.
6476 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
6477 void*.
6478 * mdebugread.c (parse_partial_symbols): Update.
6479 (new_psymtab): Likewise.
6480 * dwarf2read.c (process_psymtab_comp_unit): Update.
6481 (psymtab_to_symtab_1): Update.
6482 * dbxread.c (start_psymtab): Update.
6483 (end_psymtab): Likewise.
6484
6485 2010-03-10 Tom Tromey <tromey@redhat.com>
6486
6487 * xcoffread.c: Include psymtab.h.
6488 (xcoff_sym_fns): Update.
6489 * symtab.h (struct partial_symbol): Remove.
6490 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
6491 (struct partial_symtab): Remove.
6492 (PSYMTAB_TO_SYMTAB): Remove.
6493 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
6494 (find_pc_sect_psymtab): Remove.
6495 (find_pc_sect_symtab_via_partial): Declare.
6496 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
6497 (find_main_psymtab): Remove.
6498 (find_main_filename): Declare.
6499 (fixup_psymbol_section): Remove.
6500 (fixup_section): Declare.
6501 * symtab.c: Include psymtab.h.
6502 (lookup_symtab): Use lookup_symtab method.
6503 (lookup_partial_symtab): Remove.
6504 (find_pc_sect_psymtab_closer): Remove.
6505 (find_pc_sect_psymtab): Remove.
6506 (find_pc_sect_symtab_via_partial): New function.
6507 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
6508 (fixup_section): No longer static.
6509 (fixup_psymbol_section): Remove.
6510 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
6511 (lookup_global_symbol_from_objfile): Likewise.
6512 (lookup_symbol_aux_psymtabs): Remove.
6513 (lookup_symbol_aux_quick): New function.
6514 (lookup_symbol_global): Use lookup_symbol_aux_quick.
6515 (lookup_partial_symbol): Remove.
6516 (basic_lookup_transparent_type_quick): New function.
6517 (basic_lookup_transparent_type): Use it.
6518 (find_main_psymtab): Remove.
6519 (find_main_filename): New function.
6520 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
6521 (find_line_symtab): Use expand_symtabs_with_filename method.
6522 (output_partial_symbol_filename): New function.
6523 (sources_info): Use map_partial_symbol_filenames.
6524 (struct search_symbols_data): New type.
6525 (search_symbols_file_matches): New function.
6526 (search_symbols_name_matches): Likewise.
6527 (search_symbols): Use expand_symtabs_matching method.
6528 (struct add_name_data): Rename from add_macro_name_data.
6529 (add_macro_name): Update.
6530 (add_partial_symbol_name): New function.
6531 (default_make_symbol_completion_list): Use
6532 map_partial_symbol_names.
6533 (struct add_partial_symbol_name): New type.
6534 (maybe_add_partial_symtab_filename): New function.
6535 (make_source_files_completion_list): Use
6536 map_partial_symbol_filenames.
6537 (expand_line_sal): Use expand_symtabs_with_filename method.
6538 * symmisc.c: Include psymtab.h.
6539 (print_objfile_statistics): Use print_stats method.
6540 (dump_objfile): Use dump method.
6541 (dump_psymtab, maintenance_print_psymbols)
6542 (maintenance_info_psymtabs, maintenance_check_symtabs)
6543 (extend_psymbol_list): Remove.
6544 * symfile.h (struct quick_symbol_functions): New struct.
6545 (struct sym_fns) <qf>: New field.
6546 (sort_pst_symbols): Remove.
6547 (increment_reading_symtab): Declare.
6548 * symfile.c: Include psymtab.h.
6549 (compare_psymbols, sort_pst_symbols): Remove.
6550 (psymtab_to_symtab): Remove.
6551 (increment_reading_symtab): New function.
6552 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
6553 method.
6554 (set_initial_language): Use find_main_filename.
6555 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
6556 (free_named_symtabs): Remove unused code.
6557 (start_psymtab_common, add_psymbol_to_bcache)
6558 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
6559 Remove.
6560 * stack.c: Include psymtab.h, symfile.h.
6561 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
6562 * source.h (psymtab_to_fullname): Don't declare.
6563 * source.c: Include psymtab.h.
6564 (select_source_symtab): Use find_last_source_symtab method.
6565 (forget_cached_source_info): Use forget_cached_source_info
6566 method.
6567 (find_and_open_source): No longer static.
6568 (psymtab_to_fullname): Remove.
6569 * somread.c: Include psymtab.h.
6570 (som_sym_fns): Update.
6571 * psympriv.h: New file.
6572 * psymtab.h: New file.
6573 * psymtab.c: New file.
6574 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
6575 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
6576 * objfiles.c: Include psymtab.h.
6577 (objfile_relocate1): Use relocate method.
6578 (objfile_has_partial_symbols): Use has_symbols method.
6579 * mipsread.c: Include psymtab.h.
6580 (ecoff_sym_fns): Update.
6581 * mi/mi-cmd-file.c: Include psymtab.h.
6582 (print_partial_file_name): New function.
6583 (mi_cmd_file_list_exec_source_files): Use
6584 map_partial_symbol_filenames.
6585 * mdebugread.c: Include psympriv.h.
6586 * machoread.c: Include psympriv.h.
6587 (macho_sym_fns): Update.
6588 * m2-exp.y (yylex): Use lookup_symtab.
6589 * elfread.c: Include psympriv.h.
6590 (elf_sym_fns): Update.
6591 * dwarf2read.c: Include psympriv.h.
6592 * dbxread.c: Include psympriv.h.
6593 (aout_sym_fns): Update.
6594 * cp-support.c: Include psymtab.h.
6595 (read_in_psymtabs): Remove.
6596 (make_symbol_overload_list_qualified): Use
6597 expand_symtabs_for_function method.
6598 * coffread.c: Include psympriv.h.
6599 (coff_sym_fns): Update.
6600 * blockframe.c: Include psymtab.h.
6601 (find_pc_partial_function): Use find_pc_sect_symtab method.
6602 * ada-lang.h (ada_update_initial_language): Update.
6603 * ada-lang.c: Include psymtab.h.
6604 (ada_update_initial_language): Remove 'main_pst' argument.
6605 (ada_lookup_partial_symbol): Remove.
6606 (struct ada_psym_data): New type.
6607 (ada_add_psyms): New function.
6608 (ada_add_non_local_symbols): Use map_ada_symtabs method.
6609 (struct add_partial_datum): New type.
6610 (ada_add_partial_symbol_completions): New function.
6611 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
6612 (ada_exception_support_info_sniffer): Update.
6613 * Makefile.in (SFILES): Add psymtab.c.
6614 (COMMON_OBS): Add psymtab.o.
6615 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
6616
6617 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6618
6619 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
6620
6621 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
6622
6623 PR C++/11236:
6624 * cp-namespace.c (cp_add_using): Deleted.
6625 (cp_add_using_directive): Use obstack allocations.
6626 Merged the function cp_add_using into this one.
6627 Added 'struct obstack *' argument.
6628 (cp_scan_for_anonymous_namespaces): Updated.
6629 * cp-support.h: Updated.
6630 * dwarf2read.c (read_import_statement): Updated.
6631 (read_namespace): Updated.
6632
6633 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6634
6635 * windows-nat.c (cygwin_conv_path): Remove old macro.
6636
6637 2010-03-10 Pedro Alves <pedro@codesourcery.com>
6638
6639 * breakpoint.c (condition_command): Handle watchpoint conditions.
6640 (is_hardware_watchpoint): Add comment.
6641 (is_watchpoint): New.
6642 (update_watchpoint): Don't reparse the watchpoint's condition
6643 unless necessary.
6644 (WP_IGNORE): New.
6645 (watchpoint_check): Use it.
6646 (bpstat_check_watchpoint): Handle it.
6647 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
6648 conditions in a frame where it makes sense.
6649 (watch_command_1): Store the innermost block of the condition
6650 expression.
6651 (delete_breakpoint): Delete the watchpoint condition expression.
6652 * breakpoint.h (struct bp_location) <cond>: Update comment.
6653 (struct breakpoint): New field `cond_exp_valid_block'.
6654
6655 2010-03-09 Joel Brobecker <brobecker@adacore.com>
6656
6657 Adjust handling of Ada DIEs after dwarf2_physname patch.
6658 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
6659
6660 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
6661 Pierre Muller <muller@ics.u-strasbg.fr>
6662
6663 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
6664 from/to posix/win32.
6665 (windows_make_so): Use non-Cygwin 1.7 specific function.
6666 (windows_create_inferior): Make sure that cygallargs points to
6667 original args in non Cygwin 1.7. case.
6668
6669 2010-03-09 Michael Snyder <msnyder@vmware.com>
6670
6671 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
6672 after target_read_memory to get host byte order.
6673 (i386_process_record): Ditto.
6674
6675 2010-03-09 Keith Seitz <keiths@redhat.com>
6676
6677 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
6678 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
6679 print out const or volatile qualifiers, too.
6680 (c_type_print_args): Add parameters show_artificial and language.
6681 Skip artificial parameters when requested.
6682 Use the appropriate language printer.
6683 (c_type_print_varspec): Tell c_type_print_args to skip artificial
6684 parameters and pass language_c.
6685 * dwarf2read.c (die_list): New file global.
6686 (struct partial_die_info): Update comments for name field.
6687 (pdi_needs_namespace): Renamed to ...
6688 (die_needs_namespace): ... this. Rewrite.
6689 (dwarf2_linkage_name): Remove.
6690 (add_partial_symbol): Do not predicate the call to
6691 partial_die_full_name based on pdi_needs_namespace.
6692 Remove call to cp_check_possible_namespace_symbols and associated
6693 outdated comments.
6694 (guess_structure_name): Do not inspect child subprogram DIEs.
6695 (dwarf2_fullname): Update comments.
6696 Use die_needs_namespace to assist in computing the name.
6697 (read_func_scope): Use dwarf2_name to get the DIE's name.
6698 Use dwarf2_physname to get the "linkage name" of the DIE.
6699 (dwarf2_add_member_field): Use dwarf2_physname instead of
6700 dwarf2_linkage_name.
6701 (read_structure_type): For structs and classes, set TYPE_NAME, too.
6702 (determine_class): Remove.
6703 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
6704 except Ada.
6705 (new_symbol): Unconditionally call dwarf2_name.
6706 Compute the "linkage name" using dwarf2_physname.
6707 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
6708 When determining to scan for anonymous C++ namespaces, ignore
6709 the linkage name.
6710 (dwarf2_physname): New function.
6711 (dwarf2_full_name): Move content to new function and call
6712 that.
6713 (dwarf2_compute_name): "New" function.
6714 (_initialize_dwarf2_read): Initialize die_list.
6715 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
6716 physname.
6717 (gnu_v3_print_method_ptr): Use the physname for virtual methods
6718 without a demangled name.
6719 Print out type information for non-virtual methods.
6720 * linespec.c (decode_line_1): Force ANY string using "::" (or
6721 "." for java) to use decode_compound, and clean up any stray quoting.
6722 If we found a file symtab, re-evaluate whether the remainder is_quoted.
6723 (decode_compound): Stop consuming at an open parenthesis.
6724 Keep template parameters.
6725 Keep any overload information.
6726 Keep keywords like "const".
6727 Remove paren_pointer.
6728 Move is_quoted check from set_flags to here.
6729 Remove #if 0 code from 2000. Ten years is long enough.
6730 (find_method): Before comparing symbol names, canonicalize the string
6731 from the user.
6732 If a specific overload is requested, find it. Otherwise throw an error.
6733 (find_method_overload_end): New function.
6734 (set_flags): Remove.
6735 (decode_compound): Assume that parentheses are matched.
6736 It's a lot easier.
6737 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
6738 to cplus_demangle.
6739 * linespec.c (decode_line_1): Keep important keywords like
6740 "const" and "volatile".
6741 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
6742 * typeprint.h (c_type_print_args): Add declaration.
6743 * ui-file.c (do_ui_file_obsavestring): New function.
6744 (ui_file_obsavestring): New function.
6745 * ui-file.h (ui_file_obsavestring): Add declaration.
6746 * valops.c (find_overload_match): Resolve the object to
6747 a non-pointer type.
6748 If the object is a data member, search the object for the member
6749 and return with staticp set.
6750 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
6751 Do not attempt to extract a function name from non-function types.
6752 If the extracted function name and the original name are the same,
6753 we don't have a C++ method.
6754
6755 From Jan Kratochvil <jan.kratochvil@redhat.com>:
6756 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
6757
6758 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
6759 and arguments from symbol lookups.
6760 * ax-gdb.c (gen_expr): Likewise.
6761 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
6762 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
6763 lookup_possible_namespace_symbol): Likewise.
6764 * cp-support.c (read_in_psymtabs): Likewise.
6765 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
6766 * language.h (la_lookup_symbol_nonlocal): Likewise.
6767 * scm-valprint.c (scm_inferior_print): Likewise.
6768 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
6769 * solib-svr.c (elf_lookup_lib): Likewise.
6770 * solib.c (show_auto_solib_add): Likewise.
6771 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
6772 * symmisc.c (maintenance_check_symtabs): Likewise.
6773 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
6774 lookup_symbol_aux_local, lookup_symbol_aux_block,
6775 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
6776 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
6777 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
6778 basic_lookup_transparent_type, find_main_psymtab,
6779 lookup_block_symbol): Likewise.
6780 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
6781 lookup_symbol_global, lookup_symbol_aux_block,
6782 lookup_symbol_partial_symbol, lookup_block_symbol,
6783 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
6784
6785 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
6786
6787 * python/python-internal.h: Include symtab.h.
6788
6789 2010-03-09 Joel Brobecker <brobecker@adacore.com>
6790 Pierre Muller <muller@ics.u-strasbg.fr>
6791
6792 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
6793 * p-valprint.c (pascal_val_print): Remove undeed block and fix
6794 indentation.
6795
6796 2010-03-08 Tom Tromey <tromey@redhat.com>
6797
6798 * breakpoint.c (breakpoint_1): Add "QUIT".
6799
6800 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
6801 Pedro Alves <pedro@codesourcery.com>
6802
6803 * solib.c (solib_find): Replace extension if
6804 solib_symbols_extension is set in the target gdbarch.
6805 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6806 solib_symbols_extension to "sym".
6807 * gdbarch.sh (solib_symbols_extension): New variable.
6808 (pstring): New function.
6809 * gdbarch.h, gdbarch.c: Regenerate.
6810
6811 2010-03-08 Tom Tromey <tromey@redhat.com>
6812
6813 PR cli/9591:
6814 * NEWS: Update.
6815 * utils.c: Include main.h.
6816 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
6817 (defaulted_query): Use default answer if `batch_flag'.
6818 * main.h (batch_flag): Declare.
6819 * main.c (batch_flag): New global.
6820 (captured_main): Remove 'batch'. Update.
6821
6822 2010-03-08 Kevin Buettner <kevinb@redhat.com>
6823
6824 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
6825 and Kevin Buettner:
6826
6827 * remote-mips.c (rockhopper_ops): New target_ops struct.
6828 (MON_ROCKHOPPER): New mips_monitor_type.
6829 (read_hex_value): New function.
6830 (mips_request): Send 8-byte values with a 'T' packet. Read the
6831 packet argument as a string and use read_hex_value to parse it.
6832 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
6833 (rockhopper_open): New function.
6834 (mips_wait): Read the PC, FP and SP fields as strings. Use
6835 read_hex_value to parse them and mips_set_register to commit them.
6836 (mips_set_register): New function.
6837 (mips_fetch_registers): Do not cast register value to "unsigned"
6838 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
6839 (mips_store_registers): Use a 'T' packet to set registers when
6840 using MON_ROCKHOPPER.
6841 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
6842 and expect the total to be printed before the entry address.
6843 (_initialize_remote_mips): Initialize and add rockhopper_ops.
6844
6845 2010-03-08 Kevin Buettner <kevinb@redhat.com>
6846
6847 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
6848 Change return value to int. Store value fetched in location
6849 addressed by `val'. Use function's return value as success
6850 or failure indicator. Adjust all callers.
6851
6852 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
6853
6854 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
6855
6856 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6857 Hui Zhu <teawater@gmail.com>
6858
6859 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
6860 tmp_to_stopped_data_address.
6861 (record_open): Reset tmp_to_stopped_by_watchpoint and
6862 tmp_to_stopped_data_address.
6863 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
6864 to_stopped_data_address.
6865
6866 2010-03-08 Hui Zhu <teawater@gmail.com>
6867
6868 * i386-tdep.c (i386_process_record): Initialize regnum.
6869
6870 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6871
6872 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
6873 Do not warn on ".gnu.liblist" and ".gnu.conflict".
6874
6875 2010-03-08 Joel Brobecker <brobecker@adacore.com>
6876
6877 Memory error when reading wrong core file.
6878 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
6879 errors while reading the inferior memory, and return zero if
6880 an exception was raised.
6881
6882 2010-03-07 Michael Snyder <msnyder@vmware.com>
6883
6884 * record.c (record_restore): Rename tmpu8 to rectype.
6885
6886 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
6887 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
6888
6889 (i386_record_push): Rename local tmpulongest to addr.
6890
6891 (i386_process_record): Rename local tmpulongest to addr.
6892
6893 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
6894 addr64.
6895
6896 Rename local variable tmpu8 to opcode8 and regnum.
6897
6898 2010-03-07 Joel Brobecker <brobecker@adacore.com>
6899
6900 * remote.c (remote_get_ada_task_ptid): New function.
6901 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
6902
6903 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
6904
6905 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
6906 block. Define helper macros to reduce ifdefs in code.
6907 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
6908 size. Call unadorned GetModuleFileNameEx rather than
6909 GetModuleFileNameEx*.
6910 (windows_make_so): Use __PMAX to denote maximum buffer size and
6911 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
6912 appropriate.
6913 (get_image_name): Use __PMAX to denote maximum buffer size.
6914 (handle_load_dll): Likewise.
6915 (windows_pid_to_exec_file): Likewise.
6916 (windows_create_inferior): Add many accommodations for older Cygwin and
6917 non-Cygwin.
6918 (bad_GetModuleFileNameExW): Control inclusion of this function based on
6919 __USEWIDE conditional.
6920 (bad_GetModuleFileNameExA): Likewise.
6921 (_initialize_loadable): Just use real function names without the dyn_
6922 part since they are defined earlier.
6923
6924 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
6925 Tom Tromey <tromey@redhat.com>
6926
6927 * utils.c (host_char_to_target): Add 'gdbarch' argument.
6928 (parse_escape): Likewise.
6929 * python/py-utils.c (unicode_to_target_string): Update.
6930 (unicode_to_target_python_string): Update.
6931 (target_string_to_unicode): Update.
6932 * printcmd.c (printf_command): Update.
6933 * p-exp.y (yylex): Update.
6934 * objc-exp.y (yylex): Update.
6935 * mi/mi-parse.c: Include charset.h.
6936 (mi_parse_escape): New function.
6937 (mi_parse_argv): Use it.
6938 * jv-exp.y (yylex): Update.
6939 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
6940 function.
6941 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
6942 * gdbarch.sh (auto_charset, auto_wide_charset): New.
6943 * gdbarch.c: Rebuild.
6944 * gdbarch.h: Rebuild.
6945 * defs.h (parse_escape): Update.
6946 * cli/cli-setshow.c: Include arch-utils.h.
6947 (do_setshow_command): Update.
6948 * cli/cli-cmds.c (echo_command): Update.
6949 * charset.h (target_charset, target_wide_charset): Update.
6950 * charset.c: Include arch-utils.h.
6951 (target_charset_name): Default to "auto".
6952 (target_wide_charset_name): Likewise.
6953 (show_target_charset_name): Handle "auto".
6954 (show_target_wide_charset_name): Likewise.
6955 (be_le_arch): New global.
6956 (set_be_le_names): Add 'gdbarch' argument.
6957 (validate): Likewise. Don't call set_be_le_names.
6958 (set_charset_sfunc, set_host_charset_sfunc)
6959 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
6960 Update.
6961 (target_charset): Add 'gdbarch' argument.
6962 (target_wide_charset): Likewise. Remove 'byte_order' argument.
6963 (auto_target_charset_name): New global.
6964 (default_auto_charset, default_auto_wide_charset): New functions.
6965 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
6966 for target charsets. Copy result of nl_langinfo. Use GetACP if
6967 USE_WIN32API.
6968 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
6969 remove 'byte_order' argument. Update.
6970 (classify_type): Likewise.
6971 (c_emit_char): Update.
6972 (c_printchar): Update.
6973 (c_printstr): Update.
6974 (c_get_string): Update.
6975 (evaluate_subexp_c): Update.
6976 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
6977 Declare.
6978 * python/python.c (gdbpy_target_charset): New function.
6979 (gdbpy_target_wide_charset): Likewise.
6980 (GdbMethods): Update.
6981 * NEWS: Update.
6982
6983 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
6984
6985 * symfile.c (build_section_addr_info_from_objfile): Do not mask
6986 off high address bits.
6987
6988 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
6989
6990 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
6991 address as UnsignedLongLong, not LongLong.
6992
6993 2010-03-05 Kevin Buettner <kevinb@redhat.com>
6994 Pedro Alves <pedro@codesourcery.com>
6995
6996 * remote-mips.c (gdbthread.h): Include.
6997 (remote_mips_ptid): Declare.
6998 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
6999 (common_open): Set inferior_ptid, add it as an inferior, and
7000 as a thread too. Delete FIXME comment regarding start_remote().
7001 (mips_close): Invoke generic_mourn_inferior().
7002 (mips_kill): Make sure that target_mourn_inferior is invoked.
7003 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7004 it's now invoked from mips_close().
7005 (mips_load): Don't null out inferior_ptid. Don't call
7006 clear_symtab_users().
7007 (mips_thread_alive, mips_pid_to_str): New functions.
7008 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7009 to_thread_alive and to_pid_to_str operations.
7010
7011 2010-03-04 Tom Tromey <tromey@redhat.com>
7012
7013 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7014 in DWARF 3 and later.
7015 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7016
7017 2010-03-04 Keith Seitz <keiths@redhat.com>
7018
7019 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7020 If the filename portion of the linespec was quoted, recheck the
7021 remainder for additional quoting.
7022 (locate_first_half): Skip over completer chars, too.
7023
7024 2010-03-04 Tom Tromey <tromey@redhat.com>
7025
7026 * printcmd.c (printf_command): Pass dummy argument to
7027 printf_filtered.
7028
7029 2010-03-04 Doug Evans <dje@google.com>
7030
7031 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
7032 unwound_fp.
7033
7034 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
7035
7036 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7037
7038 * breakpoint.c (update_watchpoint): Create a sentinel location if
7039 the software watchpoint isn't watching any memory.
7040 (breakpoint_address_bits): Skip dummy software watchpoint locations.
7041
7042 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7043
7044 * utils.c (fputs_maybe_filtered): Check if there's already a top
7045 level interpreter before dereferencing it. If there isn't one,
7046 don't paginate either.
7047
7048 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7049
7050 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
7051 the state right when single stepping.
7052 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
7053 Get the next PC along with the instruction state.
7054 (thumb_get_next_pc): Remove.
7055 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
7056
7057 2010-03-04 Hui Zhu <teawater@gmail.com>
7058
7059 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
7060
7061 2010-03-03 Pedro Alves <pedro@codesourcery.com>
7062
7063 * utils.c (fputs_maybe_filtered): Always disable pagination if the
7064 top level interpreter is MI.
7065
7066 2010-03-03 Stan Shebs <stan@codesourcery.com>
7067
7068 * remote.c (remote_download_tracepoint): Iterate over locations.
7069 * tracepoint.c (validate_actionline): Ditto.
7070 (encode_actions): Add location argument.
7071 (trace_dump_command): Check all locations to see if stepping
7072 frame.
7073
7074 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
7075 Eli Zaretskii <eliz@gnu.org>
7076
7077 * NEWS: Add X86 general purpose registers section.
7078
7079 2010-03-03 Tom Tromey <tromey@redhat.com>
7080
7081 PR mi/11098:
7082 * varobj.c (install_new_value): Handle case where new print_value
7083 is NULL.
7084
7085 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
7086
7087 PR gdb/11345:
7088 * printcmd.c (printf_command): Print end of format string using
7089 printf_filtered.
7090
7091 2010-03-02 Tom Tromey <tromey@redhat.com>
7092
7093 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
7094 * defs.h (read_command_lines_1): Add missing 'void'.
7095 * cli/cli-script.c (recurse_read_control_structure): Add missing
7096 'void'.
7097 (read_next_line): Likewise.
7098 (read_command_lines_1): Likewise.
7099
7100 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7101
7102 * spu-tdep.c (spu_analyze_prologue): Track instruction to
7103 store backchain as part of prologue.
7104
7105 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
7106
7107 * progspace.c (update_address_spaces): Update inferior address spaces
7108 also.
7109
7110 2010-03-02 Doug Evans <dje@google.com>
7111
7112 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
7113 lowpc,highpc args to addrmap_set_empty.
7114
7115 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
7116
7117 * amd64-tdep.c (amd64_byte_names): New.
7118 (amd64_word_names): Likewise.
7119 (amd64_dword_names): Likewise.
7120 (amd64_pseudo_register_name): Likewise.
7121 (amd64_pseudo_register_read): Likewise.
7122 (amd64_pseudo_register_write): Likewise.
7123 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
7124 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
7125 set_gdbarch_pseudo_register_write and
7126 set_tdesc_pseudo_register_name. Don't call
7127 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
7128
7129 * i386-tdep.c (i386_num_mmx_regs): Removed.
7130 (i386_num_pseudo_regs): Likewise.
7131 (i386_byte_names): New.
7132 (i386_word_names): Likewise.
7133 (i386_byte_regnum_p): Likewise.
7134 (i386_word_regnum_p): Likewise.
7135 (i386_mmx_regnum_p): Updated.
7136 (i386_pseudo_register_name): Make it global. Handle byte and
7137 word pseudo-registers.
7138 (i386_pseudo_register_read): Likewise.
7139 (i386_pseudo_register_write): Likewise.
7140 (i386_pseudo_register_type): Handle byte, word and dword
7141 pseudo-registers
7142 (i386_register_reggroup_p): Don't include pseudo
7143 registers, except for MXX, in any register groups. Don't
7144 include pseudo byte, word, dword registers in general_reggroup.
7145 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
7146 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
7147 pseudo-registers after word pseudo-registers. Call
7148 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
7149
7150 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
7151 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
7152 eax_regnum.
7153 (i386_byte_regnum_p): New.
7154 (i386_word_regnum_p): Likewise.
7155 (i386_dword_regnum_p): Likewise.
7156 (i386_pseudo_register_name): Likewise.
7157 (i386_pseudo_register_read): Likewise.
7158 (i386_pseudo_register_write): Likewise.
7159
7160 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7161
7162 * target-descriptions.c (tdesc_type): Remove
7163 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7164 (tdesc_predefined_types): Likewise.
7165 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
7166 if flag name is empty.
7167 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
7168
7169 * features/i386/32bit-core.xml: Define i386_eflags.
7170 * features/i386/64bit-core.xml: Likewise.
7171
7172 * features/i386/32bit-sse.xml: Define i386_mxcsr.
7173 * features/i386/64bit-sse.xml: Likewise.
7174
7175 * features/i386/amd64-linux.c: Regenerated.
7176 * features/i386/amd64.c: Likewise.
7177 * features/i386/i386-linux.c: Likewise.
7178 * features/i386/i386.c: Likewise.
7179
7180 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
7181
7182 * gdbtypes.c (append_composite_type_field_raw): New.
7183 (append_composite_type_field_aligned): Use the new function.
7184 * gdbtypes.h (append_composite_type_field_raw): Declare.
7185 * target-descriptions.c (struct tdesc_type_field): Add start and end.
7186 (struct tdesc_type_flag): New type.
7187 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
7188 kind. Add size to u.u. Add u.f for flags.
7189 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
7190 (tdesc_free_type): Likewise.
7191 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
7192 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
7193 (tdesc_add_bitfield, tdesc_add_flag): New.
7194 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
7195 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
7196 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
7197 current_type. Add current_type_size and current_type_is_flags.
7198 (tdesc_start_union): Clear the new fields.
7199 (tdesc_start_struct, tdesc_start_flags): New.
7200 (tdesc_start_field): Handle struct fields, including bitfields.
7201 (field_attributes): Make type optional. Add start and end.
7202 (union_children): Rename to struct_union_children.
7203 (union_attributes): Rename to struct_union_attributes. Add optional
7204 size.
7205 (flags_attributes): New.
7206 (feature_children): Add struct and flags.
7207 * features/gdb-target.dtd: Add flags and struct to features.
7208 Make field type optional. Add field start and end.
7209
7210 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7211
7212 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
7213 (amd64_linux_read_description): Likewise.
7214 (_initialize_amd64_linux_nat): Set to_read_description to
7215 amd64_linux_read_description.
7216
7217 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
7218 (amd64_linux_register_name): Removed.
7219 (amd64_linux_register_type): Likewise.
7220 (amd64_linux_core_read_description): New.
7221 (amd64_linux_init_abi): Set target description to
7222 tdesc_amd64_linux if needed. Support orig_rax in target
7223 description. Don't call set_gdbarch_register_name nor
7224 set_gdbarch_register_type. Call
7225 set_gdbarch_core_read_description.
7226 (_initialize_amd64_linux_tdep): Call
7227 initialize_tdesc_amd64_linux.
7228
7229 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
7230
7231 * amd64-tdep.c: Include "features/i386/amd64.c".
7232 (amd64_register_names): Removed.
7233 (amd64_register_name): Likewise.
7234 (amd64_register_type): Likewise.
7235 (amd64_init_abi): Set num_core_regs and register_names. Set
7236 target description to tdesc_amd64 if needed. Don't call
7237 set_gdbarch_register_name nor set_gdbarch_register_type.
7238 (_initialize_amd64_tdep): New.
7239
7240 * i386-linux-nat.c (i386_linux_read_description): New.
7241 (_initialize_i386_linux_nat): Set to_read_description to
7242 i386_linux_read_description.
7243
7244 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
7245 (i386_linux_register_name): Removed.
7246 (i386_linux_core_read_description): New.
7247 (i386_linux_read_description): Likewise.
7248 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
7249 Set target description to tdesc_i386_linux if needed. Support
7250 orig_eax. Set register_reggroup_p. Call
7251 set_gdbarch_core_read_description.
7252 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
7253
7254 * i386-linux-tdep.h (tdesc_i386_linux): New.
7255
7256 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
7257 with I387_NUM_REGS.
7258
7259 * i386-tdep.c: Include "features/i386/i386.c".
7260 (i386_register_names): Make it const.
7261 (i386_mmx_names): Likewise.
7262 (i386_num_register_names): Removed.
7263 (i386_register_name): Likewise.
7264 (i386_eflags_type): Likewise.
7265 (i386_mxcsr_type): Likewise.
7266 (i386_sse_type): Likewise.
7267 (i386_register_type): Likewise.
7268 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
7269 (i386_pseudo_register_name): New.
7270 (i386_pseudo_register_type): Likewise.
7271 (i386_mmx_type): Make it static.
7272 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
7273 I387_NUM_REGS. Set num_core_regs and register_names. Don't
7274 call set_gdbarch_register_name nor set_gdbarch_register_type.
7275 Set register_reggroup_p. Set target description to tdesc_i386
7276 if needed. Call set_tdesc_pseudo_register_type,
7277 set_tdesc_pseudo_register_name and tdesc_use_registers.
7278 (_initialize_i386_tdep): Call initialize_tdesc_i386.
7279 initialize_tdesc_x86_64.
7280
7281 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
7282 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
7283 register_names, tdesc and register_reggroup_p.
7284 (I386_NUM_FREGS): Removed.
7285 (i386_eflags_type): Likewise.
7286 (i386_mxcsr_type): Likewise.
7287 (i386_mmx_type): Likewise.
7288 (i386_sse_type): Likewise.
7289 (i386_register_name): Likewise.
7290 (i386_regnum): Add I386_MXCSR_REGNUM.
7291 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
7292
7293 * i387-tdep.h (I387_NUM_REGS): New.
7294
7295 * regformats/i386/i386-linux.dat: Generated.
7296 * regformats/i386/i386.dat: Likewise.
7297 * regformats/i386/amd64-linux.dat: Likewise.
7298 * regformats/i386/amd64.dat: Likewise.
7299
7300 * regformats/reg-i386-linux.dat: Removed.
7301 * regformats/reg-i386.dat: Likewise.
7302 * regformats/reg-x86-64-linux.dat: Likewise.
7303 * regformats/reg-x86-64.dat: Likewise.
7304
7305 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
7306
7307 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7308 cygwin_conv_path API rather than the deprecated
7309 cygwin_conv_to_full_posix_path.
7310 * windows-nat.c:
7311 (GetModuleFileNameExA): Undefine for Cygwin.
7312 (GetModuleFileNameExW): Define for Cygwin.
7313 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
7314 Call GetModuleFileNameExW and convert path to POSIX using
7315 cygwin_conv_path.
7316 (windows_make_so): Always define p. Drop unused variable m.
7317 Don't use Win32 functions to check file existance, rather use
7318 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
7319 Use canonicalize_file_name to get full path.
7320 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
7321 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
7322 use correct target buffer size in call to WideCharToMultiByte.
7323 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
7324 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
7325 (windows_create_inferior): Convert all paths and arguments to wchar_t
7326 and use CreateProcessW on Cygwin.
7327 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
7328 (bad_GetModuleFileNameExA): Undefine for Cygwin.
7329 (bad_GetModuleFileNameExW): Define for Cygwin.
7330 (_initialize_loadable): Load GetModuleFileNameExW into
7331 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
7332
7333 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
7334
7335 PR python/11036
7336 * python/py-frame.c (frapy_read_var): Add block argument and logic
7337 to cope with user provided blocks.
7338
7339 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7340
7341 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
7342 New comment.
7343
7344 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
7345
7346 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
7347 (COMMON_OBS): ... to here since it's used unconditionally.
7348 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
7349 (SFILES): To here.
7350
7351 2010-02-26 David Daney <ddaney@caviumnetworks.com>
7352
7353 * mips-linux-tdep.c: Update struct sigframe comments.
7354 (SIGFRAME_CODE_OFFSET): Delete macro.
7355 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
7356 this_frame's sp.
7357 (mips_linux_n32n64_sigframe_init): Same.
7358
7359 2010-02-26 Kevin Buettner <kevinb@redhat.com>
7360
7361 * remote-mips.c (mips_load): Don't use pseudo-register when
7362 invalidating regcache.
7363
7364 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7365
7366 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
7367
7368 2010-02-26 Pedro Alves <pedro@codesourcery.com>
7369
7370 * NEWS: Add "New targets" section, and mention ARM Symbian
7371 support.
7372
7373 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
7374
7375 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
7376 add ADDR_SIZE member.
7377 (allocate_piece_closure): Update.
7378 (copy_pieced_value_closure): Likewise.
7379 (dwarf2_evaluate_loc_desc): Likewise.
7380 (read_pieced_value): Use DWARF address size instead of
7381 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
7382
7383 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
7384 Tom Tromey <tromey@redhat.com>
7385
7386 * python/py-type.c (typy_lookup_typename): Add in block argument.
7387 If provided restrict lookup to specified blocks.
7388 (gdbpy_lookup_type): Likewise.
7389 (typy_lookup_type): Likewise.
7390
7391 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7392
7393 Symbian config
7394
7395 gdb/
7396 * arm-symbian-tdep.c: New.
7397 * configure.tgt (arm*-*-symbianelf*): New target.
7398 (*-*-symbianelf*): New OS.
7399 * osabi.c (gdb_osabi_names): Add Symbian.
7400 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
7401 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
7402 (ALLDEPFILES): Add arm-symbian-tdep.c.
7403
7404 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7405
7406 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
7407
7408 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7409
7410 * mi/mi-main.c (mi_cmd_execute): Fix typo.
7411
7412 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
7413 Tom Tromey <tromey@redhat.com>
7414 Thiago Jung Bauermann <bauerman@br.ibm.com>
7415
7416 * python/python.c (_initialize_python): Call
7417 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
7418 gdbpy_initialize_blocks.
7419 * python/python-internal.h: Declare struct symbol, block and
7420 symtab_and_line. Declare block_object_type and
7421 symbol_object_type
7422 (gdbpy_lookup_symbol gdbpy_block_for_pc)
7423 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
7424 (symbol_to_symbol_object, block_to_block_object)
7425 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
7426 (gdbpy_initialize_blocks ): Declare.
7427 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
7428 (frapy_select): Add methods.
7429 (frapy_read_var): Add symbol branch.
7430 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
7431 py-block.
7432 (SUBDIR_PYTHON_SRCS): Likewise.
7433 (py-symbol.o): New rule.
7434 (py-symtab.o): Likewise.
7435 (py-block.o): Likewise.
7436 * python/py-symbol.c: New file.
7437 * python/py-symtab.c: Likewise.
7438 * python/py-block.c: Likewise.
7439
7440 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7441
7442 PR gdb/11321
7443
7444 * inferior.h (prepare_for_detach): Declare.
7445 (struct inferior) <detaching>: New field.
7446 * infrun.c (prepare_for_detach): New.
7447 (handle_inferior_event) <random signal>: Don't stop if detaching.
7448 * target.c (target_detach): Call prepare_for_detach.
7449
7450 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7451
7452 Per-process displaced stepping queue.
7453
7454 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
7455 (displaced_step_gdbarch, displaced_step_closure,
7456 (displaced_step_original, displaced_step_copy): Move globals to
7457 this...
7458 (struct displaced_step_inferior_state): ... new structure.
7459 (displaced_step_inferior_states): New global.
7460 (get_displaced_stepping_state, add_displaced_stepping_state)
7461 (remove_displaced_stepping_state, infrun_inferior_exit): New
7462 functions.
7463 (displaced_step_clear): Add displaced_step_inferior_state
7464 parameter, and adjust to handle it.
7465 (displaced_step_clear_cleanup): Parameter is now a
7466 displaced_step_inferior_state. Adjust.
7467 (displaced_step_prepare): Adjust.
7468 (displaced_step_fixup, displaced_step_fixup)
7469 (infrun_thread_ptid_changed, resume): Adjust.
7470 (init_wait_for_inferior): Don't call displaced_step_clear.
7471 (infrun_thread_stop_requested): Rewrite.
7472 (_initialize_infrun): Install infrun_inferior_exit as
7473 inferior_exit observer.
7474
7475 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7476
7477 * inferior.h (ptid_match): Declare.
7478 * infrun.c (ptid_match): New.
7479 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
7480 (handle_notification): Add debug output.
7481 * linux-nat.c (ptid_match): Delete.
7482
7483 2010-02-24 David S. Miller <davem@davemloft.net>
7484
7485 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
7486 * syscalls/sparc-linux.xml: New.
7487 * syscalls/sparc64-linux.xml: New.
7488 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7489 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
7490 (sparc32_linux_get_syscall_number): New function.
7491 (sparc32_linux_init_abi): Set syscall XML file name and hook up
7492 syscall number fetcher.
7493 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
7494 (sparc64_linux_get_syscall_number): New function.
7495 (sparc64_linux_init_abi): Set syscall XML file name and hook up
7496 syscall number fetcher.
7497
7498 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7499
7500 Multiexec MI
7501
7502 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
7503 * inferior.c (add_inferior_silent): Notify inferior_added
7504 observer.
7505 (delete_inferior_1): Notify inferior_removed observer.
7506 (exit_inferior_1): Pass inferior, not pid, to observer.
7507 (inferior_appeared): Likewise.
7508 (add_inferior_with_spaces): New.
7509 (add_inferior_command): Use the above.
7510 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
7511 Declare.
7512
7513 * inflow.c (inflow_inferior_exit): Likewise.
7514 * jit.c (jit_inferior_exit_hook): Likewise.
7515
7516 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
7517 remove-inferior.
7518 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7519 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
7520 (report_initial_inferior): New.
7521 (mi_inferior_removed): Register the above. Make sure
7522 inferior_added observer is called on the first inferior.
7523 (mi_new_thread, mi_thread_exit): Thread group is now identified by
7524 inferior number, not pid.
7525 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
7526 affected.
7527 * mi/mi-main.c (current_context): New.
7528 (proceed_thread_callback): Use typed closure.
7529 Proceed everything if pid is 0. Most implementation split into
7530 (proceed_thread): ... this.
7531 (run_one_inferior): New.
7532 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
7533 Adjust for multiexec behaviour.
7534 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7535 (mi_cmd_execute): Handle the 'thread-group' option here.
7536 Do some extra checks.
7537 * mi-parse.c (mi_parse): Handle the --all and --thread-group
7538 options.
7539 * mi-parse.h (struct mi_parse): New fields all and thread_group.
7540
7541 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7542
7543 Make -exec-run a proper MI commands.
7544
7545 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
7546 * mi/mi-cmds.c (mi_cmds): Adjust.
7547 * mi/mi-main.c (mi_cmd_exec_run): New.
7548
7549 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7550 Stan Shebs <stan@codesourcery.com>
7551
7552 * tracepoint.h (set_traceframe_number)
7553 (cleanup_restore_current_traceframe): Declare.
7554 * tracepoint.c (set_traceframe_number): New.
7555 (struct current_traceframe_cleanup): New.
7556 (do_restore_current_traceframe_cleanup)
7557 (restore_current_traceframe_cleanup_dtor)
7558 (make_cleanup_restore_current_traceframe): New.
7559 * infrun.c: Include tracepoint.h.
7560 (fetch_inferior_event): Switch out and in of tfind mode.
7561
7562 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7563
7564 * breakpoint.c (breakpoint_init_inferior): Also delete
7565 bp_shlib_event breakpoints.
7566 * solib-frv.c (enable_break): Remove call to
7567 remove_solib_event_breakpoints.
7568 * solib-svr4.c (enable_break): Ditto.
7569 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
7570 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
7571 * solib-som.c (som_solib_create_inferior_hook): Ditto.
7572 * solib-spu.c (spu_enable_break): Ditto.
7573
7574 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7575
7576 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
7577
7578 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7579
7580 * varobj.c (varobj_update): Avoid non-constants in initializers.
7581
7582 2010-02-23 Tom Tromey <tromey@redhat.com>
7583
7584 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
7585 handle big-endian values.
7586 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
7587
7588 2010-02-22 Pedro Alves <pedro@codesourcery.com>
7589
7590 PR9605
7591
7592 gdb/
7593 * breakpoint.c (insert_bp_location): If inserting the read
7594 watchpoint failed, fallback to an access watchpoint.
7595 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
7596 if the value changed, if not watching the same memory for writes.
7597 (watchpoint_locations_match): Add comment.
7598 (update_global_location_list): Copy the location's watchpoint type.
7599 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
7600 handle read watchpoints here.
7601 (i386_insert_watchpoint): Read watchpoints aren't supported.
7602 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
7603 packets.
7604 * target.h (target_insert_watchpoint): Update description.
7605
7606 2010-02-19 Tom Tromey <tromey@redhat.com>
7607
7608 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
7609 * m2-typeprint.c (m2_print_type): Update.
7610 * gdbtypes.c (recursive_dump_type): Update.
7611 (copy_type_recursive): Update.
7612 * c-typeprint.c (c_type_print_varspec_prefix): Update.
7613 (c_type_print_base): Update.
7614 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
7615 Remove.
7616 (struct cplus_struct_type) <ntemplate_args>: Remove.
7617 <struct template_arg>: Remove.
7618 <is_dynamic>: Move earlier.
7619 (TYPE_TEMPLATE_ARGS): Remove.
7620 (TYPE_NTEMPLATE_ARGS): Remove.
7621 (TYPE_TEMPLATE_ARG): Remove.
7622
7623 2010-02-19 Tom Tromey <tromey@redhat.com>
7624
7625 PR c++/8693, PR c++/9496:
7626 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
7627 * c-exp.y (lex_one_token): Rename from yylex. Don't call
7628 write_dollar_variable. Don't try to classify NAME tokens.
7629 (token_and_value): New type.
7630 (token_fifo, popping, name_obstack): New globals.
7631 (classify_name): New function.
7632 (classify_inner_name): Likewise.
7633 (yylex): Likewise.
7634 (VARIABLE): Now has type sval.
7635 (exp : VARIABLE): Call write_dollar_variable.
7636 (qualified_name): Use TYPENAME, not typebase. Add production for
7637 multiple "::" instances.
7638 (variable): Use name_not_typename.
7639 (qualified_type): Remove.
7640 (typebase): Update.
7641
7642 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7643
7644 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
7645 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
7646 found by bfd_get_section_by_name.
7647 * symfile.h (struct section_addr_info) <sectindex>: New comment.
7648
7649 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7650
7651 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
7652 7.0 section" into "Changes in 7.1".
7653
7654 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7655
7656 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
7657 * version.in: Bump version to 7.1.50.20100219-cvs.
7658
7659 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
7660
7661 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
7662 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
7663
7664 2010-02-17 Tom Tromey <tromey@redhat.com>
7665
7666 * NEWS: Add Python API Improvements section.
7667
7668 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
7669
7670 * NEWS: Correct typo.
7671
7672 2010-02-17 Tom Tromey <tromey@redhat.com>
7673
7674 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
7675
7676 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7677
7678 * symfile.c (build_section_addr_info_from_objfile): Include sections
7679 only if they are SEC_ALLOC or SEC_LOAD.
7680
7681 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
7682
7683 PR shlibs/11293
7684 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
7685 of ULONGEST for address size.
7686
7687 2010-02-17 Tom Tromey <tromey@redhat.com>
7688
7689 * NEWS: Add C++ improvements section.
7690
7691 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
7692
7693 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
7694 PyThreadState_Swap): Avoid "statement with no effect" warning.
7695
7696 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7697
7698 * solib-svr4.c (enable_break <target_auxv_search>): New variable
7699 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
7700
7701 2010-02-17 Tristan Gingold <gingold@adacore.com>
7702 Petr Hluzin <petr.hluzin@gmail.com>
7703
7704 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
7705 gdb_assert. Fix info->size for SIG prologue.
7706
7707 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7708
7709 * infcmd.c (show_inferior_tty_command): Check for NULL.
7710 Correct output message.
7711
7712 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7713
7714 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
7715 FUNCTION contains parentheses. Improve removal of a trailing
7716 single quote.
7717
7718 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7719
7720 * gcore.c (do_bfd_delete_cleanup): New function.
7721 (gcore_command): Use it. Discard the cleanup after success.
7722 (gcore_copy_callback): Delete dead code.
7723
7724 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7725
7726 * symfile.c (addr_info_make_relative): Always use
7727 find_lowest_section.
7728
7729 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
7730
7731 * NEWS: Added entry for namespace fixes.
7732
7733 2010-02-15 Tom Tromey <tromey@redhat.com>
7734
7735 * dwarf2read.c (guess_structure_name): Allocate name on the
7736 objfile obstack.
7737
7738 2010-02-15 Tom Tromey <tromey@redhat.com>
7739
7740 * c-typeprint.c (c_type_print_base): Reverse order of test.
7741
7742 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7743
7744 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
7745 initialize it from ELF BFD. Extend the prelink condition by it.
7746
7747 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7748
7749 * defs.h (parse_pid_to_attach): New.
7750 * utils.c (parse_pid_to_attach): New.
7751 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
7752 * gnu-nat.c (gnu_attach): Likewise.
7753 * nto-procfs.c (procfs_attach): Likewise.
7754 * procfs.c (procfs_attach): Likewise.
7755 * windows-nat.c (windows_attach): Likewise.
7756 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
7757 * inf-ttrace.c (inf_ttrace_attach): Likewise.
7758 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
7759 check.
7760
7761 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
7762
7763 * MAINTAINERS: Add myself for write after approval privileges.
7764
7765 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7766
7767 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
7768 block.
7769
7770 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7771
7772 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
7773 only if INFO_VERBOSE.
7774
7775 2010-02-12 Tomas Holmberg <th@virtutech.com>
7776
7777 * mi/mi-main.c: Added the --reverse flag to the following MI
7778 commands: exec-continue, exec-finish, exec-next, exec-step,
7779 exec-next-instruction, exec-step-instruction. This is to
7780 support reverse execution over the MI interface to gdb.
7781
7782 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7783
7784 * tracepoint.c (_initialize_tracepoint): Specify that the address
7785 range of `tfind outsize' is exclusive, and that the address range
7786 of `tfind range' is inclusive, in the commands' help strings.
7787
7788 2010-02-12 Joel Brobecker <brobecker@adacore.com>
7789
7790 Spurious "dll not found" error messages on x64-windows.
7791 * windows-nat.c: Add include of complaints.h.
7792 (handle_unload_dll): Change dll-not-found error into a complaint.
7793
7794 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7795
7796 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
7797 bp_tracepoint and bp_fast_tracepoint, not
7798 bp_loc_software_breakpoint.
7799 (update_global_location_list): Tracepoints are never duplicates of
7800 anything.
7801
7802 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7803
7804 * breakpoint.c (break_command_really): Change return type to int.
7805 Return false if no breakpoint was created, true otherwise.
7806 (trace_command): Don't set the tracepoint count if no tracepoint
7807 was created.
7808 (ftrace_command): Ditto.
7809 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
7810 created in the breakpoints table.
7811
7812 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7813 Ulrich Weigand <uweigand@de.ibm.com>
7814
7815 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
7816
7817 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7818
7819 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
7820 the offset value isn't of integral type.
7821
7822 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7823
7824 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
7825 New.
7826
7827 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7828
7829 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
7830 non-subscriptable types.
7831 * valarith.c (binop_types_user_defined_p): New, abstracted out
7832 from ...
7833 (binop_user_defined_p): ... this.
7834 * value.h (binop_types_user_defined_p): Declare.
7835
7836 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7837
7838 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
7839 Merge uploaded TSVs before merging uploaded tracepoints.
7840
7841 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7842
7843 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
7844
7845 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
7846
7847 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
7848 whitespace character after a dot in comment.
7849 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
7850 Likewise.
7851 (list_args_or_locals): For the 'all' (that is
7852 -stack-list-variables) case, always output list of tuples.
7853 Output 'arg' field if variable is argument.
7854
7855 2010-02-10 Tom Tromey <tromey@redhat.com>
7856
7857 * parser-defs.h (parser_debug): Declare.
7858 * parse.c (_initialize_parse): Install "debug parser" set/show
7859 command.
7860 (parser_debug): New global.
7861 (show_parserdebug): New function.
7862 * c-exp.y (c_parse): Set yydebug.
7863
7864 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
7865
7866 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
7867 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7868 (tdesc_predefined_types): Add i387_ext, i386_eflags and
7869 i386_mxcsr.
7870 (tdesc_find_type): New.
7871 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
7872 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7873
7874 * target-descriptions.h (tdesc_find_type): New.
7875
7876 2010-02-10 Michael Snyder <msnyder@vmware.com>
7877
7878 * gdb-gdb.py: Comment fix.
7879
7880 2010-02-09 Tristan Gingold <gingold@adacore.com>
7881
7882 * machoread.c (macho_symfile_relocate): New function.
7883 (macho_sym_fns): Use macho_symfile_relocate instead of
7884 default_symfile_relocate.
7885 (macho_oso_data): New type.
7886 (current_oso): New variable.
7887 (macho_add_oso_symfile): Do not compute section_addr_info, but
7888 instead set vma of sections.
7889 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
7890 Set and clear current_oso.
7891
7892 2010-02-09 Joel Brobecker <brobecker@adacore.com>
7893
7894 Wrong type description for tagged type parameter.
7895 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
7896 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
7897 reference to a tagged type.
7898
7899 2010-02-09 Tristan Gingold <gingold@adacore.com>
7900
7901 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
7902 brothers of the parent.
7903
7904 2010-02-08 Tom Tromey <tromey@redhat.com>
7905
7906 PR c++/8017:
7907 * value.h: Update.
7908 * valops.c (search_struct_field): Make 'name' const.
7909 (search_struct_method): Likewise.
7910 (find_method_list): Make 'method' const.
7911 (value_struct_elt): Make 'name' and 'err' const.
7912 (value_find_oload_method_list): Make 'method' const.
7913 (find_overload_match): Make 'name' const.
7914 * eval.c (evaluate_subexp_standard): New locals function,
7915 function_name.
7916 <OP_FUNCALL>: Handle OP_SCOPE specially.
7917
7918 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7919
7920 * infrun.c (handle_inferior_event): Do not look up regcache
7921 for exited processes.
7922
7923 2010-02-08 Chris Moller <moller@mollerware.com>
7924
7925 PR gdb/10728
7926 * valarith.c (value_ptrdiff): Added a test for a zero type length,
7927 warn if found, and assume length = 1.
7928
7929 2010-02-08 Chris Moller <cmoller@redhat.com>
7930
7931 PR gdb/9067
7932 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
7933 (cp_print_static_field) Fix use of obstacks.
7934
7935 2010-02-08 Pedro Alves <pedro@codesourcery.com>
7936
7937 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
7938 resumed LWPs as resumed.
7939 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
7940 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
7941 of throwing an internal error. If an LWP of a process we're not
7942 waiting for reports a signal, don't force collecting a SIGSTOP,
7943 and if it was breakpoint hit in non-stop mode, cancel it. Don't
7944 go through all LWPs cancelling breakpoints in non-stop mode.
7945 (resume_stopped_resumed_lwps): New.
7946 (linux_nat_wait): Use it.
7947
7948 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
7949
7950 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
7951 i386/amd64 and i386/amd64-linux.
7952 (i386/i386-expedite): New.
7953 (i386/i386-linux-expedite): Likewise.
7954 (i386/amd64-expedite):Likewise.
7955 (i386/amd64-linux-expedite): Likewise.
7956 ($(outdir)/i386/i386-linux.dat): Likewise.
7957 ($(outdir)/i386/amd64.dat): Likewise.
7958 ($(outdir)/i386/amd64-linux.dat): Likewise.
7959
7960 * features/i386/32bit-core.xml: New.
7961 * features/i386/32bit-linux.xml: Likewise.
7962 * features/i386/32bit-sse.xml: Likewise.
7963 * features/i386/64bit-core.xml: Likewise.
7964 * features/i386/64bit-linux.xml: Likewise.
7965 * features/i386/64bit-sse.xml: Likewise.
7966 * features/i386/i386-linux.xml: Likewise.
7967 * features/i386/i386.xml: Likewise.
7968 * features/i386/amd64-linux.xml: Likewise.
7969 * features/i386/amd64.xml: Likewise.
7970 * features/i386/i386-linux.c: Likewise.
7971 * features/i386/i386.c: Likewise.
7972 * features/i386/amd64-linux.c: Likewise.
7973 * features/i386/amd64.c: Likewise.
7974
7975 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
7976
7977 PR c++/7935:
7978 * cp-support.h: Added char* alias element to using_direct data
7979 struct.
7980 (cp_add_using): Added char* alias argument.
7981 (cp_add_using_directive): Ditto.
7982 * cp-namespace.c: Updated with the above changes.
7983 (cp_lookup_symbol_imports): Check for aliases.
7984 * dwarf2read.c (read_import_statement): Figure out local alias
7985 for the import and pass it on to cp_add_using.
7986 (read_namespace): Pass alias argument to cp_add_using.
7987
7988 2010-02-05 Hui Zhu <teawater@gmail.com>
7989
7990 * defs.h (gdb_bfd_errmsg): New extern.
7991 * exec.c (exec_file_attach): Change bfd_errmsg to
7992 gdb_bfd_errmsg.
7993 * utils.c (AMBIGUOUS_MESS1): New macro.
7994 (AMBIGUOUS_MESS2): New macro.
7995 (gdb_bfd_errmsg): New function.
7996
7997 2010-02-04 Doug Evans <dje@google.com>
7998
7999 * solib-svr4.c (enable_break): Add comment.
8000
8001 2010-02-04 Anthony Green <green@moxielogic.com>
8002
8003 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8004 gracefully.
8005
8006 2010-02-04 Tom Tromey <tromey@redhat.com>
8007
8008 * valops.c (search_struct_field): Account for
8009 value_embedded_offset. Fix check for virtual base past the end of
8010 the object. Use value_copy when making a slice of the value.
8011
8012 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8013
8014 PR tui/9622
8015 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8016 only if gdb_stdout is a tty.
8017
8018 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8019
8020 * target-descriptions.c: Include "osabi.h".
8021 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8022 OSABI.
8023
8024 2010-02-04 Tristan Gingold <gingold@adacore.com>
8025
8026 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8027 (macho_symtab_read): Adjust calls to macho_add_oso.
8028 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8029 (macho_symfile_read): Adjust call to macho_oso_symfile.
8030 (macho_new_init): Move this function after declarations.
8031 (macho_symfile_init): Ditto.
8032 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
8033 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
8034
8035 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
8036
8037 Include MI command in remotelog.
8038
8039 * mi/mi-main.c (mi_execute_command): Call target_log_command.
8040
8041 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8042
8043 * remote.c (remote_state): Remove gdbarch.
8044 (init_remote_state): Don't set gdbarch.
8045 (remote_query_supported): Pass target_gdbarch instead of
8046 rs->gdbarch to gdbarch_qsupported.
8047
8048 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8049
8050 * gdbarch.sh: Add qsupported.
8051
8052 * gdbarch.c: Regenerated.
8053 * gdbarch.h: Likewise.
8054
8055 * remote.c (remote_state): Add gdbarch.
8056 (init_remote_state): Set gdbarch.
8057 (remote_query_supported): Support gdbarch_qsupported.
8058
8059 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
8060
8061 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
8062 __FreeBSD_kernel_version.
8063
8064 2010-02-03 Tristan Gingold <gingold@adacore.com>
8065
8066 * symfile.h (struct sym_fns): Add sym_relocate field.
8067 (default_symfile_relocate): New prototype.
8068 (symfile_relocate_debug_section): First argument is now an objfile.
8069 * symfile.c (default_symfile_relocate): Rename from
8070 symfile_relocate_debug_section, first argument is now an objfile.
8071 (symfile_relocate_debug_section): New function.
8072 * coffread.c (coff_sym_fns): Set sym_relocate field.
8073 * somread.c (som_sym_fns): Ditto.
8074 * mipsread.c (ecoff_sym_fns): Ditto.
8075 * machoread.c (macho_sym_fns): Ditto.
8076 * elfread.c (elf_sym_fns): Ditto.
8077 * dwarf2read.c (dwarf2_read_section): Ditto.
8078 * xcoffread.c (xcoff_sym_fns): Ditto.
8079 * dbxread.c (aout_sym_fns): Ditto.
8080 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
8081 (elfstab_build_psymtabs): Ditto.
8082
8083 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8084
8085 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
8086
8087 2010-02-02 Tom Tromey <tromey@redhat.com>
8088
8089 * valops.c (value_cast_structs): Try downcasting using the RTTI
8090 type.
8091
8092 2010-02-02 Tom Tromey <tromey@redhat.com>
8093
8094 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
8095 (gnuv2_baseclass_offset): Now static.
8096 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
8097 * gnu-v2-abi.h: Remove.
8098
8099 2010-02-02 Tom Tromey <tromey@redhat.com>
8100
8101 * m2-typeprint.c (m2_record_fields): Don't use
8102 TYPE_DECLARED_TYPE.
8103 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
8104 (struct main_type) <flag_declared_class>: New field.
8105 (struct cplus_struct_type) <declared_type>: Remove.
8106 <ntemplate_args>: Move earlier.
8107 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
8108 (DECLARED_TYPE_TEMPLATE): Remove.
8109 (TYPE_DECLARED_TYPE): Remove.
8110 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
8111 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
8112 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
8113 TYPE_DECLARED_TYPE.
8114
8115 2010-02-02 Tom Tromey <tromey@redhat.com>
8116
8117 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
8118 * valops.c (search_struct_field): Compute nbases after calling
8119 CHECK_TYPEDEF.
8120 (check_field): Call CHECK_TYPEDEF.
8121 * cp-valprint.c (cp_print_value): Pass correct address to
8122 baseclass_offset. Fix check for virtual base past the end of the
8123 object. Don't offset address passed to cp_print_value_fields or
8124 apply_val_pretty_printer.
8125 (cp_print_value_fields): Fix call to val_print.
8126 (cp_print_value_fields_rtti): New function.
8127 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
8128 * p-valprint.c (pascal_object_print_value_fields): Fix call to
8129 val_print.
8130 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
8131 offset to address.
8132 * language.h (struct language_defn) <la_val_print>: Document.
8133 * c-lang.h (cp_print_value_fields_rtti): Declare.
8134
8135 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8136
8137 PR libc/11214:
8138 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8139 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
8140 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8141
8142 2010-02-01 Michael Matz <matz@suse.de>
8143 Daniel Jacobowitz <dan@codesourcery.com>
8144
8145 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
8146 functions use a frame pointer.
8147
8148 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8149
8150 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
8151 by a conditional setting DYN_ADDR. Use DYN_ADDR.
8152 * config/djgpp/fnchange.lst: Add translations for
8153 symbol-without-target_section.exp and symbol-without-target_section.c.
8154
8155 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8156
8157 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
8158 (remote_breakpoint_for_pc): Correct invalid_p check.
8159 * gdbarch.c: Regenerated.
8160
8161 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8162
8163 * arm-tdep.c (arm_find_mapping_symbol): New function, from
8164 arm_pc_is_thumb.
8165 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
8166 (extend_buffer_earlier): New function.
8167 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
8168 (arm_adjust_breakpoint_address): New function.
8169 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
8170
8171 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8172
8173 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
8174 (arm_linux_thumb2_le_breakpoint): New constants.
8175 (arm_linux_init_abi): Set thumb2_breakpoint and
8176 thumb2_breakpoint_size.
8177 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
8178 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
8179 Implement support for single stepping through IT blocks if
8180 a 32-bit Thumb breakpoint instruction is available.
8181 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
8182 is available, use it when needed.
8183 (arm_remote_breakpoint_from_pc): New function.
8184 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
8185 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
8186 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
8187
8188 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8189
8190 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
8191 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
8192 * gdbarch.c, gdbarch.h: Regenerated.
8193 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
8194 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
8195 gdbarch_remote_breakpoint_from_pc.
8196
8197 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8198
8199 * infrun.c (prepare_to_proceed): Handle other signals which might
8200 match a breakpoint.
8201 (handle_inferior_event): Move the check for unusual breakpoint
8202 signals earlier.
8203
8204 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
8205
8206 amd64 - function returning record with field straddling 2 registers.
8207 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
8208 a record of length <= 16 in which a field straddles the two
8209 eightbytes.
8210
8211 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8212
8213 Implement return values on amd64-windows.
8214 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
8215 (amd64_windows_return_value): New function.
8216 (amd64_windows_init_abi): Call set_gdbarch_return_value with
8217 amd64_windows_return_value.
8218
8219 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8220
8221 amd64-windows: 32 bytes allocated on stack by caller for integer
8222 parameter registers.
8223 * i386-tdep.h (struct gdbarch_tdep): Add new field
8224 integer_param_regs_saved_in_caller_frame.
8225 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8226 tdep->integer_param_regs_saved_in_caller_frame to 1.
8227 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
8228 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
8229
8230 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8231
8232 amd64-windows: memory args passed by pointer during function calls.
8233 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
8234 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
8235 where tdep->memory_args_by_pointer is non-zero.
8236 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8237 tdep->memory_args_by_pointer to 1.
8238
8239 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8240
8241 amd64-windows: Integer parameters in function calls.
8242 * i386-tdep.h (enum amd64_reg_class): New, moved here from
8243 amd64-tdep.c.
8244 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
8245 call_dummy_integer_regs, and classify.
8246 * amd64-tdep.h (amd64_classify): Add declaration.
8247 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
8248 (amd64_reg_class): Delete, moved to i386-tdep.h.
8249 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
8250 Replace call to amd64_classify by call to tdep->classify.
8251 (amd64_push_arguments): Get the list of registers to use for
8252 passing integer parameters from the gdbarch tdep structure,
8253 rather than using a hardcoded one. Replace calls to amd64_classify
8254 by calls to tdep->classify.
8255 (amd64_push_dummy_call): Get the register number used for
8256 the "hidden" argument from tdep->call_dummy_integer_regs.
8257 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
8258 and tdep->call_dummy_integer_regs. Set tdep->classify.
8259 * amd64-windows-tdep.c: Add include of gdbtypes.h.
8260 (amd64_windows_dummy_call_integer_regs): New static global.
8261 (amd64_windows_classify): New function.
8262 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
8263 tdep->call_dummy_integer_regs and tdep->classify.
8264
8265 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8266
8267 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
8268 for the new regcache. All callers updated.
8269 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
8270 (get_thread_arch_regcache): Do not set aspace here.
8271 * regcache.h (regcache_xmalloc): Update declaration.
8272
8273 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
8274 regcache_xmalloc updated.
8275
8276 2010-01-28 Joel Brobecker <brobecker@adacore.com>
8277
8278 Another -Wunused-function error in procfs.c (sparc-solaris)
8279 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
8280 Only define if SYS_syssgi is defined.
8281 (remove_dbx_link_breakpoint): Delete declaration. Move up.
8282 (dbx_link_addr, insert_dbx_link_bpt_in_file)
8283 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
8284 is itself defined.
8285
8286 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
8287
8288 * windows-nat.c (windows_initialization_done): New variable.
8289 (get_windows_debug_event): Issue error when process dies before
8290 completely initializing.
8291 (do_initial_windows_stuff): Set flag to indicate when we are done with
8292 the initial steps of attaching to the child.
8293
8294 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8295
8296 * symtab.h (struct symbol <symtab>): New comment on NULL values.
8297
8298 2010-01-27 Doug Evans <dje@google.com>
8299
8300 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
8301
8302 * breakpoint.c (bpstat_stop_status): Delete useless code.
8303
8304 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8305
8306 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8307 objfile via SYMBOL_SYMTAB.
8308
8309 2010-01-26 Tom Tromey <tromey@redhat.com>
8310
8311 PR exp/7643:
8312 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
8313 coerce_array on result.
8314
8315 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8316
8317 * cp-namespace.c (cp_lookup_symbol_namespace): Added
8318 search_parent argument.
8319 (cp_add_using): Initialize 'searched' field.
8320 (reset_directive_searched): New function.
8321 * cp-support.h: Add 'searched' field to using_direct struct.
8322 (cp_lookup_symbol_imports): Ditto.
8323 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
8324 Perform recursive search.
8325 Implement non parent search.
8326 * valops.c (value_maybe_namespace_elt): Updated.
8327
8328 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8329
8330 PR gdb/10929:
8331 * dwarf2read.c (read_lexical_block_scope): Create blocks for
8332 scopes which contain using directives even if they contain no
8333 declarations.
8334 * symtab.c (lookup_symbol_aux): Pass lowest level block to
8335 la_lookup_symbol_nonlocal.
8336 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
8337 cp_lookup_symbol_namespace.
8338 (cp_lookup_symbol_namespace): Perform an import lookup at every
8339 block level.
8340 (cp_lookup_symbol_imports): New function.
8341 (cp_lookup_symbol_in_namespace): New function.
8342
8343 2010-01-25 Tom Tromey <tromey@redhat.com>
8344
8345 PR gdb/11049:
8346 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
8347 result.
8348
8349 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8350
8351 * configure.ac: Only use host_os part when disabling TUI on osf.
8352 Use test to check variables, prefix strings with x.
8353 * configure: Regenerate.
8354
8355 * solib-osf.c (osf_current_sos): Initialize tail.
8356
8357 2010-01-25 gingold <gingold@adacore.com>
8358
8359 * windows-nat.c (windows_continue): Use %x to print thread id.
8360 (get_windows_debug_event): Ditto.
8361
8362 2010-01-22 Tom Tromey <tromey@redhat.com>
8363
8364 PR symtab/11199:
8365 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
8366 type and arguments. Use smash_to_methodptr_type.
8367 (read_structure_type): Call quirk_gcc_member_function_pointer
8368 later.
8369 * gdbtypes.h (smash_to_methodptr_type): Declare.
8370 * gdbtypes.c (smash_to_methodptr_type): New function.
8371 (lookup_methodptr_type): Use it.
8372
8373 2010-01-21 Tom Tromey <tromey@redhat.com>
8374
8375 PR symtab/11198:
8376 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
8377 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
8378 * glibc-tdep.c (find_minsym_and_objfile): Remove.
8379 (glibc_skip_solib_resolver): Use
8380 lookup_minimal_symbol_and_objfile.
8381
8382 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
8383
8384 * inflow.c (check_syscall): Guard by #if clause for GO32 and
8385 WIN32 targets.
8386
8387 2010-01-20 Tom Tromey <tromey@redhat.com>
8388
8389 PR backtrace/10770:
8390 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
8391 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
8392 * dwarf2expr.c (new_dwarf_expr_context): Allocate
8393 dwarf_stack_values, not CORE_ADDRs.
8394 (execute_stack_op): Change DW_OP_div and comparison operators to
8395 use signed operands.
8396
8397 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
8398
8399 Per-inferior args and tty and environment.
8400
8401 * infcmd.c (inferior_args): Rename to ...
8402 (inferior_args_scratch): ... this.
8403 (inferior_io_terminal): Rename to ...
8404 (inferior_io_terminal_scratch): ... this.
8405 (inferior_argc, inferior_argv): Remove.
8406 (set_inferior_io_terminal, get_inferior_io_terminal): Store
8407 inside current_inferior().
8408 (set_inferior_tty_command, show_inferior_tty_command): New.
8409 (get_inferior_args, set_inferior_args): Store inside
8410 current_inferior().
8411 (notice_args_set): Likewise and rename to...
8412 (set_args_command): ... this.
8413 (set_inferior_args_vector): Likewise.
8414 (notice_args_read): Rename to...
8415 (show_args_command): ...new.
8416 (tty_command): Remove.
8417 (run_command_1): Don't free old args, as they are freed by
8418 set_inferior_arg now.
8419 (run_no_args_command): Likewise.
8420 (inferior_environ): Remove.
8421 (run_command_1): Use environment of the current inferior.
8422 (environment_info, set_environment_command)
8423 (unset_environment_command, path_info, path_command): Likewise.
8424 (_initialize_infcmd): Adjust for function and variable renames.
8425 Do not init inferior_environ.
8426 * inferior.h (set_inferior_arg): Adjust prototype.
8427 (struct inferior): New fields args, argc, argv, terminal, environment.
8428 (inferior_environ): Remove declaration.
8429 * inferior.c (free_inferior): Free new fields.
8430 (add_inferior_silent): Initialize 'environment' field.
8431 * main.c (captured_main): Set arguments only after the initial
8432 inferior has been created. Set set_inferior_io_terminal,
8433 not tty_command.
8434 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
8435 inferior.
8436 (_initialize_mi_cmd_env): Adjust for disappearance of global
8437 inferior_environ.
8438 * solib.c (solib_find): Use environment of the current inferior.
8439
8440 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8441
8442 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
8443 HAVE_PYTHON.
8444 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
8445
8446 2010-01-20 Joel Brobecker <brobecker@adacore.com>
8447
8448 Get rid of ada-lang.c:function_name_from_pc.
8449 * ada-lang.c: Add "stack.h" #include.
8450 (function_name_from_pc): Delete.
8451 (is_known_support_routine): Replace call to function_name_from_pc
8452 by call to find_frame_funname.
8453 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8454
8455 2010-01-19 Tom Tromey <tromey@redhat.com>
8456
8457 PR c++/11026:
8458 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
8459 objfile obstack.
8460
8461 2010-01-19 Tom Tromey <tromey@redhat.com>
8462
8463 * top.c (stop_sig, float_handler, do_nothing): Remove.
8464
8465 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8466
8467 * breakpoint.c (watchpoint_check): Check the call
8468 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
8469 Extend the comment.
8470 * config/djgpp/fnchange.lst: Add translations for
8471 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
8472 watchpoint-cond-gone-stripped.c.
8473
8474 2010-01-19 Tom Tromey <tromey@redhat.com>
8475
8476 PR c++/8000:
8477 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
8478 into parent scope, and enumerator into grandparent scope.
8479
8480 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8481
8482 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
8483
8484 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8485
8486 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
8487 i[34567]86-*-solaris2.1[0-9]*.
8488 * configure.tgt: Likewise.
8489
8490 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8491
8492 * NEWS: Document the source command enhancement allowing it
8493 to load Python scripts. Document the "set/show script-extension"
8494 commands.
8495
8496 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8497
8498 Add -Wunused-function to compile flags.
8499 * configure.ac: Add -Wunused-function to build_warnings.
8500 * configure: Regenerate.
8501
8502 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8503
8504 "delete" ada-lex.c:input function, not used.
8505 * ada-lex.l: #define YY_NO_INPUT.
8506
8507 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8508
8509 Delete free_named_symtabs and associated cleanup.
8510 * symfile.h (free_named_symtabs): Delete declaration.
8511 * symfile.c: Remove some commented out code (clear_symtab_users_once).
8512 (cashier_psymtab): Comment function out.
8513 Delete declaration.
8514 (free_named_symtabs): Delete.
8515 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
8516 * dbxread.c (end_psymtab): Likewise.
8517 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
8518 * exec.c (exec_close_1): Ditto.
8519 * xcoffread.c (xcoff_end_psymtab): Likewise.
8520
8521 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8522
8523 * stack.c (print_block_frame_labels): Comment function out.
8524
8525 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8526
8527 Delete unused or undefined functions.
8528 * breakpoint.c (ep_parse_optional_filename): Delete.
8529 * dcache.c (dcache_write_line): Remove declaration.
8530 * infrun.c (build_infrun): Remove declaration.
8531 * tracepoint.c (tracepoint_save_command): Remove declaration.
8532 * linux-nat.c (init_lwp_list): Delete. No longer used.
8533 * event-loop.c (check_async_signal_handlers): Delete declaration.
8534 * infrun.c (init_execution_control_state): Delete.
8535 (proceed): Update comment to avoid mentioning
8536 init_execution_control_state.
8537 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
8538 * ada-lang.c (ada_to_static_fixed_value): Delete.
8539 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
8540 * cp-namespace.c (cp_copy_usings): Delete.
8541 * xml-syscall.c (xml_number_of_syscalls): Delete.
8542 * progspace.c (find_program_space_by_num): Delete.
8543 * inflow.c (handle_sigio): Delete declaration.
8544 * hppa-tdep.c (hppa_alignof): Delete.
8545 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
8546 (mipsnbsd_core_osabi_sniffer): Delete.
8547
8548 2010-01-18 Tom Tromey <tromey@redhat.com>
8549
8550 PR c++/9680:
8551 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
8552 (CONST_CAST): New tokens.
8553 (exp): Add new productions.
8554 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
8555 reinterpret_cast.
8556 (is_cast_operator): New function.
8557 (yylex): Handle cast operators specially.
8558 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
8559 UNOP_REINTERPRET_CAST>: New cases.
8560 * expprint.c (print_subexp_standard): Likewise.
8561 (op_name_standard): Likewise.
8562 (dump_subexp_body_standard): Likewise.
8563 * parse.c (operator_length_standard): Likewise.
8564 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
8565 UNOP_REINTERPRET_CAST.
8566 * gdbtypes.c (class_types_same_p): New function.
8567 (is_ancestor): Use it.
8568 (is_public_ancestor): New function.
8569 (is_unique_ancestor_worker): Likewise.
8570 (is_unique_ancestor): Likewise.
8571 * gdbtypes.h (class_types_same_p, is_public_ancestor)
8572 (is_unique_ancestor): Declare.
8573 * valops.c (value_reinterpret_cast): New function.
8574 (dynamic_cast_check_1): Likewise.
8575 (dynamic_cast_check_2): Likewise.
8576 (value_dynamic_cast): Likewise.
8577 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
8578
8579 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8580
8581 Fix build failure when building without Python support.
8582 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
8583 is not defined.
8584
8585 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8586
8587 Use XVS field type instead of doing a parallel lookup.
8588 * ada-lang.c (ada_get_base_type): Follow the XVS field type
8589 if it is a reference type instead of doing a type lookup using
8590 the XVS field name.
8591
8592 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8593
8594 Trust PAD types instead of using PAD___XVS.
8595 * ada-lang.c (trust_pad_over_xvs): New static variable.
8596 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
8597 parallel XVS type, follow the XVS type instead of the PAD type.
8598 (unwrap_value): Make sure that there is no parallel XVE type
8599 before returning the value as is.
8600 (set_ada_list, show_ada_list): New static variables.
8601 (set_ada_command, show_ada_command): New functions.
8602 (_initialize_ada_language): Add new "set/show ada" prefix commands.
8603 Add new "set/show ada trust-PAD-over-XVS" setting.
8604
8605 2010-01-18 Tom Tromey <tromey@redhat.com>
8606 Thiago Jung Bauermann <bauerman@br.ibm.com>
8607
8608 Allow "source" to load python scripts.
8609 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
8610 * python/python.c (source_python_script): New function.
8611 * python/python.h (source_python_script): Add declaration.
8612 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
8613 (script_ext_off, script_ext_soft, script_ext_strict)
8614 (script_ext_enums, script_ext_mode): New static constants.
8615 (show_script_ext_mode, find_and_open_script): New functions.
8616 (source_script): Enhance to handle Python scripts.
8617 (init_cli_cmds): Add set/show script-extension commands.
8618
8619 2010-01-16 Stan Shebs <stan@codesourcery.com>
8620
8621 * tracepoint.h (struct trace_status): Use unsigned long long
8622 instead of size_t.
8623 * tracepoint.c (trace_status_command): Fix printf directive.
8624 (trace_save_command): Check fwrite returns, fix printf directive.
8625 (trace_filename): New global.
8626 (tfile_open): Set it, check read returns.
8627 (tfile_close): Free trace_filename.
8628 (tfile_get_traceframe_address): Check read returns.
8629 (tfile_trace_find): Ditto.
8630 (tfile_fetch_registers): Ditto.
8631 (tfile_xfer_partial): Ditto.
8632 (tfile_get_trace_state_variable_value): Ditto.
8633
8634 2010-01-15 Stan Shebs <stan@codesourcery.com>
8635
8636 Add trace file support.
8637 * tracepoint.h (enum trace_stop_reason): New enum.
8638 (struct trace_status): New struct.
8639 (parse_trace_status): Declare.
8640 (struct uploaded_tp): Move here from remote.c,
8641 add fields for actions.
8642 (struct uploaded_tsv): New struct.
8643 * tracepoint.c (tfile_ops): New target vector.
8644 (trace_fd): New global.
8645 (tfile_open): New function.
8646 (tfile_close): New function.
8647 (tfile_files_info): New function.
8648 (tfile_get_trace_status): New function.
8649 (tfile_get_traceframe_address): New function.
8650 (tfile_trace_find): New function.
8651 (tfile_fetch_registers): New function.
8652 (tfile_xfer_partial): New function.
8653 (tfile_get_trace_state_variable_value): New function.
8654 (init_tfile_ops): New function.
8655 (_initialize_tracepoint): Call it, add tfile target.
8656 (trace_status): New global.
8657 (current_trace_status): New function.
8658 (trace_running_p): Remove, change all users to get from
8659 current_trace_status()->running.
8660 (get_trace_status): Remove.
8661 (trace_status_command): Call target_get_trace_status directly,
8662 report more detail including tracing stop reasons.
8663 (trace_find_command): Always allow tfind on a file.
8664 (trace_find_pc_command): Ditto.
8665 (trace_find_tracepoint_command): Ditto.
8666 (trace_find_line_command): Ditto.
8667 (trace_find_range_command): Ditto.
8668 (trace_find_outside_command): Ditto.
8669 (trace_frames_offset, cur_offset): Declare as off_t.
8670 (trace_regblock_size): Rename from reg_size, update users.
8671 (parse_trace_status): New function.
8672 (tfile_interp_line): New function.
8673 (disconnect_or_stop_tracing): Ensure current trace
8674 status before asking what to do.
8675 (stop_reason_names): New global.
8676 (trace_save_command): New command.
8677 (get_uploaded_tp): Move here from remote.c.
8678 (find_matching_tracepoint): Ditto.
8679 (merge_uploaded_tracepoints): New function.
8680 (parse_trace_status): Use stop_reason_names.
8681 (_initialize_tracepoint): Define tsave command.
8682 * target.h (target_ops): New fields to_save_trace_data,
8683 to_upload_tracepoints, to_upload_trace_state_variables,
8684 to_get_raw_trace_data, change to_get_trace_status
8685 to take a pointer to a status struct.
8686 (target_save_trace_data): New macro.
8687 (target_upload_tracepoints): New macro.
8688 (target_upload_trace_state_variables): New macro.
8689 (target_get_raw_trace_data): New macro.
8690 * target.c (update_current_target): Add new methods, change
8691 signature of to_get_trace_status.
8692 * remote.c (hex2bin): Make globally visible.
8693 (bin2hex): Ditto.
8694 (remote_download_trace_state_variable): Download name also.
8695 (remote_get_trace_status): Update parameter, use
8696 parse_trace_status.
8697 (remote_save_trace_data): New function.
8698 (remote_upload_tracepoints): New function.
8699 (remote_upload_trace_state_variables): New function.
8700 (remote_get_raw_trace_data): New function.
8701 (remote_start_remote): Use them.
8702 (_initialize_remote_ops): Add operations.
8703 * ax-gdb.c: Include breakpoint.h.
8704 * breakpoint.c (create_tracepoint_from_upload): Use
8705 break_command_really, return tracepoint, warn about unimplemented
8706 parts.
8707 * NEWS: Mention trace file addition.
8708
8709 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8710
8711 Fix compilation warning on gcc-3.4.
8712 * exec.c (print_section_info): Move the `displacement' variable
8713 initialization to its declaration.
8714
8715 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8716
8717 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
8718 comparison.
8719
8720 2010-01-15 Eric Botcazou <botcazou@adacore.com>
8721
8722 "info tasks" broken by typedefs in ATCB type definitions.
8723 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
8724 ada_check_typedef before retrieving the length of the type for
8725 regular fields.
8726
8727 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8728
8729 Do not use name-based lookup for unconstrained packed arrays.
8730 * ada-lang.c (find_parallel_type_by_descriptive_type):
8731 Limit the fallback to name-based lookups to the case where
8732 the type is a constrained packed array.
8733
8734 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8735
8736 Enhance gdb-gdb.py to handle main_type.type_specific.
8737 * gdb-gdb.py: Print the type-specific part of struct main_type.
8738
8739 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8740
8741 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
8742 * configure: Regenerate.
8743 * config.in: Regenerate.
8744 * utils.c: Include sys/resource.h.
8745 (dump_core, can_dump_core): New.
8746 (internal_vproblem): Update the comment. Check can_dump_core while
8747 setting dump_core_p. Replace two abort calls by dump_core calls.
8748
8749 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8750 Eli Zaretskii <eliz@gnu.org>
8751
8752 * NEWS: Document the PIE support.
8753
8754 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8755
8756 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
8757 (check_is_pie_binary, _initialize_linux_tdep): Remove.
8758
8759 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8760
8761 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
8762 Replace exec_entry_point call by bfd_get_start_address.
8763
8764 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8765
8766 Support Valgrind attachments broken by the PIE support.
8767 * auxv.c: Include gdbcore.h.
8768 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
8769 parameters ops, object and annex. Remove their assertions.
8770 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
8771 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
8772 (memory_xfer_auxv): ... here.
8773 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
8774 memory_xfer_auxv.
8775 * procfs.c (procfs_xfer_partial): Likewise.
8776 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
8777 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
8778 (svr4_solib_create_inferior_hook): Conditionalize the
8779 svr4_relocate_main_executable call.
8780
8781 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8782
8783 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
8784 target_section. Find SECT in current_target_sections, gdb_assert it.
8785 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
8786 New variable abfd.
8787 * symtab.c (lookup_objfile_from_block): Return the binary file instead
8788 of separate debug info file.
8789
8790 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8791
8792 Support PIEs with no symfile_objfile.
8793 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
8794 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
8795
8796 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8797
8798 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
8799 code part to ...
8800 (svr4_static_exec_displacement): ... a new function.
8801 (svr4_exec_displacement): New function.
8802 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
8803 new_offsets using alloca now. Remove variable old_chain and changed.
8804 Call objfile_relocate unconditionally now.
8805
8806 2010-01-14 Doug Evans <dje@google.com>
8807
8808 * gdbtypes.c (arch_flags_type): Fix comment.
8809 * gdbtypes.h (arch_composite_type): Fix comment.
8810
8811 2009-01-14 Tristan Gingold <gingold@adacore.com>
8812
8813 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
8814 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
8815 to symbol_file_add_from_bfd. Add OSO as separate objfile.
8816 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
8817 macho_add_oso_symfile.
8818 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
8819
8820 2010-01-14 Joel Brobecker <brobecker@adacore.com>
8821
8822 Tru64: Dead threads are never deleted.
8823 * dec-thread.c (dec_thread_ptid_is_alive): New function.
8824 (dec_thread_count_gdb_threads): Fix counter increment.
8825 (dec_thread_add_gdb_thread): Fix *listp increment.
8826 (resync_thread_list): Fix bug in deletion of dead threads that
8827 caused all threads to be deleted, instead of just the dead ones.
8828
8829 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
8830
8831 PR python/10705
8832
8833 * python/python-internal.h: Add lazy_string_object_type
8834 definition.
8835 (create_lazy_string_object, gdbpy_initialize_lazy_string)
8836 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
8837 * python/py-value.c (valpy_lazy_string): New function.
8838 (convert_value_from_python): Add lazy string conversion.
8839 * python/py-prettyprint.c (pretty_print_one_value): Check if
8840 return is also a lazy string.
8841 (print_string_repr): Add lazy string printing branch.
8842 (print_children): Likewise.
8843 * python/py-lazy-string.c: New file. Implement lazy strings.
8844 * python/python.c (_initialize_python): Call
8845 gdbpy_initialize_lazy_string.
8846 * varobj.c (value_get_print_value): Add lazy string printing
8847 branch. Account for encoding.
8848 * c-lang.c (c_printstr): Account for new encoding argument. If
8849 encoding is NULL, find encoding suited for type, otherwise use
8850 user encoding.
8851 * language.h (language_defn): Add encoding argument.
8852 (LA_PRINT_STRING): Likewise.
8853 * language.c (unk_lang_printstr): Update to reflect new encoding
8854 argument to language_defn.
8855 * ada-lang.h (ada_printstr): Likewise.
8856 * c-lang.h (c_printstr): Likewise.
8857 * p-lang.h (pascal_printstr);
8858 * f-lang.c (f_printstr): Likewise.
8859 * m2-lang.c (m2_printstr): Likewise.
8860 * objc-lang.c (objc_printstr): Likewise.
8861 * p-lang.c (pascal_printstr): Likewise.
8862 * scm-lang.c (scm_printstr): Likewise.
8863 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
8864 encoding argument.
8865 * ada-valprint.c (ada_printstr): Likewise.
8866 * f-valprint.c (f_val_print): Likewise
8867 * m2-valprint.c (m2_val_print): Likewise.
8868 * p-valprint.c (pascal_val_print): Likewise.
8869 * expprint.c (print_subexp_standard): Likewise.
8870 * valprint.c (val_print_string): Likewise.
8871 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
8872 (SUBDIR_PYTHON_SRCS): Likewise.
8873 (py-lazy-string.o): New rule.
8874
8875 2010-01-13 Doug Evans <dje@google.com>
8876
8877 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
8878 uninitialized" warning from gcc on local `tree'.
8879
8880 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
8881
8882 Implement core awareness.
8883
8884 * bcache.c (compare_ints): Remove
8885 (print_percentage): Use compare_positive_ints.
8886 * defs.h (compare_positive_ints): Declare.
8887 * linux-nat.h (struct lin_lwp): New field core.
8888 (linux_nat_core_of_thread_1): Declare.
8889 * linux-nat.c (add_lwp): Init the 'core' field.
8890 (linux_nat_wait_1): Record the core.
8891 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
8892 (linux_nat_add_target): Register the above.
8893 * linux-thread-db.c (update_thread_core): New.
8894 (thread_db_find_new_threads): Update core information for
8895 every thread.
8896 * remote.c (struct private_thread_info): New.
8897 (free_private_thread_info, demand_private_info): New.
8898 (PACKET_qXfer_threads, use_osdata_threads): New.
8899 (struct thread_item, threads_parsing_context
8900 (start_thread, end_thread, thread_attributes)
8901 (thread_children, threads_children, threads_elements): New.
8902 (remote_threads_info): Try qXfer:threads before anything
8903 else.
8904 (remote_protocol_packets): Register qXfer:threads.
8905 (remote_open_1): Init use_osdata_threads.
8906 (struct stop_reply): New field 'core'.
8907 (remote_parse_stop_reply): Parse core number.
8908 (process_stop_reply): Record core number.
8909 (remote_xfer_partial): Handle qXfer:threads.
8910 (remote_core_of_thread): New.
8911 (init_remote_ops): Register remote_core_of_thread.
8912 (_initialize_remote): Register qXfer:read.
8913 * target.c (target_core_of_thread): New
8914 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
8915 (struct target_ops): New field to_core_of_threads.
8916 (target_core_of_thread): Declare.
8917 * gdbthread.h (struct thread_info): New field private_dtor.
8918 * thread.c (print_thread_info): Report the core.
8919 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
8920 * utils.c (compare_positive_ints): New.
8921 * features/threads.dtd: New.
8922 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
8923 * mi/mi-main.c (struct collect_cores_data, collect_cores)
8924 (do_nothing, free_vector_of_osdata_items)
8925 (splay_tree_int_comparator, free_splay_tree): New.
8926 (print_one_inferior_data): Implemented printing of selected
8927 inferiors. Collect and print cores.
8928 (output_cores): New.
8929 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
8930 thread groups together with --available.
8931
8932 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8933
8934 * configure: Regenerate (for _STRUCTURED_PROC).
8935
8936 2010-01-12 Joel Brobecker <brobecker@adacore.com>
8937
8938 Delete dead function.
8939 * ada-lang.c (extract_string): Delete. No longer used.
8940
8941 2010-01-12 Joel Brobecker <brobecker@adacore.com>
8942
8943 Fix -Wunused warning in dec-thread.c.
8944 * dec-thread.c (dec_thread_count_gdb_threads)
8945 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
8946
8947 2010-01-12 Joel Brobecker <brobecker@adacore.com>
8948
8949 * ada-valprint.c (ada_print_floating): Remove trailing space.
8950
8951 2010-01-12 Joel Brobecker <brobecker@adacore.com>
8952
8953 Add support for DW_AT_GNAT_descriptive_type.
8954 * gdbtypes.h (enum type_specific_kind): New enum.
8955 (struct main_type) [type_specific_field]: New component.
8956 [type_specific]: Add new component "gnat_stuff".
8957 (struct gnat_aux_type): New type.
8958 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
8959 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
8960 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
8961 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
8962 (TYPE_SPECIFIC_FIELD): New macros.
8963 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
8964 type does not hold any cplus-specific data.
8965 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
8966 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
8967 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
8968 cplus-specific data.
8969 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
8970 Set new component TYPE_SPECIFIC_FIELD (type).
8971 (gnat_aux_default): New constant.
8972 (allocate_gnat_aux_type): New function.
8973 (init_type): Add initialization the type-specific stuff for
8974 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
8975 (print_gnat_stuff): New function.
8976 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
8977 specific data. Adjust code that prints the contents of the
8978 type-specific union using the TYPE_SPECIFIC_FIELD value.
8979 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
8980 the type cplus stuff for Ada types.
8981 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
8982 Error out if these routines are called with an Ada type.
8983 (read_structure_type, read_array_type, read_subrange_type):
8984 Add call to set_descriptive_type.
8985 (set_die_type): Initialize the gnat-specific data if necessary.
8986 (need_gnat_info, die_descriptive_type, set_descriptive_type):
8987 New functions.
8988 * ada-lang.c (decode_constrained_packed_array_type): Use
8989 decode_constrained_packed_array_type instead of doing a standard
8990 lookup to locate a parallel type.
8991 (find_parallel_type_by_descriptive_type): New function.
8992 (ada_find_parallel_type_with_name): New function.
8993 (ada_find_parallel_type): Reimplement using
8994 ada_find_parallel_type_with_name.
8995 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
8996 to check if type has a cplus stuff.
8997 * linespec.c (total_number_of_methods): Likewise.
8998 * mdebugread.c (new_type): Likewise.
8999
9000 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9001
9002 * NEWS: Document the 0b binary number prefix parsing.
9003
9004 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9005
9006 * objfiles.c (objfile_relocate1): Change the return type to int.
9007 Describe the new return value. Return non-zero if data changed.
9008 (objfile_relocate): New variable changed. Set it. Call
9009 breakpoint_re_set depending on CHANGED.
9010
9011 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9012
9013 Implement binary numbers parsing.
9014 * c-exp.y (parse_number): New case 'b' and 'B'.
9015
9016 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9017 Tristan Gingold <gingold@adacore.com>
9018
9019 * solib.c (info_sharedlibrary_command): Replace
9020 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9021 objfile_has_symbols.
9022
9023 2010-01-10 Joel Brobecker <brobecker@adacore.com>
9024
9025 * NEWS: Document the improvements made to the mips-irix port.
9026
9027 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9028
9029 Fix the documentation of valprint.c:value_print.
9030 * valprint.c (value_print): Update the function description to
9031 mention that the syntax of the output follows the current_language,
9032 not necessarily C.
9033
9034 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9035
9036 Fix displacement of separate debug info files.
9037 * objfiles.c (objfile_relocate): Rename to ...
9038 (objfile_relocate1): ... here and make it static. Extend the comment.
9039 (objfile_relocate): New function.
9040 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
9041 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
9042 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
9043 allocated using alloca.
9044 * symfile.c (copy_section_addr_info): Remove.
9045 (build_section_addr_info_from_objfile): Make it global. New variables
9046 addr_bit and mask, use them.
9047 * symfile.h (build_section_addr_info_from_objfile): New prototype.
9048 (copy_section_addr_info): Remove.
9049
9050 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9051
9052 Signal unwinder for mips-irix N32.
9053 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
9054 tramp-frame.h.
9055 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
9056 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
9057 (SIGCONTEXT_LO_OFF): New macros.
9058 (mips_irix_n32_tramp_frame_init): New function.
9059 (mips_irix_n32_tramp_frame): New static constant.
9060 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
9061
9062 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9063
9064 Breakpoint in shared library does not work on mips-irix.
9065 * procfs.c: #include "observer.h".
9066 (procfs_inferior_created): New function, moving here the code
9067 which unsets the syssgi syscall-exit notifications.
9068 (procfs_create_inferior): Remove the code which unsets the syssgi
9069 syscall-exit notifications. It is too early to do this here.
9070 (_initialize_procfs): Attach the procfs_inferior_created observer.
9071
9072 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9073
9074 Wrong return convention for arrays (mips-irix).
9075 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
9076 128 bits or smaller are returned the same way as structs
9077 and unions of the the same size.
9078
9079 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9080
9081 Cannot set the PC on mips-irix.
9082 * irix5-nat.c (fill_gregset): Check regno against the raw PC
9083 register number, no the cooked one.
9084
9085 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9086
9087 Error while loading core file on mips-irix.
9088 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
9089 if debugging from a core file.
9090
9091 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9092
9093 GDB hangs when attaching to process on mips-irix.
9094 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
9095 attaching to a process.
9096
9097 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9098
9099 Use the correct breakpoint instruction on mips-irix.
9100 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
9101 containing the correct breakpoint instruction to use on mips-irix.
9102 Use it when the osabi is GDB_OSABI_IRIX.
9103
9104 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9105
9106 -Wunused warning in procfs.c (mips-irix only).
9107 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
9108 throughout instead of using praddset and prdelset respectively.
9109
9110 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9111
9112 GDB crash while stepping into function.
9113 * infrun.c (handle_inferior_event): Refetch the current frame
9114 after handling what.main_action, in case that pointer became
9115 dangling.
9116
9117 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9118
9119 Fix build failure of solaris-hosted cross debuggers.
9120 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
9121
9122 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
9123
9124 Fix build failure on sparc-solaris.
9125 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
9126
9127 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9128
9129 Move some symfile code into subroutines.
9130 * symfile.h (relative_addr_info_to_section_offsets)
9131 (addr_info_make_relative): New prototypes.
9132 * symfile.c (default_symfile_offsets): Move a part to ...
9133 (relative_addr_info_to_section_offsets): ... this new function.
9134 (default_symfile_offsets): Call it.
9135 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
9136 this part to ...
9137 (addr_info_make_relative): ... this new function.
9138
9139 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9140
9141 Add from_tty to solib_create_inferior_hook.
9142 * infcmd.c (post_create_inferior): Move solib_add after
9143 solib_create_inferior_hook. Pass from_tty to
9144 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
9145 0 from_tty and comment why.
9146 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
9147 * linux-nat.c (linux_child_follow_fork): Likewise.
9148 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
9149 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
9150 from_tty.
9151 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
9152 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
9153 * solib-null.c (null_solib_create_inferior_hook): Likewise.
9154 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
9155 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
9156 * solib-som.c (som_solib_create_inferior_hook): Likewise.
9157 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
9158 Pass it to svr4_so_ops.solib_create_inferior_hook.
9159 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
9160 from_tty.
9161 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
9162 solib_add.
9163 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
9164 enable_break.
9165 * solib-target.c (solib_target_solib_create_inferior_hook): New
9166 parameter from_tty.
9167 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
9168 it to ops->solib_create_inferior_hook.
9169 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
9170 Move solib_add after solib_create_inferior_hook, call it now with
9171 from_tty as 0. New comment there.
9172 * solib.h (solib_create_inferior_hook): New parameter from_tty.
9173 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
9174 Likewise.
9175
9176 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
9177
9178 Fix multiexec race.
9179 * infrun.c (handle_inferior_event): Use get_thread_regcache
9180 with events ptid, not get_current_regcache.
9181
9182 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9183
9184 GDB crash with empty executable name (MinGW).
9185 * source.c (openp): Add assert that parameter string is not NULL.
9186 if parameter string is an empty string, then return with a failure
9187 immediately.
9188
9189 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9190
9191 Get rid of support for VAX Floats.
9192 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9193 (ada_vax_float_print_function): Delete.
9194 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9195 (ada_vax_float_print_function): Delete.
9196 * ada-typeprint.c (print_vax_floating_point_type): Delete.
9197 (ada_print_type): Remove support for VAX floats.
9198 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
9199
9200 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9201
9202 * stabsread.c (read_args): Handle zero arguments.
9203
9204 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9205
9206 Cannot find in-tree libiconv.a after reconfigure.
9207 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
9208 that we can use, then cache the path to this archive.
9209 * configure: Regenerate.
9210
9211 2010-01-07 Stan Shebs <stan@codesourcery.com>
9212
9213 Make tracepoint operations go through target vector.
9214 * target.h (enum trace_find_type): New enum.
9215 (struct target_ops): New fields to_trace_init,
9216 to_download_tracepoint, to_download_trace_state_variable,
9217 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
9218 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
9219 to_set_disconnected_tracing.
9220 (target_trace_init): New macro.
9221 (target_download_tracepoint): New macro.
9222 (target_download_trace_state_variable): New macro.
9223 (target_trace_start): New macro.
9224 (target_trace_set_readonly_regions): New macro.
9225 (target_get_trace_status): New macro.
9226 (target_trace_stop): New macro.
9227 (target_trace_find): New macro.
9228 (target_get_trace_state_variable_value): New macro.
9229 (target_set_disconnected_tracing): New macro.
9230 * target.c (update_current_target): Inherit and set defaults for
9231 tracepoint operations.
9232 * tracepoint.c (default_collect): Make globally visible.
9233 (target_is_remote): Remove, along with all calls.
9234 (tvariables_info): Call target_get_trace_state_variable_value.
9235 (remote_set_transparent_ranges): Remove.
9236 (trace_start_command): Call target_trace_init,
9237 target_download_tracepoint, etc.
9238 (download_tracepoint): Remove.
9239 (trace_stop_command): Simplify.
9240 (stop_tracing): Call target_trace_stop.
9241 (get_trace_status): Call target_get_trace_status.
9242 (trace_status_command): Add case for targets that cannot trace.
9243 (finish_tfind_command): Change to take numerical arguments, call
9244 target_trace_find.
9245 (trace_find_command): Update call to finish_tfind_command.
9246 (trace_find_pc_command): Ditto.
9247 (trace_find_tracepoint_command): Ditto.
9248 (trace_find_line_command): Ditto.
9249 (trace_find_range_command): Ditto.
9250 (trace_find_outside_command): Ditto.
9251 (set_disconnected_tracing_value): Call
9252 target_set_disconnected_tracing.
9253 * remote.c: Add protocol encoding bits from tracepoint.c.
9254 (trace_error): Move from tracepoint.c.
9255 (remote_get_noisy_reply): Ditto.
9256 (free_actions_list_cleanup_wrapper): Ditto.
9257 (free_actions_list): Ditto.
9258 (remote_trace_init): New function.
9259 (remote_download_tracepoint): New function.
9260 (remote_download_trace_state_variable): New function.
9261 (remote_trace_set_readonly_regions): New function.
9262 (remote_trace_start): New function.
9263 (remote_get_trace_status): New function.
9264 (remote_trace_stop): New function.
9265 (remote_trace_find): New function.
9266 (remote_download_trace_state_variable): New function.
9267 (remote_set_disconnected_tracing): New function.
9268 (init_remote_ops): Add tracepoint operations.
9269
9270 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
9271
9272 2010-01-07 Tristan Gingold <gingold@adacore.com>
9273
9274 * symfile.c (build_section_addr_info_from_objfile): New function.
9275 (symbol_file_add_separate): Don't use offsets from objfile but
9276 built an addr info.
9277
9278 2010-01-06 Stan Shebs <stan@codesourcery.com>
9279
9280 Support disconnected tracing.
9281 * infcmd.c (detach_command): Ask whether to stop tracing.
9282 * cli/cli-cmds.c (quit_command): Ditto.
9283 * breakpoint.h (struct breakpoint): New field number_on_target.
9284 * breakpoint.c (create_tracepoint_from_upload): New function.
9285 (get_tracepoint_by_number_on_target): New function.
9286 * remote.c (struct remote): New field disconnected_tracing.
9287 (remote_disconnected_tracing_feature): New function.
9288 (remote_protocol_features): Add DisconnectedTracing.
9289 (struct uploaded_tp): New struct.
9290 (uploaded_tps): New global.
9291 (get_uploaded_tp): New function.
9292 (find_matching_tracepoint): New function.
9293 (remote_get_tracing_state): New function.
9294 (remote_start_remote): Call it.
9295 * tracepoint.c (disconnected_tracing): New global.
9296 (trace_start_command): Initialize number_on_target.
9297 (stop_tracing): New function, split out from...
9298 (trace_stop_command): Call stop_tracing.
9299 (get_trace_status): New function, split out from...
9300 (trace_status_command): Call get_trace_status, add info on
9301 disconnection behavior.
9302 (disconnect_or_stop_tracing): New function.
9303 (finish_tfind_command): Translate from number on target.
9304 (trace_find_tracepoint_command): Translate to number on target.
9305 (send_disconnected_tracing_value): New function.
9306 (set_disconnected_tracing): New function.
9307 (_initialize_tracepoint): Add disconnected-tracing variable.
9308 * NEWS: Mention disconnected tracing.
9309
9310 2010-01-06 Tristan Gingold <gingold@adacore.com>
9311
9312 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
9313 parameter to main_objfile. Iterate on all separate debug objfiles.
9314 * symfile.h (symbol_file_add_separate)
9315 (find_separate_debug_file_by_debuglink): Remove parameter names.
9316 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
9317 (reread_symbols): Use free_objfile_separate_debug.
9318 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
9319 Adjust comment.
9320 (objfile_separate_debug_iterate, add_separate_debug_objfile)
9321 (free_objfile_separate_debug): New prototypes.
9322 * objfiles.c (objfile_separate_debug_iterate): New function.
9323 (add_separate_debug_objfile, free_objfile_separate_debug): New
9324 functions.
9325 (free_objfile): Use free_objfile_separate_debug. Adjust for
9326 multiple separate debug objfile.
9327 (objfile_has_symbols): Adjust comment. Iterate on all separate
9328 debug objfiles.
9329 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
9330 debug objfile.
9331 (lookup_minimal_symbol_text): Ditto.
9332 (lookup_minimal_symbol_by_pc_name): Ditto.
9333 (lookup_minimal_symbol_solib_trampoline): Ditto.
9334 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
9335 debug objfiles.
9336
9337 2010-01-05 Stan Shebs <stan@codesourcery.com>
9338
9339 Add fast tracepoints.
9340 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
9341 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
9342 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
9343 * breakpoint.c (tracepoint_type): New function.
9344 (ALL_TRACEPOINTS): Use it.
9345 (should_be_inserted): Ditto.
9346 (bpstat_check_location): Ditto.
9347 (print_one_breakpoint_location): Ditto.
9348 (user_settable_breakpoint): Ditto.
9349 (set_breakpoint_location_function): Ditto.
9350 (disable_breakpoints_in_shlibs): Ditto.
9351 (delete_trace_command): Ditto.
9352 (print_it_typical): Add bp_fast_tracepoint case.
9353 (bpstat_what): Ditto.
9354 (print_one_breakpoint_location): Ditto.
9355 (allocate_bp_location): Ditto.
9356 (mention): Ditto.
9357 (breakpoint_re_set_one): Ditto.
9358 (disable_command): Ditto.
9359 (enable_command): Ditto.
9360 (check_fast_tracepoint_sals): New function.
9361 (break_command_really): Call it.
9362 (ftrace_command): New function.
9363 (_initialize_breakpoint): Add ftrace command.
9364 * gdbarch.sh (fast_tracepoint_valid_at): New.
9365 * gdbarch.h, gdbarch.c: Regenerate.
9366 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
9367 (i386_gdbarch_init): Use it.
9368 * remote.c (struct remote_state): New field fast_tracepoints.
9369 (PACKET_FastTracepoints): New packet config type.
9370 (remote_fast_tracepoint_feature): New function.
9371 (remote_protocol_features): Add FastTracepoints.
9372 (remote_supports_fast_tracepoints): New function.
9373 (_initialize_remote): Add FastTracepoints.
9374 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
9375 * NEWS: Mention fast tracepoints.
9376
9377 2010-01-06 Joel Brobecker <brobecker@adacore.com>
9378
9379 * gdb-gdb.py: New file.
9380
9381 2010-01-05 Michael Snyder <msnyder@vmware.com>
9382
9383 * infrun.c (handle_inferior_event): Fix typo in comment.
9384
9385 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9386
9387 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
9388
9389 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9390
9391 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
9392 and s390x-linux64.
9393 (s390-linux32-expedite): Define.
9394 (s390-linux64-expedite): Define.
9395 (s390x-linux64-expedite): Define.
9396 * features/s390-acr.xml: New file.
9397 * features/s390-fpr.xml: New file.
9398 * features/s390-core32.xml: New file.
9399 * features/s390-core64.xml: New file.
9400 * features/s390x-core64.xml: New file.
9401 * features/s390-linux32.xml: New file.
9402 * features/s390-linux64.xml: New file.
9403 * features/s390x-linux64.xml: New file.
9404 * features/s390-linux32.c: New generated file.
9405 * features/s390-linux64.c: New generated file.
9406 * features/s390x-linux64.c: New generated file.
9407
9408 * regformats/s390-linux32.dat: New generated file.
9409 * regformats/s390-linux64.dat: New generated file.
9410 * regformats/s390x-linux64.dat: New generated file.
9411 * regformats/reg-s390.dat: Remove.
9412 * regformats/reg-s390x.dat: Remove.
9413
9414 * s390-nat.c: Include "auxv.h" and <elf.h>.
9415 (HWCAP_S390_HIGH_GPRS): Define if undefined.
9416 (s390_target_wordsize): New function.
9417 (s390_auxv_parse): Likewise.
9418 (s390_get_hwcap): Likewise.
9419 (s390_read_description): Likewise.
9420 (_initialize_s390_nat): Install s390_auxv_parse and
9421 s390_read_description.
9422
9423 * s390-tdep.c: Include "features/s390-linux32.c",
9424 "features/s390-linux64.c", and "features/s390x-linux64.c".
9425 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
9426 (s390_register_call_saved): New function.
9427 (s390_register_name): Remove.
9428 (s390_register_type): Remove.
9429 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
9430 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
9431 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
9432 (s390_pseudo_register_name): New function.
9433 (s390_pseudo_register_type): New function.
9434 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
9435 Handle full GPR pesudos and varying pseudo register numbers.
9436 (s390_pseudo_register_write): Likewise
9437 (s390x_pseudo_register_read): Remove.
9438 (s390x_pseudo_register_write): Likewise.
9439 (s390_register_group): Remove.
9440 (s390_pseudo_register_group): New function.
9441 (s390_regmap_gregset): Add GPR upper halves.
9442 (s390x_regmap_gregset): Likewise.
9443 (s390_regmap_fpregset): Likewise.
9444 (s390_regmap_upper): New global variable.
9445 (s390_upper_regset): New global variable.
9446 (s390_upper_regset_sections): New global variable.
9447 (s390_regset_from_core_section): Handle GPR upper halves.
9448 (s390_core_read_description): New function.
9449 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
9450 register information. Handle varying pseudo register numbers.
9451 (s390_backchain_frame_unwind_cache): Likewise.
9452 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
9453 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
9454 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
9455 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
9456 Handle varying pseudo register numbers.
9457 (s390_unwind_pc): Handle varying pseudo register numbers.
9458 (s390_dwarf2_prev_register): New function.
9459 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
9460 register information. Handle varying pseudo register numbers.
9461 Install s390_dwarf2_prev_register to unwind full GPRs.
9462 (s390_gdbarch_init): Handle target descriptions. Assign varying
9463 pseudo register numbers. Install s390_adjust_frame_regnum.
9464 (_initialize_s390_tdep): Initialize target descriptions.
9465
9466 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
9467 (S390_NUM_REGS): Redefine to include upper half registers.
9468 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
9469 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
9470 (tdesc_s390_linux32): Add declaration.
9471 (tdesc_s390_linux64): Likewise.
9472 (tdesc_s390x_linux64): Likewise.
9473
9474 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9475
9476 * regset.h (struct core_regset_section): Add HUMAN_NAME.
9477 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
9478 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
9479 (ppc_linux_vmx_regset_sections): Likewise.
9480 (ppc_linux_fp_regset_sections): Likewise.
9481
9482 * corelow.c (get_core_register_section): Constify arguments.
9483 (get_core_registers): Use gdbarch_core_regset_sections instead
9484 of hard-coded platform-specific register section names.
9485
9486 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9487
9488 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
9489 a register, assume the least-significant part is used.
9490 (write_pieced_value): Likewise.
9491
9492 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9493
9494 * printcmd.c: Include "arch-utils.h".
9495 (do_one_display): Re-parse expression if current architecture changed.
9496
9497 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9498 Joel Brobecker <brobecker@adacore.com>
9499
9500 * gdbtypes.c (check_typedef): New comment on type length.
9501 * value.c (allocate_value_lazy): Remove the unused atype variable. New
9502 comment on type length.
9503 (value_primitive_field): Keep the original TYPE value, new comment.
9504
9505 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9506
9507 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
9508 p_start. Change != comparisons to > and < comparisons.
9509
9510 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9511
9512 * cli/cli-script.c (process_next_line): Check P2 overrun.
9513
9514 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9515
9516 Update the copyright hearder to add year 2010 for most GDB files.
9517
9518 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9519
9520 Fix build failure in inf-ptrace.c.
9521 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
9522
9523 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9524
9525 * top.c (print_gdb_version): Update copyright year.
9526
9527 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
9528
9529 Fix break *FUN'address thread NUM.
9530 * ada-lex.l (task): Expand rule to also match the thread keyword.
9531
9532 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9533
9534 Fix break *FUN'address task NUM.
9535 * ada-lex.l (task): New rule.
9536 * ada-lang.c (valid_task_id): Make sure the Ada task list has
9537 been built before using it.
9538
9539 For older changes see ChangeLog-2009.
9540 \f
9541 Local Variables:
9542 mode: change-log
9543 left-margin: 8
9544 fill-column: 74
9545 version-control: never
9546 coding: utf-8
9547 End: