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