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