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