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