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