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