* p-valprint.c (pascal_val_print): Handle set type if range limits
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
2
3         * p-valprint.c (pascal_val_print): Handle set type if range limits
4         are undefined but size is known.
5
6 2010-05-17  Pedro Alves  <pedro@codesourcery.com>
7
8         * procfs.c: Reformat.
9
10 2010-05-16  Michael Snyder  <msnyder@vmware.com>
11
12         * target.c: White space.
13         * target-descriptions.c: White space.
14         * target-memory.c: White space.
15         * thread.c: White space.
16         * top.c: White space.
17         * tracepoint.c: White space.
18         * trad-frame.c: White space.
19         * tramp-frame.c: White space.
20         * ui-file.c: White space.
21         * ui-out.c: White space.
22         * user-regs.c: White space.
23         * utils.c: White space.
24
25         * scm-exp.c: White space.
26         * scm-lang.c: White space.
27         * scm-valprint.c: White space.
28         * sentinel-frame.c: White space.
29         * ser-base.c: White space.
30         * ser-go32.c: White space.
31         * serial.c: White space.
32         * ser-mingw.c: White space.
33         * ser-pipe.c: White space.
34         * ser-tcp.c: White space.
35         * ser-unix.c: White space.
36         * solib.c: White space.
37         * solib-darwin.c: White space.
38         * solib-frv.c: White space.
39         * solib-irix.c: White space.
40         * solib-osf.c: White space.
41         * solib-pa64.c: White space.
42         * solib-som.c: White space.
43         * solib-spu.c: White space.
44         * solib-svr4.c: White space.
45         * solib-target.c: White space.
46         * source.c: White space.
47         * stabsread.c: White space.
48         * stack.c: White space.
49         * std-regs.c: White space.
50         * symfile.c: White space.
51         * symmisc.c: White space.
52         * symtab.c: White space.
53
54 2010-05-16  Michael Snyder  <msnyder@vmware.com>
55
56         * source.c (_initialize_source): Add "rev" as an abbreviation
57         for the "reverse-search" command.
58
59 2010-05-16  Michael Snyder  <msnyder@vmware.com>
60
61         * record.c: White space.
62         * regcache.c: White space.
63         * reggroups.c: White space.
64         * remote-fileio.c: White space.
65         * remote-m32r-sdi.c: White space.
66         * remote-mips.c: White space.
67         * remote-sim.c: White space.
68         * remote.c: White space.
69         (process_g_packet): Remove orphan braces.
70
71 2010-05-15  Michael Snyder  <msnyder@vmware.com>
72
73         * parse.c: White space.
74         * p-lang.c: White space.
75         * posix-hdep.c: White space.
76         * printcmd.c: White space.
77         * progspace.c: White space.
78         * prologue-value.c: White space.
79         * psymtab.c: White space.
80         * p-typeprint.c: White space.
81         * p-valprint.c: White space.
82
83         * objc-lang.c: White space.
84         * objfiles.c: White space.
85         * observer.c: White space.
86         * osabi.c: White space.
87         * osdata.c: White space.
88
89         * m2-lang.c: White space.
90         * m2-valprint.c: White space.
91         * macrocmd.c: White space.
92         * macroexp.c: White space.
93         * macroscope.c: White space.
94         * macrotab.c: White space.
95         * main.c: White space.
96         * maint.c: White space.
97         * mdebugread.c: White space.
98         * memattr.c: White space.
99         * minsyms.c: White space.
100         * monitor.c: White space.
101
102 2010-05-14  Michael Snyder  <msnyder@vmware.com>
103
104         * jv-lang.c: White space.
105         * jv-typeprint.c: White space.
106         * jv-valprint.c: White space.
107         * language.c: White space.
108         * libunwind-frame.c: White space.
109         * linespec.c: White space.
110         * linux-nat.c: White space.
111         * linux-record.c: White space.
112         * linux-thread-db.c: White space.
113
114         * infcall.c: White space.
115         * inf-child.c: White space.
116         * infcmd.c: White space.
117         * inferior.c: White space.
118         * inf-loop.c: White space.
119         * inflow.c: White space.
120         * inline-frame.c: White space.
121         * interps.c: White space.
122
123         * gcore.c: White space.
124         * gdb.c: White space.
125         * gdbtypes.c: White space.
126         * gnu-nat.c: White space.
127         * gnu-v2-abi.c: White space.
128         * gnu-v3-abi.c: White space.
129
130         * findcmd.c: White space.
131         * findvar.c: White space.
132         * fork-child.c: White space.
133         * frame-base.c: White space.
134         * frame.c: White space.
135         * frame-unwind.c: White space.
136         * f-valprint.c: White space.
137
138         * elfread.c: White space.
139         * environ.c: White space.
140         * eval.c: White space.
141         * event-loop.c: White space.
142         * event-top.c: White space.
143         * exceptions.c: White space.
144         * exec.c: White space.
145         * expprint.c: White space.
146
147         * dbxread.c: White space.
148         * dcache.c: White space.
149         * disasm.c: White space.
150         * doublest.c: White space.
151         * dsrec.c: White space.
152         * dummy-frame.c: White space.
153         * dwarf2expr.c: White space.
154         * dwarf2-frame.c: White space.
155         * dwarf2loc.c: White space.
156         * dwarf2read.c: White space.
157
158 2010-05-14  Phil Muldoon  <pmuldoon@redhat.com>
159
160         PR python/11482
161
162         * python/py-value.c (valpy_hash): New function.
163         (value_object_type): Register valpy_hash.
164
165 2010-05-14  Hui Zhu  <teawater@gmail.com>
166             Michael Snyder  <msnyder@vmware.com>
167
168         * linux-fork.c (gdbthread.h): New include.
169         (fork_info): Add parent_ptid.
170         (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
171         functions.
172         (delete_checkpoint_command): Call inferior_call_waitpid.
173         (checkpoint_command): Set parent_ptid.
174
175 2010-05-13  Michael Snyder  <msnyder@vmware.com>
176
177         * dictionary.c: Re-indent to GNU coding standard.
178
179         * charset.c: White space.
180         * c-lang.c: White space.
181         * cli-out.c: White space.
182         * coffread.c: White space.
183         * complaints.c: White space.
184         * completer.c: White space.
185         * corefile.c: White space.
186         * corelow.c: White space.
187         * cp-abi.c: White space.
188         * cp-namespace.c: White space.
189         * cp-support.c: White space.
190         * cp-valprint.c: White space.
191         * c-typeprint.c: White space.
192         * c-valprint.c: White space.
193         * blockframe.c: White space.
194         * breakpoint.c: White space.
195         * buildsym.c: White space.
196         * blockframe.c: White space.
197         * bcache.c: White space.
198         * gdbarch.sh: White space, add blank lines.
199         * arch-utils.c: Ditto.
200         * gdbarch.c: Regenerate.
201         * frame.c: White space, add blank lines.
202         * stack.c: White space, add blank lines.
203         (initialize_stack): Remove long-dead code.
204
205 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
206
207         Code cleanup.
208         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
209         (locexpr_read_variable, loclist_read_variable): Update the callers.
210
211 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
212
213         Code cleanup.
214         * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
215         Remove check of NULL returned by tag_type_to_type.
216         (die_containing_type): Remove variable type.  Remove type_die variable
217         initialization.  Remove check of NULL returned by tag_type_to_type.
218
219 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
220
221         PR exp/11530.
222         * gdbtypes.c (lookup_struct_elt_type): Also lookup
223         names of unnamed structures or unions.
224
225 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
226
227         * procfs.c (proc_watchpoint_address): New function.
228         (procfs_stopped_by_watchpoint): Remove useless check after 
229         find_procinfo_or_die call.
230         (procfs_stopped_data_address): New function.
231         (procfs_use_watchpoints): Register new watchpoint related function.
232
233 2010-05-11  Tom Tromey  <tromey@redhat.com>
234
235         * eval.c (evaluate_subexp_standard): Revert inadvertent change.
236
237 2010-05-10  Michael Snyder  <msnyder@vmware.com>
238
239         * utils.c: White space cleanup.
240
241 2010-05-10  Tom Tromey  <tromey@redhat.com>
242
243         * eval.c (ptrmath_type_p): Add 'lang' argument.
244         (evaluate_subexp_standard): Update.
245         (evaluate_subexp_with_coercion): Update.
246         * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
247
248 2010-05-10  Michael Snyder  <msnyder@vmware.com>
249
250         * utils.c (do_fclose_cleanup) Restore local variable.
251
252 2010-05-09  Doug Evans  <dje@google.com>
253
254         * record.c (init_record_core_ops): Rename record_core to record-core.
255
256 2010-05-08  Joel Brobecker  <brobecker@adacore.com>
257
258         Implement task switching on pa-hpux.
259         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
260         (inf_ttrace_target): Set t->to_get_ada_task_ptid.
261
262 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
263
264         * valops.c (find_overload_match): Add missing i18n markup.
265
266 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
267
268         * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
269
270 2010-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
271
272         * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
273         list for the obconcat call.
274         * mdebugread.c (parse_symbol): Likewise.
275         * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
276         Likewise.
277         * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
278         New variable ap.  Remove variables len and val.
279         * symfile.h (obconcat): Likewise for the prototype.
280
281 2010-05-07  Michael Snyder  <msnyder@vmware.com>
282
283         * python/python.c (execute_gdb_command): Remove unused variables.
284         * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
285         * python/py-breakpoint.c (gdbpy_breakpoint_created): 
286         Remove unused variable.
287         * python/py-cmd.c (cmdpy_function): Remove unused variable.
288         (cmdpy_completer): Remove unused variable.
289         * python/py-frame.c (frapy_find_sal): Remove unused variable.
290         * python/py-function.c (fnpy_call): Remove unused variable.
291         * python/py-objfile.c (objfile_to_objfile_object):
292         Remove unused variable.
293         * python/py-param.c (parmpy_init): Remove unused variable.
294         * python/py-prettyprint.c (apply_varobj_pretty_printer): 
295         Remove unused variable.
296         (gdbpy_default_visualizer): Remove unused variable.
297         * python/py-progspace.c (pspace_to_pspace_object):
298         Remove unused variable.
299         * python/py-symtab.c (symtab_and_line_to_sal_object): 
300         Remove unused variable.
301         * python/py-type.c (typy_template_argument): 
302         Remove unused variable.
303         * python/py-value.c (valpy_string): Remove unused variable.
304         (convert_value_from_python): Remove unused variables.
305
306 2010-05-07  Michael Snyder  <msnyder@vmware.com>
307
308         * valops.c (value_cast_pointers): Restore unused variable 'type1',
309         and use it to compute variable 't1'.
310
311 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
312
313         * ada-lang.c (assign_aggregate): Remove unused variable.
314
315 2010-05-07  Sami Wagiaalla  <swagiaal@redhat.com>
316
317         PR C++/7943:
318         * valops.c (find_overload_match): Handle fsym == NULL case.
319         Add int no_adl argument.
320         (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
321         when appropriate.
322         Add int no_adl argument.
323         (find_oload_champ_namespace):   Add int no_adl argument.
324         * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
325         expression.
326         * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
327         * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
328         Evaluate arguments and use them to perform ADL lookup.
329         Pass no_adl argument to find_overload_match.
330         Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
331         * cp-support.h: Added prototype for
332         make_symbol_overload_list_namespace.
333         * cp-support.c (make_symbol_overload_list_namespace): New function.
334         (make_symbol_overload_list_adl_namespace): New function.
335         (make_symbol_overload_list_adl): New function.
336         (make_symbol_overload_list_using): Moved code to add function to
337         overload set to make_symbol_overload_list_namespace.
338         * c-exp.y: create UNKNOWN_CPP_NAME token.
339         Add parse rule for ADL functions.
340         (classify_name): Recognize an UNKNOWN_CPP_NAME.
341
342 2010-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
343
344         * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
345         sentinel.
346
347 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
348
349         Implement task switching on solaris targets.
350         * sol-thread.c (thread_db_find_thread_from_tid)
351         (sol_get_ada_task_ptid): New functions.
352         (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
353
354 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
355
356         * remote.c (remote_query_supported_append): Use reconcat.
357         (remote_query_supported): Install a cleanup.  Use reconcat.
358
359 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
360
361         * gdbarch.sh (qsupported): Delete.
362         * gdbarch.h, gdbarch.c: Regenerate.
363         * remote.c (remote_query_supported): Remove use of
364         gdbarch_qsupported.
365
366 2010-05-06  Sergio Durigan Junior  <sergiodj@redhat.com>
367
368         * xml-syscall.c (syscall_start_syscalls_info): Remove unused
369         function.
370
371 2010-05-06  Michael Snyder  <msnyder@vmware.com>
372
373         * xml-support.c (xinclude_start_include): Delete unused variable.
374         (xml_process_xincludes): Delete unused variable.
375         * xml-syscall.c (syscall_parse_xml): Delete unused variable.
376         * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
377         (tdesc_find_arch_register): Delete unused variable.
378         (tdesc_use_registers): Delete unused variable.
379         * xml-tdesc.c (tdesc_start_target): Delete unused variable.
380         * inferior.c (print_inferior): Delete unused variable.
381         * record.c (record_open_1): Delete unused variable.
382         (record_restore): Delete unused variable.
383         (cmd_record_save): Delete unused variable.
384         * gcore.c (derive_heap_segment): Delete unused variable.
385         (objfile_find_memory_regions): Use unused variable.
386         * jit.c (jit_inferior_init): Delete unused variable.
387         * progspace.c (clone_program_space): Delete unused variable.
388         (pspace_empty_p): Delete unused variable.
389         
390         * frame-unwind.c (frame_unwind_find_by_frame): 
391         Delete unused variable.
392         * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
393         * cp-support.c (mangled_name_to_comp): Delete unused variable.
394         (method_name_from_physname): Delete unused variable.
395         (cp_func_name): Delete unused variable.
396         (cp_validate_operator): Delete unused variable.
397         * cp-namespace.c (cp_scan_for_anonymous_namespaces): 
398         Delete unused variable.
399         * trad-frame.c (trad_frame_get_prev_register): 
400         Delete unused variable.
401         * tramp-frame.c (tramp_frame_cache): Delete unused variable.
402
403         * serial.c (serial_for_fd): Delete unused variable.
404         * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
405         * top.c (execute_command): Delete unused variable.
406         (init_main): Delete unused variable.
407         * utils.c (do_fclose_cleanup): Delete unused variable.
408         (do_all_inferior_continuations): Delete unused variable.
409         (initialize_utils): Delete unused variable.
410         (internal_problem_mode): Delete unused global.
411         * frame.c (get_prev_frame): Delete unused global.
412         (get_frame_locals_address): Delete unused global.
413         (get_frame_args_address): Delete unused global.
414
415         * p-typeprint.c (pascal_type_print_base): Delete unused variable.
416         (pascal_type_print_varspec_prefix): Delete unused variable.
417         * f-typeprint.c (f_type_print_base): Delete unused variable.
418         (f_type_print_varspec_suffix): Delete unused variable.
419         * m2-typeprint.c (m2_print_type): Delete unused variable.
420         (m2_long_set): Delete unused variable.
421         * ada-valprint.c (ada_val_print_1): Delete unused variable.
422         * d-valprint.c (dynamic_array_type): Delete unused variable.
423         * f-valprint.c (f77_get_dynamic_length_of_aggregate): 
424         Delete unused variable.
425         (f77_create_arrayprint_offset_tbl): Delete unused variable.
426         * m2-valprint.c (m2_val_print): Delete unused variable.
427
428         * ui-out.c (ui_out_field_int): Delete unused variable.
429         (ui_out_field_fmt_int): Delete unused variable.
430         * varobj.c (varobj_list_children): Delete unused variable.
431         (varobj_set_value): Delete unused variable.
432         (install_new_value_visualizer): Delete unused variable.
433         (varobj_set_visualizer): Delete unused variable.
434         (varobj_update): Delete unused variable.
435         (varobj_editable_p): Delete unused variable.
436         (c_value_of_root): Delete unused variable.
437         (cplus_describe_child): Delete unused variable.
438
439         * ada-lang.c (add_defn_to_vec): Delete unused variable.
440         (decode_constrained_packed_array_type): Delete unused variable.
441         (add_defn_to_vec): Delete unused variable.
442         (symbol_completion_match): Delete unused variable.
443         (value_tag_from_contents_and_address): Delete unused variable.
444         (ada_evaluate_subexp): Delete unused variable.
445         * c-lang.c (classify_type): Delete unused variable.
446         * f-lang.c (f_printstr): Delete unused variable.
447         * objc-lang.c (objc_printstr): Delete unused variable.
448         * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
449         * jv-lang.c (type_from_class): ifdef unused variable.
450         (java_class_name_from_physname): Delete unused variable.
451         * m2-lang.c (m2_printstr): Delete unused variable.
452
453         * objfiles.c (objfile_relocate): Delete unused variable.
454         * maint.c (_initialize_maint_cmds): Delete unused variable.
455         * demangle.c (_initialize_demangler): Delete unused variable.
456         * corefile.c (reopen_exec_file): Delete unused variable.
457         * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
458         * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
459
460         * osabi.c (_initialize_gdb_osabi): Delete unused variable.
461         * memattr.c (mem_delete): Delete unused variable.
462         (invalidate_target_mem_regions): Delete unused variable.
463         * mem-break.c (default_memory_insert_breakpoint):
464         Delete unused variable.
465         * target.c (target_get_osdata): Delete unused variable.
466         * parse.c (length_of_subexp): Delete unused variable.
467         (prefixify_subexp): Delete unused variable.
468         (exp_iterate): Delete unused variable.
469         * reverse.c (delete_bookmark_command): Delete unused variable.
470
471         * macrocmd.c (_initialize_macrocmd): Delete unused variable.
472         * macroexp.c (gather_arguments): Delete unused variable.
473         (substitute_args): Delete unused variable.
474         * completer.c (gdb_completer_loc_break_characters): Unused, delete.
475         * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
476         (_initialize_gdbarch): Delete unused variable.
477         * gdbarch.c, gdbarch.h: Regenerate.
478         * arch-utils.c (initialize_current_architecture): 
479         Delete unused variable.
480         (_initialize_gdbarch_utils): Delete unused variable.
481         * gdbtypes.c (make_cv_type): Delete unused variable.
482         (make_type_with_address_space): Delete unused variable.
483
484         * linespec.c (decode_compound): Delete unused variable.
485         * dictionary.c (iterator_next_hashed): Delete unused variable.
486         * infcall.c (call_function_by_hand): Delete unused variable.
487         * infcmd.c (step_1): Delete unused variable.
488         (registers_info): Delete unused variable.
489         (attach_command): Delete unused variable.
490         * infrun.c (follow_exec): Delete unused variable.
491         (handle_step_into_function_backwards): Delete unused variable.
492         (_initialize_infrun): Delete unused variable.
493         * stack.c (parse_frame_specification_1): Delete unused variable.
494         (frame_info): Delete unused variable.
495         (backtrace_command_1): Delete unused variable.
496         (catch_info): Delete unused variable.
497
498         * eval.c (evaluate_subexp_standard): Delete unused variable.
499         * valops.c (value_cast_pointers): Delete unused variable.
500         (value_dynamic_cast): Delete unused variable.
501         (value_array): Delete unused variable.
502         (find_overload_match): Delete unused variable.
503         * valarith.c (value_subscript): Delete unused variable.
504         (value_binop): Delete unused variable.
505         * valprint.c (_initialize_valprint): Delete unused variable.
506         * printcmd.c (print_command_1): Delete unused variable.
507         (address_info): Delete unused variable.
508         (printf_command): Delete unused variable.
509
510         * auxv.c (target_auxv_search): Delete unused variable.
511         * blockframe.c (get_frame_block): Delete unused variable.
512         * regcache.c (regcache_cpy): Delete unused variable.
513         (regcache_cpy_no_passthrough): Delete unused variable.
514         * charset.c (wchar_iterate): Delete unused variable.
515         (find_charset_names): Delete unused variable.
516         (_initialize_charset): Delete unused variable.
517         * disasm.c (do_mixed_source_and_assembly): 
518         Delete unused variable.
519         * source.c (set_default_source_symtab_and_line): 
520         Delete unused variable.
521         (set_substitute_path_command): Delete unused variable.
522         * value.c (preserve_values): Delete unused variable.
523         (value_from_double): Delete unused variable.
524
525 2010-05-05  Michael Snyder  <msnyder@vmware.com>
526
527         * psymtab.c (lookup_partial_symbol): Delete unused variable.
528         (find_last_source_symtab_from_partial): Delete unused variable.
529         * symfile.c (place_section): Delete unused variable.
530         (default_symfile_offsets): Delete unused variable.
531         (get_debug_link_info): Delete unused variable.
532         (find_separate_debug_file_by_debuglink): Delete unused variable.
533         (add_symbol_file_command): Delete unused variable.
534         (symfile_find_segment_sections): Delete unused variable.
535         * symmisc.c (free_symtab): Delete unused variable.
536         (dump_symtab_1): Delete unused variable.
537         * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
538         (find_pc_sect_symtab): Delete unused variable.
539         (skip_prologue_using_lineinfo): Delete unused variable.
540         (sources_info): Delete unused variable.
541         (completion_list_add_name): Delete unused variable.
542         (expand_line_sal): Delete unused variable.
543
544         * breakpoint.c (validate_commands_for_breakpoint): 
545         Delete unused variables.
546         (insert_catchpoint): Delete unused variable.
547         (update_watchpoint): Delete unused variable.
548         (insert_bp_location): Delete unused variable.
549         (insert_breakpoint_locations): Delete unused variable.
550         (remove_breakpoint_1): Delete unused variable.
551         (software_breakpoint_inserted_here_p): Delete unused variable.
552         (watchpoints_triggered): Delete unused variable.
553         (bpstat_check_watchpoint): Delete unused variable.
554         (bpstat_stop_status): Delete unused variable.
555         (print_one_breakpoint_location): Delete unused variable.
556         (allocate_bp_location): Delete unused variable.
557         (create_breakpoint): Delete unused variable.
558         (watch_command_1): Delete unused variable.
559         (catch_exception_command_1): Delete unused variable.
560         (catch_ada_exception_command): Delete unused variable.
561         (delete_breakpoint): Delete unused variable.
562         (breakpoint_re_set_one): Delete unused variable.
563         (do_enable_breakpoint): Delete unused variable.
564
565 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
566
567         * amd64-tdep.c: Include disasm.h.
568         (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
569         (amd64_insn_length): Moved to disasm.c and renamed.
570         (fixup_riprel): Adjust.
571         * disasm.c (do_ui_file_delete): New.
572         (gdb_insn_length): New.
573         (gdb_buffered_insn_length_fprintf)
574         (gdb_buffered_insn_length_init_dis)
575         (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
576         renamed.
577         * disasm.h (gdb_insn_length): Declare.
578         (gdb_buffered_insn_length): Declare.
579
580 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
581
582         * remote.c (clear_threads_parsing_context): New.
583         (remote_threads_info): Delete unused null_cleanup.  Install a
584         cleanup to clear the threads_parsing_context in case parsing
585         throws.
586
587 2010-05-05  Michael Snyder  <msnyder@vmware.com>
588
589         * c-exp.y (parse_string_or_char): Delete unused variable.
590         (c_lex): Delete unused variable.
591         * cp-name-parser.y (cpname_lex): Delete unused variable.
592         * ada-exp.y (find_primitive_type): Delete unused variable.
593         (write_var_or_type): Delete unused variable.
594         * jv-exp.y (java_parse): Delete unused variable.
595         (push_expression_name): Delete unused variable.
596         * p-exp.y (pascal_lex): Delete unused variable.
597
598 2010-05-05  Pedro Alves  <pedro@codesourcery.com>
599
600         * remote.c (remote_threads_info): Really revert previous previous
601         change.
602
603 2010-05-05  Michael Snyder  <msnyder@vmware.com>
604
605         * elfread.c (elf_symtab_read): Delete unused variable.
606         (find_separate_debug_file_by_buildid): Delete unused variables.
607         (elf_symfile_read): Delete unused variable.
608
609         * coffread.c (coff_symfile_read): Delete unused variables.
610
611         * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
612         (read_pe_exported_syms): Delete unused variable.
613
614         * stabsread.c (define_symbol): Delete unused variable.
615
616         * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
617         (process_psymtab_comp_unit): Delete unused variable.
618         (dwarf2_build_psymtabs_hard): Delete unused variable.
619         (load_partial_comp_unit): Delete unused variable.
620         (create_all_comp_units): Delete unused variable.
621         (scan_partial_symbols): Delete unused variable.
622         (add_partial_symbol): Delete unused variable.
623         (add_partial_namespace): Delete unused variable.
624         (add_partial_enumeration): Delete unused variable.
625         (load_full_comp_unit): Delete unused variable.
626         (process_full_comp_unit): Delete unused variable.
627         (read_file_scope): Delete unused variable.
628         (read_type_unit_scope): Delete unused variable.
629         (process_structure_scope): Delete unused variable.
630         (process_enumeration_scope): Delete unused variable.
631         (read_tag_ptr_to_member_type): Delete unused variable.
632         (read_typedef): Delete unused variable.
633         (read_partial_die): Delete unused variable.
634         (decode_locdesc): Delete unused variable.
635         (zeroed_partial_die): Delete unused global variable.
636
637         * tui/tui-interp.c (_initialize_tui_interp): 
638         Delete unused variable.
639         * tui/tui-regs.c tui_display_registers_from): 
640         Delete unused variable.
641         (tui_check_register_values): Delete unused variable.
642         (tui_register_format): Delete unused variable.
643         * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
644         * tui/tui-windata.c (tui_display_data_from_line): 
645         Delete unused variables.
646         (tui_vertical_data_scroll): Delete unused variables.
647
648 2010-05-05  Michael Snyder  <msnyder@vmware.com>
649
650         * remote.c (remote_threads_info): Revert questionable part of
651         the previous change.
652
653 2010-05-05  Michael Snyder  <msnyder@vmware.com>
654
655         * mi/mi-out.c (mi_table_begin): Delete unused variable.
656         * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
657         (mi_cmd_var_list_children): Delete unused variable.
658         (varobj_update_one): Delete unused variable.
659         * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
660         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): 
661         Delete unused variable.
662         (mi_cmd_stack_list_variables): Delete unused variable.
663         (list_args_or_locals): Delete unused variable.
664         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): 
665         Delete unused variables.
666         (mi_cmd_file_list_exec_source_files): Delete unused variable.
667         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): 
668         Delete unused variable.
669         * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
670         (mi_cmd_interpreter_exec): Delete unused variable.
671         (mi_on_normal_stop): Delete unused variable.
672         * mi/mi-main.c (run_one_inferior): Delete unused variable.
673         (print_one_inferior): Delete unused variables.
674         (mi_execute_command): Delete unused variable.
675         (mi_cmd_execute): Delete unused variable.
676         (timestamp): Delete unused variable.
677
678         * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
679         (restore_binary_file): Delete unused variable.
680         * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
681         * cli/cli-script.c (define_command): Delete unused variables.
682         (recurse_read_control_structure): Delete unused variable.
683         (script_from_file): Delete unused variable.
684         * cli/cli-cmds.c (complete_command): Delete unused variable.
685         (disassemble_command): Delete unused variable.
686
687         * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
688         * tracepoint.c (delete_trace_variable_command): 
689         Delete unused variables.
690         (encode_actions_1): Delete unused variables.
691         (start_tracing): Delete unused variable.
692         (trace_status_mi): Delete unused variable.
693         (tfind_1): Delete unused variable.
694         (trace_find_pc_command): Delete unused variable.
695         (trace_find_line_command): Delete unused variables.
696         (trace_find_range_command): Delete unused variables.
697         (trace_find_outside_command): Delete unused variables.
698         (parse_tracepoint_definition): Delete unused variables.
699         (tfile_fetch_registers): Delete unused variable.
700
701         * dcache.c (dcache_init): Delete unused variable.
702         (dcache_info): Delete unused variable.
703
704         * remote.c (remote_threads_info): Delete unused variable.
705         (process_stop_reply) :Delete unused variable.
706         (remote_get_trace_status): Delete unused variables.
707
708         * linux-thread-db.c (add_thread_db_info): Delete unused variable.
709         (thread_from_lwp): Delete unused variable.
710         (enable_thread_event_reporting): Delete unused variable.
711         (check_for_thread_db): Delete unused variables.
712         (thread_db_find_new_threads_2): Delete unused variable.
713         
714         * linux-fork.c (info_checkpoints_command): Delete unused variables.
715         (checkpoint_command): Delete unused variable.
716         (linux_fork_context): Delete unused variables.
717
718         * linux-nat.c (linux_parent_pid): Delete unused global variable.
719         (linux_tracefork_child): Delete unused variable.
720         (linux_child_follow_fork): Delete unused variable.
721         (linux_nat_detach): Delete unused variable.
722         (linux_handle_extended_wait): Delete unused variable.
723         (linux_nat_has_pending_sigint): Delete unused variable.
724         (linux_nat_find_memory_regions): Delete unused variable.
725         (linux_nat_make_corefile_notes): Delete unused variables.
726         (linux_nat_info_proc_cmd): Delete unused variable.
727         (linux_proc_pending_signals): Delete unused variable.
728         (linux_nat_stop_lwp): Delete unused variables.
729         (_initialize_linux_nat): Delete unused variable.
730
731         * ser-pipe.c (pipe_ops): Delete unused global variable.
732
733         * linux-record.c (record_linux_system_call): 
734         Delete unused variables.
735
736         * corelow.c (core_xfer_partial): Delete unused variables.
737
738         * solib-svr4.c (find_program_interpreter): Delete unused variable.
739         (svr4_solib_create_inferior_hook): Add ifdef around 
740         conditionally-used variable declarations.
741
742         * solib.c (solib_find): Delete unused variable.
743         (free_so_symbols): Delete unused variable.
744         (info_sharedlibrary_command): Delete unused variable.
745         (reload_shared_libraries_1): Delete unused variable.
746         (_initialize_solib): Delete unused variable.
747
748         * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
749         (i386_collect_xstateregset): Delete unused variable.
750         * i387-tdep.c (i387_print_float_info): Delete unused variable.
751
752         * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
753         Delete unused variable 'type'.
754
755 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
756
757         * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.  *
758         ada-lang.c: Remove comment mentioning these macros.
759         * m2-exp.y: Delete commented out code.
760
761 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
762
763         * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
764         for array types.
765         * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
766
767 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
768
769         ARI fix: Remove ATTRIBUTE_UNUSED throughout.
770         * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove 
771         ATTRIBUTE_UNUSED.
772         (cleanup_kernel_helper_return): Likewise.
773         * arm-tdep.c (copy_unmodified): Likewise.
774         (copy_preload): Likewise.
775         (copy_copro_load_store): Likewise.
776         (cleanup_branch): Likewise.
777         (copy_b_bl_blx): Likewise.
778         (copy_bx_blx_reg): Likewise.
779         (copy_alu_imm): Likewise.
780         (copy_alu_reg): Likewise.
781         (copy_alu_shifted_reg): Likewise.
782         (cleanup_load): Likewise.
783         (cleanup_store): Likewise.
784         (cleanup_block_load_pc): Likewise.
785         (cleanup_svc): Likewise.
786         (copy_undef): Likewise.
787         (copy_unpred): Likewise.
788         * remote.c (register_remote_support_xml): Likewise.
789
790 2010-05-05  Hui Zhu  <teawater@gmail.com>
791
792         * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
793
794 2010-05-04  Mark Kettenis  <kettenis@gnu.org>
795
796         * remote.c (register_remote_support_xml)
797         (remote_query_supported_append, remote_query_supported): Add cast
798         to NULL used as sentinel.
799         * tracepoint.c (tvariables_info_1): Likewise.
800         * utils.c (add_internal_problem_command): Likewise.
801
802 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
803
804         * dwarf2loc.c (read_pieced_value, write_pieced_value,
805         dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
806         registers gracefully.
807
808 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
809
810         * exec.c (print_section_info): Display entry point without arch 
811         specific parts.
812
813 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
814
815         PR exp/11349.
816         * printcmd.c (x_command): Only dereference once implicitly for
817         TYPE_CODE_REF.
818
819 2010-05-03  Doug Evans  <dje@google.com>
820
821         * event-loop.c (gdb_timer): Delete unused global.
822         (create_timer): Update.
823
824 2010-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
825
826         * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
827         CURRENT->DECLARATION case.
828         * cp-support.h (struct using_direct): Provide extended comment.
829
830 2010-05-03  Mark Kettenis  <kettenis@gnu.org>
831
832         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
833         HPPABSD_SIZEOF_GREGS.
834         (HPPAOBSD_SIZEOF_FPREGS): New define.
835         (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
836         (hppaobsd_supply_fpregset): New function.
837         (hppaobsd_gregset): Renamed from hppabsd_gregset.
838         (hppaobsd_fpregset): New variable.
839         (hppaobsd_regset_from_core_section): Handle floating-point registers.
840         (_initialize_hppabsd_tdep): Remove spurious blank line.
841
842 2010-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
843
844         PR pascal/11349.
845         * p-valprint.c (pascal_value_print): Always dereference a value with
846         type code TYPE_CODE_REF.
847         
848 2010-05-03  Pedro Alves  <pedro@codesourcery.com>
849
850         * remote.c (remote_notice_signals): New.
851         (remote_start_remote): In non-stop mode, update the remote end on
852         which signals it can silently pass.
853         (init_remote_ops): Install remote_notice_signals.
854
855 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
856
857         * cli/cli-cmds.h (error_no_arg): Remove.  Move the comment ...
858         * command.h (error_no_arg): ... here.  Remove NORETURN, change
859         ATTR_NORETURN to ATTRIBUTE_NORETURN.
860         * defs.h (NORETURN, ATTR_NORETURN): Remove.
861         (perror_with_name, verror, error, error_stream, vfatal, fatal)
862         (internal_verror, internal_error, nomem): Remove NORETURN, change
863         ATTR_NORETURN to ATTRIBUTE_NORETURN.
864         * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
865         (throw_vfatal, throw_error): Remove NORETURN.
866         (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
867         * exceptions.h (throw_exception, throw_verror, throw_vfatal)
868         (throw_error, deprecated_throw_reason): Remove NORETURN, change
869         ATTR_NORETURN to ATTRIBUTE_NORETURN.
870         * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
871         to ATTRIBUTE_NORETURN for prototype, for the definition only remove
872         NORETURN.
873         * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
874         * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
875         ATTRIBUTE_NORETURN.
876         * target.c (tcomplain): Likewise.
877         * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
878         ATTRIBUTE_NORETURN.
879         * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
880         (internal_error, perror_with_name, nomem): Remove NORETURN.
881         * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
882         ATTRIBUTE_NORETURN.
883
884 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
885
886         * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
887         * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
888         * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
889         (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
890         * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
891         (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
892         * complaints.h (complaint, internal_complaint): Likewise.
893         * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
894         (ATTR_FORMAT): Remove.
895         (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
896         (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
897         (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
898         (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
899         (xsnprintf, verror, error, vfatal, fatal, internal_verror)
900         (internal_error, internal_vwarning, internal_warning, warning)
901         (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
902         * disasm.c (fprintf_disasm): Likewise.
903         * exceptions.c (throw_it): Likewise.
904         * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
905         (throw_error): Likewise.
906         * language.h (type_error, range_error): Likewise.
907         * linespec.c (cplusplus_error): Likewise.
908         * mi/mi-interp.c (mi_interp_query_hook): Likewise.
909         * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
910         * monitor.c (monitor_debug): Likewise.
911         * parser-defs.h (parser_fprintf): Likewise.
912         * serial.h (serial_printf): Likewise.
913         * tui/tui-hooks.c (tui_query_hook): Likewise.
914         * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
915         (uo_message): Likewise.
916         * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
917         * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
918         Likewise.
919         * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
920
921 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
922
923         * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
924         (cli_table_header, cli_begin, cli_end, cli_field_int)
925         (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
926         (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
927         Delete forward declarations.
928         (cli_ui_out_impl): Move below the callbacks.
929         (_initialize_cli_out): Delete.
930
931 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
932
933         * README: Use consistent `GDB' and `GDBserver' spellings.
934
935 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
936
937         * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
938
939 2010-05-01  Pedro Alves  <pedro@codesourcery.com>
940
941         * infrun.c (prepare_for_detach): In non-stop, context switch to
942         the thread that got the event before handling the event.
943
944 2010-04-30  Tom Tromey  <tromey@redhat.com>
945
946         * symtab.c (symbol_set_names): Fix typo.
947
948 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
949
950         * python/py-param.c (parm_constants): Avoid ARI warning
951         by adding ARI comment.
952         (parmpy_init): Likewise.
953
954 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
955
956         * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
957         and created type for re-use.
958
959 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
960
961         * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
962
963 2010-04-29  Doug Evans  <dje@google.com>
964
965         * ser-base.h (reschedule): Delete prototype.
966         * ser-base.c (reschedule): Make static.
967
968 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
969
970         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
971         (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
972         (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for 
973         EABI.
974         (arm_linux_init_abi): Set up JB_PC field dependent on FP model in 
975         use.
976
977 2010-04-29  Pedro Alves  <pedro@codesourcery.com>
978
979         PR gdb/11557
980
981         * regcache.c (registers_changed): Rename to ...
982         (registers_changed_ptid): ... this, and only delete register cache
983         entries matching the ptid filter argument.
984         (registers_changed): Reimplement on top of registers_changed_ptid.
985         * regcache.h (registers_changed_ptid): Declare.
986         * target.c (target_resume): Flush register caches.
987
988 2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
989             Tom Tromey  <tromey@redhat.com>
990             Thiago Jung Bauermann  <bauerman@br.ibm.com>
991
992         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
993         (SUBDIR_PYTHON_SRCS): Likewise.
994         (py-parameter.o): New rule.
995         * python/py-parameter.c: New file.
996         * python/python-internal.h (gdbpy_initialize_parameter)
997         (gdbpy_parameter, gdbpy_parameter_value)
998         (gdbpy_parse_command_name): Declare.
999         * python/py-cmd.c (parse_command_name): Rename to
1000         gdbpy_parse_command_name.
1001         (gdbpy_parse_command_name): Accept a starting list parameter and
1002         use over cmdlist.
1003         (cmdpy_init): Use gdbpy_parse_command_name.
1004         * python/python.c (parameter_to_python): Rename to
1005         gdbpy_parameter_to_python.  Accept enum var_types and value.
1006         (gdbpy_parameter): Use gdbpy_parameter_value.
1007         (_initialize_python): Call gdbpy_initialize_parameters.
1008
1009 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1010
1011         * MAINTAINERS: Add myself for write after approval privileges.
1012
1013 2010-04-29  Mihail Zenkov  <mihail.zenkov@gmail.com>
1014
1015         D language support.
1016         * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
1017         (COMMON_OBS): Add d-lang.o d-valprint.o.
1018         (HFILES_NO_SRCDIR): Add d-lang.h.
1019         * NEWS: Mention D language support.
1020         * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
1021         * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
1022         * d-lang.c: New file.
1023         * d-lang.h: New file.
1024         * d-valprint.c: New file.
1025         * defs.h (enum language): Add language_d.
1026         * dwarf2read.c (set_cu_language): Add DW_LANG_D.
1027         * language.c (binop_result_type, integral_type, character_type)
1028         (string_type, boolean_type, structured_type): Add language_d.
1029         * symfile.c (init_filename_language_table): Add language_d.
1030         * symtab.c: Include d-lang.h.
1031         (symbol_init_language_specific, symbol_find_demangled_name)
1032         (symbol_natural_name, lookup_symbol_in_language)
1033         (symbol_demangled_name, symbol_matches_domain): Add language_d.
1034
1035 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
1036
1037         * solib-svr4.c (solib_svr4_r_map): Expand function description.
1038
1039 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
1040
1041         * symfile.c (init_filename_language_table): Register .dg files
1042         with language_ada.
1043
1044 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
1045
1046         * gdbtypes.h (struct main_type): Expand comment about target_type
1047         field.
1048
1049 2010-04-27  Pedro Alves  <pedro@codesourcery.com>
1050             Tristan Gingold  <gingold@adacore.com>
1051
1052         * symfile.c (reread_symbols): Also search for file in libraries.
1053         Update comment.
1054
1055 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
1056
1057         * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
1058         in terms of configuration.
1059
1060 2010-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1061
1062         * objfiles.c: Include solist.h.
1063         (free_all_objfiles): New variable so.  Check stale solist objfiles.
1064         * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
1065         and no_shared_libraries.
1066
1067 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
1068
1069         ARI warning fix.
1070         * python/py-auto-load.c (source_section_scripts): Remove trailing
1071         new-line in i18n string.
1072
1073 2010-04-26  Doug Evans  <dje@google.com>
1074
1075         * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
1076
1077 2010-04-26  Tom Tromey  <tromey@redhat.com>
1078
1079         * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
1080         command list.
1081
1082 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
1083
1084         Removal of config/i386/nm-i386sol2.h native configuration file.
1085         * config/i386/nm-i386sol2.h: Remove file.
1086         * config/i386/i386sol2.mh: Remove NAT_FILE definition.
1087         * config/i386/sol2-64.mh: Idem.
1088         * config/djgpp/fnchange.lst: Remove reference to that file.
1089         * Makefile.in (HFILES_NO_SRCDIR): Idem.
1090
1091 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
1092
1093         PR breakpoints/11531.
1094         * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
1095         macro definition and related comment.
1096         * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
1097         (resume): Remove code and comment related to this macro.
1098
1099 2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1100
1101         * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
1102         Fix whitespace.
1103
1104 2010-04-24  Pedro Alves  <pedro@codesourcery.com>
1105
1106         * defs.h: Adjust comment.
1107         * filesystem.h, filesystem.c: New files.
1108         * Makefile.in (SFILES): Add filesystem.c.
1109         (COMMON_OBS): Add filesystem.o.
1110         * solib.c (solib_find): Handle DOS-based filesystems.  Handle
1111         different target and host path flavours.
1112         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
1113         has_dos_based_file_system on the gdbarch.
1114         * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
1115         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
1116         * i386-tdep.c (i386_go32_init_abi): Ditto.
1117         * gdbarch.sh (has_dos_based_file_system): New.
1118         * gdbarch.h, gdbarch.c: Regenerate.
1119         * NEWS: Mention improved support for remote targets with DOS-based
1120         filesystems.  Mention new `set/show target-file-system-kind'
1121         commands.
1122
1123 2010-04-23  Stan Shebs  <stan@codesourcery.com>
1124
1125         * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
1126         comments.
1127         (struct agent_reqs): Remove.
1128         (ax_reg_mask): Declare.
1129         * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
1130         (free_agent_expr): Free reg_mask.
1131         (ax_print): Add scope and register mask info.
1132         (ax_reqs): Remove agent_reqs argument, use agent expression
1133         fields, and move part of register mask computation to...
1134         (ax_reg_mask): New function.
1135         * ax-gdb.c (gen_trace_static_fields): Call it.
1136         (gen_traced_pop): Ditto.
1137         (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
1138         (gen_trace_for_var): Pass gdbarch to new_agent_expr.
1139         (gen_trace_for_expr): Ditto, and clear optimized_out flag.
1140         (gen_eval_for_expr): Ditto, and require an rvalue.
1141         (agent_command): Call ax_reqs.
1142         (agent_eval_command): Ditto.
1143         * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
1144         (validate_action_line): Ditto.
1145         (collect_symbol): Ditto.
1146         (encode_actions_1): Ditto.
1147
1148 2010-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
1149             Paul Pluzhnikov  <ppluzhnikov@google.com>
1150             Jan Kratochvil  <jan.kratochvil@redhat.com>
1151
1152         Fix deadlock on looped list of loaded shared objects.
1153         * solib-svr4.c (LM_PREV): New function.
1154         (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
1155         (svr4_current_sos): Check for correct l_prev.  New variables prev_lm
1156         and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
1157         * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
1158
1159 2010-04-23  Doug Evans  <dje@google.com>
1160
1161         * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
1162         python.
1163         * configure: Regenerate.
1164         * main.c: #include "python/python.h".
1165         (captured_main): Defer loading auto-loaded scripts until after
1166         local_gdbinit has been sourced.
1167         * python/py-auto-load.c (gdbpy_global_auto_load): New global.
1168         (load_auto_scripts_for_objfile): New function.
1169         (auto_load_new_objfile): Call it.
1170         * python/python.h (gdbpy_global_auto_load): Declare.
1171         (load_auto_scripts_for_objfile): Declare.
1172
1173         Add support for auto-loading scripts from .debug_gdb_scripts section.
1174         * NEWS: Add entry for .debug_gdb_scripts.
1175         * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
1176         (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
1177         (py-auto-load.o): New rule.
1178         * cli/cli-cmds.c (find_and_open_script): Make externally visible.
1179         * cli/cli-cmds.h (find_and_open_script): Update prototype.
1180         * python/py-auto-load.c: New file.
1181         * python/python-internal.h: #include <stdio.h>.
1182         (set_python_list, show_python_list): Declare.
1183         (gdbpy_initialize_auto_load): Declare.
1184         (source_python_script_for_objfile): Declare.
1185         * python/python.c: Remove #include of observer.h.
1186         (gdbpy_auto_load): Moved to py-auto-load.c.
1187         (GDBPY_AUTO_FILENAME): Ditto.
1188         (gdbpy_new_objfile): Delete.
1189         (source_python_script_for_objfile): New function.
1190         (set_python_list, show_python_list): Make externally visible.
1191         (_initialize_python): Move "auto-load" command to py-auto-load.c
1192         and observer_attach_new_objfile to py-auto-load.c.
1193
1194 2010-04-23  Jerome Guitton  <guitton@adacore.com>
1195     
1196         * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
1197         (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
1198         (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
1199         New constants.
1200         (alpha_heuristic_analyze_probing_loop): New function.
1201         (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
1202         and handle cases when a stack probe loop is generated.
1203         * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
1204         (alpha_mdebug_max_frame_size_exceeded): New function.
1205         (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
1206         (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
1207         Return 0 when the maximum debuggable frame size has been exceeded.
1208
1209 2010-04-23  Joel Brobecker  <brobecker@adacore.com>
1210
1211         Fix ARI warning.
1212         * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
1213
1214 2010-04-20  Chris Moller  <cmoller@redhat.com>
1215
1216         PR 10179
1217
1218         * symtab.c (rbreak_command): Added code to include a filename
1219         specification in the rbreak argument.
1220         * NEWS: Added a brief description of filename-qualified rbreak.
1221
1222 2010-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1223
1224         Fix crashes on dangling display expressions.
1225         * ada-lang.c (ada_operator_check): New function.
1226         (ada_exp_descriptor): Fill-in the field operator_check.
1227         * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
1228         * jv-lang.c (exp_descriptor_java): Likewise.
1229         * m2-lang.c (exp_descriptor_modula2): Likewise.
1230         * scm-lang.c (exp_descriptor_scm): Likewise.
1231         * parse.c (exp_descriptor_standard): Likewise.
1232         (operator_check_standard): New function.
1233         (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
1234         * parser-defs.h (struct exp_descriptor): New field operator_check.
1235         (operator_check_standard, exp_uses_objfile): New declarations.
1236         * printcmd.c: Remove the inclusion of solib.h.
1237         (display_uses_solib_p): Remove the function.
1238         (clear_dangling_display_expressions): Call lookup_objfile_from_block
1239         and exp_uses_objfile instead of display_uses_solib_p.
1240         * solist.h (struct so_list) <objfile>: New comment.
1241         * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
1242         * symtab.h (lookup_objfile_from_block): New declaration.
1243         (struct general_symbol_info) <obj_section>: Extend the comment.
1244
1245 2010-04-22  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
1246             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1247
1248         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
1249         (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
1250         ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
1251         PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
1252         PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
1253         PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
1254         PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
1255         PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
1256         PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
1257         PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
1258         PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
1259         PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
1260         PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
1261         Define, in case <ptrace.h> doesn't provide it.
1262         (booke_debug_info): New variable.
1263         (max_slots_number): Ditto.
1264         (hw_break_tuple): New struct.
1265         (thread_points): Ditto.
1266         (ppc_threads): New variable.
1267         (PPC_DEBUG_CURRENT_VERSION): New define.
1268         (have_ptrace_new_debug_booke): New function.
1269         (ppc_linux_check_watch_resources): Renamed to ...
1270         (ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
1271         (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
1272         (booke_cmp_hw_point): New function.
1273         (booke_find_thread_points_by_tid): Ditto.
1274         (booke_insert_point): Ditto.
1275         (booke_remove_point): Ditto.
1276         (ppc_linux_insert_hw_breakpoint): Ditto.
1277         (ppc_linux_remove_hw_breakpoint): Ditto.
1278         (get_trigger_type): Ditto.
1279         (ppc_linux_insert_watchpoint): Handle BookE processors.
1280         (ppc_linux_remove_watchpoint): Ditto.
1281         (ppc_linux_new_thread): Ditto.
1282         (ppc_linux_thread_exit): New function..
1283         (ppc_linux_stopped_data_address): Handle BookE processors.
1284         (ppc_linux_watchpoint_addr_within_range): Ditto.
1285         (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
1286         to_remove_hw_breakpoint fields of the target operations struct.
1287         Add observe for the thread_exit event.
1288
1289 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
1290
1291         * i386-linux-nat.c (regmap): Removed.
1292         (fetch_register): Replace regmap with
1293         i386_linux_gregset_reg_offset.
1294         (store_register): Likewise.
1295         (supply_gregset): Likewise.
1296         (fill_gregset): Likewise.
1297
1298         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
1299         global.
1300
1301         * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
1302
1303 2010-04-22  Chris Moller  <cmoller@redhat.com>
1304
1305         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
1306         method of popping recursion-detection stack with a method based on
1307         obstack_object_size().  (Similar to the PR9167 patch below, but for
1308         the static array obstack rather than the static member obstack.)
1309
1310 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
1311
1312         * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
1313         (_initialize_amd64_linux_nat): Replace
1314         amd64_linux_gregset64_reg_offset with
1315         amd64_linux_gregset_reg_offset.
1316
1317         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
1318         global.
1319
1320         * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
1321
1322 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
1323
1324         PR stabs/11479.
1325         * stabsread.c (set_length_in_type_chain): New function.
1326         (read_struct_type): Call set_length_in_type_chain function.
1327         (read_enum_type): Idem.
1328
1329 2010-04-21  Stan Shebs  <stan@codesourcery.com>
1330             Nathan Sidwell  <nathan@codesourcery.com>
1331
1332         * tracepoint.c (trace_save): Open in binary mode.
1333
1334 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
1335
1336         * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
1337         fields.
1338         * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and 
1339         builtin_char32 fields.
1340         * printcmd.c (decode_format): Set char size to '\0'
1341         for strings unless explicit size is given.
1342         (print_formatted): Correct calculation of NEXT_ADDRESS
1343         for 16 or 32 bit strings.
1344         (do_examine): Do not force byte size for strings.
1345         Use builtin_char16 and builtin_char32 types to display
1346         16 or 32 bit-wide strings. 
1347         (x_command): Set LAST_SIZE to 'b' for string type.
1348
1349 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
1350
1351         PR corefiles/11523
1352         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1353         XCR0 first.
1354
1355         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
1356         there is no .reg-xstate section.
1357         (i386_linux_core_read_description): Check XCR0 first.
1358
1359 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
1360
1361         * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
1362         for len <= 8.
1363
1364 2010-04-21  Chris Moller  <cmoller@redhat.com>
1365
1366         PR 9167
1367         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
1368         method of popping recursion-detection stack with a method based on
1369         obstack_object_size().
1370
1371 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1372
1373         PR pascal/11492.
1374         * p-valprint.c (pascal_val_print): Fix default printing of integer
1375         arrays.
1376
1377 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1378
1379         Fix compilation warning on gcc-4.1.2.
1380         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
1381         local variable`pc' to zero.
1382
1383 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
1384
1385         Implement thread support with core files on alpha-tru64.
1386         * dec-thread.c (dec_thread_find_new_threads): New function,
1387         extracted from resync_thread_list.
1388         (resync_thread_list): Add OPS parameter.  Replace extracted-out
1389         code by call to dec_thread_find_new_threads.
1390         (dec_thread_wait): Update call to resync_thread_list.
1391         (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
1392
1393 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
1394
1395         * ada-lang.c (value_pointer): New function.
1396         (make_array_descriptor): Call value_pointer to convert addresses to
1397         pointers.
1398
1399 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
1400
1401         * rs6000-aix-tdep.c: #include exceptions.h.
1402         (rs6000_convert_from_func_ptr_addr): If an exception is thrown
1403         while reading the memory at ADDR, then ADDR cannot be a function
1404         descriptor.
1405
1406 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
1407
1408         * ada-typeprint.c (ada_print_typedef): New function.
1409         * ada-lang.h (ada_print_typedef): Add declaration.
1410         * ada-lang.c (ada_language_defn): set la_print_typdef field
1411         to ada_print_typedef.
1412
1413 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
1414
1415         * procfs.c (procfs_address_to_host_pointer): Only define when used.
1416
1417 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
1418
1419         * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
1420         (iterate_over_mappings): Adjust function profile. Add declaration.
1421         (insert_dbx_link_bpt_in_region, info_mappings_callback):
1422         Adjust accordingly.
1423
1424 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
1425
1426         * procfs.c (solib_mappings_callback): Move function up to avoid
1427         a compiler warning.
1428
1429 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
1430
1431         * procfs.c (find_signalled_thread, find_stop_signal): Move
1432         these functions down to define them only when used.
1433
1434 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
1435
1436         * valprint.c (common_val_print): Fix the value before extracting
1437         its contents.
1438         * ada-lang.c (ada_to_fixed_value): Make this function extern.
1439         * ada-lang.h (ada_to_fixed_value): New function declaration.
1440         * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
1441         to avoid code duplication and fix a bug in the handling of
1442         fixed types contents.
1443
1444 2010-04-20  Tom Tromey  <tromey@redhat.com>
1445
1446         * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
1447         (read_partial_die): Likewise.
1448         (dwarf_attr_name): Likewise.
1449
1450 2010-04-20  Chris Moller  <cmoller@redhat.com>
1451         
1452         PR 10867
1453
1454         * cp-valprint.c (global): Adding new static array recursion
1455         detection obstack.
1456         (cp_print_value_fields, cp_print_static_field): Added new static
1457         array recursion detection code.
1458
1459 2010-04-20  Mark Kettenis  <kettenis@gnu.org>
1460
1461         * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
1462         general-purpose register set should be 68 instead of 144.
1463         (i386_linux_sse_regset_sections): Likewise.
1464         (i386_linux_avx_regset_sections): Likewise.
1465
1466 2010-04-20  Stan Shebs  <stan@codesourcery.com>
1467             Nathan Sidwell  <nathan@codesourcery.com>
1468
1469         * dwarf2loc.c (struct axs_var_loc): New struct.
1470         (dwarf2_tracepoint_var_loc): New function.
1471         (dwarf2_tracepoint_var_access): New function.
1472         (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
1473         with DW_OP_piece.
1474         (locexpr_describe_location_piece): New function.
1475         (locexpr_describe_location_1): New function.
1476         (locexpr_describe_location): Call it, update signature.
1477         (loclist_describe_location): Rewrite to loop over locations,
1478         update signature.
1479         * symtab.h (struct symbol_computed_ops): Add address to
1480         describe_location arguments, return void.
1481         * printcmd.c (address_info): Get context PC, pass to computed
1482         location description.
1483         * tracepoint.c (scope_info): Ditto.
1484         * ax-gdb.c (trace_kludge): Export.
1485
1486 2010-04-20  Tom Tromey  <tromey@redhat.com>
1487
1488         * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
1489         (struct dwarf2_cie) <segment_size>: New field.
1490         * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
1491         (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
1492         DW_FORM_exprloc.
1493         (read_attribute_value): Handle DW_FORM_flag_present,
1494         DW_FORM_sec_offset, DW_FORM_exprloc.
1495         (dump_die_shallow): Likewise.
1496         (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
1497         (dwarf2_const_value): Handle DW_FORM_exprloc.
1498         (attr_form_is_block): Likewise.
1499         (struct line_header) <maximum_ops_per_instruction>: New field.
1500         (dwarf_decode_line_header): Set new field.
1501         (dwarf_decode_lines): Handle new field.
1502
1503 2010-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1504
1505         * f-exp.y: Add new production to recognize the `logical*8' type.
1506         (LOGICAL_S8_KEYWORD): New token.
1507         * f-lang.c (enum f_primitive_types)
1508         <f_primitive_type_logical_s8>: New field.
1509         (f_language_arch_info): Handling `logical*8' type.
1510         (build_fortran_types): Building `logical*8' type.
1511         * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
1512
1513 2010-04-19  Doug Evans  <dje@google.com>
1514
1515         * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
1516         * ser-pipe.c (pipe_open): Fix file descriptor leaks.
1517         (pipe_close): Ditto.
1518
1519 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1520
1521         * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
1522
1523 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1524
1525         * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
1526         type to void function.
1527
1528 2010-04-19  Stan Shebs  <stan@codesourcery.com>
1529             Vladimir Prus  <vladimir@codesourcery.com>
1530
1531         * tracepoint.c (tfind_1): Add missing newline, report exit from
1532         tfind mode as such.
1533         * target.c (update_current_target): Make default
1534         to_trace_find return -1.
1535
1536 2010-04-19  Mike Frysinger  <vapier@gentoo.org>
1537
1538         * objc-lang.c (find_methods): Move symname check up.
1539
1540 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
1541
1542         * ada-lang.c (print_recreate_exception)
1543         <ex_catch_exception_unhandled>: It's "catch exception unhandled",
1544         not "catch unhandled".
1545
1546 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
1547
1548         PR breakpoints/8554.
1549
1550         Implement `save-breakpoints'.
1551
1552         * breakpoint.c (save_cmdlist): New.
1553         (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
1554         to save_cmdlist.
1555         (print_recreate_catch_fork): New.
1556         (catch_fork_breakpoint_ops): Install it.
1557         (print_recreate_catch_vfork): New.
1558         (catch_vfork_breakpoint_ops): Install it.
1559         (print_recreate_catch_syscall): New.
1560         (catch_syscall_breakpoint_ops): Install it.
1561         (print_recreate_catch_exec): New.
1562         (catch_exec_breakpoint_ops): Install it.
1563         (print_recreate_exception_catchpoint): New.
1564         (gnu_v3_exception_catchpoint_ops): Install it.
1565         (save_breakpoints): New, based on tracepoint_save_command, but
1566         handle all breakpoint types.
1567         (save_breakpoints_command): New.
1568         (tracepoint_save_command): Rename to...
1569         (save_tracepoints_command): ... this, and reimplement using
1570         save_breakpoints.
1571         (save_command): New.
1572         (_initialize_breakpoints): Install the "save" command prefix.
1573         Install the "save breakpoints" command.  Make "save-tracepoints" a
1574         deprecated alias for "save tracepoints".
1575         * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
1576         * ada-lang.c (print_recreate_exception): New.
1577         (print_recreate_catch_exception): New.
1578         (catch_exception_breakpoint_ops): Install it.
1579         (print_recreate_catch_exception_unhandled): New.
1580         (catch_exception_unhandled_breakpoint_ops): Install it.
1581         (print_recreate_catch_assert): New.
1582         (catch_assert_breakpoint_ops): Install it.
1583
1584         * NEWS: Mention the new `save breakpoints' command.  Mention the
1585         new `save tracepoints' alias and that `save-tracepoints' is now
1586         deprecated.
1587
1588 2010-04-18  Pedro Alves  <pedro@codesourcery.com>
1589
1590         PR tui/9217
1591
1592         * tui/tui-out.c: Include cli-out.h.
1593         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
1594         (tui_begin, tui_end, tui_field_int, tui_field_skip)
1595         (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
1596         (tui_message, tui_wrap_hint, tui_flush): Delete forward
1597         declarations.
1598         (struct ui_out_data): Rename to...
1599         (struct tui_ui_out_data): ... this.  Remove `stream' and
1600         `suppress_output' fields, and inherit cli_ui_out_data.
1601         (tui_out_data): New typedef.
1602         (tui_ui_out_impl): Don't initialize fields staticaly.
1603         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
1604         (tui_begin, tui_end): Delete.
1605         (tui_field_int): Adjust to delegate most work to the base type.
1606         (tui_field_skip): Delete.
1607         (tui_field_string, tui_field_fmt): Adjust comment.  Adjust to
1608         delegate most work to the base type.
1609         (tui_spaces): Delete.
1610         (tui_text): Adjust to delegate most work to the base type.
1611         (tui_message): Delete.
1612         (tui_wrap_hint): Delete.
1613         (tui_flush): Delete.
1614         (out_field_fmt): Delete.
1615         (field_separator): Delete.
1616         (tui_out_new): Adjust to initialize the base type.
1617         (_initialize_tui_out): Initialize tui_ui_out_impl.
1618         * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
1619         cli_ui_out_data.
1620         (cli_out_data): Adjust.
1621         (cli_ui_out_impl): Make extern.
1622         (cli_table_header, cli_field_int, cli_field_skip): Use
1623         uo_field_string instead of cli_field_string.
1624         (cli_redirect): Adjust to use cli_out_data.
1625         (cli_out_data_ctor): New.
1626         (cli_out_new): Use it.
1627         * cli-out.h (struct ui_file): Remove forward declaration.
1628         (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
1629         (cli_ui_out_impl): Declare.
1630         (cli_out_data_ctor): Declare.
1631         * ui-out.c (struct ui_out) <data>: Change type to void pointer.
1632         (uo_field_string): No longer static.
1633         (ui_out_data): Change return type to void pointer.
1634         (ui_out_new): Change `data' parameter type to void pointer.
1635         * ui-out.h (struct ui_out_data): Don't forward declare.
1636         (ui_out_data): Change return type to void pointer.
1637         (ui_out_new): Change `data' parameter type to void pointer.
1638         (uo_field_string): Declare.
1639
1640 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
1641
1642         * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
1643         instead of always false.
1644
1645 2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
1646
1647         PR corefiles/11511
1648         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
1649         orig_rax.
1650
1651 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
1652
1653         * breakpoint.c (watchpoints_triggered): Use
1654         is_hardware_watchpoint.
1655         (watchpoints_triggered): Ditto.
1656         (bpstat_check_location): Use is_watchpoint and
1657         is_hardware_watchpoint.
1658         (bpstat_check_watchpoint): Use is_watchpoint and
1659         is_hardware_watchpoint.
1660         (bpstat_stop_status): Fix comment.
1661         (user_settable_breakpoint): Use is_watchpoint.
1662         (hw_watchpoint_used_count): Use is_hardware_watchpoint.
1663         (disable_watchpoints_before_interactive_call_start): Use
1664         is_watchpoint.
1665         (enable_watchpoints_after_interactive_call_stop): Use
1666         is_watchpoint.
1667         (clear_command): Use is_watchpoint.
1668         (do_enable_breakpoint): Use is_watchpoint.
1669
1670 2010-04-16  Mike Frysinger  <vapier@gentoo.org>
1671
1672         * solib-frv.c (enable_break1_done): Delete.
1673         (enable_break2): Do not check enable_break1_done.  Move the
1674         enable_break2_done setting and call to
1675         remove_solib_event_breakpoints() to the end.  Return without
1676         warning when the contents of _dl_debug_addr are 0.
1677         (enable_break): Do not set enable_break1_done.
1678         (frv_clear_solib): Likewise.
1679
1680 2010-04-16  Kevin Buettner  <kevinb@redhat.com>
1681
1682         * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
1683         instead of an error if no PLT entry is found.  Return a
1684         potentially useful result.
1685         (m32c_m16c_pointer_to_address): Add code to search for function
1686         address when no .plt entry is found.
1687
1688 2010-04-16  Stan Shebs  <stan@codesourcery.com>
1689
1690         * tracepoint.c (trace_variable_command): Run a cleanup.
1691
1692 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
1693
1694         * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
1695
1696 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
1697
1698         Support for Windows OS Thread Information Block.
1699         * NEWS: Document new feature.
1700         * remote.c (PACKET_qGetTIBAddr): New enum element.
1701         (remote_get_tib_address): New function.
1702         (init_remote_ops): Set to_get_tib_address field
1703         to remote_get_tib_address.
1704         (_initialize_remote): Add add_packet_config_cmd
1705         for PACKET_qGetTIBAddr.
1706         * target.c (update_current_target): Set default value for
1707         new to_get_tib_address field.
1708         * target.h (target_ops): New field to_get_tib_address.
1709         (target_get_tib_address): New macro.
1710         * windows-nat.c (thread_info): Add thread_local_base field.
1711         (windows_add_thread): Add tlb argument of type 'void *'.
1712         (fake_create_process): Adapt windows_add_thread call.
1713         (get_windows_debug_event): Idem.
1714         (windows_get_tib_address): New function.
1715         (init_windows_ops): Set to_get_tib_address field
1716         to remote_get_tib_address.
1717         (_initialize_windows_nat): Replace info_w32_cmdlist
1718         initialization by a call to init_w32_command_list.
1719         (info_w32_command, info_w32_cmdlist): Removed from here...
1720         to windows-tdep.c file.
1721         * windows-tdep.h (info_w32_cmdlist): Declare.
1722         (init_w32_command_list): New external function 
1723         declaration.
1724         * windows-tdep.c: Add several headers.
1725         (info_w32_cmdlist): to here, made global.
1726         (thread_information_32): New struct.
1727         (thread_information_64): New struct.
1728         (TIB_NAME): New char array.
1729         (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
1730         (maint_display_all_tib): New static variable.
1731         (windows_get_tlb_type): New function.
1732         (tlb_value_read, tlb_value_write): New functions.
1733         (tlb_value_funcs): New static struct.
1734         (tlb_make_value): New function.
1735         (display_one_tib): New function.
1736         (display_tib): New function.
1737         (show_maint_show_all_tib):New function.
1738         (info_w32_command): Moved from windows-nat.c.
1739         (init_w32_command_list): New function.
1740         (_initialize_windows_tdep): New function.
1741         New "maint set/show show-all-tib" command
1742         New "$_tlb" internal variable.
1743
1744 2010-04-16  Joel Brobecker  <brobecker@adacore.com>
1745
1746         * tui/tui-regs.c (tui_display_register): Add comment about
1747         a couple of casts.
1748         * tui/tui-stack.c (tui_show_locator_content): Ditto.
1749
1750 2010-04-15  Stan Shebs  <stan@codesourcery.com>
1751
1752         * frame.c: Include tracepoint.h.
1753         (get_current_frame): Allow a trace frame to be an alternate source
1754         of stack frame data.
1755         * tracepoint.c (tfind_1): Don't try to get current stack frame if
1756         it won't succeed.
1757
1758 2010-04-15  Pedro Alves  <pedro@codesourcery.com>
1759
1760         * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
1761         flags.
1762         * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
1763
1764 2010-04-15  Doug Evans  <dje@google.com>
1765
1766         * NEWS: Add entry for python program space support.
1767         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
1768         (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
1769         (py-progspace.o): New rule.
1770         * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
1771         function.
1772         (find_pretty_printer_from_progspace): New function.
1773         (find_pretty_printer_from_gdb): New function.
1774         (find_pretty_printer): Rewrite.
1775         * python/py-progspace.c: New file.
1776         * python/python-internal.h (program_space): Add forward decl.
1777         (pspace_to_pspace_object, pspy_get_printers): Declare.
1778         (gdbpy_initialize_pspace): Declare.
1779         * python/python.c: #include "progspace.h".
1780         (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
1781         (_initialize_python): Call gdbpy_initialize_pspace.
1782         (GdbMethods): Add current_progspace, progspaces.
1783
1784         Add -s option to source command.
1785         * NEWS: Document new option.
1786         * cli/cli-cmds.c (find_and_open_script): Add function comment.
1787         Delete from_tty and cleanupp args.  Split filep arg into file and
1788         full_pathp.  New arg search_path.
1789         (source_script_from_stream): New function.
1790         (source_script_with_search): New function.
1791         (source_script): Rewrite.
1792         (source_command): Parse "-s" option.
1793         (init_cli_cmds): Add "-s" docs to source command help, and reformat.
1794         * python/python.c (source_python_script): Make file arg a const char *.
1795         Don't call fclose, leave for caller.
1796         * python/python.h (source_python_script): Update.
1797
1798 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
1799             Pedro Alves  <pedro@codesourcery.com>
1800
1801         Avoid rereading shared libraries that haven't changed.
1802
1803         * solib.c (free_so_symbols): New function, from ...
1804         (free_so): ... here.  Call it.
1805         (solib_read_symbols): Don't warn here if symbols have already been
1806         loaded.
1807         (solib_add): Warn here instead, if a pattern was specified.
1808         (reload_shared_libraries_1): New.
1809         (reload_shared_libraries): Rewrite to not fetch the library list.
1810
1811 2010-04-14  Doug Evans  <dje@google.com>
1812
1813         * source.c (openp): Strip DOS drive letter if present before
1814         concatenating string to search path.
1815
1816 2010-04-14  Pedro Alves  <pedro@codesourcery.com>
1817
1818         * objfiles.h (gdb_bfd_close_or_warn): Declare.
1819         * objfiles.c (gdb_bfd_close_or_warn): New.
1820         * corelow.c: Include objfiles.h
1821         (core_close): Use gdb_bfd_close_or_warn.
1822         * elfread.c (build_id_verify): Ditto.
1823         * exec.c (exec_close, exec_close_1): Ditto.
1824
1825 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
1826             Pedro Alves  <pedro@codesourcery.com>
1827
1828         Group errors for many missing shared libraries.
1829
1830         * solist.h (struct so_list): Remove from_tty.
1831         * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
1832         (solib_map_sections): Take so_list argument.  Return 0 if we
1833         failed to open a BFD.  Add target sections here.
1834         (symbol_add_stub): Delete.
1835         (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
1836         not from_tty copied from the so_list.  Don't warn a second time
1837         for a missing library.
1838         (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
1839         add to the section table here.  Print out a single warning for all
1840         missing libraries.
1841         * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
1842         flags.
1843
1844 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
1845
1846         * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
1847         error/warning messages.  Capitalize and use complete sentences.
1848         (blpy_block_syms_iternext): Likewise.
1849         * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
1850         * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
1851         (frame_info_to_frame_object, frapy_read_var)
1852         (gdbpy_frame_stop_reason_string): Likewise.
1853         * python/py-lazy-string.c (stpy_convert_to_value)
1854         (gdbpy_create_lazy_string_object): Likewise.
1855         * python/py-objfile.c (objfpy_set_printers): Likewise.
1856         * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
1857         * python/python.c (parameter_to_python): Likewise.
1858         * python/py-type.c (typy_range, typy_target): Likewise.
1859         * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
1860         (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
1861
1862
1863 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
1864
1865         PR python/11381
1866
1867         * python/py-prettyprint.c (pretty_print_one_value): Test for
1868         Py_None.
1869         (print_string_repr): Test for Py_None.  Set flags accordingly.
1870         Return value depending on return type.
1871         (print_children): Take a value indicating whether data was printed
1872         before this function was called.  Alter output accordingly.
1873         (apply_val_pretty_printer): Capture return value from
1874         print_string_repr and pass to print_children.
1875
1876 2010-04-13  Mark Kettenis  <kettenis@gnu.org>
1877
1878         PR corefiles/11481
1879         * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
1880         register note sections.
1881         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1882         New variables.
1883         (i386_linux_init_abi): Install list of supported register note
1884         sections that matches the target description.
1885
1886 2010-04-13  Pedro Alves  <pedro@codesourcery.com>
1887
1888         * remote.c (remote_get_noisy_reply): Don't error out on empty
1889         replies.
1890         (remote_start_remote): Update and merge tracepoints and trace
1891         state variables as long as the target supports tracepoints.
1892         (remote_trace_init): Fix prototype.
1893         (remote_download_trace_state_variable): Validate reply.
1894         (remote_trace_set_readonly_regions): Fix prototype.
1895         (remote_trace_start): Fix prototype.  Check for empty reply.
1896         (remote_get_trace_status): Small cleanup.
1897         (remote_trace_stop): Fix prototype.  Check for empty reply.
1898         (remote_trace_find): Check for empty reply.
1899         (remote_save_trace_data): Validate reply.
1900         (remote_set_disconnected_tracing): Check for empty reply, and
1901         validate reply.
1902         (remote_set_circular_trace_buffer): Ditto.
1903
1904 2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
1905
1906         Suppress unused value warning during compilation.
1907         * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
1908         calls to void.
1909         * tui/tui-stack.c (tui_show_locator_content): Likewise.
1910
1911 2010-04-12  Stan Shebs  <stan@codesourcery.com>
1912
1913         * tracepoint.c (tfile_xfer_partial): Check read result.
1914
1915 2010-04-12  Mike Frysinger  <vapier@gentoo.org>
1916
1917         * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
1918         * remote-sim.c (gdbsim_files_info): Likewise.
1919
1920 2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1921
1922         * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
1923         * arm-linux-nat.c (arm_linux_vfp_register_count): New
1924         variable.
1925         (fetch_vfp_registers): New function to fetch VFP registers.
1926         (store_vfp_registers): New function to store VFP registers.
1927         (arm_linux_fetch_inferior_registers): Add support for VFP
1928         registers.
1929         (arm_linux_store_inferior_registers): Likewise.
1930         (arm_linux_read_description): Likewise.
1931         (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
1932         until we need it.
1933
1934 2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1935
1936         * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
1937         tdep.
1938         (amd64_collect_xstateregset): Likewise.
1939
1940 2010-04-09  Stan Shebs  <stan@codesourcery.com>
1941
1942         * tracepoint.c (trace_status_mi): Report frames created.
1943
1944         * tracepoint.c (trace_dump_command): Include default-collect
1945         expressions.
1946
1947 2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
1948
1949         * symtab.c (find_function_start_sal): Never return SAL pointing
1950         before function start address, even if line info is missing.
1951
1952 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
1953
1954         * NEWS: Mention tracepoints support.
1955
1956 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
1957
1958         * tracepoint.c (trace_status_mi): Report disconnected tracing and
1959         circular trace buffer statuses.
1960
1961 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1962
1963         * config/djgpp/fnchange.lst: Fix typo in translations for
1964         symbol-without-target_section.exp and symbol-without-target_section.c.
1965
1966 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
1967
1968         * breakpoint.c (condition_command): Pass condition expression to
1969         set_breakpoint_condition stripped from breakpoint number.
1970
1971 2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
1972             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1973             Tom Tromey  <tromey@redhat.com>
1974
1975         * breakpoint.c (condition_command): Simplify.  Move condition
1976         setting code to ...
1977         (set_breakpoint_condition): ... here.  New function.
1978         * breakpoint.h  (set_breakpoint_condition): Declare.
1979         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
1980         (SUBDIR_PYTHON_SRCS): Likewise.
1981         (py-breakpoint.o): New rule.
1982         * python/py-breakpoint.c: New file.
1983         * python/python-internal.h (gdbpy_breakpoints)
1984         (gdbpy_initialize_breakpoints): Declare.
1985         (GDB_PY_SET_HANDLE_EXCEPTION) Define.
1986
1987 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
1988
1989         * regformats/regdat.sh: Include server.h.  Don't include
1990         regcache.h.
1991
1992 2010-04-08  Stan Shebs  <stan@codesourcery.com>
1993             Pedro Alves  <pedro@codesourcery.com>
1994
1995         * tracepoint.h (struct trace_status): New fields disconnected_tracing
1996         and circular_buffer.
1997         (disconnect_tracing): Rename from disconnect_or_stop_tracing.
1998         * tracepoint.c (trace_status_command): Display target's status for
1999         disconnected tracing and circular buffer.
2000         (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
2001         query for non-disconnected-tracing case, remove the stop_tracing
2002         call.
2003         (tfile_open): Clear disconnected and circular buffer status.
2004         (trace_save): Save disconnected and circular buffer status.
2005         (parse_trace_status): Parse disconnected and circular buffer status,
2006         also recognize disconnected as a stop reason.
2007         * remote.c (remote_set_disconnected_tracing): Only set
2008         QTDisconnected if the remote end supports disconnected tracing.
2009         Warn otherwise, if trying to enable disconnected tracing.
2010         * infcmd.c (detach_command): Update disconnect_tracing call.
2011         * cli/cli-cmds.c (quit_command): Ditto.
2012
2013 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
2014
2015         * i387-tdep.c (i387_collect_xsave): Replace abort with
2016         internal_error.
2017
2018 2010-04-08  Stan Shebs  <stan@codesourcery.com>
2019
2020         * breakpoint.c (default_collect_info): New function.
2021         (breakpoints_info): Call it.
2022         (maintenance_info_breakpoints): Ditto.
2023         (tracepoints_info): Ditto.
2024
2025 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
2026
2027         * i387-tdep.c (i387_collect_xsave): Re-indent.
2028
2029 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
2030
2031         * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
2032         if HAVE_PTRACE_GETFPXREGS is defined.
2033         (i386_linux_read_description): Set have_ptrace_getfpxregs and
2034         have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
2035
2036         * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
2037         (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
2038         if .reg-xfp section doesn't exist.
2039         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
2040
2041         * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
2042
2043         * i386-tdep.c: Include "features/i386/i386-mmx.c".
2044         (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
2045         (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
2046         xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
2047         (i386_gdbarch_init): Update comments.
2048         (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
2049
2050         * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
2051
2052         * config/djgpp/fnchange.lst: Add i386 MMX XML files.
2053
2054         * features/Makefile (i386/i386-mmx-expedite): New.
2055         (i386/i386-mmx-linux-expedite): Likewise.
2056         ($(outdir)/i386/i386-mmx.dat): Likewise.
2057         ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
2058
2059         * features/i386/i386-mmx-linux.c: New.
2060         * features/i386/i386-mmx-linux.xml: Likewise.
2061         * features/i386/i386-mmx.c: Likewise.
2062         * features/i386/i386-mmx.xml: Likewise.
2063         * regformats/i386/i386-mmx-linux.dat: Likewise.
2064         * regformats/i386/i386-mmx.dat: Likewise.
2065
2066         * features/Makefile (WHICH): Add i386/i386-mmx and
2067         i386/i386-mmx-linux.
2068
2069 2010-04-08  Doug Evans  <dje@google.com>
2070
2071         * source.c (openp): Skip $cdir in PATH.
2072
2073 2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
2074
2075         PR python/11417
2076         * python/py-lazy-string.c (stpy_convert_to_value): Check for
2077         a NULL address.
2078         (gdbpy_create_lazy_string_object): Allow strings with a NULL
2079         address and a zero length.
2080
2081 2010-04-08  Hui Zhu  <teawater@gmail.com>
2082
2083         * i386-tdep.c (i386_process_record): Add support for insn
2084         rdtsc.
2085
2086 2010-04-07  Doug Evans  <dje@google.com>
2087
2088         * python/python.c (source_python_script): Use ensure_python_env
2089         to prepare environment for script.
2090
2091 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2092
2093         * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
2094         <sys/uio.h> and "i386-xstate.h".
2095         (PTRACE_GETREGSET): New.
2096         (PTRACE_SETREGSET): Likewise.
2097         (have_ptrace_getregset): Likewise.
2098         (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
2099         registers.
2100         (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
2101         registers.
2102         (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
2103         (amd64_linux_store_inferior_registers): Likewise.
2104         (amd64_linux_read_description): Check and enable AVX target
2105         descriptions.
2106
2107         * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
2108         and "features/i386/amd64-avx-linux.c".
2109         (amd64_linux_regset_sections): New.
2110         (amd64_linux_core_read_description): Check and enable AVX
2111         target description.
2112         (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
2113         set_gdbarch_core_regset_sections.
2114         (_initialize_amd64_linux_tdep): Call
2115         initialize_tdesc_amd64_avx_linux.
2116
2117         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
2118         AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
2119         (tdesc_amd64_avx_linux): New.
2120         (amd64_linux_update_xstateregset): Likewise.
2121
2122         * amd64-tdep.c: Include "features/i386/amd64-avx.c".
2123         (amd64_ymm_names): New.
2124         (amd64_ymmh_names): Likewise.
2125         (amd64_register_name): Likewise.
2126         (amd64_supply_xstateregset): Likewise.
2127         (amd64_collect_xstateregset): Likewise.
2128         (amd64_supply_xsave): Likewise.
2129         (amd64_collect_xsave): Likewise.
2130         (AMD64_NUM_REGS): Removed.
2131         (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
2132         %xmmN if AVX is available.
2133         (amd64_pseudo_register_name): Support pseudo YMM registers.
2134         (amd64_regset_from_core_section): Support .reg-xstate section.
2135         (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
2136         and ymm0h_regnum.  Call set_gdbarch_register_name.
2137         (amd64_init_abi): Call initialize_tdesc_amd64_avx.
2138
2139         * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
2140         AMD64_YMM15H_REGNUM.
2141         (AMD64_NUM_REGS): New.
2142         (amd64_supply_xsave): Likewise.
2143         (amd64_collect_xsave): Likewise.
2144         (amd64_register_name): Removed.
2145         (amd64_register_type): Likewise.
2146
2147 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2148
2149         * i387-tdep.c: Include "i386-xstate.h".
2150         (XSAVE_XSTATE_BV_ADDR): New.
2151         (xsave_avxh_offset): Likewise.
2152         (XSAVE_AVXH_ADDR): Likewise.
2153         (i387_supply_xsave): Likewise.
2154         (i387_collect_xsave): Likewise.
2155
2156         * i387-tdep.h (I387_NUM_YMM_REGS): New.
2157         (I387_YMM0H_REGNUM): Likewise.
2158         (I387_YMMENDH_REGNUM): Likewise.
2159         (i387_supply_xsave): Likewise.
2160         (i387_collect_xsave): Likewise.
2161
2162 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2163
2164         * i386-linux-nat.c: Include "regset.h", "elf/common.h",
2165         <sys/uio.h> and "i386-xstate.h".
2166         (PTRACE_GETREGSET): New.
2167         (PTRACE_SETREGSET): Likewise.
2168         (fetch_xstateregs): Likewise.
2169         (store_xstateregs): Likewise.
2170         (GETXSTATEREGS_SUPPLIES): Likewise.
2171         (regmap): Include 8 upper YMM registers.
2172         (i386_linux_fetch_inferior_registers): Support XSAVE extended
2173         state.
2174         (i386_linux_store_inferior_registers): Likewise.
2175         (i386_linux_read_description): Check and enable AVX target
2176         descriptions.
2177
2178         * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
2179         "i386-xstate.h" and "features/i386/i386-avx-linux.c".
2180         (i386_linux_regset_sections): Add ".reg-xstate".
2181         (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
2182         (i386_linux_core_read_xcr0): New.
2183         (i386_linux_core_read_description): Check and enable AVX target
2184         description.
2185         (i386_linux_init_abi): Set xsave_xcr0_offset.
2186         (_initialize_i386_linux_tdep): Call
2187         initialize_tdesc_i386_avx_linux.
2188
2189         * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
2190         I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
2191         (i386_linux_core_read_xcr0): New.
2192         (tdesc_i386_avx_linux): Likewise.
2193         (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
2194
2195         * i386-tdep.c: Include "i386-xstate.h" and
2196         "features/i386/i386-avx.c".
2197         (i386_ymm_names): New.
2198         (i386_ymmh_names): Likewise.
2199         (i386_ymmh_regnum_p): Likewise.
2200         (i386_ymm_regnum_p): Likewise.
2201         (i386_xmm_regnum_p): Likewise.
2202         (i386_register_name): Likewise.
2203         (i386_ymm_type): Likewise.
2204         (i386_supply_xstateregset): Likewise.
2205         (i386_collect_xstateregset): Likewise.
2206         (i386_sse_regnum_p): Removed.
2207         (i386_pseudo_register_name): Support pseudo YMM registers.
2208         (i386_pseudo_register_type): Likewise.
2209         (i386_pseudo_register_read): Likewise.
2210         (i386_pseudo_register_write): Likewise.
2211         (i386_dbx_reg_to_regnum): Return %ymmN register number for
2212         %xmmN if AVX is available.
2213         (i386_regset_from_core_section): Support .reg-xstate section.
2214         (i386_register_reggroup_p): Supper upper YMM and YMM registers.
2215         (i386_process_record): Replace i386_sse_regnum_p with
2216         i386_xmm_regnum_p.
2217         (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
2218         Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
2219         (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
2220         Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
2221         I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
2222         num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
2223         Set ymm0_regnum.
2224         (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
2225
2226         * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
2227         xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
2228         i386_ymm_type.
2229         (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
2230         (I386_AVX_NUM_REGS): New.
2231         (i386_xmm_regnum_p): Likewise.
2232         (i386_ymm_regnum_p): Likewise.
2233         (i386_ymmh_regnum_p): Likewise.
2234
2235         * common/i386-xstate.h: New.
2236
2237 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2238
2239         * config/djgpp/fnchange.lst: Add x86 AVX XML files.
2240
2241         * features/Makefile (WHICH): Add i386/i386-avx,
2242         i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
2243         (i386/i386-avx-expedite): New.
2244         (i386/i386-avx-linux-expedite): Likewise.
2245         (i386/x86-64-avx-expedite):Likewise.
2246         (i386/x86-64-avx-linux-expedite): Likewise.
2247         ($(outdir)/i386/i386-avx.dat): New dependency.
2248         ($(outdir)/i386/i386-avx-linux.dat): Likewise.
2249         ($(outdir)/i386/x86-avx-64.dat): Likewise.
2250         ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
2251
2252         * features/i386/32bit-avx.xml: New.
2253         * features/i386/64bit-avx.xml: Likewise.
2254         * features/i386/i386-avx-linux.c: Likewise.
2255         * features/i386/i386-avx-linux.xml: Likewise.
2256         * features/i386/i386-avx.c: Likewise.
2257         * features/i386/i386-avx.xml: Likewise.
2258         * features/i386/x86-64-avx-linux.c: Likewise.
2259         * features/i386/x86-64-avx-linux.xml: Likewise.
2260         * features/i386/x86-64-avx.c: Likewise.
2261         * features/i386/x86-64-avx.xml: Likewise.
2262         * regformats/i386/i386-avx-linux.dat: Likewise.
2263         * regformats/i386/i386-avx.dat: Likewise.
2264         * regformats/i386/x86-64-avx-linux.dat: Likewise.
2265         * regformats/i386/x86-64-avx.dat: Likewise.
2266
2267 2010-04-07  Doug Evans  <dje@google.com>
2268
2269         * top.c (source_file_name): Make const char *.
2270         * top.h (source_file_name): Update.
2271         * cli/cli-script.c (source_cleanup_lines_args): Make old_file
2272         const char *.
2273         (script_from_file): Change `file' arg to const char *.
2274         * cli/cli-script.h (script_from_file): Update.
2275
2276 2010-04-06  Doug Evans  <dje@google.com>
2277
2278         * cli/cli-cmds.c (source_command): Run cleanups.
2279
2280 2010-04-06  Stan Shebs  <stan@codesourcery.com>
2281
2282         * defs.h (char_ptr): Move typedef here from...
2283         * ada-lang.c (char_ptr): Remove.
2284         * charset.c (char_ptr): Remove.
2285         * tracepoint.h (struct uploaded_string): Remove.
2286         (struct uploaded_tp): Use vectors for string arrays.
2287         * tracepoint.c (trace_save): Use vectors of actions.
2288         (parse_tracepoint_definition): Ditto.
2289         (get_uploaded_tp): Clear vectors.
2290         * breakpoint.c (create_tracepoint_from_upload): Use vectors.
2291         (next_cmd): Change to an int.
2292         (read_next_cmd): Use vector of command strings.
2293
2294 2010-04-06  Doug Evans  <dje@google.com>
2295
2296         * top.h (source_script, cd_command): Delete.
2297         * main.c: #include "cli/cli-cmds.h"
2298
2299 2010-04-06  Kevin Buettner  <kevinb@redhat.com>
2300
2301         * m32c-tdep.c (make_types): When calling `arch_type', pass size of
2302         type in bytes, not bits.
2303
2304 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
2305
2306         * stabsread.c (define_symbol): Add support for char
2307         and string constants.
2308
2309 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
2310
2311         Remove remaining "%ll" uses.
2312         * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
2313         hex_string call.
2314         * rs6000-nat.c (rs6000_ptrace64): Idem.
2315         * solib-pa64.c (pa64_current_sos): Idem.
2316         * solib-spu.c (spu_current_sos): Idem.
2317         * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
2318         plongest call.
2319         * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
2320         phex (VAR, 8) call.
2321         * sh64-tdep.c (sh64_show_media_regs): Idem.
2322
2323 2010-04-05  Stan Shebs  <stan@codesourcery.com>
2324
2325         * tracepoint.c: Include gdbcore.h.
2326         (tfile_xfer_partial): Return partial results, also try reading
2327         from executable.
2328         (tfile_has_all_memory): New function.
2329         (init_tfile_ops): Use it.
2330
2331 2010-04-05  Sergio Durigan Junior  <sergiodj@redhat.com>
2332
2333         PR gdb/10736:
2334         * xml-syscall.c (my_gdb_datadir): New variable to keep track of
2335         the changes in data-directory.
2336         (init_sysinfo): Reload the syscall XML file if the data-directory
2337         has changed.
2338
2339 2010-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2340
2341         Code cleanup.
2342         * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
2343
2344 2010-04-04  Stan Shebs  <stan@codesourcery.com>
2345             Nathan Sidwell  <nathan@codesourcery.com>
2346
2347         * breakpoint.c (breakpoint_1): Add filter argument, return number of
2348         breakpoints printed.
2349         (is_hardware_watchpoint): Make argument const.
2350         (is_watchpoint): Ditto.
2351         (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
2352         use it everywhere.
2353         (breakpoints_info): Pass NULL to breakpoint_1.
2354         (maintenance_info_breakpoints): Ditto.
2355         (watchpoints_info): New function.
2356         (tracepoints_info): Use breakpoint_1 filter.
2357         (set_ignore_count): Warn that tracepoint ignore count will be ignored.
2358         (_initialize_breakpoint): Make "info watchpoints" its own command.
2359         * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
2360         * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
2361
2362 2010-04-04  Stan Shebs  <stan@codesourcery.com>
2363
2364         * tracepoint.c (tfile_fetch_registers): Add fallback case.
2365
2366 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2367
2368         * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
2369         * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
2370
2371 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2372
2373         * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
2374         * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
2375
2376 2010-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2377
2378         * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
2379         code form.
2380
2381 2010-04-02  Hui Zhu  <teawater@gmail.com>
2382
2383         * i386-tdep.c (OT_DQUAD): New enum.
2384         (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
2385         SSE3, SSSE3 and SSE4.
2386
2387 2010-04-02  Hui Zhu  <teawater@gmail.com>
2388
2389         * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
2390         "*addr = 0".
2391
2392 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
2393
2394         * tracepoint.c (trace_dump_actions): New, factored out from
2395         trace_dump_command, and adjusted to recurse into while-stepping's
2396         action list.
2397         (trace_dump_command): Use it.
2398
2399 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
2400
2401         * breakpoint.h (struct counted_command_line): Moved definition to
2402         breakpoint.c, and forward declare.
2403         (breakpoint_commands): Declare.
2404         * breakpoint.c (struct counted_command_line): Moved here.
2405         (breakpoint_commands): New.
2406         * tracepoint.c (encode_actions): Use breakpoint_commands.
2407         * remote.c (remote_download_tracepoint): Ditto.
2408
2409 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
2410
2411         * remote.c (remote_parse_stop_reply): Use hex_string instead
2412         of phex_nz for error.
2413
2414 2010-04-01  Stan Shebs  <stan@codesourcery.com>
2415             Nathan Sidwell  <nathan@codesourcery.com>
2416
2417         * tracepoint.h (enum actionline_type): Remove.
2418         (validate_actionline): Change return to void.
2419         * tracepoint.c (report_agent_reqs_errors): New function.
2420         (validate_actionline): Call it, change return to void, report errors
2421         more consistently.
2422         (collect_symbol): Call report_agent_reqs_errors.
2423         (encode_actions_1): Ditto.
2424         (encode_actions): Don't expect a result from validate_actionline.
2425
2426 2010-04-01  Stan Shebs  <stan@codesourcery.com>
2427
2428         * tracepoint.c (trace_start_command): Confirm if trace is running.
2429         (trace_stop_command): Error if trace not running.
2430
2431 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
2432
2433         * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
2434         (AMD64_NUM_LOWER_BYTE_REGS): New.
2435         (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
2436         (amd64_pseudo_register_write): Likewise.
2437         (amd64_init_abi): Set num_byte_regs to 20.
2438
2439 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
2440
2441         * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
2442         (prev_breakpoint_count): New.
2443         (set_breakpoint_count): Adjust.
2444         (rbreak_start_breakpoint_count): New.
2445         (start_rbreak_breakpoints): Adjust.
2446         (end_rbreak_breakpoints): Adjust.
2447         (struct commands_info) <arg>: New field.
2448         (do_map_commands_command): Tweak output to include breakpoint spec
2449         range.
2450         (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
2451         ARG was empty on entry.  Set INFO's arg.
2452         (create_breakpoint): Adjust.
2453
2454         * NEWS: Clarify `commands' changes.
2455
2456 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
2457
2458         * tracepoint.c: Include stack.h.
2459         (struct add_local_symbols_data): New.
2460         (do_collect_symbol): New.
2461         (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
2462         iterate_over_block_local_vars.
2463         * stack.c (print_block_frame_locals): Rewrite as ...
2464         (iterate_over_block_locals): ... this.  Take a callback function
2465         pointer and generic data pointer, and call that instead of
2466         print_variable_and_value.
2467         (struct print_variable_and_value_data): New.
2468         (do_print_variable_and_value): New.
2469         (iterate_over_block_local_vars): New, abstracted out from
2470         print_frame_local_vars.
2471         (print_frame_local_vars): Rewrite using
2472         iterate_over_block_local_vars.
2473         (iterate_over_block_arg_vars): New, abstracted out from
2474         print_frame_arg_vars.
2475         (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
2476         * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
2477         (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
2478
2479 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
2480
2481         * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
2482         instructions.  Use the PC+4 if the base of the TBB or TBH is the
2483         PC register.
2484
2485 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2486
2487         Fix crash on reading wrong function declaration DWARF.
2488         * dwarf2read.c (read_subroutine_type): New variable void_type.
2489         Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
2490         more close to their use.
2491
2492 2010-03-31  Stan Shebs  <stan@codesourcery.com>
2493
2494         * breakpoint.c (tracepoint_save_command): Include variables,
2495         conditionals, tracepoint types, and default-collect.
2496         * tracepoint.c (save_trace_state_variables): New function.
2497         * tracepoint.h (save_trace_state_variables): Declare it.
2498
2499 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
2500
2501         * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2502
2503 2010-03-30  Keith Seitz  <keiths@redhat.com>
2504
2505         * c-typeprint.c (c_type_print_args): Don't print "void"
2506         for java, regardless of whether it is TYPE_PROTOTYPED.
2507         Use the passed-in language instead of current_language.
2508         (c_type_print_varspec_suffix): Use current_language instead
2509         of assuming language_c.
2510         * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
2511         any return type specifier from the physname.
2512
2513 2010-03-30  Pedro Alves  <pedro@codesourcery.com>
2514
2515         * tui/tui-interp.c (tui_is_toplevel): New.
2516         (tui_init): Set it.
2517         (tui_allowed_p): New.
2518         * tui/tui.c (tui_enable): Check if the TUI is allowed before
2519         enabling it.
2520         * tui/tui.h (tui_allowed_p): Declare.
2521
2522 2010-03-30  Ozkan Sezer  <sezeroz@gmail.com>
2523
2524         * serial.h: Include winsock2.h before windows.h.
2525
2526 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2527
2528         * NEWS: Mention xmlRegisters= in qSupported packet.
2529
2530         * i386-tdep.c: Include "remote.h".
2531         (_initialize_i386_tdep): Call register_remote_support_xml.
2532
2533         * remote.c (remote_support_xml): New.
2534         (register_remote_support_xml): Likewise.
2535         (remote_query_supported_append): Likewise.
2536         (remote_query_supported): Support remote_support_xml.
2537
2538         * remote.h (register_remote_support_xml): New.
2539
2540 2010-03-29  Stan Shebs  <stan@codesourcery.com>
2541
2542         * tracepoint.c (trace_find_line_command): Remove dead code.
2543
2544         * tracepoint.h (struct uploaded_string): New struct.
2545         (struct uploaded_tp): New fields for source strings.
2546         * breakpoint.c (this_utp, next_cmd): New globals.
2547         (read_uploaded_action): New function.
2548         (create_tracepoint_from_upload): Fill in more parts
2549         of a tracepoint.
2550         * tracepoint.c (encode_source_string): New function.
2551         (trace_save): Write out source strings, fix error checks.
2552         (parse_tracepoint_definition): Add source string parsing.
2553         * remote.c (PACKET_TracepointSource): New packet type.
2554         (remote_download_command_source): New function.
2555         (remote_download_tracepoint): Download source pieces also.
2556         (_initialize_remote): Add packet config command.
2557
2558         * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
2559         expression handler.
2560
2561         * tracepoint.c (start_tracing): Check tracepoints before sending
2562         commands to target, don't start if all tracepoints disabled.
2563
2564 2010-03-28  Pedro Alves  <pedro@codesourcery.com>
2565
2566         * cli/cli-script.c (process_next_line): Handle 'stepping'.
2567
2568 2010-03-26  Stan Shebs  <stan@codesourcery.com>
2569
2570         * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
2571
2572 2010-03-26  Tom Tromey  <tromey@redhat.com>
2573
2574         * breakpoint.c (commands_command_1): Duplicate 'arg'.
2575
2576 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
2577
2578         * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
2579         (skip_prologue_sal): Remove local definition.
2580         (resolve_sal_pc): Remove now unnecessary code.
2581         * linespec.c (minsym_found): Call skip_prologue_sal.
2582         * symtab.c (find_function_start_pc): Remove.
2583         (find_function_start_sal): Extract prologue skipping into ...
2584         (skip_prologue_sal): ... this new function.  Handle code both
2585         with and without debug info.  Respect SAL's explicit_pc and
2586         explicit_line flags.  Inline old find_function_start_pc.
2587         * symtab.h (find_function_start_pc): Remove.
2588         (skip_prologue_sal): Add prototype.
2589
2590 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
2591
2592         * dwarf2read.c (read_func_scope): Also scan specification DIEs
2593         for DW_TAG_imported_module children.
2594
2595 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
2596
2597         * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
2598         ignoring spurious DW_AT_name attributes for unnamed structs or unions.
2599         * completer.c (add_struct_fields): Fix inverted logic.
2600
2601 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
2602
2603         * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
2604
2605 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
2606
2607         * tracepoint.c (current_trace_status): Don't make sure error_desc
2608         is non-NULL here.
2609         (parse_trace_status): Release a previous error_desc string, and
2610         set it to NULL by default.  If stop reason is tracepoint_error,
2611         make sure error_desc is not left NULL.
2612
2613 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
2614
2615         * tracepoint.c (trace_save): Remove X from tracepoint error
2616         description.
2617
2618 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
2619
2620         * tracepoint.c (parse_trace_status): Don't allow plain strings in
2621         the terror description.  Don't expect an X prefix.
2622
2623 2010-03-25  Stan Shebs  <stan@codesourcery.com>
2624
2625         * tracepoint.h (trace_stop_reason): Add tracepoint_error.
2626         (struct trace_status): New field error_desc.
2627         * tracepoint.c (stop_reason_names): Add terror.
2628         (current_trace_status): Ensure non-NULL error description.
2629         (trace_status_command): Add error report.
2630         (trace_status_mi): Ditto.
2631         (trace_save): Add special case for error description.
2632         (parse_trace_status): Add case for errors.
2633
2634 2010-03-25  Keith Seitz  <keiths@redhat.com>
2635
2636         * dwarf2read.c (read_subroutine_type): If the compilation unit
2637         language is Java, mark any formal parameter named "this" as
2638         artificial (GCC/43521).
2639         (dwarf2_name): Add special handling for Java constructors.
2640
2641 2010-03-25  Tom Tromey  <tromey@redhat.com>
2642
2643         PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
2644         * infrun.c (handle_inferior_event): Change initialization of
2645         stop_stack_dummy.
2646         (handle_inferior_event): Change assignment to stop_stack_dummy.
2647         (normal_stop): Update use of stop_stack_dummy.
2648         (struct inferior_status) <stop_stack_dummy>: Change type.
2649         * inferior.h (stop_stack_dummy): Update.
2650         * infcmd.c (stop_stack_dummy): Change type.
2651         * infcall.c (cleanup_delete_std_terminate_breakpoint): New
2652         function.
2653         (call_function_by_hand): Call set_std_terminate_breakpoint.
2654         Rewrite std::terminate handling.
2655         * breakpoint.h (enum bptype) <bp_std_terminate,
2656         bp_std_terminate_master>: New.
2657         (enum stop_stack_kind): New.
2658         (struct bpstat_what) <call_dummy>: Change type.
2659         (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
2660         Declare.
2661         * breakpoint.c (create_std_terminate_master_breakpoint): New
2662         function.
2663         (update_breakpoints_after_exec): Handle bp_std_terminate_master.
2664         Call create_std_terminate_master_breakpoint.
2665         (print_it_typical): Handle new breakpoint kinds.
2666         (bpstat_stop_status): Handle bp_std_terminate_master.
2667         (bpstat_what): Correctly set call_dummy field.  Handle
2668         bp_std_terminate_master and bp_std_terminate.
2669         (print_one_breakpoint_location): Update.
2670         (allocate_bp_location): Update.
2671         (set_std_terminate_breakpoint): New function.
2672         (delete_std_terminate_breakpoint): Likewise.
2673         (create_thread_event_breakpoint): Update.
2674         (delete_command): Update.
2675         (breakpoint_re_set_one): Update.
2676         (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
2677
2678 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2679
2680         * symfile.c (build_section_addr_info_from_bfd): New.
2681         (build_section_addr_info_from_objfile): Base it on
2682         build_section_addr_info_from_bfd.
2683         (addrs_section_compar, addrs_section_sort): New.
2684         (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
2685         addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
2686         addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
2687
2688 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
2689
2690         * elfread.c (find_separate_debug_file_by_buildid):
2691         Remove unused local variable.
2692
2693 2010-03-24  Tom Tromey  <tromey@redhat.com>
2694
2695         PR breakpoints/9352:
2696         * NEWS: Mention changes to `commands' and `rbreak'.
2697         * symtab.c (do_end_rbreak_breakpoints): New function.
2698         (rbreak_command): Call start_rbreak_breakpoints; arrange to call
2699         end_rbreak_breakpoints.
2700         * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
2701         (set_breakpoint_count): Likewise.  Clear last_was_multi.
2702         (multi_start, multi_end, last_was_multi): New globals.
2703         (start_rbreak_breakpoints, end_rbreak_breakpoints): New
2704         functions.
2705         (struct commands_info): New
2706         (do_map_commands_command): New function.
2707         (commands_command_1): New function.
2708         (commands_command): Use it.
2709         (commands_from_control_command): Likewise.
2710         (do_delete_breakpoint): New function.
2711         (delete_command): Use it.
2712         (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
2713         (do_map_disable_breakpoint): New function.
2714         (disable_command): Use it.
2715         (do_map_enable_breakpoint): New function.
2716         (enable_command): Use it.
2717         (enable_once_breakpoint): Add argument.
2718         (enable_once_command): Update.
2719         (enable_delete_breakpoint): Add argument.
2720         (enable_delete_command): Update.
2721         (break_command_really): Set last_was_multi when needed.
2722         (check_tracepoint_command): Fix formatting.
2723         (validate_commands_for_breakpoint): New function.
2724         (breakpoint_set_commands): Use it.
2725         (tracepoint_save_command): Update.
2726         * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
2727         Declare.
2728
2729 2010-03-24  Tom Tromey  <tromey@redhat.com>
2730
2731         * breakpoint.h (struct counted_command_line): New struct.
2732         (struct breakpoint) <commands>: Change type.
2733         (struct bpstats) <commands>: Change type.
2734         <commands_left>: New field.
2735         * breakpoint.c (alloc_counted_command_line): New function.
2736         (incref_counted_command_line): Likewise.
2737         (decref_counted_command_line): Likewise.
2738         (do_cleanup_counted_command_line): Likewise.
2739         (make_cleanup_decref_counted_command_line): Likewise.
2740         (breakpoint_set_commands): Use decref_counted_command_line and
2741         alloc_counted_command_line.
2742         (commands_command): Don't error if breakpoint commands are
2743         executing.
2744         (commands_from_control_command): Likewise.
2745         (bpstat_free): Update.
2746         (bpstat_copy): Likewise.
2747         (bpstat_clear_actions): Likewise.
2748         (bpstat_do_actions_1): Likewise.
2749         (bpstat_stop_status): Likewise.
2750         (print_one_breakpoint_location): Likewise.
2751         (delete_breakpoint): Likewise.
2752         (bpstat_alloc): Initialize new field.
2753         (tracepoint_save_command): Update.
2754         * tracepoint.c (encode_actions): Update.
2755         (trace_dump_command): Update.
2756
2757 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
2758
2759         * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
2760         * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
2761         (read_structure_type): For RealView, set TYPE_STUB on structures with
2762         no byte size and no children.
2763         (read_subroutine_type): Mark functions as prototyped by default.
2764         * symtab.c (producer_is_realview): New function.
2765         * symtab.h (expand_line_sal): Fix declaration formatting.
2766         (producer_is_realview): Declare.
2767
2768 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
2769
2770         * arm-tdep.c (skip_prologue_function): New function.
2771         (submask, bit, bits, sbits, BranchDest): Move higher in the file.
2772         (thumb_analyze_prologue): Document return value.  Recognize more
2773         Thumb instructions, skippable calls, and some Thumb-2 instructions.
2774         Add debug output.
2775         (arm_skip_prologue): Remove call dummy check.  Check the prologue
2776         for non-GNU compilers.
2777         (arm_instruction_changes_pc): New function.
2778         (arm_analyze_prologue): New function, broken out from
2779         arm_scan_prologue.  Recognize more ARM instructions and skippable
2780         calls.  Update comments.  Handle NULL cache.  Return the address
2781         of the first unrecognized instruction.  Do not skip past other
2782         instructions which change control flow.  Add debug output.
2783         (arm_scan_prologue): Use arm_analyze_prologue.
2784         (ARM_PC_32): Delete.
2785         (shifted_reg_val): Simplify ARM_PC_32 check.
2786
2787 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
2788
2789         * tracepoint.c (tvariables_info_1): Actually compute
2790         the number of rows in the result.
2791
2792 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
2793
2794         * remote.c (crc32): Constify `buf' parameter.
2795         (remote_verify_memory): New, abstracted out from...
2796         (compare_sections_command): ... this.  Remove hardcoded target
2797         checks.
2798         (init_remote_ops): Install remote_verify_memory.
2799         * target.c (target_verify_memory): New.
2800         * target.h (struct target_ops) <to_verify_memory>: New field.
2801         (target_verify_memory): Declare.
2802
2803 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
2804
2805         Implement -trace-save.
2806
2807         * mi-cmds.h (mi_cmds_trace_save): Declare.
2808         * mi-cmds.c (mi_cmds): Register -trace-save.
2809         * mi/mi-main.c (mi_cmd_trace_save): New.
2810         * remote.c (remote_save_trace_data): Take const parameter.
2811         * target.h (struct target_ops::to_save_trace_data): Take
2812         const parameter.
2813         * target.c (update_current_target): Adjust to the above.
2814         * tracepoint.c (trave_save): New, extracted from
2815         (trace_save_command): ...this.
2816         (tfile_trace_find): Remove message that is unnecessary now
2817         that 'tfind' reports found frame.
2818         * tracepoint.h (trace_save): Declare.
2819
2820 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
2821
2822         Implement -trace-find.
2823
2824         * mi/mi-cmds.c (mi_cmds): Register -trace-find.
2825         * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
2826         * mi/mi-main.c (mi_cmd_trace_find): New.
2827         * target.h (struct target_ops): Document to_trace_find.
2828         * tracepoint.h (tfind_1): Declare.
2829         * tracepoint.c (finish_tfind_command): Rename to...
2830         (tfind_1): ...this.
2831         * remote.c (remote_trace_find): Return -1 if target say
2832         there's no frame.  Improve error diagnostics.
2833
2834 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
2835
2836         -trace-define-variable and -trace-list-variables.
2837
2838         * tracepoint.c (create_trace_state_variable): Make
2839         private copy of name, as opposed to assuming the
2840         pointer lives forever.
2841         (tvariables_info_1): New.
2842         (tvariables_info): Use the above.
2843         * tracepoint.h (create_trace_state_variable, tvariables_info_1):
2844         Declare.
2845         * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
2846         and -trace-list-variables.
2847         * mi/mi-cmds.h (mi_cmd_trace_define_variable)
2848         (mi_cmd_trace_list_variables): New.
2849         * mi/mi-main.c (mi_cmd_trace_define_variable)
2850         (mi_cmd_trace_list_variables): New.
2851
2852 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
2853
2854         Implement -break-passcount.
2855
2856         * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
2857         * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
2858         * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
2859
2860 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
2861
2862         -trace-start/-trace-end/-trace-status.
2863
2864         * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
2865         and -trace-stop.
2866         * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
2867         (mi_cmd_trace_stop): Declare.
2868         * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
2869         (mi_cmd_trace_stop): New.
2870         * tracepoint.c (start_tracing): New, extracted from...
2871         (trace_start_command): ...this.
2872         (trace_status_mi): New.
2873         * tracepoint.h (struct trace_status): Document
2874         stopping_tracepoint.
2875         (start_tracing, stop_tracing, trace_status_mi): Declare.
2876
2877 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
2878
2879         Implement creating tracepoints with -break-insert.
2880
2881         * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
2882         to mean that tracepoint should be created.
2883
2884 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
2885
2886         * breakpoint.c (check_no_tracepoint_commands): Use
2887         current spelling of 'teval'.
2888
2889 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
2890
2891         Unify actions and commands
2892
2893         * defs.h (read_command_lines, read_command_lines_1): New
2894         parameters validator and closure.
2895         * tracepoint.h (struct action_line): Remove.
2896         * breakpoint.h (struct breakpoint): Remove the 'actions'
2897         field.
2898         * defs.h (enum command_control_type): New value
2899         while_stepping_control.
2900         (struct command_line): Add comments.
2901         * breakpoint.c (breakoint_is_tracepoint): New.
2902         (breakpoint_set_commands): For tracepoints,
2903         verify the commands are permissible.
2904         (check_tracepoint_commands): New.
2905         (commands_command): Require that each new line is validated using
2906         check_tracepoint_command, if we set commands for a tracepoint.
2907         (create_tracepoint_from_upload): Likewise.
2908         (print_one_breakpoint_location): Remove the code to print
2909         actions specifically.
2910         (tracepoint_save_command): Relay to print_command_lines.
2911         * cli/cli-script.c (process_next_line): New parameters validator
2912         and closure. Handle 'while-stepping'. Call validator if not null.
2913         (read_command_lines, read_command_lines1): Likewise.
2914         (recurse_read_control_structure): New parameters validator and
2915         closure. Handle while_stepping_control.
2916         (print_command_lines): Handle while-stepping.
2917         (get_command_line, define_command, document_command): Adjust.
2918         * remote.c (remote_download_tracepoint): Adjust.
2919         * tracepoint.c (make_cleanup_free_actions, read_actions)
2920         (free_actions, do_free_actions_cleanup): Remove.
2921         (trace_actions_command): Use read_command_lines.
2922         (validate_actionline): Use error in one place.
2923         (encode_actions_1): New, extracted from...
2924         (encode_actions): ...this. Also use cleanups for exception
2925         safety.
2926         (trace_dump_command): Adjust.
2927         * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
2928         it's tracepoint.
2929
2930 2010-03-23  Mike Frysinger  <vapier@gentoo.org>
2931
2932         * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
2933
2934 2010-03-22  Stan Shebs  <stan@codesourcery.com>
2935
2936         * value.c (value_static_field): Be lazy about the field's value.
2937
2938 2010-03-22  Reid Kleckner  <reid@kleckner.net>
2939
2940         PR gdb/11094
2941         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
2942         bp_jit_event.
2943         (disable_breakpoints_in_shlibs): Likewise.
2944
2945 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
2946
2947         * dwarf2read.c (partial_die_parent_scope): Work around buggy
2948         GCC 4.1 debug info generation (GCC PR c++/28460).
2949         (determine_prefix): Likewise.
2950
2951 2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
2952
2953         * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
2954         get_current_arch.
2955         * tui/tui-layout.c (extract_display_start_addr): Likewise.
2956
2957 2010-03-19  Stan Shebs  <stan@codesourcery.com>
2958
2959         * ax-gdb.c (gen_fetch): Handle bool.
2960         (gen_usual_unary): Ditto.
2961         (gen_cast): Ditto.
2962         (gen_equal): New function.
2963         (gen_less): New function.
2964         (gen_expr_binop_rest): Call them, also return integer type from
2965         logical operations.
2966         (gen_expr): Ditto.
2967
2968 2010-03-19  Tom Tromey  <tromey@redhat.com>
2969
2970         * jv-lang.c (jv_dynamics_objfile_data_key)
2971         (jv_type_objfile_data_key): New globals.
2972         (class_symtab): Move earlier.
2973         (jv_per_objfile_free): New function.
2974         (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
2975         parameter.
2976         Remove ancient #if 1.
2977         (add_class_symbol): Remove redundant declaration.
2978         (java_lookup_class): Use alloc_type, not alloc_type_arch.
2979         (java_link_class_type): Mark as static.  Update.
2980         (jv_clear_object_type): New function.
2981         (set_java_object_type): Likewise.
2982         (get_java_object_type): Use set_java_object_type.
2983         (is_object_type): Likewise.
2984         (_initialize_java_language): Register new objfile keys.
2985         (get_java_class_symtab): Add 'gdbarch' parameter.
2986         (add_class_symtab_symbol): Update.
2987         (type_from_class): Update.
2988
2989 2010-03-19  Stan Shebs  <stan@codesourcery.com>
2990
2991         * ax-general.c (ax_const_l): Fix a sizing bug.
2992
2993 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
2994
2995         GDB 7.1 released.
2996
2997 2010-03-18  Stan Shebs  <stan@codesourcery.com>
2998             Pedro Alves  <pedro@codesourcery.com>
2999
3000         * target.h (struct target_ops): New method
3001         to_set_circular_trace_buffer.
3002         (target_set_circular_trace_buffer): New macro.
3003         * target.c (update_current_target): Add
3004         to_set_circular_trace_buffer, fix to_set_disconnected_tracing
3005         default behavior.
3006         * remote.c (remote_set_circular_trace_buffer): New function.
3007         (init_remote_ops): Add it to vector.
3008         * tracepoint.h (struct trace_status): New field traceframes_created,
3009         change buffer_size and buffer_free to int.
3010         * tracepoint.c (circular_trace_buffer): New global.
3011         (start_tracing): Send values of disconnected tracing and circular
3012         trace buffer settings.
3013         (set_circular_trace_buffer): New function.
3014         (parse_trace_state): Handle total space and frames created.
3015         (trace_status_command): Display total space and total frames
3016         created.
3017         (trace_save): Write out new status values.
3018         (parse_trace_status): Set traceframe_count, traceframes_created,
3019         buffer_free and buffer_size to -1 by default.
3020         (_initialize_tracepoint): New setshow for circular-trace-buffer.
3021         * NEWS: Mention the circular trace buffer option.
3022
3023 2010-03-18  Tom Tromey  <tromey@redhat.com>
3024
3025         * infcmd.c (finish_command_continuation): Wrap print_return_value
3026         in TRY_CATCH.
3027
3028 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
3029
3030         * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
3031         DIE has a name before creating the associated partial symbol.
3032         (read_func_scope): Emit a complaint if the subprogram does not
3033         have a name or when we can't extract the subprogram PC bounds.
3034
3035 2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
3036
3037         * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
3038         instead of selected frame architecture.
3039
3040 2010-03-18  Pedro Alves  <pedro@codesourcery.com>
3041
3042         * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
3043         a valid selected thread, and that it is not running.
3044         (advance_command): Ditto.
3045         (finish_command): Ditto.
3046
3047 2010-03-17 Stan Shebs  <stan@codesourcery.com>
3048
3049         * ax-gdb.c (require_rvalue): Disallow non-scalars.
3050
3051         * infcall.c: Include tracepoint.h.
3052         (call_function_by_hand): Disallow calls in tfind mode.
3053         * infcmd.c: Include tracepoint.h.
3054         (ensure_not_tfind_mode): New function.
3055         (continue_1): Call it.
3056         (step_1) Ditto.
3057         (jump_command): Ditto.
3058         (signal_command): Ditto.
3059         (advance_command): Ditto.
3060         (until_command): Ditto.
3061         (finish_command): Ditto.
3062         * tracepoint.h (disconnect_or_stop_tracing): Declare.
3063
3064         * ax-gdb.h (struct axs_value): New field optimized_out.
3065         (gen_trace_for_var): Add gdbarch argument.
3066         * ax-gdb.c (gen_trace_static_fields): New function.
3067         (gen_traced_pop): Call it, add gdbarch argument.
3068         (gen_trace_for_expr): Update call to it.
3069         (gen_trace_for_var): Ditto, and report optimized-out variables.
3070         (gen_struct_ref_recursive): Check for optimized-out value.
3071         (gen_struct_elt_for_reference): Ditto.
3072         (gen_static_field): Pass gdbarch instead of expression, assume
3073         optimization if field not found.
3074         (gen_var_ref): Set the optimized_out flag.
3075         (gen_expr): Error on optimized-out variable.
3076         * tracepoint.c (collect_symbol): Handle struct-valued vars as
3077         expressions, skip optimized-out variables with computed locations.
3078         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
3079         erroring out if location expression missing.
3080         (loclist_tracepoint_var_ref): Don't error out here.
3081
3082 2010-03-17  Tom Tromey  <tromey@redhat.com>
3083
3084         * dwarf2read.c (dwarf2_get_section_info): Handle case where no
3085         DWARF data is available.
3086
3087 2010-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
3088
3089         * symfile.c (generic_load): Reset breakpoints after loading.
3090
3091 2010-03-17  Tom Tromey  <tromey@redhat.com>
3092
3093         * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
3094
3095 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3096
3097         * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
3098         create_breakpoint call, adjust the parameters.
3099
3100 2010-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3101             Chandru <chandru@in.ibm.com>
3102
3103         * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
3104         * valarith.c (value_subscripted_rvalue): Suppress error if
3105         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
3106
3107 2010-03-16  Holger Hans Peter Freyther  <zecke@selfish.org>
3108
3109         * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
3110
3111 2010-03-16  Joel Brobecker  <brobecker@adacore.com>
3112
3113         * ada-tasks.c (task_command_1): Check that the task ptid is valid
3114         before doing the associated thread switch.
3115
3116 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
3117
3118         * MAINTAINERS: Update my email address.
3119
3120 2010-03-16  Vladimir Prus  <vladimir@codesourcery.com>
3121
3122         Simplify MI breakpoint setting.
3123
3124         * breakpoint.c (break_command_really): Make nonstatic and
3125         rename to...
3126         (create_breakpoint): ...this. Rename prior function by this name
3127         to...
3128         (create_breakpoint_sal): ...this.
3129         (create_breakpoints): Rename to...
3130         (create_breakpoints_sal): ...this.
3131         (set_breakpoint): Remove.
3132         * breakpoint.h: Adjust to above changes.
3133         * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
3134
3135 2010-03-15 Stan Shebs  <stan@codesourcery.com>
3136
3137         * ax-gdb.c: Include cp-support.h.
3138         (find_field): Remove.
3139         (gen_primitive_field): New function.
3140         (gen_struct_ref_recursive): New function.
3141         (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
3142         of find_field.
3143         (gen_static_field): New function.
3144         (gen_struct_elt_for_reference): New.
3145         (gen_namespace_elt): New.
3146         (gen_maybe_namespace_elt): New.
3147         (gen_aggregate_elt_ref): New.
3148         (gen_expr): Add OP_SCOPE, display opcode name in error message.
3149
3150 2010-03-15  Tom Tromey  <tromey@redhat.com>
3151
3152         * dwarf2read.c (die_needs_namespace): Also return 0 for
3153         DW_TAG_subprogram.
3154
3155 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
3156
3157         PR c++/7936:
3158         * cp-support.h: Added char *declaration element to using_direct
3159         data struct.
3160         (cp_add_using): Added char *declaration argument.
3161         (cp_add_using_directive): Ditto.
3162         (cp_lookup_symbol_imports): made extern.
3163         * cp-namespace.c: Updated with the above changes.
3164         * dwarf2read.c (read_import_statement): Ditto.
3165         (read_namespace): Ditto.
3166         (read_import_statement): Support import declarations.
3167         * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
3168         declarations.
3169         Added support for 'declaration_only' search.
3170         (cp_lookup_symbol_namespace): Attempt to search for the name as
3171         is before consideration of imports.
3172         * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
3173         search at every block level search.
3174         Now takes language argument.
3175         (lookup_symbol_aux): Updated.
3176
3177 2010-03-15  Tom Tromey  <tromey@redhat.com>
3178
3179         * c-exp.y (name_not_typename): Add 'operator' clause.
3180
3181 2010-03-15  Ralf Corsepius  <ralf.corsepius@rtems.org>  (tiny change)
3182
3183         * configure.ac: Exit if ${gdb_target_obs}" is not set.
3184         * configure: Regenerate.
3185
3186 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3187
3188         * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
3189         and ".sdynbss".  Update the comment.
3190
3191 2010-03-15  Jie Zhang  <jie@codesourcery.com>
3192
3193         * MAINTAINERS: Update my email address.
3194
3195 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
3196
3197         * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
3198
3199 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
3200
3201         * charset.c [USE_WIN32API]: Include <windows.h>.
3202          (_initialize_charset): Correct type of w32_host_default_charset.
3203
3204 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
3205
3206         * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
3207
3208 2010-03-12  Tom Tromey  <tromey@redhat.com>
3209
3210         PR c++/9708:
3211         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
3212         in a lexical block does not need a namespace.
3213         (new_symbol) <DW_TAG_variable>: Put extern variables on
3214         list_in_scope in all cases.
3215
3216 2010-03-12 Stan Shebs  <stan@codesourcery.com>
3217
3218         * ax-gdb.c (gen_expr): Add shift expressions.
3219         (gen_expr_binop_rest): Ditto.
3220
3221 2010-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
3222
3223         * buildsym.c (finish_block): Reset using_directives pointer
3224         after block initialization.
3225
3226 2010-03-12  H.J. Lu  <hongjiu.lu@intel.com>
3227
3228         * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
3229         * i386-tdep.c (i386_word_names): Likewise.
3230
3231 2010-03-12  Pedro Alves  <pedro@codesourcery.com>
3232
3233         * target.c (memory_xfer_partial): Don't use the stack cache if
3234         inspecting trace frames.
3235         * tracepoint.c (finish_tfind_command): Invalidate the target
3236         dcache.
3237
3238 2010-03-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3239
3240         * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
3241         for the PIC displacement, print also the displacement value.
3242         (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
3243
3244 2010-03-10  Kevin Buettner  <kevinb@redhat.com>
3245
3246         * remote-mips.c (close_ports, mips_initialize_cleanups)
3247         (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
3248         (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
3249         (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
3250         (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
3251         (pmon_check_entry_address, pmon_check_total, pmon_end_download)
3252         (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
3253         comments describing each of these functions.
3254         (mips_enter_debug, mips_exit_debug, common_open)
3255         (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
3256         blank line after the comment describing the function.
3257
3258 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3259
3260         * solib-svr4.c (svr4_exec_displacement): Return now success, new
3261         parameter displacementp.  Update comment.
3262         (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
3263         element exists.  Return if svr4_exec_displacement was not successful.
3264         Update comment.
3265
3266 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3267             Daniel Jacobowitz  <dan@codesourcery.com>
3268
3269         * solib-svr4.c (read_program_header): Support type == -1 to read
3270         all program headers.
3271         (read_program_headers_from_bfd): New function.
3272         (svr4_static_exec_displacement): Remove and move the comment ...
3273         (svr4_exec_displacement): ... here.  Remove variable found.  New
3274         variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
3275         alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
3276         targets using read_program_headers_from_bfd.  Remove the call of
3277         svr4_static_exec_displacement.
3278
3279 2010-03-10  Tom Tromey  <tromey@redhat.com>
3280
3281         * dwarf2read.c (struct pubnames_header): Remove.
3282         (_PUBNAMES_HEADER): Remove.
3283         (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
3284         (struct aranges_header): Remove.
3285         (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
3286         (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
3287         (PUBNAMES_SECTION): Remove.
3288         (ARANGES_SECTION): Remove.
3289         (dwarf2_locate_sections): Don't handle pubnames or aranges.
3290         (dwarf2_build_psymtabs): Remove dead code.
3291         (dwarf2_build_psymtabs_easy): Remove.
3292
3293 2010-03-10  Tom Tromey  <tromey@redhat.com>
3294
3295         * elfread.c (elf_symfile_read): Don't call
3296         dwarf2_build_frame_info.
3297         * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
3298         (struct dwarf2_per_objfile) <objfile>: New field.
3299         (dwarf2_has_info): Now idempotent.  Set objfile field.
3300         (dwarf2_read_section): Check and set readin field.  Call
3301         posix_madvise.
3302         (dwarf2_build_psymtabs): Don't read all sections.
3303         (read_type_comp_unit_head): Read types section.
3304         (create_debug_types_hash_table): Likewise.
3305         (init_cu_die_reader): Add asserts.
3306         (process_type_comp_unit): Add assert.
3307         (dwarf2_build_psymtabs_hard): Read info section.
3308         (load_partial_comp_unit): Add assert.
3309         (create_all_comp_units): Read info section.
3310         (load_full_comp_unit): Likewise.
3311         (dwarf2_ranges_read): Read ranges section.
3312         (dwarf2_record_block_ranges): Add assert.
3313         (dwarf2_read_abbrevs): Read abbrev section.
3314         (read_indirect_string): Read str section.
3315         (dwarf_decode_line_header): Read line section.
3316         (read_signatured_type_at_offset): Read types section.
3317         (dwarf_decode_macros): Read macinfo section.
3318         (dwarf2_symbol_mark_computed): Read loc section.
3319         * dwarf2-frame.c (dwarf2_frame_find_fde): Call
3320         dwarf2_build_frame_info.
3321         (dwarf2_build_frame_info): Unconditionally set
3322         dwarf2_frame_objfile_data on the objfile.
3323         * configure.ac: Check for posix_madvise.
3324         * config.in, configure: Rebuild.
3325
3326 2010-03-10  Tom Tromey  <tromey@redhat.com>
3327
3328         * xcoffread.c (xcoff_start_psymtab): Update.
3329         (xcoff_end_psymtab): Update.
3330         * psymtab.c (allocate_psymtab): Remove dead code.
3331         * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
3332         void*.
3333         * mdebugread.c (parse_partial_symbols): Update.
3334         (new_psymtab): Likewise.
3335         * dwarf2read.c (process_psymtab_comp_unit): Update.
3336         (psymtab_to_symtab_1): Update.
3337         * dbxread.c (start_psymtab): Update.
3338         (end_psymtab): Likewise.
3339
3340 2010-03-10  Tom Tromey  <tromey@redhat.com>
3341
3342         * xcoffread.c: Include psymtab.h.
3343         (xcoff_sym_fns): Update.
3344         * symtab.h (struct partial_symbol): Remove.
3345         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
3346         (struct partial_symtab): Remove.
3347         (PSYMTAB_TO_SYMTAB): Remove.
3348         (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
3349         (find_pc_sect_psymtab): Remove.
3350         (find_pc_sect_symtab_via_partial): Declare.
3351         (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
3352         (find_main_psymtab): Remove.
3353         (find_main_filename): Declare.
3354         (fixup_psymbol_section): Remove.
3355         (fixup_section): Declare.
3356         * symtab.c: Include psymtab.h.
3357         (lookup_symtab): Use lookup_symtab method.
3358         (lookup_partial_symtab): Remove.
3359         (find_pc_sect_psymtab_closer): Remove.
3360         (find_pc_sect_psymtab): Remove.
3361         (find_pc_sect_symtab_via_partial): New function.
3362         (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
3363         (fixup_section): No longer static.
3364         (fixup_psymbol_section): Remove.
3365         (lookup_symbol_aux): Use lookup_symbol_aux_quick.
3366         (lookup_global_symbol_from_objfile): Likewise.
3367         (lookup_symbol_aux_psymtabs): Remove.
3368         (lookup_symbol_aux_quick): New function.
3369         (lookup_symbol_global): Use lookup_symbol_aux_quick.
3370         (lookup_partial_symbol): Remove.
3371         (basic_lookup_transparent_type_quick): New function.
3372         (basic_lookup_transparent_type): Use it.
3373         (find_main_psymtab): Remove.
3374         (find_main_filename): New function.
3375         (find_pc_sect_symtab): Use find_pc_sect_symtab method.
3376         (find_line_symtab): Use expand_symtabs_with_filename method.
3377         (output_partial_symbol_filename): New function.
3378         (sources_info): Use map_partial_symbol_filenames.
3379         (struct search_symbols_data): New type.
3380         (search_symbols_file_matches): New function.
3381         (search_symbols_name_matches): Likewise.
3382         (search_symbols): Use expand_symtabs_matching method.
3383         (struct add_name_data): Rename from add_macro_name_data.
3384         (add_macro_name): Update.
3385         (add_partial_symbol_name): New function.
3386         (default_make_symbol_completion_list): Use
3387         map_partial_symbol_names.
3388         (struct add_partial_symbol_name): New type.
3389         (maybe_add_partial_symtab_filename): New function.
3390         (make_source_files_completion_list): Use
3391         map_partial_symbol_filenames.
3392         (expand_line_sal): Use expand_symtabs_with_filename method.
3393         * symmisc.c: Include psymtab.h.
3394         (print_objfile_statistics): Use print_stats method.
3395         (dump_objfile): Use dump method.
3396         (dump_psymtab, maintenance_print_psymbols)
3397         (maintenance_info_psymtabs, maintenance_check_symtabs)
3398         (extend_psymbol_list): Remove.
3399         * symfile.h (struct quick_symbol_functions): New struct.
3400         (struct sym_fns) <qf>: New field.
3401         (sort_pst_symbols): Remove.
3402         (increment_reading_symtab): Declare.
3403         * symfile.c: Include psymtab.h.
3404         (compare_psymbols, sort_pst_symbols): Remove.
3405         (psymtab_to_symtab): Remove.
3406         (increment_reading_symtab): New function.
3407         (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
3408         method.
3409         (set_initial_language): Use find_main_filename.
3410         (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
3411         (free_named_symtabs): Remove unused code.
3412         (start_psymtab_common, add_psymbol_to_bcache)
3413         (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
3414         Remove.
3415         * stack.c: Include psymtab.h, symfile.h.
3416         (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
3417         * source.h (psymtab_to_fullname): Don't declare.
3418         * source.c: Include psymtab.h.
3419         (select_source_symtab): Use find_last_source_symtab method.
3420         (forget_cached_source_info): Use forget_cached_source_info
3421         method.
3422         (find_and_open_source): No longer static.
3423         (psymtab_to_fullname): Remove.
3424         * somread.c: Include psymtab.h.
3425         (som_sym_fns): Update.
3426         * psympriv.h: New file.
3427         * psymtab.h: New file.
3428         * psymtab.c: New file.
3429         * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
3430         (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
3431         * objfiles.c: Include psymtab.h.
3432         (objfile_relocate1): Use relocate method.
3433         (objfile_has_partial_symbols): Use has_symbols method.
3434         * mipsread.c: Include psymtab.h.
3435         (ecoff_sym_fns): Update.
3436         * mi/mi-cmd-file.c: Include psymtab.h.
3437         (print_partial_file_name): New function.
3438         (mi_cmd_file_list_exec_source_files): Use
3439         map_partial_symbol_filenames.
3440         * mdebugread.c: Include psympriv.h.
3441         * machoread.c: Include psympriv.h.
3442         (macho_sym_fns): Update.
3443         * m2-exp.y (yylex): Use lookup_symtab.
3444         * elfread.c: Include psympriv.h.
3445         (elf_sym_fns): Update.
3446         * dwarf2read.c: Include psympriv.h.
3447         * dbxread.c: Include psympriv.h.
3448         (aout_sym_fns): Update.
3449         * cp-support.c: Include psymtab.h.
3450         (read_in_psymtabs): Remove.
3451         (make_symbol_overload_list_qualified): Use
3452         expand_symtabs_for_function method.
3453         * coffread.c: Include psympriv.h.
3454         (coff_sym_fns): Update.
3455         * blockframe.c: Include psymtab.h.
3456         (find_pc_partial_function): Use find_pc_sect_symtab method.
3457         * ada-lang.h (ada_update_initial_language): Update.
3458         * ada-lang.c: Include psymtab.h.
3459         (ada_update_initial_language): Remove 'main_pst' argument.
3460         (ada_lookup_partial_symbol): Remove.
3461         (struct ada_psym_data): New type.
3462         (ada_add_psyms): New function.
3463         (ada_add_non_local_symbols): Use map_ada_symtabs method.
3464         (struct add_partial_datum): New type.
3465         (ada_add_partial_symbol_completions): New function.
3466         (ada_make_symbol_completion_list): Use map_partial_symbol_names.
3467         (ada_exception_support_info_sniffer): Update.
3468         * Makefile.in (SFILES): Add psymtab.c.
3469         (COMMON_OBS): Add psymtab.o.
3470         (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
3471
3472 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
3473
3474         * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
3475
3476 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
3477
3478         PR C++/11236:
3479         * cp-namespace.c (cp_add_using): Deleted.
3480         (cp_add_using_directive): Use obstack allocations.
3481         Merged the function cp_add_using into this one.
3482         Added 'struct obstack *' argument.
3483         (cp_scan_for_anonymous_namespaces): Updated.
3484         * cp-support.h: Updated.
3485         * dwarf2read.c (read_import_statement): Updated.
3486         (read_namespace): Updated.
3487
3488 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
3489
3490         * windows-nat.c (cygwin_conv_path): Remove old macro.
3491
3492 2010-03-10  Pedro Alves  <pedro@codesourcery.com>
3493
3494         * breakpoint.c (condition_command): Handle watchpoint conditions.
3495         (is_hardware_watchpoint): Add comment.
3496         (is_watchpoint): New.
3497         (update_watchpoint): Don't reparse the watchpoint's condition
3498         unless necessary.
3499         (WP_IGNORE): New.
3500         (watchpoint_check): Use it.
3501         (bpstat_check_watchpoint): Handle it.
3502         (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
3503         conditions in a frame where it makes sense.
3504         (watch_command_1): Store the innermost block of the condition
3505         expression.
3506         (delete_breakpoint): Delete the watchpoint condition expression.
3507         * breakpoint.h (struct bp_location) <cond>: Update comment.
3508         (struct breakpoint): New field `cond_exp_valid_block'.
3509
3510 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
3511
3512         Adjust handling of Ada DIEs after dwarf2_physname patch.
3513         * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
3514
3515 2010-03-09  Christopher Faylor  <me+cygwin@cgf.cx>
3516             Pierre Muller  <muller@ics.u-strasbg.fr>
3517
3518         * windows-nat.c (cygwin_conv_path): Redefine to properly convert
3519         from/to posix/win32.
3520         (windows_make_so): Use non-Cygwin 1.7 specific function.
3521         (windows_create_inferior): Make sure that cygallargs points to
3522         original args in non Cygwin 1.7. case.
3523
3524 2010-03-09  Michael Snyder  <msnyder@vmware.com>
3525
3526         * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
3527         after target_read_memory to get host byte order.
3528         (i386_process_record): Ditto.
3529
3530 2010-03-09  Keith Seitz  <keiths@redhat.com>
3531
3532         Based on work from Daniel Jacobowitz  <dan@codesourcery.com>
3533         * c-typeprint.c (cp_type_print_method_args): For non-static methods,
3534         print out const or volatile qualifiers, too.
3535         (c_type_print_args): Add parameters show_artificial and language.
3536         Skip artificial parameters when requested.
3537         Use the appropriate language printer.
3538         (c_type_print_varspec): Tell c_type_print_args to skip artificial
3539         parameters and pass language_c.
3540         * dwarf2read.c (die_list): New file global.
3541         (struct partial_die_info): Update comments for name field.
3542         (pdi_needs_namespace): Renamed to ...
3543         (die_needs_namespace): ... this. Rewrite.
3544         (dwarf2_linkage_name): Remove.
3545         (add_partial_symbol): Do not predicate the call to
3546         partial_die_full_name based on pdi_needs_namespace.
3547         Remove call to cp_check_possible_namespace_symbols and associated
3548         outdated comments.
3549         (guess_structure_name): Do not inspect child subprogram DIEs.
3550         (dwarf2_fullname): Update comments.
3551         Use die_needs_namespace to assist in computing the name.
3552         (read_func_scope): Use dwarf2_name to get the DIE's name.
3553         Use dwarf2_physname to get the "linkage name" of the DIE.
3554         (dwarf2_add_member_field): Use dwarf2_physname instead of
3555         dwarf2_linkage_name.
3556         (read_structure_type): For structs and classes, set TYPE_NAME, too.
3557         (determine_class): Remove.
3558         (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
3559         except Ada.
3560         (new_symbol): Unconditionally call dwarf2_name.
3561         Compute the "linkage name" using dwarf2_physname.
3562         Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
3563         When determining to scan for anonymous C++ namespaces, ignore
3564         the linkage name.
3565         (dwarf2_physname): New function.
3566         (dwarf2_full_name): Move content to new function and call
3567         that.
3568         (dwarf2_compute_name): "New" function.
3569         (_initialize_dwarf2_read): Initialize die_list.
3570         * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
3571         physname.
3572         (gnu_v3_print_method_ptr): Use the physname for virtual methods
3573         without a demangled name.
3574         Print out type information for non-virtual methods.
3575         * linespec.c (decode_line_1): Force ANY string using "::" (or
3576         "." for java) to use decode_compound, and clean up any stray quoting.
3577         If we found a file symtab, re-evaluate whether the remainder is_quoted.
3578         (decode_compound): Stop consuming at an open parenthesis.
3579         Keep template parameters.
3580         Keep any overload information.
3581         Keep keywords like "const".
3582         Remove paren_pointer.
3583         Move is_quoted check from set_flags to here.
3584         Remove #if 0 code from 2000. Ten years is long enough.
3585         (find_method): Before comparing symbol names, canonicalize the string
3586         from the user.
3587         If a specific overload is requested, find it. Otherwise throw an error.
3588         (find_method_overload_end): New function.
3589         (set_flags): Remove.
3590         (decode_compound): Assume that parentheses are matched.
3591         It's a lot easier.
3592         * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
3593         to cplus_demangle.
3594         * linespec.c (decode_line_1): Keep important keywords like
3595         "const" and "volatile".
3596         * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
3597         * typeprint.h (c_type_print_args): Add declaration.
3598         * ui-file.c (do_ui_file_obsavestring): New function.
3599         (ui_file_obsavestring): New function.
3600         * ui-file.h (ui_file_obsavestring): Add declaration.
3601         * valops.c (find_overload_match): Resolve the object to
3602         a non-pointer type.
3603         If the object is a data member, search the object for the member
3604         and return with staticp set.
3605         Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
3606         Do not attempt to extract a function name from non-function types.
3607         If the extracted function name and the original name are the same,
3608         we don't have a C++ method.
3609
3610         From Jan Kratochvil  <jan.kratochvil@redhat.com>:
3611         * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
3612
3613         * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
3614         and arguments from symbol lookups.
3615         * ax-gdb.c (gen_expr): Likewise.
3616         * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
3617         cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
3618         lookup_possible_namespace_symbol): Likewise.
3619         * cp-support.c (read_in_psymtabs): Likewise.
3620         * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
3621         * language.h (la_lookup_symbol_nonlocal): Likewise.
3622         * scm-valprint.c (scm_inferior_print): Likewise.
3623         * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
3624         * solib-svr.c (elf_lookup_lib): Likewise.
3625         * solib.c (show_auto_solib_add): Likewise.
3626         * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
3627         * symmisc.c (maintenance_check_symtabs): Likewise.
3628         * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
3629         lookup_symbol_aux_local, lookup_symbol_aux_block,
3630         lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
3631         lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
3632         lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
3633         basic_lookup_transparent_type, find_main_psymtab,
3634         lookup_block_symbol): Likewise.
3635         * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
3636         lookup_symbol_global, lookup_symbol_aux_block,
3637         lookup_symbol_partial_symbol, lookup_block_symbol,
3638         lookup_global_symbol, value_maybe_namespace_elt): Likewise.
3639
3640 2010-03-09  Pierre Muller  <muller@ics.u-strasbg.fr>
3641
3642         * python/python-internal.h: Include symtab.h.
3643
3644 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
3645             Pierre Muller  <muller@ics.u-strasbg.fr>
3646
3647         * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
3648         * p-valprint.c (pascal_val_print): Remove undeed block and fix
3649         indentation.
3650
3651 2010-03-08  Tom Tromey  <tromey@redhat.com>
3652
3653         * breakpoint.c (breakpoint_1): Add "QUIT".
3654
3655 2010-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
3656             Pedro Alves  <pedro@codesourcery.com>
3657
3658         * solib.c (solib_find): Replace extension if
3659         solib_symbols_extension is set in the target gdbarch.
3660         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
3661         solib_symbols_extension to "sym".
3662         * gdbarch.sh (solib_symbols_extension): New variable.
3663         (pstring): New function.
3664         * gdbarch.h, gdbarch.c: Regenerate.
3665
3666 2010-03-08  Tom Tromey  <tromey@redhat.com>
3667
3668         PR cli/9591:
3669         * NEWS: Update.
3670         * utils.c: Include main.h.
3671         (fputs_maybe_filtered): Don't paginate if `batch_flag'.
3672         (defaulted_query): Use default answer if `batch_flag'.
3673         * main.h (batch_flag): Declare.
3674         * main.c (batch_flag): New global.
3675         (captured_main): Remove 'batch'.  Update.
3676
3677 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
3678
3679         From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
3680         and Kevin Buettner:
3681
3682         * remote-mips.c (rockhopper_ops): New target_ops struct.
3683         (MON_ROCKHOPPER): New mips_monitor_type.
3684         (read_hex_value): New function.
3685         (mips_request): Send 8-byte values with a 'T' packet.  Read the
3686         packet argument as a string and use read_hex_value to parse it.
3687         (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
3688         (rockhopper_open): New function.
3689         (mips_wait): Read the PC, FP and SP fields as strings.  Use
3690         read_hex_value to parse them and mips_set_register to commit them.
3691         (mips_set_register): New function.
3692         (mips_fetch_registers): Do not cast register value to "unsigned"
3693         when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
3694         (mips_store_registers): Use a 'T' packet to set registers when
3695         using MON_ROCKHOPPER.
3696         (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
3697         and expect the total to be printed before the entry address.
3698         (_initialize_remote_mips): Initialize and add rockhopper_ops.
3699
3700 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
3701
3702         * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
3703         Change return value to int.  Store value fetched in location
3704         addressed by `val'.  Use function's return value as success
3705         or failure indicator.  Adjust all callers.
3706
3707 2010-03-08  Pierre Muller  <muller@ics.u-strasbg.fr>
3708
3709         * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
3710
3711 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3712             Hui Zhu  <teawater@gmail.com>
3713
3714         * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
3715         tmp_to_stopped_data_address.
3716         (record_open): Reset tmp_to_stopped_by_watchpoint and
3717         tmp_to_stopped_data_address.
3718         * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
3719         to_stopped_data_address.
3720
3721 2010-03-08  Hui Zhu  <teawater@gmail.com>
3722
3723         * i386-tdep.c (i386_process_record): Initialize regnum.
3724
3725 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3726
3727         * symfile.c (addr_info_make_relative): New variable sect_name, use it.
3728         Do not warn on ".gnu.liblist" and ".gnu.conflict".
3729
3730 2010-03-08  Joel Brobecker  <brobecker@adacore.com>
3731
3732         Memory error when reading wrong core file.
3733         * solib-svr4.c (solib_svr4_r_map): catch and print all exception
3734         errors while reading the inferior memory, and return zero if
3735         an exception was raised.
3736
3737 2010-03-07  Michael Snyder  <msnyder@vmware.com>
3738
3739         * record.c (record_restore): Rename tmpu8 to rectype.
3740
3741         * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
3742         tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
3743
3744         (i386_record_push): Rename local tmpulongest to addr.
3745
3746         (i386_process_record): Rename local tmpulongest to addr.
3747
3748         Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
3749         addr64.
3750
3751         Rename local variable tmpu8 to opcode8 and regnum.
3752
3753 2010-03-07  Joel Brobecker  <brobecker@adacore.com>
3754
3755         * remote.c (remote_get_ada_task_ptid): New function.
3756         (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
3757
3758 2010-03-06  Christopher Faylor  <me+cygwin@cgf.cx>
3759
3760         * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
3761         block.  Define helper macros to reduce ifdefs in code.
3762         (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
3763         size.  Call unadorned GetModuleFileNameEx rather than
3764         GetModuleFileNameEx*.
3765         (windows_make_so): Use __PMAX to denote maximum buffer size and
3766         cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
3767         appropriate.
3768         (get_image_name): Use __PMAX to denote maximum buffer size.
3769         (handle_load_dll): Likewise.
3770         (windows_pid_to_exec_file): Likewise.
3771         (windows_create_inferior): Add many accommodations for older Cygwin and
3772         non-Cygwin.
3773         (bad_GetModuleFileNameExW): Control inclusion of this function based on
3774         __USEWIDE conditional.
3775         (bad_GetModuleFileNameExA): Likewise.
3776         (_initialize_loadable): Just use real function names without the dyn_
3777         part since they are defined earlier.
3778
3779 2010-03-05  Corinna Vinschen  <vinschen@redhat.com>
3780             Tom Tromey  <tromey@redhat.com>
3781
3782         * utils.c (host_char_to_target): Add 'gdbarch' argument.
3783         (parse_escape): Likewise.
3784         * python/py-utils.c (unicode_to_target_string): Update.
3785         (unicode_to_target_python_string): Update.
3786         (target_string_to_unicode): Update.
3787         * printcmd.c (printf_command): Update.
3788         * p-exp.y (yylex): Update.
3789         * objc-exp.y (yylex): Update.
3790         * mi/mi-parse.c: Include charset.h.
3791         (mi_parse_escape): New function.
3792         (mi_parse_argv): Use it.
3793         * jv-exp.y (yylex): Update.
3794         * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
3795         function.
3796         (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
3797         * gdbarch.sh (auto_charset, auto_wide_charset): New.
3798         * gdbarch.c: Rebuild.
3799         * gdbarch.h: Rebuild.
3800         * defs.h (parse_escape): Update.
3801         * cli/cli-setshow.c: Include arch-utils.h.
3802         (do_setshow_command): Update.
3803         * cli/cli-cmds.c (echo_command): Update.
3804         * charset.h (target_charset, target_wide_charset): Update.
3805         * charset.c: Include arch-utils.h.
3806         (target_charset_name): Default to "auto".
3807         (target_wide_charset_name): Likewise.
3808         (show_target_charset_name): Handle "auto".
3809         (show_target_wide_charset_name): Likewise.
3810         (be_le_arch): New global.
3811         (set_be_le_names): Add 'gdbarch' argument.
3812         (validate): Likewise.  Don't call set_be_le_names.
3813         (set_charset_sfunc, set_host_charset_sfunc)
3814         (set_target_charset_sfunc, set_target_wide_charset_sfunc):
3815         Update.
3816         (target_charset): Add 'gdbarch' argument.
3817         (target_wide_charset): Likewise.  Remove 'byte_order' argument.
3818         (auto_target_charset_name): New global.
3819         (default_auto_charset, default_auto_wide_charset): New functions.
3820         (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
3821         for target charsets.  Copy result of nl_langinfo.  Use GetACP if
3822         USE_WIN32API.
3823         * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
3824         remove 'byte_order' argument.  Update.
3825         (classify_type): Likewise.
3826         (c_emit_char): Update.
3827         (c_printchar): Update.
3828         (c_printstr): Update.
3829         (c_get_string): Update.
3830         (evaluate_subexp_c): Update.
3831         * arch-utils.h (default_auto_charset, default_auto_wide_charset):
3832         Declare.
3833         * python/python.c (gdbpy_target_charset): New function.
3834         (gdbpy_target_wide_charset): Likewise.
3835         (GdbMethods): Update.
3836         * NEWS: Update.
3837
3838 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
3839
3840         * symfile.c (build_section_addr_info_from_objfile): Do not mask
3841         off high address bits.
3842
3843 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
3844
3845         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
3846         address as UnsignedLongLong, not LongLong.
3847
3848 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
3849             Pedro Alves  <pedro@codesourcery.com>
3850
3851         * remote-mips.c (gdbthread.h): Include.
3852         (remote_mips_ptid): Declare.
3853         (mips_error): Only mourn the inferior when inferior_ptid is non-null.
3854         (common_open): Set inferior_ptid, add it as an inferior, and
3855         as a thread too.  Delete FIXME comment regarding start_remote().
3856         (mips_close): Invoke generic_mourn_inferior().
3857         (mips_kill): Make sure that target_mourn_inferior is invoked.
3858         (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
3859         it's now invoked from mips_close().
3860         (mips_load): Don't null out inferior_ptid.  Don't call
3861         clear_symtab_users().
3862         (mips_thread_alive, mips_pid_to_str): New functions.
3863         (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
3864         to_thread_alive and to_pid_to_str operations.
3865
3866 2010-03-04  Tom Tromey  <tromey@redhat.com>
3867
3868         * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
3869         in DWARF 3 and later.
3870         (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
3871
3872 2010-03-04  Keith Seitz  <keiths@redhat.com>
3873
3874         * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
3875         If the filename portion of the linespec was quoted, recheck the
3876         remainder for additional quoting.
3877         (locate_first_half): Skip over completer chars, too.
3878
3879 2010-03-04  Tom Tromey  <tromey@redhat.com>
3880
3881         * printcmd.c (printf_command): Pass dummy argument to
3882         printf_filtered.
3883
3884 2010-03-04  Doug Evans  <dje@google.com>
3885
3886         * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
3887         unwound_fp.
3888
3889         * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
3890
3891 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
3892
3893         * breakpoint.c (update_watchpoint): Create a sentinel location if
3894         the software watchpoint isn't watching any memory.
3895         (breakpoint_address_bits): Skip dummy software watchpoint locations.
3896
3897 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
3898
3899         * utils.c (fputs_maybe_filtered): Check if there's already a top
3900         level interpreter before dereferencing it.  If there isn't one,
3901         don't paginate either.
3902
3903 2010-03-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3904
3905         * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
3906         the state right when single stepping.
3907         (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
3908         Get the next PC along with the instruction state.
3909         (thumb_get_next_pc): Remove.
3910         (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
3911
3912 2010-03-04  Hui Zhu  <teawater@gmail.com>
3913
3914         * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
3915
3916 2010-03-03  Pedro Alves  <pedro@codesourcery.com>
3917
3918         * utils.c (fputs_maybe_filtered): Always disable pagination if the
3919         top level interpreter is MI.
3920
3921 2010-03-03 Stan Shebs  <stan@codesourcery.com>
3922
3923         * remote.c (remote_download_tracepoint): Iterate over locations.
3924         * tracepoint.c (validate_actionline): Ditto.
3925         (encode_actions): Add location argument.
3926         (trace_dump_command): Check all locations to see if stepping
3927         frame.
3928
3929 2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>
3930             Eli Zaretskii  <eliz@gnu.org>
3931
3932         * NEWS: Add X86 general purpose registers section.
3933
3934 2010-03-03  Tom Tromey  <tromey@redhat.com>
3935
3936         PR mi/11098:
3937         * varobj.c (install_new_value): Handle case where new print_value
3938         is NULL.
3939
3940 2010-03-03  Dainis Jonitis  <jonitis@gmail.com>
3941
3942         PR gdb/11345:
3943         * printcmd.c (printf_command): Print end of format string using
3944         printf_filtered.
3945
3946 2010-03-02  Tom Tromey  <tromey@redhat.com>
3947
3948         * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
3949         * defs.h (read_command_lines_1): Add missing 'void'.
3950         * cli/cli-script.c (recurse_read_control_structure): Add missing
3951         'void'.
3952         (read_next_line): Likewise.
3953         (read_command_lines_1): Likewise.
3954
3955 2010-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
3956
3957         * spu-tdep.c (spu_analyze_prologue): Track instruction to
3958         store backchain as part of prologue.
3959
3960 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
3961
3962         * progspace.c (update_address_spaces): Update inferior address spaces
3963         also.
3964
3965 2010-03-02  Doug Evans  <dje@google.com>
3966
3967         * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
3968         lowpc,highpc args to addrmap_set_empty.
3969
3970 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
3971
3972         * amd64-tdep.c (amd64_byte_names): New.
3973         (amd64_word_names): Likewise.
3974         (amd64_dword_names): Likewise.
3975         (amd64_pseudo_register_name): Likewise.
3976         (amd64_pseudo_register_read): Likewise.
3977         (amd64_pseudo_register_write): Likewise.
3978         (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
3979         and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
3980         set_gdbarch_pseudo_register_write and
3981         set_tdesc_pseudo_register_name.  Don't call
3982         set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
3983
3984         * i386-tdep.c (i386_num_mmx_regs): Removed.
3985         (i386_num_pseudo_regs): Likewise.
3986         (i386_byte_names): New.
3987         (i386_word_names): Likewise.
3988         (i386_byte_regnum_p): Likewise.
3989         (i386_word_regnum_p): Likewise.
3990         (i386_mmx_regnum_p): Updated.
3991         (i386_pseudo_register_name): Make it global.  Handle byte and
3992         word pseudo-registers.
3993         (i386_pseudo_register_read): Likewise.
3994         (i386_pseudo_register_write): Likewise.
3995         (i386_pseudo_register_type): Handle byte, word and dword
3996         pseudo-registers
3997         (i386_register_reggroup_p): Don't include pseudo
3998         registers, except for MXX, in any register groups.  Don't
3999         include pseudo byte, word, dword registers in general_reggroup.
4000         (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
4001         num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
4002         pseudo-registers after word pseudo-registers.  Call
4003         set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
4004
4005         * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
4006         al_regnum, num_word_regs, ax_regnum, num_dword_regs and
4007         eax_regnum.
4008         (i386_byte_regnum_p): New.
4009         (i386_word_regnum_p): Likewise.
4010         (i386_dword_regnum_p): Likewise.
4011         (i386_pseudo_register_name): Likewise.
4012         (i386_pseudo_register_read): Likewise.
4013         (i386_pseudo_register_write): Likewise.
4014
4015 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4016
4017         * target-descriptions.c (tdesc_type): Remove
4018         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4019         (tdesc_predefined_types): Likewise.
4020         (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
4021         if flag name is empty.
4022         (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
4023
4024         * features/i386/32bit-core.xml: Define i386_eflags.
4025         * features/i386/64bit-core.xml: Likewise.
4026
4027         * features/i386/32bit-sse.xml: Define i386_mxcsr.
4028         * features/i386/64bit-sse.xml: Likewise.
4029
4030         * features/i386/amd64-linux.c: Regenerated.
4031         * features/i386/amd64.c: Likewise.
4032         * features/i386/i386-linux.c: Likewise.
4033         * features/i386/i386.c: Likewise.
4034
4035 2010-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
4036
4037         * gdbtypes.c (append_composite_type_field_raw): New.
4038         (append_composite_type_field_aligned): Use the new function.
4039         * gdbtypes.h (append_composite_type_field_raw): Declare.
4040         * target-descriptions.c (struct tdesc_type_field): Add start and end.
4041         (struct tdesc_type_flag): New type.
4042         (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
4043         kind.  Add size to u.u.  Add u.f for flags.
4044         (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
4045         (tdesc_free_type): Likewise.
4046         (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
4047         (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
4048         (tdesc_add_bitfield, tdesc_add_flag): New.
4049         * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
4050         (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
4051         * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
4052         current_type.  Add current_type_size and current_type_is_flags.
4053         (tdesc_start_union): Clear the new fields.
4054         (tdesc_start_struct, tdesc_start_flags): New.
4055         (tdesc_start_field): Handle struct fields, including bitfields.
4056         (field_attributes): Make type optional.  Add start and end.
4057         (union_children): Rename to struct_union_children.
4058         (union_attributes): Rename to struct_union_attributes.  Add optional
4059         size.
4060         (flags_attributes): New.
4061         (feature_children): Add struct and flags.
4062         * features/gdb-target.dtd: Add flags and struct to features.
4063         Make field type optional.  Add field start and end.
4064
4065 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4066
4067         * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
4068         (amd64_linux_read_description): Likewise.
4069         (_initialize_amd64_linux_nat): Set to_read_description to
4070         amd64_linux_read_description.
4071
4072         * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
4073         (amd64_linux_register_name): Removed.
4074         (amd64_linux_register_type): Likewise.
4075         (amd64_linux_core_read_description): New.
4076         (amd64_linux_init_abi): Set target description to
4077         tdesc_amd64_linux if needed.  Support orig_rax in target
4078         description.  Don't call set_gdbarch_register_name nor
4079         set_gdbarch_register_type.  Call
4080         set_gdbarch_core_read_description.
4081         (_initialize_amd64_linux_tdep): Call
4082         initialize_tdesc_amd64_linux.
4083
4084         * amd64-linux-tdep.h (tdesc_amd64_linux): New.
4085
4086         * amd64-tdep.c:  Include "features/i386/amd64.c".
4087         (amd64_register_names): Removed.
4088         (amd64_register_name): Likewise.
4089         (amd64_register_type): Likewise.
4090         (amd64_init_abi):  Set num_core_regs and register_names.  Set
4091         target description to tdesc_amd64 if needed.  Don't call
4092         set_gdbarch_register_name nor set_gdbarch_register_type.
4093         (_initialize_amd64_tdep): New.
4094
4095         * i386-linux-nat.c (i386_linux_read_description): New.
4096         (_initialize_i386_linux_nat): Set to_read_description to
4097         i386_linux_read_description.
4098
4099         * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
4100         (i386_linux_register_name): Removed.
4101         (i386_linux_core_read_description): New.
4102         (i386_linux_read_description): Likewise.
4103         (i386_linux_init_abi): Don't call set_gdbarch_register_name.
4104         Set target description to tdesc_i386_linux if needed.  Support
4105         orig_eax.  Set register_reggroup_p.  Call
4106         set_gdbarch_core_read_description.
4107         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
4108
4109         * i386-linux-tdep.h (tdesc_i386_linux): New.
4110
4111         * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
4112         with I387_NUM_REGS.
4113
4114         * i386-tdep.c: Include "features/i386/i386.c".
4115         (i386_register_names): Make it const.
4116         (i386_mmx_names): Likewise.
4117         (i386_num_register_names): Removed.
4118         (i386_register_name): Likewise.
4119         (i386_eflags_type): Likewise.
4120         (i386_mxcsr_type): Likewise.
4121         (i386_sse_type): Likewise.
4122         (i386_register_type): Likewise.
4123         (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
4124         (i386_pseudo_register_name): New.
4125         (i386_pseudo_register_type): Likewise.
4126         (i386_mmx_type): Make it static.
4127         (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
4128         I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
4129         call set_gdbarch_register_name nor set_gdbarch_register_type.
4130         Set register_reggroup_p.  Set target description to tdesc_i386
4131         if needed.  Call set_tdesc_pseudo_register_type,
4132         set_tdesc_pseudo_register_name and tdesc_use_registers.
4133         (_initialize_i386_tdep): Call initialize_tdesc_i386.
4134         initialize_tdesc_x86_64.
4135
4136         * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
4137         i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
4138         register_names, tdesc and register_reggroup_p.
4139         (I386_NUM_FREGS): Removed.
4140         (i386_eflags_type): Likewise.
4141         (i386_mxcsr_type): Likewise.
4142         (i386_mmx_type): Likewise.
4143         (i386_sse_type): Likewise.
4144         (i386_register_name): Likewise.
4145         (i386_regnum): Add I386_MXCSR_REGNUM.
4146         (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
4147
4148         * i387-tdep.h (I387_NUM_REGS): New.
4149
4150         * regformats/i386/i386-linux.dat: Generated.
4151         * regformats/i386/i386.dat: Likewise.
4152         * regformats/i386/amd64-linux.dat: Likewise.
4153         * regformats/i386/amd64.dat: Likewise.
4154
4155         * regformats/reg-i386-linux.dat: Removed.
4156         * regformats/reg-i386.dat: Likewise.
4157         * regformats/reg-x86-64-linux.dat: Likewise.
4158         * regformats/reg-x86-64.dat: Likewise.
4159
4160 2010-03-01  Corinna Vinschen  <vinschen@redhat.com>
4161
4162         * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
4163         cygwin_conv_path API rather than the deprecated
4164         cygwin_conv_to_full_posix_path.
4165         * windows-nat.c:
4166         (GetModuleFileNameExA): Undefine for Cygwin.
4167         (GetModuleFileNameExW): Define for Cygwin.
4168         (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
4169         Call GetModuleFileNameExW and convert path to POSIX using
4170         cygwin_conv_path.
4171         (windows_make_so): Always define p.  Drop unused variable m.
4172         Don't use Win32 functions to check file existance, rather use
4173         access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
4174         Use canonicalize_file_name to get full path.
4175         (get_image_name): Use wcstombs, rather than WideCharToMultiByte
4176         to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
4177         use correct target buffer size in call to WideCharToMultiByte.
4178         (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
4179         (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
4180         (windows_create_inferior): Convert all paths and arguments to wchar_t
4181         and use CreateProcessW on Cygwin.
4182         (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
4183         (bad_GetModuleFileNameExA): Undefine for Cygwin.
4184         (bad_GetModuleFileNameExW): Define for Cygwin.
4185         (_initialize_loadable): Load GetModuleFileNameExW into
4186         dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
4187
4188 2010-02-28  Phil Muldoon  <pmuldoon@redhat.com>
4189
4190         PR python/11036
4191         * python/py-frame.c (frapy_read_var): Add block argument and logic
4192         to cope with user provided blocks.
4193
4194 2010-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4195
4196         * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
4197         New comment.
4198
4199 2010-02-28  Corinna Vinschen  <vinschen@redhat.com>
4200
4201         * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
4202         (COMMON_OBS): ... to here since it's used unconditionally.
4203         (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
4204         (SFILES): To here.
4205
4206 2010-02-26  David Daney  <ddaney@caviumnetworks.com>
4207
4208         * mips-linux-tdep.c: Update struct sigframe comments.
4209         (SIGFRAME_CODE_OFFSET): Delete macro.
4210         (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
4211         this_frame's sp.
4212         (mips_linux_n32n64_sigframe_init): Same.
4213
4214 2010-02-26  Kevin Buettner  <kevinb@redhat.com>
4215
4216         * remote-mips.c (mips_load): Don't use pseudo-register when
4217         invalidating regcache.
4218
4219 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4220
4221         * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
4222
4223 2010-02-26  Pedro Alves  <pedro@codesourcery.com>
4224
4225         * NEWS: Add "New targets" section, and mention ARM Symbian
4226         support.
4227
4228 2010-02-26  Ulrich Weigand  <uweigand@de.ibm.com>
4229
4230         * dwarf2loc.c (struct piece_closure): Remove ARCH member,
4231         add ADDR_SIZE member.
4232         (allocate_piece_closure): Update.
4233         (copy_pieced_value_closure): Likewise.
4234         (dwarf2_evaluate_loc_desc): Likewise.
4235         (read_pieced_value): Use DWARF address size instead of
4236         GDB's gdbarch_addr_bit as size of values on the DWARF stack.
4237
4238 2010-02-26  Phil Muldoon  <pmuldoon@redhat.com>
4239             Tom Tromey  <tromey@redhat.com>
4240
4241         * python/py-type.c (typy_lookup_typename): Add in block argument.
4242         If provided restrict lookup to specified blocks.
4243         (gdbpy_lookup_type): Likewise.
4244         (typy_lookup_type): Likewise.
4245
4246 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
4247
4248         Symbian config
4249
4250         gdb/
4251         * arm-symbian-tdep.c: New.
4252         * configure.tgt (arm*-*-symbianelf*): New target.
4253         (*-*-symbianelf*): New OS.
4254         * osabi.c (gdb_osabi_names): Add Symbian.
4255         * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
4256         * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
4257         (ALLDEPFILES): Add arm-symbian-tdep.c.
4258
4259 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
4260
4261         * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
4262
4263 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
4264
4265         * mi/mi-main.c (mi_cmd_execute): Fix typo.
4266
4267 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
4268             Tom Tromey  <tromey@redhat.com>
4269             Thiago Jung Bauermann  <bauerman@br.ibm.com>
4270
4271         * python/python.c (_initialize_python): Call
4272         gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
4273         gdbpy_initialize_blocks.
4274         * python/python-internal.h: Declare struct symbol, block and
4275         symtab_and_line.  Declare block_object_type and
4276         symbol_object_type
4277         (gdbpy_lookup_symbol gdbpy_block_for_pc)
4278         (symtab_and_line_to_sal_object, symtab_to_symtab_object)
4279         (symbol_to_symbol_object,  block_to_block_object)
4280         (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
4281         (gdbpy_initialize_blocks ): Declare.
4282         * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
4283         (frapy_select): Add methods.
4284         (frapy_read_var): Add symbol branch.
4285         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
4286         py-block.
4287         (SUBDIR_PYTHON_SRCS): Likewise.
4288         (py-symbol.o): New rule.
4289         (py-symtab.o): Likewise.
4290         (py-block.o): Likewise.
4291         * python/py-symbol.c: New file.
4292         * python/py-symtab.c: Likewise.
4293         * python/py-block.c: Likewise.
4294
4295 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
4296
4297         PR gdb/11321
4298
4299         * inferior.h (prepare_for_detach): Declare.
4300         (struct inferior) <detaching>: New field.
4301         * infrun.c (prepare_for_detach): New.
4302         (handle_inferior_event) <random signal>: Don't stop if detaching.
4303         * target.c (target_detach): Call prepare_for_detach.
4304
4305 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
4306
4307         Per-process displaced stepping queue.
4308
4309         * infrun.c (displaced_step_ptid, displaced_step_request_queue)
4310         (displaced_step_gdbarch, displaced_step_closure,
4311         (displaced_step_original, displaced_step_copy): Move globals to
4312         this...
4313         (struct displaced_step_inferior_state): ... new structure.
4314         (displaced_step_inferior_states): New global.
4315         (get_displaced_stepping_state, add_displaced_stepping_state)
4316         (remove_displaced_stepping_state, infrun_inferior_exit): New
4317         functions.
4318         (displaced_step_clear): Add displaced_step_inferior_state
4319         parameter, and adjust to handle it.
4320         (displaced_step_clear_cleanup): Parameter is now a
4321         displaced_step_inferior_state.  Adjust.
4322         (displaced_step_prepare): Adjust.
4323         (displaced_step_fixup, displaced_step_fixup)
4324         (infrun_thread_ptid_changed, resume): Adjust.
4325         (init_wait_for_inferior): Don't call displaced_step_clear.
4326         (infrun_thread_stop_requested): Rewrite.
4327         (_initialize_infrun): Install infrun_inferior_exit as
4328         inferior_exit observer.
4329
4330 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
4331
4332         * inferior.h (ptid_match): Declare.
4333         * infrun.c (ptid_match): New.
4334         * remote.c (queued_stop_reply): Rewrite and use ptid_match.
4335         (handle_notification): Add debug output.
4336         * linux-nat.c (ptid_match): Delete.
4337
4338 2010-02-24  David S. Miller  <davem@davemloft.net>
4339
4340         * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
4341         * syscalls/sparc-linux.xml: New.
4342         * syscalls/sparc64-linux.xml: New.
4343         * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
4344         * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
4345         (sparc32_linux_get_syscall_number): New function.
4346         (sparc32_linux_init_abi): Set syscall XML file name and hook up
4347         syscall number fetcher.
4348         * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
4349         (sparc64_linux_get_syscall_number): New function.
4350         (sparc64_linux_init_abi): Set syscall XML file name and hook up
4351         syscall number fetcher.
4352
4353 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
4354
4355         Multiexec MI
4356
4357         * breakpoint.c (clear_syscall_counts): Take struct inferior*.
4358         * inferior.c (add_inferior_silent): Notify inferior_added
4359         observer.
4360         (delete_inferior_1): Notify inferior_removed observer.
4361         (exit_inferior_1): Pass inferior, not pid, to observer.
4362         (inferior_appeared): Likewise.
4363         (add_inferior_with_spaces): New.
4364         (add_inferior_command): Use the above.
4365         * inferior.h (delete_inferior_1, add_inferior_with_spaces):
4366         Declare.
4367
4368         * inflow.c (inflow_inferior_exit): Likewise.
4369         * jit.c (jit_inferior_exit_hook): Likewise.
4370
4371         * mi/mi-cmds.c (mi_cmds): Register add-inferior and
4372         remove-inferior.
4373         * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
4374         * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
4375         (report_initial_inferior): New.
4376         (mi_inferior_removed): Register the above. Make sure
4377         inferior_added observer is called on the first inferior.
4378         (mi_new_thread, mi_thread_exit): Thread group is now identified by
4379         inferior number, not pid.
4380         (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
4381         affected.
4382         * mi/mi-main.c (current_context): New.
4383         (proceed_thread_callback): Use typed closure.
4384         Proceed everything if pid is 0. Most implementation split into
4385         (proceed_thread): ... this.
4386         (run_one_inferior): New.
4387         (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
4388         Adjust for multiexec behaviour.
4389         (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
4390         (mi_cmd_execute): Handle the 'thread-group' option here.
4391         Do some extra checks.
4392         * mi-parse.c (mi_parse): Handle the --all and --thread-group
4393         options.
4394         * mi-parse.h (struct mi_parse): New fields all and thread_group.
4395
4396 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
4397
4398         Make -exec-run a proper MI commands.
4399
4400         * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
4401         * mi/mi-cmds.c (mi_cmds): Adjust.
4402         * mi/mi-main.c (mi_cmd_exec_run): New.
4403
4404 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
4405             Stan Shebs  <stan@codesourcery.com>
4406
4407         * tracepoint.h (set_traceframe_number)
4408         (cleanup_restore_current_traceframe): Declare.
4409         * tracepoint.c (set_traceframe_number): New.
4410         (struct current_traceframe_cleanup): New.
4411         (do_restore_current_traceframe_cleanup)
4412         (restore_current_traceframe_cleanup_dtor)
4413         (make_cleanup_restore_current_traceframe): New.
4414         * infrun.c: Include tracepoint.h.
4415         (fetch_inferior_event): Switch out and in of tfind mode.
4416
4417 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
4418
4419         * breakpoint.c (breakpoint_init_inferior): Also delete
4420         bp_shlib_event breakpoints.
4421         * solib-frv.c (enable_break): Remove call to
4422         remove_solib_event_breakpoints.
4423         * solib-svr4.c (enable_break): Ditto.
4424         * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
4425         * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
4426         * solib-som.c (som_solib_create_inferior_hook): Ditto.
4427         * solib-spu.c (spu_enable_break): Ditto.
4428
4429 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
4430
4431         * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
4432
4433 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
4434
4435         * varobj.c (varobj_update): Avoid non-constants in initializers.
4436
4437 2010-02-23  Tom Tromey  <tromey@redhat.com>
4438
4439         * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
4440         handle big-endian values.
4441         (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
4442
4443 2010-02-22  Pedro Alves  <pedro@codesourcery.com>
4444
4445         PR9605
4446
4447         gdb/
4448         * breakpoint.c (insert_bp_location): If inserting the read
4449         watchpoint failed, fallback to an access watchpoint.
4450         (bpstat_check_watchpoint): Stop for read watchpoint triggers even
4451         if the value changed, if not watching the same memory for writes.
4452         (watchpoint_locations_match): Add comment.
4453         (update_global_location_list): Copy the location's watchpoint type.
4454         * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
4455         handle read watchpoints here.
4456         (i386_insert_watchpoint): Read watchpoints aren't supported.
4457         * remote.c (remote_insert_watchpoint): Return 1 for unsupported
4458         packets.
4459         * target.h (target_insert_watchpoint): Update description.
4460
4461 2010-02-19  Tom Tromey  <tromey@redhat.com>
4462
4463         * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
4464         * m2-typeprint.c (m2_print_type): Update.
4465         * gdbtypes.c (recursive_dump_type): Update.
4466         (copy_type_recursive): Update.
4467         * c-typeprint.c (c_type_print_varspec_prefix): Update.
4468         (c_type_print_base): Update.
4469         * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
4470         Remove.
4471         (struct cplus_struct_type) <ntemplate_args>: Remove.
4472         <struct template_arg>: Remove.
4473         <is_dynamic>: Move earlier.
4474         (TYPE_TEMPLATE_ARGS): Remove.
4475         (TYPE_NTEMPLATE_ARGS): Remove.
4476         (TYPE_TEMPLATE_ARG): Remove.
4477
4478 2010-02-19  Tom Tromey  <tromey@redhat.com>
4479
4480         PR c++/8693, PR c++/9496:
4481         * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
4482         * c-exp.y (lex_one_token): Rename from yylex.  Don't call
4483         write_dollar_variable.  Don't try to classify NAME tokens.
4484         (token_and_value): New type.
4485         (token_fifo, popping, name_obstack): New globals.
4486         (classify_name): New function.
4487         (classify_inner_name): Likewise.
4488         (yylex): Likewise.
4489         (VARIABLE): Now has type sval.
4490         (exp : VARIABLE): Call write_dollar_variable.
4491         (qualified_name): Use TYPENAME, not typebase.  Add production for
4492         multiple "::" instances.
4493         (variable): Use name_not_typename.
4494         (qualified_type): Remove.
4495         (typebase): Update.
4496
4497 2010-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4498
4499         * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
4500         a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
4501         found by bfd_get_section_by_name.
4502         * symfile.h (struct section_addr_info) <sectindex>: New comment.
4503
4504 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
4505
4506         * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
4507         7.0 section" into "Changes in 7.1".
4508
4509 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
4510
4511         GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
4512         * version.in: Bump version to 7.1.50.20100219-cvs.
4513
4514 2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>
4515
4516         * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
4517         * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
4518
4519 2010-02-17  Tom Tromey  <tromey@redhat.com>
4520
4521         * NEWS: Add Python API Improvements section.
4522
4523 2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
4524
4525         * NEWS: Correct typo.
4526
4527 2010-02-17  Tom Tromey  <tromey@redhat.com>
4528
4529         * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
4530
4531 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4532
4533         * symfile.c (build_section_addr_info_from_objfile): Include sections
4534         only if they are SEC_ALLOC or SEC_LOAD.
4535
4536 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
4537
4538         PR shlibs/11293
4539         * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
4540         of ULONGEST for address size.
4541
4542 2010-02-17  Tom Tromey  <tromey@redhat.com>
4543
4544         * NEWS: Add C++ improvements section.
4545
4546 2010-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
4547
4548         * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
4549         PyThreadState_Swap): Avoid "statement with no effect" warning.
4550
4551 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4552
4553         * solib-svr4.c (enable_break <target_auxv_search>): New variable
4554         addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
4555
4556 2010-02-17  Tristan Gingold  <gingold@adacore.com>
4557             Petr Hluzin  <petr.hluzin@gmail.com>
4558
4559         * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
4560         gdb_assert.  Fix info->size for SIG prologue.
4561
4562 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
4563
4564         * infcmd.c (show_inferior_tty_command): Check for NULL.
4565         Correct output message.
4566
4567 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
4568
4569         * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
4570         FUNCTION contains parentheses.  Improve removal of a trailing
4571         single quote.
4572
4573 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
4574
4575         * gcore.c (do_bfd_delete_cleanup): New function.
4576         (gcore_command): Use it.  Discard the cleanup after success.
4577         (gcore_copy_callback): Delete dead code.
4578
4579 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
4580
4581         * symfile.c (addr_info_make_relative): Always use
4582         find_lowest_section.
4583
4584 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
4585
4586         * NEWS: Added entry for namespace fixes.
4587
4588 2010-02-15  Tom Tromey  <tromey@redhat.com>
4589
4590         * dwarf2read.c (guess_structure_name): Allocate name on the
4591         objfile obstack.
4592
4593 2010-02-15  Tom Tromey  <tromey@redhat.com>
4594
4595         * c-typeprint.c (c_type_print_base): Reverse order of test.
4596
4597 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4598
4599         * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
4600         initialize it from ELF BFD.  Extend the prelink condition by it.
4601
4602 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4603
4604         * defs.h (parse_pid_to_attach): New.
4605         * utils.c (parse_pid_to_attach): New.
4606         * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
4607         * gnu-nat.c (gnu_attach): Likewise.
4608         * nto-procfs.c (procfs_attach): Likewise.
4609         * procfs.c (procfs_attach): Likewise.
4610         * windows-nat.c (windows_attach): Likewise.
4611         * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
4612         * inf-ttrace.c (inf_ttrace_attach): Likewise.
4613         * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
4614         check.
4615
4616 2010-02-14  Masaki Muranaka  <monaka@monami-software.com>
4617
4618         * MAINTAINERS: Add myself for write after approval privileges.
4619
4620 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4621
4622         * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
4623         block.
4624
4625 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4626
4627         * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
4628         only if INFO_VERBOSE.
4629
4630 2010-02-12  Tomas Holmberg <th@virtutech.com>
4631
4632         * mi/mi-main.c: Added the --reverse flag to the following MI
4633         commands: exec-continue, exec-finish, exec-next, exec-step,
4634         exec-next-instruction, exec-step-instruction. This is to
4635         support reverse execution over the MI interface to gdb.
4636
4637 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
4638
4639         * tracepoint.c (_initialize_tracepoint): Specify that the address
4640         range of `tfind outsize' is exclusive, and that the address range
4641         of `tfind range' is inclusive, in the commands' help strings.
4642
4643 2010-02-12  Joel Brobecker  <brobecker@adacore.com>
4644
4645         Spurious "dll not found" error messages on x64-windows.
4646         * windows-nat.c: Add include of complaints.h.
4647         (handle_unload_dll): Change dll-not-found error into a complaint.
4648
4649 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
4650
4651         * breakpoint.c (allocate_bp_location): Use bp_loc_other for
4652         bp_tracepoint and bp_fast_tracepoint, not
4653         bp_loc_software_breakpoint.
4654         (update_global_location_list): Tracepoints are never duplicates of
4655         anything.
4656
4657 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
4658
4659         * breakpoint.c (break_command_really): Change return type to int.
4660         Return false if no breakpoint was created, true otherwise.
4661         (trace_command): Don't set the tracepoint count if no tracepoint
4662         was created.
4663         (ftrace_command): Ditto.
4664         (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
4665         created in the breakpoints table.
4666
4667 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4668             Ulrich Weigand  <uweigand@de.ibm.com>
4669
4670         * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
4671
4672 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
4673
4674         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
4675         the offset value isn't of integral type.
4676
4677 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4678
4679         * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
4680         New.
4681
4682 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
4683
4684         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
4685         non-subscriptable types.
4686         * valarith.c (binop_types_user_defined_p): New, abstracted out
4687         from ...
4688         (binop_user_defined_p): ... this.
4689         * value.h (binop_types_user_defined_p): Declare.
4690
4691 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
4692
4693         * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
4694         Merge uploaded TSVs before merging uploaded tracepoints.
4695
4696 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
4697
4698         * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
4699
4700 2010-02-11  Vladimir Prus  <vladimir@codesourcery.com>
4701
4702         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
4703         whitespace character after a dot in comment.
4704         (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
4705         Likewise.
4706         (list_args_or_locals): For the 'all' (that is
4707         -stack-list-variables) case, always output list of tuples.
4708         Output 'arg' field if variable is argument.
4709
4710 2010-02-10  Tom Tromey  <tromey@redhat.com>
4711
4712         * parser-defs.h (parser_debug): Declare.
4713         * parse.c (_initialize_parse): Install "debug parser" set/show
4714         command.
4715         (parser_debug): New global.
4716         (show_parserdebug): New function.
4717         * c-exp.y (c_parse): Set yydebug.
4718
4719 2010-02-10  H.J. Lu  <hongjiu.lu@intel.com>
4720
4721         * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
4722         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4723         (tdesc_predefined_types): Add i387_ext, i386_eflags and
4724         i386_mxcsr.
4725         (tdesc_find_type): New.
4726         (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
4727         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4728
4729         * target-descriptions.h (tdesc_find_type): New.
4730
4731 2010-02-10  Michael Snyder  <msnyder@vmware.com>
4732
4733         * gdb-gdb.py: Comment fix.
4734
4735 2010-02-09  Tristan Gingold  <gingold@adacore.com>
4736
4737         * machoread.c (macho_symfile_relocate): New function.
4738         (macho_sym_fns): Use macho_symfile_relocate instead of
4739         default_symfile_relocate.
4740         (macho_oso_data): New type.
4741         (current_oso): New variable.
4742         (macho_add_oso_symfile): Do not compute section_addr_info, but
4743         instead set vma of sections.
4744         Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
4745         Set and clear current_oso.
4746
4747 2010-02-09  Joel Brobecker  <brobecker@adacore.com>
4748
4749         Wrong type description for tagged type parameter.
4750         * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
4751         EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
4752         reference to a tagged type.
4753
4754 2010-02-09  Tristan Gingold  <gingold@adacore.com>
4755
4756         * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
4757         brothers of the parent.
4758
4759 2010-02-08  Tom Tromey  <tromey@redhat.com>
4760
4761         PR c++/8017:
4762         * value.h: Update.
4763         * valops.c (search_struct_field): Make 'name' const.
4764         (search_struct_method): Likewise.
4765         (find_method_list): Make 'method' const.
4766         (value_struct_elt): Make 'name' and 'err' const.
4767         (value_find_oload_method_list): Make 'method' const.
4768         (find_overload_match): Make 'name' const.
4769         * eval.c (evaluate_subexp_standard): New locals function,
4770         function_name.
4771         <OP_FUNCALL>: Handle OP_SCOPE specially.
4772
4773 2010-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4774
4775         * infrun.c (handle_inferior_event): Do not look up regcache
4776         for exited processes.
4777
4778 2010-02-08  Chris Moller  <moller@mollerware.com>
4779
4780         PR gdb/10728
4781         * valarith.c (value_ptrdiff): Added a test for a zero type length,
4782         warn if found, and assume length = 1.
4783
4784 2010-02-08  Chris Moller  <cmoller@redhat.com>
4785
4786         PR gdb/9067
4787         * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
4788         cp_print_static_field)  Fix use of obstacks.
4789
4790 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
4791
4792         * linux-nat.c (linux_nat_resume): In non-stop, also only tag
4793         resumed LWPs as resumed.
4794         (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
4795         we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
4796         of throwing an internal error.  If an LWP of a process we're not
4797         waiting for reports a signal, don't force collecting a SIGSTOP,
4798         and if it was breakpoint hit in non-stop mode, cancel it.  Don't
4799         go through all LWPs cancelling breakpoints in non-stop mode.
4800         (resume_stopped_resumed_lwps): New.
4801         (linux_nat_wait): Use it.
4802
4803 2010-02-07  H.J. Lu  <hongjiu.lu@intel.com>
4804
4805         * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
4806         i386/amd64 and i386/amd64-linux.
4807         (i386/i386-expedite): New.
4808         (i386/i386-linux-expedite): Likewise.
4809         (i386/amd64-expedite):Likewise.
4810         (i386/amd64-linux-expedite): Likewise.
4811         ($(outdir)/i386/i386-linux.dat): Likewise.
4812         ($(outdir)/i386/amd64.dat): Likewise.
4813         ($(outdir)/i386/amd64-linux.dat): Likewise.
4814
4815         * features/i386/32bit-core.xml: New.
4816         * features/i386/32bit-linux.xml: Likewise.
4817         * features/i386/32bit-sse.xml: Likewise.
4818         * features/i386/64bit-core.xml: Likewise.
4819         * features/i386/64bit-linux.xml: Likewise.
4820         * features/i386/64bit-sse.xml: Likewise.
4821         * features/i386/i386-linux.xml: Likewise.
4822         * features/i386/i386.xml: Likewise.
4823         * features/i386/amd64-linux.xml: Likewise.
4824         * features/i386/amd64.xml: Likewise.
4825         * features/i386/i386-linux.c: Likewise.
4826         * features/i386/i386.c: Likewise.
4827         * features/i386/amd64-linux.c: Likewise.
4828         * features/i386/amd64.c: Likewise.
4829
4830 2010-02-05  Sami Wagiaalla  <swagiaal@redhat.com>
4831
4832         PR c++/7935:
4833         * cp-support.h: Added char* alias element to using_direct data
4834         struct.
4835         (cp_add_using): Added char* alias argument.
4836         (cp_add_using_directive): Ditto.
4837         * cp-namespace.c: Updated with the above changes.
4838         (cp_lookup_symbol_imports): Check for aliases.
4839         * dwarf2read.c (read_import_statement): Figure out local alias
4840         for the import and pass it on to cp_add_using.
4841         (read_namespace): Pass alias argument to cp_add_using.
4842
4843 2010-02-05  Hui Zhu  <teawater@gmail.com>
4844
4845         * defs.h (gdb_bfd_errmsg): New extern.
4846         * exec.c (exec_file_attach): Change bfd_errmsg to
4847         gdb_bfd_errmsg.
4848         * utils.c (AMBIGUOUS_MESS1): New macro.
4849         (AMBIGUOUS_MESS2): New macro.
4850         (gdb_bfd_errmsg): New function.
4851
4852 2010-02-04  Doug Evans  <dje@google.com>
4853
4854         * solib-svr4.c (enable_break): Add comment.
4855
4856 2010-02-04  Anthony Green  <green@moxielogic.com>
4857
4858         * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
4859         gracefully.
4860
4861 2010-02-04  Tom Tromey  <tromey@redhat.com>
4862
4863         * valops.c (search_struct_field): Account for
4864         value_embedded_offset.  Fix check for virtual base past the end of
4865         the object.  Use value_copy when making a slice of the value.
4866
4867 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
4868
4869         PR tui/9622
4870         * tui/tui-interp.c (tui_init): Call tui_initialize_readline
4871         only if gdb_stdout is a tty.
4872
4873 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
4874
4875         * target-descriptions.c: Include "osabi.h".
4876         (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
4877         OSABI.
4878
4879 2010-02-04  Tristan Gingold  <gingold@adacore.com>
4880
4881         * machoread.c (macho_add_oso): Renamed to macho_register_oso.
4882         (macho_symtab_read): Adjust calls to macho_add_oso.
4883         (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
4884         (macho_symfile_read): Adjust call to macho_oso_symfile.
4885         (macho_new_init): Move this function after declarations.
4886         (macho_symfile_init): Ditto.
4887         * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
4888         * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
4889
4890 2010-02-04  Vladimir Prus  <vladimir@codesourcery.com>
4891
4892         Include MI command in remotelog.
4893
4894         * mi/mi-main.c (mi_execute_command): Call target_log_command.
4895
4896 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
4897
4898         * remote.c (remote_state): Remove gdbarch.
4899         (init_remote_state): Don't set gdbarch.
4900         (remote_query_supported): Pass target_gdbarch instead of
4901         rs->gdbarch to gdbarch_qsupported.
4902
4903 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
4904
4905         * gdbarch.sh: Add qsupported.
4906
4907         * gdbarch.c: Regenerated.
4908         * gdbarch.h: Likewise.
4909
4910         * remote.c (remote_state): Add gdbarch.
4911         (init_remote_state): Set gdbarch.
4912         (remote_query_supported): Support gdbarch_qsupported.
4913
4914 2010-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
4915
4916         * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
4917         __FreeBSD_kernel_version.
4918
4919 2010-02-03  Tristan Gingold  <gingold@adacore.com>
4920
4921         * symfile.h (struct sym_fns): Add sym_relocate field.
4922         (default_symfile_relocate): New prototype.
4923         (symfile_relocate_debug_section): First argument is now an objfile.
4924         * symfile.c (default_symfile_relocate): Rename from
4925         symfile_relocate_debug_section, first argument is now an objfile.
4926         (symfile_relocate_debug_section): New function.
4927         * coffread.c (coff_sym_fns): Set sym_relocate field.
4928         * somread.c (som_sym_fns): Ditto.
4929         * mipsread.c (ecoff_sym_fns): Ditto.
4930         * machoread.c (macho_sym_fns): Ditto.
4931         * elfread.c (elf_sym_fns): Ditto.
4932         * dwarf2read.c (dwarf2_read_section): Ditto.
4933         * xcoffread.c (xcoff_sym_fns): Ditto.
4934         * dbxread.c (aout_sym_fns): Ditto.
4935         (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
4936         (elfstab_build_psymtabs): Ditto.
4937
4938 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
4939
4940         * defs.h (MAX_REGISTER_SIZE): Increase to 32.
4941
4942 2010-02-02  Tom Tromey  <tromey@redhat.com>
4943
4944         * valops.c (value_cast_structs): Try downcasting using the RTTI
4945         type.
4946
4947 2010-02-02  Tom Tromey  <tromey@redhat.com>
4948
4949         * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
4950         (gnuv2_baseclass_offset): Now static.
4951         * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
4952         * gnu-v2-abi.h: Remove.
4953
4954 2010-02-02  Tom Tromey  <tromey@redhat.com>
4955
4956         * m2-typeprint.c (m2_record_fields): Don't use
4957         TYPE_DECLARED_TYPE.
4958         * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
4959         (struct main_type) <flag_declared_class>: New field.
4960         (struct cplus_struct_type) <declared_type>: Remove.
4961         <ntemplate_args>: Move earlier.
4962         (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
4963         (DECLARED_TYPE_TEMPLATE): Remove.
4964         (TYPE_DECLARED_TYPE): Remove.
4965         * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
4966         * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
4967         * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
4968         TYPE_DECLARED_TYPE.
4969
4970 2010-02-02  Tom Tromey  <tromey@redhat.com>
4971
4972         PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
4973         * valops.c (search_struct_field): Compute nbases after calling
4974         CHECK_TYPEDEF.
4975         (check_field): Call CHECK_TYPEDEF.
4976         * cp-valprint.c (cp_print_value): Pass correct address to
4977         baseclass_offset.  Fix check for virtual base past the end of the
4978         object.  Don't offset address passed to cp_print_value_fields or
4979         apply_val_pretty_printer.
4980         (cp_print_value_fields): Fix call to val_print.
4981         (cp_print_value_fields_rtti): New function.
4982         * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
4983         * p-valprint.c (pascal_object_print_value_fields): Fix call to
4984         val_print.
4985         * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
4986         offset to address.
4987         * language.h (struct language_defn) <la_val_print>: Document.
4988         * c-lang.h (cp_print_value_fields_rtti): Declare.
4989
4990 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4991
4992         PR libc/11214:
4993         * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
4994         (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
4995         (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
4996
4997 2010-02-01  Michael Matz  <matz@suse.de>
4998             Daniel Jacobowitz  <dan@codesourcery.com>
4999
5000         * i386-tdep.c (i386_frame_cache): Assume valid anonymous
5001         functions use a frame pointer.
5002
5003 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5004
5005         * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
5006         by a conditional setting DYN_ADDR.  Use DYN_ADDR.
5007         * config/djgpp/fnchange.lst: Add translations for
5008         symbol-without-target_section.exp and symbol-without-target_section.c.
5009
5010 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
5011
5012         * gdbarch.sh: Set LANG and LC_ALL to C, not c.
5013         (remote_breakpoint_for_pc): Correct invalid_p check.
5014         * gdbarch.c: Regenerated.
5015
5016 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
5017
5018         * arm-tdep.c (arm_find_mapping_symbol): New function, from
5019         arm_pc_is_thumb.
5020         (arm_pc_is_thumb): Use arm_find_mapping_symbol.
5021         (extend_buffer_earlier): New function.
5022         (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
5023         (arm_adjust_breakpoint_address): New function.
5024         (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
5025
5026 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
5027
5028         * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
5029         (arm_linux_thumb2_le_breakpoint): New constants.
5030         (arm_linux_init_abi): Set thumb2_breakpoint and
5031         thumb2_breakpoint_size.
5032         * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
5033         (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
5034         Implement support for single stepping through IT blocks if
5035         a 32-bit Thumb breakpoint instruction is available.
5036         (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
5037         is available, use it when needed.
5038         (arm_remote_breakpoint_from_pc): New function.
5039         (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
5040         * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
5041         comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
5042
5043 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
5044
5045         * arch-utils.c (default_remote_breakpoint_from_pc): New function.
5046         * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
5047         * gdbarch.c, gdbarch.h: Regenerated.
5048         * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
5049         * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
5050         gdbarch_remote_breakpoint_from_pc.
5051
5052 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
5053
5054         * infrun.c (prepare_to_proceed): Handle other signals which might
5055         match a breakpoint.
5056         (handle_inferior_event): Move the check for unusual breakpoint
5057         signals earlier.
5058
5059 2010-01-29  Paul Hilfinger  <hilfinger@adacore.com>
5060
5061         amd64 - function returning record with field straddling 2 registers.
5062         * amd64-tdep.c (amd_classify_aggregate): Handle the case of
5063         a record of length <= 16 in which a field straddles the two
5064         eightbytes.
5065
5066 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
5067
5068         Implement return values on amd64-windows.
5069         * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
5070         (amd64_windows_return_value): New function.
5071         (amd64_windows_init_abi): Call set_gdbarch_return_value with
5072         amd64_windows_return_value.
5073
5074 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
5075
5076         amd64-windows: 32 bytes allocated on stack by caller for integer
5077         parameter registers.
5078         * i386-tdep.h (struct gdbarch_tdep): Add new field
5079         integer_param_regs_saved_in_caller_frame.
5080         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5081         tdep->integer_param_regs_saved_in_caller_frame to 1.
5082         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
5083         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
5084
5085 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
5086
5087         amd64-windows: memory args passed by pointer during function calls.
5088         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
5089         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
5090         where tdep->memory_args_by_pointer is non-zero.
5091         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5092         tdep->memory_args_by_pointer to 1.
5093
5094 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
5095
5096         amd64-windows: Integer parameters in function calls.
5097         * i386-tdep.h (enum amd64_reg_class): New, moved here from
5098         amd64-tdep.c.
5099         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
5100         call_dummy_integer_regs, and classify.
5101         * amd64-tdep.h (amd64_classify): Add declaration.
5102         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
5103         (amd64_reg_class): Delete, moved to i386-tdep.h.
5104         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
5105         Replace call to amd64_classify by call to tdep->classify.
5106         (amd64_push_arguments): Get the list of registers to use for
5107         passing integer parameters from the gdbarch tdep structure,
5108         rather than using a hardcoded one.  Replace calls to amd64_classify
5109         by calls to tdep->classify.
5110         (amd64_push_dummy_call): Get the register number used for
5111         the "hidden" argument from tdep->call_dummy_integer_regs.
5112         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
5113         and tdep->call_dummy_integer_regs.  Set tdep->classify.
5114         * amd64-windows-tdep.c: Add include of gdbtypes.h.
5115         (amd64_windows_dummy_call_integer_regs): New static global.
5116         (amd64_windows_classify): New function.
5117         (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
5118         tdep->call_dummy_integer_regs and tdep->classify.
5119
5120 2010-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
5121
5122         * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
5123         for the new regcache.  All callers updated.
5124         (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
5125         (get_thread_arch_regcache): Do not set aspace here.
5126         * regcache.h (regcache_xmalloc): Update declaration.
5127
5128         * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
5129         regcache_xmalloc updated.
5130
5131 2010-01-28  Joel Brobecker  <brobecker@adacore.com>
5132
5133         Another -Wunused-function error in procfs.c (sparc-solaris)
5134         * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
5135         Only define if SYS_syssgi is defined.
5136         (remove_dbx_link_breakpoint): Delete declaration.  Move up.
5137         (dbx_link_addr, insert_dbx_link_bpt_in_file)
5138         (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
5139         is itself defined.
5140
5141 2010-01-27  Christopher Faylor  <me+cygwin@cgf.cx>
5142
5143         * windows-nat.c (windows_initialization_done): New variable.
5144         (get_windows_debug_event): Issue error when process dies before
5145         completely initializing.
5146         (do_initial_windows_stuff): Set flag to indicate when we are done with
5147         the initial steps of attaching to the child.
5148
5149 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5150
5151         * symtab.h (struct symbol <symtab>): New comment on NULL values.
5152
5153 2010-01-27  Doug Evans  <dje@google.com>
5154
5155         * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
5156
5157         * breakpoint.c (bpstat_stop_status): Delete useless code.
5158
5159 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5160
5161         * printcmd.c (display_uses_solib_p): Remove variable section.  Access
5162         objfile via SYMBOL_SYMTAB.
5163
5164 2010-01-26  Tom Tromey  <tromey@redhat.com>
5165
5166         PR exp/7643:
5167         * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
5168         coerce_array on result.
5169
5170 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
5171
5172         * cp-namespace.c (cp_lookup_symbol_namespace): Added
5173         search_parent argument.
5174         (cp_add_using): Initialize 'searched' field.
5175         (reset_directive_searched): New function.
5176         * cp-support.h: Add 'searched' field to using_direct struct.
5177         (cp_lookup_symbol_imports): Ditto.
5178         * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
5179         Perform recursive search.
5180         Implement non parent search.
5181         * valops.c (value_maybe_namespace_elt): Updated.
5182
5183 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
5184
5185         PR gdb/10929:
5186         * dwarf2read.c (read_lexical_block_scope): Create blocks for
5187         scopes which contain using directives even if they contain no
5188         declarations.
5189         * symtab.c (lookup_symbol_aux): Pass lowest level block to
5190         la_lookup_symbol_nonlocal.
5191         * cp-namespace.c (cp_lookup_symbol_nonlocal): call
5192         cp_lookup_symbol_namespace.
5193         (cp_lookup_symbol_namespace): Perform an import lookup at every
5194         block level.
5195         (cp_lookup_symbol_imports): New function.
5196         (cp_lookup_symbol_in_namespace): New function.
5197
5198 2010-01-25  Tom Tromey  <tromey@redhat.com>
5199
5200         PR gdb/11049:
5201         * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
5202         result.
5203
5204 2010-01-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5205
5206         * configure.ac: Only use host_os part when disabling TUI on osf.
5207         Use test to check variables, prefix strings with x.
5208         * configure: Regenerate.
5209
5210         * solib-osf.c (osf_current_sos): Initialize tail.
5211
5212 2010-01-25  gingold  <gingold@adacore.com>
5213
5214         * windows-nat.c (windows_continue): Use %x to print thread id.
5215         (get_windows_debug_event): Ditto.
5216
5217 2010-01-22  Tom Tromey  <tromey@redhat.com>
5218
5219         PR symtab/11199:
5220         * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
5221         type and arguments.  Use smash_to_methodptr_type.
5222         (read_structure_type): Call quirk_gcc_member_function_pointer
5223         later.
5224         * gdbtypes.h (smash_to_methodptr_type): Declare.
5225         * gdbtypes.c (smash_to_methodptr_type): New function.
5226         (lookup_methodptr_type): Use it.
5227
5228 2010-01-21  Tom Tromey  <tromey@redhat.com>
5229
5230         PR symtab/11198:
5231         * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
5232         * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
5233         * glibc-tdep.c (find_minsym_and_objfile): Remove.
5234         (glibc_skip_solib_resolver): Use
5235         lookup_minimal_symbol_and_objfile.
5236
5237 2010-01-21  Kai Tietz  <kai.tietz@onevision.com>
5238
5239         * inflow.c (check_syscall): Guard by #if clause for GO32 and
5240         WIN32 targets.
5241
5242 2010-01-20  Tom Tromey  <tromey@redhat.com>
5243
5244         PR backtrace/10770:
5245         * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
5246         BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
5247         * dwarf2expr.c (new_dwarf_expr_context): Allocate
5248         dwarf_stack_values, not CORE_ADDRs.
5249         (execute_stack_op): Change DW_OP_div and comparison operators to
5250         use signed operands.
5251
5252 2010-01-20  Vladimir Prus  <vladimir@codesourcery.com>
5253
5254         Per-inferior args and tty and environment.
5255
5256         * infcmd.c (inferior_args): Rename to ...
5257         (inferior_args_scratch): ... this.
5258         (inferior_io_terminal): Rename to ...
5259         (inferior_io_terminal_scratch): ... this.
5260         (inferior_argc, inferior_argv): Remove.
5261         (set_inferior_io_terminal, get_inferior_io_terminal): Store
5262         inside current_inferior().
5263         (set_inferior_tty_command, show_inferior_tty_command): New.
5264         (get_inferior_args, set_inferior_args): Store inside
5265         current_inferior().
5266         (notice_args_set): Likewise and rename to...
5267         (set_args_command): ... this.
5268         (set_inferior_args_vector): Likewise.
5269         (notice_args_read): Rename to...
5270         (show_args_command): ...new.
5271         (tty_command): Remove.
5272         (run_command_1): Don't free old args, as they are freed by
5273         set_inferior_arg now.
5274         (run_no_args_command): Likewise.
5275         (inferior_environ): Remove.
5276         (run_command_1): Use environment of the current inferior.
5277         (environment_info, set_environment_command)
5278         (unset_environment_command, path_info, path_command): Likewise.
5279         (_initialize_infcmd): Adjust for function and variable renames.
5280         Do not init inferior_environ.
5281         * inferior.h (set_inferior_arg): Adjust prototype.
5282         (struct inferior): New fields args, argc, argv, terminal, environment.
5283         (inferior_environ): Remove declaration.
5284         * inferior.c (free_inferior): Free new fields.
5285         (add_inferior_silent): Initialize 'environment' field.
5286         * main.c (captured_main): Set arguments only after the initial
5287         inferior has been created.  Set set_inferior_io_terminal,
5288         not tty_command.
5289         * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
5290         inferior.
5291         (_initialize_mi_cmd_env): Adjust for disappearance of global
5292         inferior_environ.
5293         * solib.c (solib_find): Use environment of the current inferior.
5294
5295 2010-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5296
5297         * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
5298         HAVE_PYTHON.
5299         (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
5300
5301 2010-01-20  Joel Brobecker  <brobecker@adacore.com>
5302
5303         Get rid of ada-lang.c:function_name_from_pc.
5304         * ada-lang.c: Add "stack.h" #include.
5305         (function_name_from_pc): Delete.
5306         (is_known_support_routine): Replace call to function_name_from_pc
5307         by call to find_frame_funname.
5308         (ada_unhandled_exception_name_addr_from_raise): Likewise.
5309
5310 2010-01-19  Tom Tromey  <tromey@redhat.com>
5311
5312         PR c++/11026:
5313         * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
5314         objfile obstack.
5315
5316 2010-01-19  Tom Tromey  <tromey@redhat.com>
5317
5318         * top.c (stop_sig, float_handler, do_nothing): Remove.
5319
5320 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5321
5322         * breakpoint.c (watchpoint_check): Check the call
5323         gdbarch_in_function_epilogue_p before calling frame_find_by_id.
5324         Extend the comment.
5325         * config/djgpp/fnchange.lst: Add translations for
5326         watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
5327         watchpoint-cond-gone-stripped.c.
5328
5329 2010-01-19  Tom Tromey  <tromey@redhat.com>
5330
5331         PR c++/8000:
5332         * dwarf2read.c (partial_die_parent_scope): Put enumeration type
5333         into parent scope, and enumerator into grandparent scope.
5334
5335 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
5336
5337         * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
5338
5339 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
5340
5341         * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
5342         i[34567]86-*-solaris2.1[0-9]*.
5343         * configure.tgt: Likewise.
5344
5345 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
5346
5347         * NEWS: Document the source command enhancement allowing it
5348         to load Python scripts. Document the "set/show script-extension"
5349         commands.
5350
5351 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
5352
5353         Add -Wunused-function to compile flags.
5354         * configure.ac: Add -Wunused-function to build_warnings.
5355         * configure: Regenerate.
5356
5357 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
5358
5359         "delete" ada-lex.c:input function, not used.
5360         * ada-lex.l: #define YY_NO_INPUT.
5361
5362 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
5363
5364         Delete free_named_symtabs and associated cleanup.
5365         * symfile.h (free_named_symtabs): Delete declaration.
5366         * symfile.c: Remove some commented out code (clear_symtab_users_once).
5367         (cashier_psymtab): Comment function out.
5368         Delete declaration.
5369         (free_named_symtabs): Delete.
5370         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
5371         * dbxread.c (end_psymtab): Likewise.
5372         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
5373         * exec.c (exec_close_1): Ditto.
5374         * xcoffread.c (xcoff_end_psymtab): Likewise.
5375
5376 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
5377
5378         * stack.c (print_block_frame_labels): Comment function out.
5379
5380 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
5381
5382         Delete unused or undefined functions.
5383         * breakpoint.c (ep_parse_optional_filename): Delete.
5384         * dcache.c (dcache_write_line): Remove declaration.
5385         * infrun.c (build_infrun): Remove declaration.
5386         * tracepoint.c (tracepoint_save_command): Remove declaration.
5387         * linux-nat.c (init_lwp_list): Delete. No longer used.
5388         * event-loop.c (check_async_signal_handlers): Delete declaration.
5389         * infrun.c (init_execution_control_state): Delete.
5390         (proceed): Update comment to avoid mentioning
5391         init_execution_control_state.
5392         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
5393         * ada-lang.c (ada_to_static_fixed_value): Delete.
5394         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
5395         * cp-namespace.c (cp_copy_usings): Delete.
5396         * xml-syscall.c (xml_number_of_syscalls): Delete.
5397         * progspace.c (find_program_space_by_num): Delete.
5398         * inflow.c (handle_sigio): Delete declaration.
5399         * hppa-tdep.c (hppa_alignof): Delete.
5400         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
5401         (mipsnbsd_core_osabi_sniffer): Delete.
5402
5403 2010-01-18  Tom Tromey  <tromey@redhat.com>
5404
5405         PR c++/9680:
5406         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
5407         (CONST_CAST): New tokens.
5408         (exp): Add new productions.
5409         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
5410         reinterpret_cast.
5411         (is_cast_operator): New function.
5412         (yylex): Handle cast operators specially.
5413         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
5414         UNOP_REINTERPRET_CAST>: New cases.
5415         * expprint.c (print_subexp_standard): Likewise.
5416         (op_name_standard): Likewise.
5417         (dump_subexp_body_standard): Likewise.
5418         * parse.c (operator_length_standard): Likewise.
5419         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
5420         UNOP_REINTERPRET_CAST.
5421         * gdbtypes.c (class_types_same_p): New function.
5422         (is_ancestor): Use it.
5423         (is_public_ancestor): New function.
5424         (is_unique_ancestor_worker): Likewise.
5425         (is_unique_ancestor): Likewise.
5426         * gdbtypes.h (class_types_same_p, is_public_ancestor)
5427         (is_unique_ancestor): Declare.
5428         * valops.c (value_reinterpret_cast): New function.
5429         (dynamic_cast_check_1): Likewise.
5430         (dynamic_cast_check_2): Likewise.
5431         (value_dynamic_cast): Likewise.
5432         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
5433
5434 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
5435
5436         Fix build failure when building without Python support.
5437         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
5438         is not defined.
5439
5440 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
5441
5442         Use XVS field type instead of doing a parallel lookup.
5443         * ada-lang.c (ada_get_base_type): Follow the XVS field type
5444         if it is a reference type instead of doing a type lookup using
5445         the XVS field name.
5446
5447 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
5448
5449         Trust PAD types instead of using PAD___XVS.
5450         * ada-lang.c (trust_pad_over_xvs): New static variable.
5451         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
5452         parallel XVS type, follow the XVS type instead of the PAD type.
5453         (unwrap_value): Make sure that there is no parallel XVE type
5454         before returning the value as is.
5455         (set_ada_list, show_ada_list): New static variables.
5456         (set_ada_command, show_ada_command): New functions.
5457         (_initialize_ada_language): Add new "set/show ada" prefix commands.
5458         Add new "set/show ada trust-PAD-over-XVS" setting.
5459
5460 2010-01-18  Tom Tromey  <tromey@redhat.com>
5461             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5462
5463         Allow "source" to load python scripts.
5464         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
5465         * python/python.c (source_python_script): New function.
5466         * python/python.h (source_python_script): Add declaration.
5467         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
5468         (script_ext_off, script_ext_soft, script_ext_strict)
5469         (script_ext_enums, script_ext_mode): New static constants.
5470         (show_script_ext_mode, find_and_open_script): New functions.
5471         (source_script): Enhance to handle Python scripts.
5472         (init_cli_cmds): Add set/show script-extension commands.
5473
5474 2010-01-16  Stan Shebs  <stan@codesourcery.com>
5475
5476         * tracepoint.h (struct trace_status): Use unsigned long long
5477         instead of size_t.
5478         * tracepoint.c (trace_status_command): Fix printf directive.
5479         (trace_save_command): Check fwrite returns, fix printf directive.
5480         (trace_filename): New global.
5481         (tfile_open): Set it, check read returns.
5482         (tfile_close): Free trace_filename.
5483         (tfile_get_traceframe_address): Check read returns.
5484         (tfile_trace_find): Ditto.
5485         (tfile_fetch_registers): Ditto.
5486         (tfile_xfer_partial): Ditto.
5487         (tfile_get_trace_state_variable_value): Ditto.
5488
5489 2010-01-15  Stan Shebs  <stan@codesourcery.com>
5490
5491         Add trace file support.
5492         * tracepoint.h (enum trace_stop_reason): New enum.
5493         (struct trace_status): New struct.
5494         (parse_trace_status): Declare.
5495         (struct uploaded_tp): Move here from remote.c,
5496         add fields for actions.
5497         (struct uploaded_tsv): New struct.
5498         * tracepoint.c (tfile_ops): New target vector.
5499         (trace_fd): New global.
5500         (tfile_open): New function.
5501         (tfile_close): New function.
5502         (tfile_files_info): New function.
5503         (tfile_get_trace_status): New function.
5504         (tfile_get_traceframe_address): New function.
5505         (tfile_trace_find): New function.
5506         (tfile_fetch_registers): New function.
5507         (tfile_xfer_partial): New function.
5508         (tfile_get_trace_state_variable_value): New function.
5509         (init_tfile_ops): New function.
5510         (_initialize_tracepoint): Call it, add tfile target.
5511         (trace_status): New global.
5512         (current_trace_status): New function.
5513         (trace_running_p): Remove, change all users to get from
5514         current_trace_status()->running.
5515         (get_trace_status): Remove.
5516         (trace_status_command): Call target_get_trace_status directly,
5517         report more detail including tracing stop reasons.
5518         (trace_find_command): Always allow tfind on a file.
5519         (trace_find_pc_command): Ditto.
5520         (trace_find_tracepoint_command): Ditto.
5521         (trace_find_line_command): Ditto.
5522         (trace_find_range_command): Ditto.
5523         (trace_find_outside_command): Ditto.
5524         (trace_frames_offset, cur_offset): Declare as off_t.
5525         (trace_regblock_size): Rename from reg_size, update users.
5526         (parse_trace_status): New function.
5527         (tfile_interp_line): New function.
5528         (disconnect_or_stop_tracing): Ensure current trace
5529         status before asking what to do.
5530         (stop_reason_names): New global.
5531         (trace_save_command): New command.
5532         (get_uploaded_tp): Move here from remote.c.
5533         (find_matching_tracepoint): Ditto.
5534         (merge_uploaded_tracepoints): New function.
5535         (parse_trace_status): Use stop_reason_names.
5536         (_initialize_tracepoint): Define tsave command.
5537         * target.h (target_ops): New fields to_save_trace_data,
5538         to_upload_tracepoints, to_upload_trace_state_variables,
5539         to_get_raw_trace_data, change to_get_trace_status
5540         to take a pointer to a status struct.
5541         (target_save_trace_data): New macro.
5542         (target_upload_tracepoints): New macro.
5543         (target_upload_trace_state_variables): New macro.
5544         (target_get_raw_trace_data): New macro.
5545         * target.c (update_current_target): Add new methods, change
5546         signature of to_get_trace_status.
5547         * remote.c (hex2bin): Make globally visible.
5548         (bin2hex): Ditto.
5549         (remote_download_trace_state_variable): Download name also.
5550         (remote_get_trace_status): Update parameter, use
5551         parse_trace_status.
5552         (remote_save_trace_data): New function.
5553         (remote_upload_tracepoints): New function.
5554         (remote_upload_trace_state_variables): New function.
5555         (remote_get_raw_trace_data): New function.
5556         (remote_start_remote): Use them.
5557         (_initialize_remote_ops): Add operations.
5558         * ax-gdb.c: Include breakpoint.h.
5559         * breakpoint.c (create_tracepoint_from_upload): Use
5560         break_command_really, return tracepoint, warn about unimplemented
5561         parts.
5562         * NEWS: Mention trace file addition.
5563
5564 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5565
5566         Fix compilation warning on gcc-3.4.
5567         * exec.c (print_section_info): Move the `displacement' variable
5568         initialization to its declaration.
5569
5570 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5571
5572         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
5573         comparison.
5574
5575 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
5576
5577         "info tasks" broken by typedefs in ATCB type definitions.
5578         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
5579         ada_check_typedef before retrieving the length of the type for
5580         regular fields.
5581
5582 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
5583
5584         Do not use name-based lookup for unconstrained packed arrays.
5585         * ada-lang.c (find_parallel_type_by_descriptive_type):
5586         Limit the fallback to name-based lookups to the case where
5587         the type is a constrained packed array.
5588
5589 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
5590
5591         Enhance gdb-gdb.py to handle main_type.type_specific.
5592         * gdb-gdb.py: Print the type-specific part of struct main_type.
5593
5594 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5595
5596         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
5597         * configure: Regenerate.
5598         * config.in: Regenerate.
5599         * utils.c: Include sys/resource.h.
5600         (dump_core, can_dump_core): New.
5601         (internal_vproblem): Update the comment.  Check can_dump_core while
5602         setting dump_core_p.  Replace two abort calls by dump_core calls.
5603
5604 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5605             Eli Zaretskii  <eliz@gnu.org>
5606
5607         * NEWS: Document the PIE support.
5608
5609 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5610
5611         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
5612         (check_is_pie_binary, _initialize_linux_tdep): Remove.
5613
5614 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5615
5616         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
5617         Replace exec_entry_point call by bfd_get_start_address.
5618
5619 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5620
5621         Support Valgrind attachments broken by the PIE support.
5622         * auxv.c: Include gdbcore.h.
5623         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
5624         parameters ops, object and annex.  Remove their assertions.
5625         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
5626         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
5627         (memory_xfer_auxv): ... here.
5628         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
5629         memory_xfer_auxv.
5630         * procfs.c (procfs_xfer_partial): Likewise.
5631         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
5632         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
5633         (svr4_solib_create_inferior_hook): Conditionalize the
5634         svr4_relocate_main_executable call.
5635
5636 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5637
5638         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
5639         target_section.  Find SECT in current_target_sections, gdb_assert it.
5640         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
5641         New variable abfd.
5642         * symtab.c (lookup_objfile_from_block): Return the binary file instead
5643         of separate debug info file.
5644
5645 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5646
5647         Support PIEs with no symfile_objfile.
5648         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
5649         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
5650
5651 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5652
5653         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
5654         code part to ...
5655         (svr4_static_exec_displacement): ... a new function.
5656         (svr4_exec_displacement): New function.
5657         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
5658         new_offsets using alloca now.  Remove variable old_chain and changed.
5659         Call objfile_relocate unconditionally now.
5660
5661 2010-01-14  Doug Evans  <dje@google.com>
5662
5663         * gdbtypes.c (arch_flags_type): Fix comment.
5664         * gdbtypes.h (arch_composite_type): Fix comment.
5665
5666 2009-01-14  Tristan Gingold  <gingold@adacore.com>
5667
5668         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
5669         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
5670         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
5671         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
5672         macho_add_oso_symfile.
5673         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
5674
5675 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
5676
5677         Tru64: Dead threads are never deleted.
5678         * dec-thread.c (dec_thread_ptid_is_alive): New function.
5679         (dec_thread_count_gdb_threads): Fix counter increment.
5680         (dec_thread_add_gdb_thread): Fix *listp increment.
5681         (resync_thread_list): Fix bug in deletion of dead threads that
5682         caused all threads to be deleted, instead of just the dead ones.
5683
5684 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
5685
5686         PR python/10705
5687
5688         * python/python-internal.h: Add lazy_string_object_type
5689         definition.
5690         (create_lazy_string_object, gdbpy_initialize_lazy_string)
5691         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
5692         * python/py-value.c (valpy_lazy_string): New function.
5693         (convert_value_from_python): Add lazy string conversion.
5694         * python/py-prettyprint.c (pretty_print_one_value): Check if
5695         return is also a lazy string.
5696         (print_string_repr): Add lazy string printing branch.
5697         (print_children): Likewise.
5698         * python/py-lazy-string.c: New file. Implement lazy strings.
5699         * python/python.c (_initialize_python): Call
5700         gdbpy_initialize_lazy_string.
5701         * varobj.c (value_get_print_value): Add lazy string printing
5702         branch.  Account for encoding.
5703         * c-lang.c (c_printstr): Account for new encoding argument.  If
5704         encoding is NULL, find encoding suited for type, otherwise use
5705         user encoding.
5706         * language.h (language_defn): Add encoding argument.
5707         (LA_PRINT_STRING): Likewise.
5708         * language.c (unk_lang_printstr): Update to reflect new encoding
5709         argument to language_defn.
5710         * ada-lang.h (ada_printstr): Likewise.
5711         * c-lang.h (c_printstr): Likewise.
5712         * p-lang.h (pascal_printstr);
5713         * f-lang.c (f_printstr): Likewise.
5714         * m2-lang.c (m2_printstr): Likewise.
5715         * objc-lang.c (objc_printstr): Likewise.
5716         * p-lang.c (pascal_printstr): Likewise.
5717         * scm-lang.c (scm_printstr): Likewise.
5718         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
5719         encoding argument.
5720         * ada-valprint.c (ada_printstr): Likewise.
5721         * f-valprint.c (f_val_print): Likewise
5722         * m2-valprint.c (m2_val_print): Likewise.
5723         * p-valprint.c (pascal_val_print): Likewise.
5724         * expprint.c (print_subexp_standard): Likewise.
5725         * valprint.c (val_print_string): Likewise.
5726         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
5727         (SUBDIR_PYTHON_SRCS): Likewise.
5728         (py-lazy-string.o): New rule.
5729
5730 2010-01-13  Doug Evans  <dje@google.com>
5731
5732         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
5733         uninitialized" warning from gcc on local `tree'.
5734
5735 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
5736
5737         Implement core awareness.
5738
5739         * bcache.c (compare_ints): Remove
5740         (print_percentage): Use compare_positive_ints.
5741         * defs.h (compare_positive_ints): Declare.
5742         * linux-nat.h (struct lin_lwp): New field core.
5743         (linux_nat_core_of_thread_1): Declare.
5744         * linux-nat.c (add_lwp): Init the 'core' field.
5745         (linux_nat_wait_1): Record the core.
5746         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
5747         (linux_nat_add_target): Register the above.
5748         * linux-thread-db.c (update_thread_core): New.
5749         (thread_db_find_new_threads): Update core information for
5750         every thread.
5751         * remote.c (struct private_thread_info): New.
5752         (free_private_thread_info, demand_private_info): New.
5753         (PACKET_qXfer_threads, use_osdata_threads): New.
5754         (struct thread_item, threads_parsing_context
5755         (start_thread, end_thread, thread_attributes)
5756         (thread_children, threads_children, threads_elements): New.
5757         (remote_threads_info): Try qXfer:threads before anything
5758         else.
5759         (remote_protocol_packets): Register qXfer:threads.
5760         (remote_open_1): Init use_osdata_threads.
5761         (struct stop_reply): New field 'core'.
5762         (remote_parse_stop_reply): Parse core number.
5763         (process_stop_reply): Record core number.
5764         (remote_xfer_partial): Handle qXfer:threads.
5765         (remote_core_of_thread): New.
5766         (init_remote_ops): Register remote_core_of_thread.
5767         (_initialize_remote): Register qXfer:read.
5768         * target.c (target_core_of_thread): New
5769         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
5770         (struct target_ops): New field to_core_of_threads.
5771         (target_core_of_thread): Declare.
5772         * gdbthread.h (struct thread_info): New field private_dtor.
5773         * thread.c (print_thread_info): Report the core.
5774         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
5775         * utils.c (compare_positive_ints): New.
5776         * features/threads.dtd: New.
5777         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
5778         * mi/mi-main.c (struct collect_cores_data, collect_cores)
5779         (do_nothing, free_vector_of_osdata_items)
5780         (splay_tree_int_comparator, free_splay_tree): New.
5781         (print_one_inferior_data): Implemented printing of selected
5782         inferiors.  Collect and print cores.
5783         (output_cores): New.
5784         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
5785         thread groups together with --available.
5786
5787 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5788
5789         * configure: Regenerate (for _STRUCTURED_PROC).
5790
5791 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
5792
5793         Delete dead function.
5794         * ada-lang.c (extract_string): Delete.  No longer used.
5795
5796 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
5797
5798         Fix -Wunused warning in dec-thread.c.
5799         * dec-thread.c (dec_thread_count_gdb_threads)
5800         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
5801
5802 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
5803
5804         * ada-valprint.c (ada_print_floating): Remove trailing space.
5805
5806 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
5807
5808         Add support for DW_AT_GNAT_descriptive_type.
5809         * gdbtypes.h (enum type_specific_kind): New enum.
5810         (struct main_type) [type_specific_field]: New component.
5811         [type_specific]: Add new component "gnat_stuff".
5812         (struct gnat_aux_type): New type.
5813         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
5814         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
5815         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
5816         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
5817         (TYPE_SPECIFIC_FIELD): New macros.
5818         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
5819         type does not hold any cplus-specific data.
5820         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
5821         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
5822         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
5823         cplus-specific data.
5824         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
5825         Set new component TYPE_SPECIFIC_FIELD (type).
5826         (gnat_aux_default): New constant.
5827         (allocate_gnat_aux_type): New function.
5828         (init_type): Add initialization the type-specific stuff for
5829         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
5830         (print_gnat_stuff): New function.
5831         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
5832         specific data.  Adjust code that prints the contents of the
5833         type-specific union using the TYPE_SPECIFIC_FIELD value.
5834         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
5835         the type cplus stuff for Ada types.
5836         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
5837         Error out if these routines are called with an Ada type.
5838         (read_structure_type, read_array_type, read_subrange_type):
5839         Add call to set_descriptive_type.
5840         (set_die_type): Initialize the gnat-specific data if necessary.
5841         (need_gnat_info, die_descriptive_type, set_descriptive_type):
5842         New functions.
5843         * ada-lang.c (decode_constrained_packed_array_type): Use
5844         decode_constrained_packed_array_type instead of doing a standard
5845         lookup to locate a parallel type.
5846         (find_parallel_type_by_descriptive_type): New function.
5847         (ada_find_parallel_type_with_name): New function.
5848         (ada_find_parallel_type): Reimplement using
5849         ada_find_parallel_type_with_name.
5850         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
5851         to check if type has a cplus stuff.
5852         * linespec.c (total_number_of_methods): Likewise.
5853         * mdebugread.c (new_type): Likewise.
5854
5855 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5856
5857         * NEWS: Document the 0b binary number prefix parsing.
5858
5859 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5860
5861         * objfiles.c (objfile_relocate1): Change the return type to int.
5862         Describe the new return value.  Return non-zero if data changed.
5863         (objfile_relocate): New variable changed.  Set it.  Call
5864         breakpoint_re_set depending on CHANGED.
5865
5866 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5867
5868         Implement binary numbers parsing.
5869         * c-exp.y (parse_number): New case 'b' and 'B'.
5870
5871 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5872             Tristan Gingold  <gingold@adacore.com>
5873
5874         * solib.c (info_sharedlibrary_command): Replace
5875         objfile_has_partial_symbols and objfile_has_full_symbols calls by
5876         objfile_has_symbols.
5877
5878 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
5879
5880         * NEWS: Document the improvements made to the mips-irix port.
5881
5882 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5883
5884         Fix the documentation of valprint.c:value_print.
5885         * valprint.c (value_print): Update the function description to
5886         mention that the syntax of the output follows the current_language,
5887         not necessarily C.
5888
5889 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
5890
5891         Fix displacement of separate debug info files.
5892         * objfiles.c (objfile_relocate): Rename to ...
5893         (objfile_relocate1): ... here and make it static.  Extend the comment.
5894         (objfile_relocate): New function.
5895         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
5896         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
5897         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
5898         allocated using alloca.
5899         * symfile.c (copy_section_addr_info): Remove.
5900         (build_section_addr_info_from_objfile): Make it global.  New variables
5901         addr_bit and mask, use them.
5902         * symfile.h (build_section_addr_info_from_objfile): New prototype.
5903         (copy_section_addr_info): Remove.
5904
5905 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5906
5907         Signal unwinder for mips-irix N32.
5908         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
5909         tramp-frame.h.
5910         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
5911         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
5912         (SIGCONTEXT_LO_OFF): New macros.
5913         (mips_irix_n32_tramp_frame_init): New function.
5914         (mips_irix_n32_tramp_frame): New static constant.
5915         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
5916
5917 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5918
5919         Breakpoint in shared library does not work on mips-irix.
5920         * procfs.c: #include "observer.h".
5921         (procfs_inferior_created): New function, moving here the code
5922         which unsets the syssgi syscall-exit notifications.
5923         (procfs_create_inferior): Remove the code which unsets the syssgi
5924         syscall-exit notifications. It is too early to do this here.
5925         (_initialize_procfs): Attach the procfs_inferior_created observer.
5926
5927 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5928
5929         Wrong return convention for arrays (mips-irix).
5930         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
5931         128 bits or smaller are returned the same way as structs
5932         and unions of the the same size.
5933
5934 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5935
5936         Cannot set the PC on mips-irix.
5937         * irix5-nat.c (fill_gregset): Check regno against the raw PC
5938         register number, no the cooked one.
5939
5940 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5941
5942         Error while loading core file on mips-irix.
5943         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
5944         if debugging from a core file.
5945
5946 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5947
5948         GDB hangs when attaching to process on mips-irix.
5949         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
5950         attaching to a process.
5951
5952 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5953
5954         Use the correct breakpoint instruction on mips-irix.
5955         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
5956         containing the correct breakpoint instruction to use on mips-irix.
5957         Use it when the osabi is GDB_OSABI_IRIX.
5958
5959 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5960
5961         -Wunused warning in procfs.c (mips-irix only).
5962         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
5963         throughout instead of using praddset and prdelset respectively.
5964
5965 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5966
5967         GDB crash while stepping into function.
5968         * infrun.c (handle_inferior_event): Refetch the current frame
5969         after handling what.main_action, in case that pointer became
5970         dangling.
5971
5972 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
5973
5974         Fix build failure of solaris-hosted cross debuggers.
5975         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
5976
5977 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
5978
5979         Fix build failure on sparc-solaris.
5980         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
5981
5982 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5983
5984         Move some symfile code into subroutines.
5985         * symfile.h (relative_addr_info_to_section_offsets)
5986         (addr_info_make_relative): New prototypes.
5987         * symfile.c (default_symfile_offsets): Move a part to ...
5988         (relative_addr_info_to_section_offsets): ... this new function.
5989         (default_symfile_offsets): Call it.
5990         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
5991         this part to ...
5992         (addr_info_make_relative): ... this new function.
5993
5994 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5995
5996         Add from_tty to solib_create_inferior_hook.
5997         * infcmd.c (post_create_inferior): Move solib_add after
5998         solib_create_inferior_hook.  Pass from_tty to
5999         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
6000         0 from_tty and comment why.
6001         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
6002         * linux-nat.c (linux_child_follow_fork): Likewise.
6003         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
6004         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
6005         from_tty.
6006         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
6007         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
6008         * solib-null.c (null_solib_create_inferior_hook): Likewise.
6009         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
6010         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
6011         * solib-som.c (som_solib_create_inferior_hook): Likewise.
6012         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
6013         Pass it to svr4_so_ops.solib_create_inferior_hook.
6014         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
6015         from_tty.
6016         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
6017         solib_add.
6018         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
6019         enable_break.
6020         * solib-target.c (solib_target_solib_create_inferior_hook): New
6021         parameter from_tty.
6022         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
6023         it to ops->solib_create_inferior_hook.
6024         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
6025         Move solib_add after solib_create_inferior_hook, call it now with
6026         from_tty as 0.  New comment there.
6027         * solib.h (solib_create_inferior_hook): New parameter from_tty.
6028         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
6029         Likewise.
6030
6031 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
6032
6033         Fix multiexec race.
6034         * infrun.c (handle_inferior_event): Use get_thread_regcache
6035         with events ptid, not get_current_regcache.
6036
6037 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
6038
6039         GDB crash with empty executable name (MinGW).
6040         * source.c (openp): Add assert that parameter string is not NULL.
6041         if parameter string is an empty string, then return with a failure
6042         immediately.
6043
6044 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
6045
6046         Get rid of support for VAX Floats.
6047         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6048         (ada_vax_float_print_function): Delete.
6049         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6050         (ada_vax_float_print_function): Delete.
6051         * ada-typeprint.c (print_vax_floating_point_type): Delete.
6052         (ada_print_type): Remove support for VAX floats.
6053         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
6054
6055 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6056
6057         * stabsread.c (read_args): Handle zero arguments.
6058
6059 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
6060
6061         Cannot find in-tree libiconv.a after reconfigure.
6062         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
6063         that we can use, then cache the path to this archive.
6064         * configure: Regenerate.
6065
6066 2010-01-07  Stan Shebs  <stan@codesourcery.com>
6067
6068         Make tracepoint operations go through target vector.
6069         * target.h (enum trace_find_type): New enum.
6070         (struct target_ops): New fields to_trace_init,
6071         to_download_tracepoint, to_download_trace_state_variable,
6072         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
6073         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
6074         to_set_disconnected_tracing.
6075         (target_trace_init): New macro.
6076         (target_download_tracepoint): New macro.
6077         (target_download_trace_state_variable): New macro.
6078         (target_trace_start): New macro.
6079         (target_trace_set_readonly_regions): New macro.
6080         (target_get_trace_status): New macro.
6081         (target_trace_stop): New macro.
6082         (target_trace_find): New macro.
6083         (target_get_trace_state_variable_value): New macro.
6084         (target_set_disconnected_tracing): New macro.
6085         * target.c (update_current_target): Inherit and set defaults for
6086         tracepoint operations.
6087         * tracepoint.c (default_collect): Make globally visible.
6088         (target_is_remote): Remove, along with all calls.
6089         (tvariables_info): Call target_get_trace_state_variable_value.
6090         (remote_set_transparent_ranges): Remove.
6091         (trace_start_command): Call target_trace_init,
6092         target_download_tracepoint, etc.
6093         (download_tracepoint): Remove.
6094         (trace_stop_command): Simplify.
6095         (stop_tracing): Call target_trace_stop.
6096         (get_trace_status): Call target_get_trace_status.
6097         (trace_status_command): Add case for targets that cannot trace.
6098         (finish_tfind_command): Change to take numerical arguments, call
6099         target_trace_find.
6100         (trace_find_command): Update call to finish_tfind_command.
6101         (trace_find_pc_command): Ditto.
6102         (trace_find_tracepoint_command): Ditto.
6103         (trace_find_line_command): Ditto.
6104         (trace_find_range_command): Ditto.
6105         (trace_find_outside_command): Ditto.
6106         (set_disconnected_tracing_value): Call
6107         target_set_disconnected_tracing.
6108         * remote.c: Add protocol encoding bits from tracepoint.c.
6109         (trace_error): Move from tracepoint.c.
6110         (remote_get_noisy_reply): Ditto.
6111         (free_actions_list_cleanup_wrapper): Ditto.
6112         (free_actions_list): Ditto.
6113         (remote_trace_init): New function.
6114         (remote_download_tracepoint): New function.
6115         (remote_download_trace_state_variable): New function.
6116         (remote_trace_set_readonly_regions): New function.
6117         (remote_trace_start): New function.
6118         (remote_get_trace_status): New function.
6119         (remote_trace_stop): New function.
6120         (remote_trace_find): New function.
6121         (remote_download_trace_state_variable): New function.
6122         (remote_set_disconnected_tracing): New function.
6123         (init_remote_ops): Add tracepoint operations.
6124
6125         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
6126
6127 2010-01-07  Tristan Gingold  <gingold@adacore.com>
6128
6129         * symfile.c (build_section_addr_info_from_objfile): New function.
6130         (symbol_file_add_separate): Don't use offsets from objfile but
6131         built an addr info.
6132
6133 2010-01-06  Stan Shebs  <stan@codesourcery.com>
6134
6135         Support disconnected tracing.
6136         * infcmd.c (detach_command): Ask whether to stop tracing.
6137         * cli/cli-cmds.c (quit_command): Ditto.
6138         * breakpoint.h (struct breakpoint): New field number_on_target.
6139         * breakpoint.c (create_tracepoint_from_upload): New function.
6140         (get_tracepoint_by_number_on_target): New function.
6141         * remote.c (struct remote): New field disconnected_tracing.
6142         (remote_disconnected_tracing_feature): New function.
6143         (remote_protocol_features): Add DisconnectedTracing.
6144         (struct uploaded_tp): New struct.
6145         (uploaded_tps): New global.
6146         (get_uploaded_tp): New function.
6147         (find_matching_tracepoint): New function.
6148         (remote_get_tracing_state): New function.
6149         (remote_start_remote): Call it.
6150         * tracepoint.c (disconnected_tracing): New global.
6151         (trace_start_command): Initialize number_on_target.
6152         (stop_tracing): New function, split out from...
6153         (trace_stop_command): Call stop_tracing.
6154         (get_trace_status): New function, split out from...
6155         (trace_status_command): Call get_trace_status, add info on
6156         disconnection behavior.
6157         (disconnect_or_stop_tracing): New function.
6158         (finish_tfind_command): Translate from number on target.
6159         (trace_find_tracepoint_command): Translate to number on target.
6160         (send_disconnected_tracing_value): New function.
6161         (set_disconnected_tracing): New function.
6162         (_initialize_tracepoint): Add disconnected-tracing variable.
6163         * NEWS: Mention disconnected tracing.
6164
6165 2010-01-06  Tristan Gingold  <gingold@adacore.com>
6166
6167         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
6168         parameter to main_objfile.  Iterate on all separate debug objfiles.
6169         * symfile.h (symbol_file_add_separate)
6170         (find_separate_debug_file_by_debuglink): Remove parameter names.
6171         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
6172         (reread_symbols): Use free_objfile_separate_debug.
6173         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
6174         Adjust comment.
6175         (objfile_separate_debug_iterate, add_separate_debug_objfile)
6176         (free_objfile_separate_debug): New prototypes.
6177         * objfiles.c (objfile_separate_debug_iterate): New function.
6178         (add_separate_debug_objfile, free_objfile_separate_debug): New
6179         functions.
6180         (free_objfile): Use free_objfile_separate_debug.  Adjust for
6181         multiple separate debug objfile.
6182         (objfile_has_symbols): Adjust comment.  Iterate on all separate
6183         debug objfiles.
6184         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
6185         debug objfile.
6186         (lookup_minimal_symbol_text): Ditto.
6187         (lookup_minimal_symbol_by_pc_name): Ditto.
6188         (lookup_minimal_symbol_solib_trampoline): Ditto.
6189         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
6190         debug objfiles.
6191
6192 2010-01-05  Stan Shebs  <stan@codesourcery.com>
6193
6194         Add fast tracepoints.
6195         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
6196         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
6197         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
6198         * breakpoint.c (tracepoint_type): New function.
6199         (ALL_TRACEPOINTS): Use it.
6200         (should_be_inserted): Ditto.
6201         (bpstat_check_location): Ditto.
6202         (print_one_breakpoint_location): Ditto.
6203         (user_settable_breakpoint): Ditto.
6204         (set_breakpoint_location_function): Ditto.
6205         (disable_breakpoints_in_shlibs): Ditto.
6206         (delete_trace_command): Ditto.
6207         (print_it_typical): Add bp_fast_tracepoint case.
6208         (bpstat_what): Ditto.
6209         (print_one_breakpoint_location): Ditto.
6210         (allocate_bp_location): Ditto.
6211         (mention): Ditto.
6212         (breakpoint_re_set_one): Ditto.
6213         (disable_command): Ditto.
6214         (enable_command): Ditto.
6215         (check_fast_tracepoint_sals): New function.
6216         (break_command_really): Call it.
6217         (ftrace_command): New function.
6218         (_initialize_breakpoint): Add ftrace command.
6219         * gdbarch.sh (fast_tracepoint_valid_at): New.
6220         * gdbarch.h, gdbarch.c: Regenerate.
6221         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
6222         (i386_gdbarch_init): Use it.
6223         * remote.c (struct remote_state): New field fast_tracepoints.
6224         (PACKET_FastTracepoints): New packet config type.
6225         (remote_fast_tracepoint_feature): New function.
6226         (remote_protocol_features): Add FastTracepoints.
6227         (remote_supports_fast_tracepoints): New function.
6228         (_initialize_remote): Add FastTracepoints.
6229         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
6230         * NEWS: Mention fast tracepoints.
6231
6232 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
6233
6234         * gdb-gdb.py: New file.
6235
6236 2010-01-05  Michael Snyder  <msnyder@vmware.com>
6237
6238         * infrun.c (handle_inferior_event): Fix typo in comment.
6239
6240 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6241
6242         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
6243
6244 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
6245
6246         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
6247         and s390x-linux64.
6248         (s390-linux32-expedite): Define.
6249         (s390-linux64-expedite): Define.
6250         (s390x-linux64-expedite): Define.
6251         * features/s390-acr.xml: New file.
6252         * features/s390-fpr.xml: New file.
6253         * features/s390-core32.xml: New file.
6254         * features/s390-core64.xml: New file.
6255         * features/s390x-core64.xml: New file.
6256         * features/s390-linux32.xml: New file.
6257         * features/s390-linux64.xml: New file.
6258         * features/s390x-linux64.xml: New file.
6259         * features/s390-linux32.c: New generated file.
6260         * features/s390-linux64.c: New generated file.
6261         * features/s390x-linux64.c: New generated file.
6262
6263         * regformats/s390-linux32.dat: New generated file.
6264         * regformats/s390-linux64.dat: New generated file.
6265         * regformats/s390x-linux64.dat: New generated file.
6266         * regformats/reg-s390.dat: Remove.
6267         * regformats/reg-s390x.dat: Remove.
6268
6269         * s390-nat.c: Include "auxv.h" and <elf.h>.
6270         (HWCAP_S390_HIGH_GPRS): Define if undefined.
6271         (s390_target_wordsize): New function.
6272         (s390_auxv_parse): Likewise.
6273         (s390_get_hwcap): Likewise.
6274         (s390_read_description): Likewise.
6275         (_initialize_s390_nat): Install s390_auxv_parse and
6276         s390_read_description.
6277
6278         * s390-tdep.c: Include "features/s390-linux32.c",
6279         "features/s390-linux64.c", and "features/s390x-linux64.c".
6280         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
6281         (s390_register_call_saved): New function.
6282         (s390_register_name): Remove.
6283         (s390_register_type): Remove.
6284         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
6285         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
6286         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
6287         (s390_pseudo_register_name): New function.
6288         (s390_pseudo_register_type): New function.
6289         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
6290         Handle full GPR pesudos and varying pseudo register numbers.
6291         (s390_pseudo_register_write): Likewise
6292         (s390x_pseudo_register_read): Remove.
6293         (s390x_pseudo_register_write): Likewise.
6294         (s390_register_group): Remove.
6295         (s390_pseudo_register_group): New function.
6296         (s390_regmap_gregset): Add GPR upper halves.
6297         (s390x_regmap_gregset): Likewise.
6298         (s390_regmap_fpregset): Likewise.
6299         (s390_regmap_upper): New global variable.
6300         (s390_upper_regset): New global variable.
6301         (s390_upper_regset_sections): New global variable.
6302         (s390_regset_from_core_section): Handle GPR upper halves.
6303         (s390_core_read_description): New function.
6304         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
6305         register information.  Handle varying pseudo register numbers.
6306         (s390_backchain_frame_unwind_cache): Likewise.
6307         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
6308         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
6309         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
6310         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
6311         Handle varying pseudo register numbers.
6312         (s390_unwind_pc): Handle varying pseudo register numbers.
6313         (s390_dwarf2_prev_register): New function.
6314         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
6315         register information.  Handle varying pseudo register numbers.
6316         Install s390_dwarf2_prev_register to unwind full GPRs.
6317         (s390_gdbarch_init): Handle target descriptions.  Assign varying
6318         pseudo register numbers.  Install s390_adjust_frame_regnum.
6319         (_initialize_s390_tdep): Initialize target descriptions.
6320
6321         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
6322         (S390_NUM_REGS): Redefine to include upper half registers.
6323         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
6324         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
6325         (tdesc_s390_linux32): Add declaration.
6326         (tdesc_s390_linux64): Likewise.
6327         (tdesc_s390x_linux64): Likewise.
6328
6329 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
6330
6331         * regset.h (struct core_regset_section): Add HUMAN_NAME.
6332         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
6333         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
6334         (ppc_linux_vmx_regset_sections): Likewise.
6335         (ppc_linux_fp_regset_sections): Likewise.
6336
6337         * corelow.c (get_core_register_section): Constify arguments.
6338         (get_core_registers): Use gdbarch_core_regset_sections instead
6339         of hard-coded platform-specific register section names.
6340
6341 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
6342
6343         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
6344         a register, assume the least-significant part is used.
6345         (write_pieced_value): Likewise.
6346
6347 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
6348
6349         * printcmd.c: Include "arch-utils.h".
6350         (do_one_display): Re-parse expression if current architecture changed.
6351
6352 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6353             Joel Brobecker  <brobecker@adacore.com>
6354
6355         * gdbtypes.c (check_typedef): New comment on type length.
6356         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
6357         comment on type length.
6358         (value_primitive_field): Keep the original TYPE value, new comment.
6359
6360 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6361
6362         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
6363         p_start.  Change != comparisons to > and < comparisons.
6364
6365 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6366
6367         * cli/cli-script.c (process_next_line): Check P2 overrun.
6368
6369 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
6370
6371         Update the copyright hearder to add year 2010 for most GDB files.
6372
6373 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
6374
6375         Fix build failure in inf-ptrace.c.
6376         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
6377
6378 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
6379
6380         * top.c (print_gdb_version): Update copyright year.
6381
6382 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
6383
6384         Fix break *FUN'address thread NUM.
6385         * ada-lex.l (task): Expand rule to also match the thread keyword.
6386
6387 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
6388
6389         Fix break *FUN'address task NUM.
6390         * ada-lex.l (task): New rule.
6391         * ada-lang.c (valid_task_id): Make sure the Ada task list has
6392         been built before using it.
6393
6394 For older changes see ChangeLog-2009.
6395 \f
6396 Local Variables:
6397 mode: change-log
6398 left-margin: 8
6399 fill-column: 74
6400 version-control: never
6401 coding: utf-8
6402 End: