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