Fix date format in one entry. Fix whitespace throughout while there.
[external/binutils.git] / gdb / ChangeLog
1 2010-04-15  Pedro Alves  <pedro@codesourcery.com>
2
3         * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
4         flags.
5         * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6
7 2010-04-15  Doug Evans  <dje@google.com>
8
9         * NEWS: Add entry for python program space support.
10         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
11         (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
12         (py-progspace.o): New rule.
13         * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
14         function.
15         (find_pretty_printer_from_progspace): New function.
16         (find_pretty_printer_from_gdb): New function.
17         (find_pretty_printer): Rewrite.
18         * python/py-progspace.c: New file.
19         * python/python-internal.h (program_space): Add forward decl.
20         (pspace_to_pspace_object, pspy_get_printers): Declare.
21         (gdbpy_initialize_pspace): Declare.
22         * python/python.c: #include "progspace.h".
23         (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
24         (_initialize_python): Call gdbpy_initialize_pspace.
25         (GdbMethods): Add current_progspace, progspaces.
26
27         Add -s option to source command.
28         * NEWS: Document new option.
29         * cli/cli-cmds.c (find_and_open_script): Add function comment.
30         Delete from_tty and cleanupp args.  Split filep arg into file and
31         full_pathp.  New arg search_path.
32         (source_script_from_stream): New function.
33         (source_script_with_search): New function.
34         (source_script): Rewrite.
35         (source_command): Parse "-s" option.
36         (init_cli_cmds): Add "-s" docs to source command help, and reformat.
37         * python/python.c (source_python_script): Make file arg a const char *.
38         Don't call fclose, leave for caller.
39         * python/python.h (source_python_script): Update.
40
41 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
42             Pedro Alves  <pedro@codesourcery.com>
43
44         Avoid rereading shared libraries that haven't changed.
45
46         * solib.c (free_so_symbols): New function, from ...
47         (free_so): ... here.  Call it.
48         (solib_read_symbols): Don't warn here if symbols have already been
49         loaded.
50         (solib_add): Warn here instead, if a pattern was specified.
51         (reload_shared_libraries_1): New.
52         (reload_shared_libraries): Rewrite to not fetch the library list.
53
54 2010-04-14  Doug Evans  <dje@google.com>
55
56         * source.c (openp): Strip DOS drive letter if present before
57         concatenating string to search path.
58
59 2010-04-14  Pedro Alves  <pedro@codesourcery.com>
60
61         * objfiles.h (gdb_bfd_close_or_warn): Declare.
62         * objfiles.c (gdb_bfd_close_or_warn): New.
63         * corelow.c: Include objfiles.h
64         (core_close): Use gdb_bfd_close_or_warn.
65         * elfread.c (build_id_verify): Ditto.
66         * exec.c (exec_close, exec_close_1): Ditto.
67
68 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
69             Pedro Alves  <pedro@codesourcery.com>
70
71         Group errors for many missing shared libraries.
72
73         * solist.h (struct so_list): Remove from_tty.
74         * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
75         (solib_map_sections): Take so_list argument.  Return 0 if we
76         failed to open a BFD.  Add target sections here.
77         (symbol_add_stub): Delete.
78         (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
79         not from_tty copied from the so_list.  Don't warn a second time
80         for a missing library.
81         (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
82         add to the section table here.  Print out a single warning for all
83         missing libraries.
84         * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
85         flags.
86
87 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
88
89         * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
90         error/warning messages.  Capitalize and use complete sentences.
91         (blpy_block_syms_iternext): Likewise.
92         * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
93         * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
94         (frame_info_to_frame_object, frapy_read_var)
95         (gdbpy_frame_stop_reason_string): Likewise.
96         * python/py-lazy-string.c (stpy_convert_to_value)
97         (gdbpy_create_lazy_string_object): Likewise.
98         * python/py-objfile.c (objfpy_set_printers): Likewise.
99         * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
100         * python/python.c (parameter_to_python): Likewise.
101         * python/py-type.c (typy_range, typy_target): Likewise.
102         * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
103         (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
104
105
106 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
107
108         PR python/11381
109
110         * python/py-prettyprint.c (pretty_print_one_value): Test for
111         Py_None.
112         (print_string_repr): Test for Py_None.  Set flags accordingly.
113         Return value depending on return type.
114         (print_children): Take a value indicating whether data was printed
115         before this function was called.  Alter output accordingly.
116         (apply_val_pretty_printer): Capture return value from
117         print_string_repr and pass to print_children.
118
119 2010-04-13  Mark Kettenis  <kettenis@gnu.org>
120
121         PR corefiles/11481
122         * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
123         register note sections.
124         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
125         New variables.
126         (i386_linux_init_abi): Install list of supported register note
127         sections that matches the target description.
128
129 2010-04-13  Pedro Alves  <pedro@codesourcery.com>
130
131         * remote.c (remote_get_noisy_reply): Don't error out on empty
132         replies.
133         (remote_start_remote): Update and merge tracepoints and trace
134         state variables as long as the target supports tracepoints.
135         (remote_trace_init): Fix prototype.
136         (remote_download_trace_state_variable): Validate reply.
137         (remote_trace_set_readonly_regions): Fix prototype.
138         (remote_trace_start): Fix prototype.  Check for empty reply.
139         (remote_get_trace_status): Small cleanup.
140         (remote_trace_stop): Fix prototype.  Check for empty reply.
141         (remote_trace_find): Check for empty reply.
142         (remote_save_trace_data): Validate reply.
143         (remote_set_disconnected_tracing): Check for empty reply, and
144         validate reply.
145         (remote_set_circular_trace_buffer): Ditto.
146
147 2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
148
149         Suppress unused value warning during compilation.
150         * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
151         calls to void.
152         * tui/tui-stack.c (tui_show_locator_content): Likewise.
153
154 2010-04-12  Stan Shebs  <stan@codesourcery.com>
155
156         * tracepoint.c (tfile_xfer_partial): Check read result.
157
158 2010-04-12  Mike Frysinger  <vapier@gentoo.org>
159
160         * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
161         * remote-sim.c (gdbsim_files_info): Likewise.
162
163 2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
164
165         * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
166         * arm-linux-nat.c (arm_linux_vfp_register_count): New
167         variable.
168         (fetch_vfp_registers): New function to fetch VFP registers.
169         (store_vfp_registers): New function to store VFP registers.
170         (arm_linux_fetch_inferior_registers): Add support for VFP
171         registers.
172         (arm_linux_store_inferior_registers): Likewise.
173         (arm_linux_read_description): Likewise.
174         (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
175         until we need it.
176
177 2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
178
179         * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
180         tdep.
181         (amd64_collect_xstateregset): Likewise.
182
183 2010-04-09  Stan Shebs  <stan@codesourcery.com>
184
185         * tracepoint.c (trace_status_mi): Report frames created.
186
187         * tracepoint.c (trace_dump_command): Include default-collect
188         expressions.
189
190 2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
191
192         * symtab.c (find_function_start_sal): Never return SAL pointing
193         before function start address, even if line info is missing.
194
195 2010-04-09  Pedro  Alves  <pedro@codesourcery.com>
196
197         * NEWS: Mention tracepoints support.
198
199 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
200
201         * tracepoint.c (trace_status_mi): Report disconnected tracing and
202         circular trace buffer statuses.
203
204 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
205
206         * config/djgpp/fnchange.lst: Fix typo in translations for
207         symbol-without-target_section.exp and symbol-without-target_section.c.
208
209 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
210
211         * breakpoint.c (condition_command): Pass condition expression to
212         set_breakpoint_condition stripped from breakpoint number.
213
214 2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
215             Thiago Jung Bauermann  <bauerman@br.ibm.com>
216             Tom Tromey  <tromey@redhat.com>
217
218         * breakpoint.c (condition_command): Simplify.  Move condition
219         setting code to ...
220         (set_breakpoint_condition): ... here.  New function.
221         * breakpoint.h  (set_breakpoint_condition): Declare.
222         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
223         (SUBDIR_PYTHON_SRCS): Likewise.
224         (py-breakpoint.o): New rule.
225         * python/py-breakpoint.c: New file.
226         * python/python-internal.h (gdbpy_breakpoints)
227         (gdbpy_initialize_breakpoints): Declare.
228         (GDB_PY_SET_HANDLE_EXCEPTION) Define.
229
230 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
231
232         * regformats/regdat.sh: Include server.h.  Don't include
233         regcache.h.
234
235 2010-04-08  Stan Shebs  <stan@codesourcery.com>
236             Pedro Alves  <pedro@codesourcery.com>
237
238         * tracepoint.h (struct trace_status): New fields disconnected_tracing
239         and circular_buffer.
240         (disconnect_tracing): Rename from disconnect_or_stop_tracing.
241         * tracepoint.c (trace_status_command): Display target's status for
242         disconnected tracing and circular buffer.
243         (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
244         query for non-disconnected-tracing case, remove the stop_tracing
245         call.
246         (tfile_open): Clear disconnected and circular buffer status.
247         (trace_save): Save disconnected and circular buffer status.
248         (parse_trace_status): Parse disconnected and circular buffer status,
249         also recognize disconnected as a stop reason.
250         * remote.c (remote_set_disconnected_tracing): Only set
251         QTDisconnected if the remote end supports disconnected tracing.
252         Warn otherwise, if trying to enable disconnected tracing.
253         * infcmd.c (detach_command): Update disconnect_tracing call.
254         * cli/cli-cmds.c (quit_command): Ditto.
255
256 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
257
258         * i387-tdep.c (i387_collect_xsave): Replace abort with
259         internal_error.
260
261 2010-04-08  Stan Shebs  <stan@codesourcery.com>
262
263         * breakpoint.c (default_collect_info): New function.
264         (breakpoints_info): Call it.
265         (maintenance_info_breakpoints): Ditto.
266         (tracepoints_info): Ditto.
267
268 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
269
270         * i387-tdep.c (i387_collect_xsave): Re-indent.
271
272 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
273
274         * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
275         if HAVE_PTRACE_GETFPXREGS is defined.
276         (i386_linux_read_description): Set have_ptrace_getfpxregs and
277         have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
278
279         * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
280         (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
281         if .reg-xfp section doesn't exist.
282         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
283
284         * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
285
286         * i386-tdep.c: Include "features/i386/i386-mmx.c".
287         (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
288         (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
289         xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
290         (i386_gdbarch_init): Update comments.
291         (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
292
293         * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
294
295         * config/djgpp/fnchange.lst: Add i386 MMX XML files.
296
297         * features/Makefile (i386/i386-mmx-expedite): New.
298         (i386/i386-mmx-linux-expedite): Likewise.
299         ($(outdir)/i386/i386-mmx.dat): Likewise.
300         ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
301
302         * features/i386/i386-mmx-linux.c: New.
303         * features/i386/i386-mmx-linux.xml: Likewise.
304         * features/i386/i386-mmx.c: Likewise.
305         * features/i386/i386-mmx.xml: Likewise.
306         * regformats/i386/i386-mmx-linux.dat: Likewise.
307         * regformats/i386/i386-mmx.dat: Likewise.
308
309         * features/Makefile (WHICH): Add i386/i386-mmx and
310         i386/i386-mmx-linux.
311
312 2010-04-08  Doug Evans  <dje@google.com>
313
314         * source.c (openp): Skip $cdir in PATH.
315
316 2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
317
318         PR python/11417
319         * python/py-lazy-string.c (stpy_convert_to_value): Check for
320         a NULL address.
321         (gdbpy_create_lazy_string_object): Allow strings with a NULL
322         address and a zero length.
323
324 2010-04-08  Hui Zhu  <teawater@gmail.com>
325
326         * i386-tdep.c (i386_process_record): Add support for insn
327         rdtsc.
328
329 2010-04-07  Doug Evans  <dje@google.com>
330
331         * python/python.c (source_python_script): Use ensure_python_env
332         to prepare environment for script.
333
334 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
335
336         * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
337         <sys/uio.h> and "i386-xstate.h".
338         (PTRACE_GETREGSET): New.
339         (PTRACE_SETREGSET): Likewise.
340         (have_ptrace_getregset): Likewise.
341         (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
342         registers.
343         (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
344         registers.
345         (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
346         (amd64_linux_store_inferior_registers): Likewise.
347         (amd64_linux_read_description): Check and enable AVX target
348         descriptions.
349
350         * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
351         and "features/i386/amd64-avx-linux.c".
352         (amd64_linux_regset_sections): New.
353         (amd64_linux_core_read_description): Check and enable AVX
354         target description.
355         (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
356         set_gdbarch_core_regset_sections.
357         (_initialize_amd64_linux_tdep): Call
358         initialize_tdesc_amd64_avx_linux.
359
360         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
361         AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
362         (tdesc_amd64_avx_linux): New.
363         (amd64_linux_update_xstateregset): Likewise.
364
365         * amd64-tdep.c: Include "features/i386/amd64-avx.c".
366         (amd64_ymm_names): New.
367         (amd64_ymmh_names): Likewise.
368         (amd64_register_name): Likewise.
369         (amd64_supply_xstateregset): Likewise.
370         (amd64_collect_xstateregset): Likewise.
371         (amd64_supply_xsave): Likewise.
372         (amd64_collect_xsave): Likewise.
373         (AMD64_NUM_REGS): Removed.
374         (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
375         %xmmN if AVX is available.
376         (amd64_pseudo_register_name): Support pseudo YMM registers.
377         (amd64_regset_from_core_section): Support .reg-xstate section.
378         (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
379         and ymm0h_regnum.  Call set_gdbarch_register_name.
380         (amd64_init_abi): Call initialize_tdesc_amd64_avx.
381
382         * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
383         AMD64_YMM15H_REGNUM.
384         (AMD64_NUM_REGS): New.
385         (amd64_supply_xsave): Likewise.
386         (amd64_collect_xsave): Likewise.
387         (amd64_register_name): Removed.
388         (amd64_register_type): Likewise.
389
390 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
391
392         * i387-tdep.c: Include "i386-xstate.h".
393         (XSAVE_XSTATE_BV_ADDR): New.
394         (xsave_avxh_offset): Likewise.
395         (XSAVE_AVXH_ADDR): Likewise.
396         (i387_supply_xsave): Likewise.
397         (i387_collect_xsave): Likewise.
398
399         * i387-tdep.h (I387_NUM_YMM_REGS): New.
400         (I387_YMM0H_REGNUM): Likewise.
401         (I387_YMMENDH_REGNUM): Likewise.
402         (i387_supply_xsave): Likewise.
403         (i387_collect_xsave): Likewise.
404
405 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
406
407         * i386-linux-nat.c: Include "regset.h", "elf/common.h",
408         <sys/uio.h> and "i386-xstate.h".
409         (PTRACE_GETREGSET): New.
410         (PTRACE_SETREGSET): Likewise.
411         (fetch_xstateregs): Likewise.
412         (store_xstateregs): Likewise.
413         (GETXSTATEREGS_SUPPLIES): Likewise.
414         (regmap): Include 8 upper YMM registers.
415         (i386_linux_fetch_inferior_registers): Support XSAVE extended
416         state.
417         (i386_linux_store_inferior_registers): Likewise.
418         (i386_linux_read_description): Check and enable AVX target
419         descriptions.
420
421         * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
422         "i386-xstate.h" and "features/i386/i386-avx-linux.c".
423         (i386_linux_regset_sections): Add ".reg-xstate".
424         (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
425         (i386_linux_core_read_xcr0): New.
426         (i386_linux_core_read_description): Check and enable AVX target
427         description.
428         (i386_linux_init_abi): Set xsave_xcr0_offset.
429         (_initialize_i386_linux_tdep): Call
430         initialize_tdesc_i386_avx_linux.
431
432         * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
433         I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
434         (i386_linux_core_read_xcr0): New.
435         (tdesc_i386_avx_linux): Likewise.
436         (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
437
438         * i386-tdep.c: Include "i386-xstate.h" and
439         "features/i386/i386-avx.c".
440         (i386_ymm_names): New.
441         (i386_ymmh_names): Likewise.
442         (i386_ymmh_regnum_p): Likewise.
443         (i386_ymm_regnum_p): Likewise.
444         (i386_xmm_regnum_p): Likewise.
445         (i386_register_name): Likewise.
446         (i386_ymm_type): Likewise.
447         (i386_supply_xstateregset): Likewise.
448         (i386_collect_xstateregset): Likewise.
449         (i386_sse_regnum_p): Removed.
450         (i386_pseudo_register_name): Support pseudo YMM registers.
451         (i386_pseudo_register_type): Likewise.
452         (i386_pseudo_register_read): Likewise.
453         (i386_pseudo_register_write): Likewise.
454         (i386_dbx_reg_to_regnum): Return %ymmN register number for
455         %xmmN if AVX is available.
456         (i386_regset_from_core_section): Support .reg-xstate section.
457         (i386_register_reggroup_p): Supper upper YMM and YMM registers.
458         (i386_process_record): Replace i386_sse_regnum_p with
459         i386_xmm_regnum_p.
460         (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
461         Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
462         (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
463         Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
464         I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
465         num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
466         Set ymm0_regnum.
467         (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
468
469         * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
470         xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
471         i386_ymm_type.
472         (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
473         (I386_AVX_NUM_REGS): New.
474         (i386_xmm_regnum_p): Likewise.
475         (i386_ymm_regnum_p): Likewise.
476         (i386_ymmh_regnum_p): Likewise.
477
478         * common/i386-xstate.h: New.
479
480 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
481
482         * config/djgpp/fnchange.lst: Add x86 AVX XML files.
483
484         * features/Makefile (WHICH): Add i386/i386-avx,
485         i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
486         (i386/i386-avx-expedite): New.
487         (i386/i386-avx-linux-expedite): Likewise.
488         (i386/x86-64-avx-expedite):Likewise.
489         (i386/x86-64-avx-linux-expedite): Likewise.
490         ($(outdir)/i386/i386-avx.dat): New dependency.
491         ($(outdir)/i386/i386-avx-linux.dat): Likewise.
492         ($(outdir)/i386/x86-avx-64.dat): Likewise.
493         ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
494
495         * features/i386/32bit-avx.xml: New.
496         * features/i386/64bit-avx.xml: Likewise.
497         * features/i386/i386-avx-linux.c: Likewise.
498         * features/i386/i386-avx-linux.xml: Likewise.
499         * features/i386/i386-avx.c: Likewise.
500         * features/i386/i386-avx.xml: Likewise.
501         * features/i386/x86-64-avx-linux.c: Likewise.
502         * features/i386/x86-64-avx-linux.xml: Likewise.
503         * features/i386/x86-64-avx.c: Likewise.
504         * features/i386/x86-64-avx.xml: Likewise.
505         * regformats/i386/i386-avx-linux.dat: Likewise.
506         * regformats/i386/i386-avx.dat: Likewise.
507         * regformats/i386/x86-64-avx-linux.dat: Likewise.
508         * regformats/i386/x86-64-avx.dat: Likewise.
509
510 2010-04-07  Doug Evans  <dje@google.com>
511
512         * top.c (source_file_name): Make const char *.
513         * top.h (source_file_name): Update.
514         * cli/cli-script.c (source_cleanup_lines_args): Make old_file
515         const char *.
516         (script_from_file): Change `file' arg to const char *.
517         * cli/cli-script.h (script_from_file): Update.
518
519 2010-04-06  Doug Evans  <dje@google.com>
520
521         * cli/cli-cmds.c (source_command): Run cleanups.
522
523 2010-04-06  Stan Shebs  <stan@codesourcery.com>
524
525         * defs.h (char_ptr): Move typedef here from...
526         * ada-lang.c (char_ptr): Remove.
527         * charset.c (char_ptr): Remove.
528         * tracepoint.h (struct uploaded_string): Remove.
529         (struct uploaded_tp): Use vectors for string arrays.
530         * tracepoint.c (trace_save): Use vectors of actions.
531         (parse_tracepoint_definition): Ditto.
532         (get_uploaded_tp): Clear vectors.
533         * breakpoint.c (create_tracepoint_from_upload): Use vectors.
534         (next_cmd): Change to an int.
535         (read_next_cmd): Use vector of command strings.
536
537 2010-04-06  Doug Evans  <dje@google.com>
538
539         * top.h (source_script, cd_command): Delete.
540         * main.c: #include "cli/cli-cmds.h"
541
542 2010-04-06  Kevin Buettner  <kevinb@redhat.com>
543
544         * m32c-tdep.c (make_types): When calling `arch_type', pass size of
545         type in bytes, not bits.
546
547 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
548
549         * stabsread.c (define_symbol): Add support for char
550         and string constants.
551
552 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
553
554         Remove remaining "%ll" uses.
555         * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
556         hex_string call.
557         * rs6000-nat.c (rs6000_ptrace64): Idem.
558         * solib-pa64.c (pa64_current_sos): Idem.
559         * solib-spu.c (spu_current_sos): Idem.
560         * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
561         plongest call.
562         * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
563         phex (VAR, 8) call.
564         * sh64-tdep.c (sh64_show_media_regs): Idem.
565
566 2010-04-05  Stan Shebs  <stan@codesourcery.com>
567
568         * tracepoint.c: Include gdbcore.h.
569         (tfile_xfer_partial): Return partial results, also try reading
570         from executable.
571         (tfile_has_all_memory): New function.
572         (init_tfile_ops): Use it.
573
574 2010-04-05  Sergio Durigan Junior  <sergiodj@redhat.com>
575
576         PR gdb/10736:
577         * xml-syscall.c (my_gdb_datadir): New variable to keep track of
578         the changes in data-directory.
579         (init_sysinfo): Reload the syscall XML file if the data-directory
580         has changed.
581
582 2010-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
583
584         Code cleanup.
585         * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
586
587 2010-04-04  Stan Shebs  <stan@codesourcery.com>
588             Nathan Sidwell  <nathan@codesourcery.com>
589
590         * breakpoint.c (breakpoint_1): Add filter argument, return number of
591         breakpoints printed.
592         (is_hardware_watchpoint): Make argument const.
593         (is_watchpoint): Ditto.
594         (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
595         use it everywhere.
596         (breakpoints_info): Pass NULL to breakpoint_1.
597         (maintenance_info_breakpoints): Ditto.
598         (watchpoints_info): New function.
599         (tracepoints_info): Use breakpoint_1 filter.
600         (set_ignore_count): Warn that tracepoint ignore count will be ignored.
601         (_initialize_breakpoint): Make "info watchpoints" its own command.
602         * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
603         * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
604
605 2010-04-04  Stan Shebs  <stan@codesourcery.com>
606
607         * tracepoint.c (tfile_fetch_registers): Add fallback case.
608
609 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
610
611         * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
612         * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
613
614 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
615
616         * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
617         * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
618
619 2010-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
620
621         * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
622         code form.
623
624 2010-04-02  Hui Zhu  <teawater@gmail.com>
625
626         * i386-tdep.c (OT_DQUAD): New enum.
627         (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
628         SSE3, SSSE3 and SSE4.
629
630 2010-04-02  Hui Zhu  <teawater@gmail.com>
631
632         * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
633         "*addr = 0".
634
635 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
636
637         * tracepoint.c (trace_dump_actions): New, factored out from
638         trace_dump_command, and adjusted to recurse into while-stepping's
639         action list.
640         (trace_dump_command): Use it.
641
642 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
643
644         * breakpoint.h (struct counted_command_line): Moved definition to
645         breakpoint.c, and forward declare.
646         (breakpoint_commands): Declare.
647         * breakpoint.c (struct counted_command_line): Moved here.
648         (breakpoint_commands): New.
649         * tracepoint.c (encode_actions): Use breakpoint_commands.
650         * remote.c (remote_download_tracepoint): Ditto.
651
652 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
653
654         * remote.c (remote_parse_stop_reply): Use hex_string instead
655         of phex_nz for error.
656
657 2010-04-01  Stan Shebs  <stan@codesourcery.com>
658             Nathan Sidwell  <nathan@codesourcery.com>
659
660         * tracepoint.h (enum actionline_type): Remove.
661         (validate_actionline): Change return to void.
662         * tracepoint.c (report_agent_reqs_errors): New function.
663         (validate_actionline): Call it, change return to void, report errors
664         more consistently.
665         (collect_symbol): Call report_agent_reqs_errors.
666         (encode_actions_1): Ditto.
667         (encode_actions): Don't expect a result from validate_actionline.
668
669 2010-04-01  Stan Shebs  <stan@codesourcery.com>
670
671         * tracepoint.c (trace_start_command): Confirm if trace is running.
672         (trace_stop_command): Error if trace not running.
673
674 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
675
676         * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
677         (AMD64_NUM_LOWER_BYTE_REGS): New.
678         (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
679         (amd64_pseudo_register_write): Likewise.
680         (amd64_init_abi): Set num_byte_regs to 20.
681
682 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
683
684         * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
685         (prev_breakpoint_count): New.
686         (set_breakpoint_count): Adjust.
687         (rbreak_start_breakpoint_count): New.
688         (start_rbreak_breakpoints): Adjust.
689         (end_rbreak_breakpoints): Adjust.
690         (struct commands_info) <arg>: New field.
691         (do_map_commands_command): Tweak output to include breakpoint spec
692         range.
693         (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
694         ARG was empty on entry.  Set INFO's arg.
695         (create_breakpoint): Adjust.
696
697         * NEWS: Clarify `commands' changes.
698
699 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
700
701         * tracepoint.c: Include stack.h.
702         (struct add_local_symbols_data): New.
703         (do_collect_symbol): New.
704         (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
705         iterate_over_block_local_vars.
706         * stack.c (print_block_frame_locals): Rewrite as ...
707         (iterate_over_block_locals): ... this.  Take a callback function
708         pointer and generic data pointer, and call that instead of
709         print_variable_and_value.
710         (struct print_variable_and_value_data): New.
711         (do_print_variable_and_value): New.
712         (iterate_over_block_local_vars): New, abstracted out from
713         print_frame_local_vars.
714         (print_frame_local_vars): Rewrite using
715         iterate_over_block_local_vars.
716         (iterate_over_block_arg_vars): New, abstracted out from
717         print_frame_arg_vars.
718         (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
719         * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
720         (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
721
722 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
723
724         * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
725         instructions.  Use the PC+4 if the base of the TBB or TBH is the
726         PC register.
727
728 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
729
730         Fix crash on reading wrong function declaration DWARF.
731         * dwarf2read.c (read_subroutine_type): New variable void_type.
732         Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
733         more close to their use.
734
735 2010-03-31  Stan Shebs  <stan@codesourcery.com>
736
737         * breakpoint.c (tracepoint_save_command): Include variables,
738         conditionals, tracepoint types, and default-collect.
739         * tracepoint.c (save_trace_state_variables): New function.
740         * tracepoint.h (save_trace_state_variables): Declare it.
741
742 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
743
744         * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
745
746 2010-03-30  Keith Seitz  <keiths@redhat.com>
747
748         * c-typeprint.c (c_type_print_args): Don't print "void"
749         for java, regardless of whether it is TYPE_PROTOTYPED.
750         Use the passed-in language instead of current_language.
751         (c_type_print_varspec_suffix): Use current_language instead
752         of assuming language_c.
753         * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
754         any return type specifier from the physname.
755
756 2010-03-30  Pedro Alves  <pedro@codesourcery.com>
757
758         * tui/tui-interp.c (tui_is_toplevel): New.
759         (tui_init): Set it.
760         (tui_allowed_p): New.
761         * tui/tui.c (tui_enable): Check if the TUI is allowed before
762         enabling it.
763         * tui/tui.h (tui_allowed_p): Declare.
764
765 2010-03-30  Ozkan Sezer  <sezeroz@gmail.com>
766
767         * serial.h: Include winsock2.h before windows.h.
768
769 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
770
771         * NEWS: Mention xmlRegisters= in qSupported packet.
772
773         * i386-tdep.c: Include "remote.h".
774         (_initialize_i386_tdep): Call register_remote_support_xml.
775
776         * remote.c (remote_support_xml): New.
777         (register_remote_support_xml): Likewise.
778         (remote_query_supported_append): Likewise.
779         (remote_query_supported): Support remote_support_xml.
780
781         * remote.h (register_remote_support_xml): New.
782
783 2010-03-29  Stan Shebs  <stan@codesourcery.com>
784
785         * tracepoint.c (trace_find_line_command): Remove dead code.
786
787         * tracepoint.h (struct uploaded_string): New struct.
788         (struct uploaded_tp): New fields for source strings.
789         * breakpoint.c (this_utp, next_cmd): New globals.
790         (read_uploaded_action): New function.
791         (create_tracepoint_from_upload): Fill in more parts
792         of a tracepoint.
793         * tracepoint.c (encode_source_string): New function.
794         (trace_save): Write out source strings, fix error checks.
795         (parse_tracepoint_definition): Add source string parsing.
796         * remote.c (PACKET_TracepointSource): New packet type.
797         (remote_download_command_source): New function.
798         (remote_download_tracepoint): Download source pieces also.
799         (_initialize_remote): Add packet config command.
800
801         * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
802         expression handler.
803
804         * tracepoint.c (start_tracing): Check tracepoints before sending
805         commands to target, don't start if all tracepoints disabled.
806
807 2010-03-28  Pedro Alves  <pedro@codesourcery.com>
808
809         * cli/cli-script.c (process_next_line): Handle 'stepping'.
810
811 2010-03-26  Stan Shebs  <stan@codesourcery.com>
812
813         * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
814
815 2010-03-26  Tom Tromey  <tromey@redhat.com>
816
817         * breakpoint.c (commands_command_1): Duplicate 'arg'.
818
819 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
820
821         * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
822         (skip_prologue_sal): Remove local definition.
823         (resolve_sal_pc): Remove now unnecessary code.
824         * linespec.c (minsym_found): Call skip_prologue_sal.
825         * symtab.c (find_function_start_pc): Remove.
826         (find_function_start_sal): Extract prologue skipping into ...
827         (skip_prologue_sal): ... this new function.  Handle code both
828         with and without debug info.  Respect SAL's explicit_pc and
829         explicit_line flags.  Inline old find_function_start_pc.
830         * symtab.h (find_function_start_pc): Remove.
831         (skip_prologue_sal): Add prototype.
832
833 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
834
835         * dwarf2read.c (read_func_scope): Also scan specification DIEs
836         for DW_TAG_imported_module children.
837
838 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
839
840         * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
841         ignoring spurious DW_AT_name attributes for unnamed structs or unions.
842         * completer.c (add_struct_fields): Fix inverted logic.
843
844 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
845
846         * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
847
848 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
849
850         * tracepoint.c (current_trace_status): Don't make sure error_desc
851         is non-NULL here.
852         (parse_trace_status): Release a previous error_desc string, and
853         set it to NULL by default.  If stop reason is tracepoint_error,
854         make sure error_desc is not left NULL.
855
856 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
857
858         * tracepoint.c (trace_save): Remove X from tracepoint error
859         description.
860
861 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
862
863         * tracepoint.c (parse_trace_status): Don't allow plain strings in
864         the terror description.  Don't expect an X prefix.
865
866 2010-03-25  Stan Shebs  <stan@codesourcery.com>
867
868         * tracepoint.h (trace_stop_reason): Add tracepoint_error.
869         (struct trace_status): New field error_desc.
870         * tracepoint.c (stop_reason_names): Add terror.
871         (current_trace_status): Ensure non-NULL error description.
872         (trace_status_command): Add error report.
873         (trace_status_mi): Ditto.
874         (trace_save): Add special case for error description.
875         (parse_trace_status): Add case for errors.
876
877 2010-03-25  Keith Seitz  <keiths@redhat.com>
878
879         * dwarf2read.c (read_subroutine_type): If the compilation unit
880         language is Java, mark any formal parameter named "this" as
881         artificial (GCC/43521).
882         (dwarf2_name): Add special handling for Java constructors.
883
884 2010-03-25  Tom Tromey  <tromey@redhat.com>
885
886         PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
887         * infrun.c (handle_inferior_event): Change initialization of
888         stop_stack_dummy.
889         (handle_inferior_event): Change assignment to stop_stack_dummy.
890         (normal_stop): Update use of stop_stack_dummy.
891         (struct inferior_status) <stop_stack_dummy>: Change type.
892         * inferior.h (stop_stack_dummy): Update.
893         * infcmd.c (stop_stack_dummy): Change type.
894         * infcall.c (cleanup_delete_std_terminate_breakpoint): New
895         function.
896         (call_function_by_hand): Call set_std_terminate_breakpoint.
897         Rewrite std::terminate handling.
898         * breakpoint.h (enum bptype) <bp_std_terminate,
899         bp_std_terminate_master>: New.
900         (enum stop_stack_kind): New.
901         (struct bpstat_what) <call_dummy>: Change type.
902         (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
903         Declare.
904         * breakpoint.c (create_std_terminate_master_breakpoint): New
905         function.
906         (update_breakpoints_after_exec): Handle bp_std_terminate_master.
907         Call create_std_terminate_master_breakpoint.
908         (print_it_typical): Handle new breakpoint kinds.
909         (bpstat_stop_status): Handle bp_std_terminate_master.
910         (bpstat_what): Correctly set call_dummy field.  Handle
911         bp_std_terminate_master and bp_std_terminate.
912         (print_one_breakpoint_location): Update.
913         (allocate_bp_location): Update.
914         (set_std_terminate_breakpoint): New function.
915         (delete_std_terminate_breakpoint): Likewise.
916         (create_thread_event_breakpoint): Update.
917         (delete_command): Update.
918         (breakpoint_re_set_one): Update.
919         (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
920
921 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
922
923         * symfile.c (build_section_addr_info_from_bfd): New.
924         (build_section_addr_info_from_objfile): Base it on
925         build_section_addr_info_from_bfd.
926         (addrs_section_compar, addrs_section_sort): New.
927         (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
928         addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
929         addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
930
931 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
932
933         * elfread.c (find_separate_debug_file_by_buildid):
934         Remove unused local variable.
935
936 2010-03-24  Tom Tromey  <tromey@redhat.com>
937
938         PR breakpoints/9352:
939         * NEWS: Mention changes to `commands' and `rbreak'.
940         * symtab.c (do_end_rbreak_breakpoints): New function.
941         (rbreak_command): Call start_rbreak_breakpoints; arrange to call
942         end_rbreak_breakpoints.
943         * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
944         (set_breakpoint_count): Likewise.  Clear last_was_multi.
945         (multi_start, multi_end, last_was_multi): New globals.
946         (start_rbreak_breakpoints, end_rbreak_breakpoints): New
947         functions.
948         (struct commands_info): New
949         (do_map_commands_command): New function.
950         (commands_command_1): New function.
951         (commands_command): Use it.
952         (commands_from_control_command): Likewise.
953         (do_delete_breakpoint): New function.
954         (delete_command): Use it.
955         (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
956         (do_map_disable_breakpoint): New function.
957         (disable_command): Use it.
958         (do_map_enable_breakpoint): New function.
959         (enable_command): Use it.
960         (enable_once_breakpoint): Add argument.
961         (enable_once_command): Update.
962         (enable_delete_breakpoint): Add argument.
963         (enable_delete_command): Update.
964         (break_command_really): Set last_was_multi when needed.
965         (check_tracepoint_command): Fix formatting.
966         (validate_commands_for_breakpoint): New function.
967         (breakpoint_set_commands): Use it.
968         (tracepoint_save_command): Update.
969         * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
970         Declare.
971
972 2010-03-24  Tom Tromey  <tromey@redhat.com>
973
974         * breakpoint.h (struct counted_command_line): New struct.
975         (struct breakpoint) <commands>: Change type.
976         (struct bpstats) <commands>: Change type.
977         <commands_left>: New field.
978         * breakpoint.c (alloc_counted_command_line): New function.
979         (incref_counted_command_line): Likewise.
980         (decref_counted_command_line): Likewise.
981         (do_cleanup_counted_command_line): Likewise.
982         (make_cleanup_decref_counted_command_line): Likewise.
983         (breakpoint_set_commands): Use decref_counted_command_line and
984         alloc_counted_command_line.
985         (commands_command): Don't error if breakpoint commands are
986         executing.
987         (commands_from_control_command): Likewise.
988         (bpstat_free): Update.
989         (bpstat_copy): Likewise.
990         (bpstat_clear_actions): Likewise.
991         (bpstat_do_actions_1): Likewise.
992         (bpstat_stop_status): Likewise.
993         (print_one_breakpoint_location): Likewise.
994         (delete_breakpoint): Likewise.
995         (bpstat_alloc): Initialize new field.
996         (tracepoint_save_command): Update.
997         * tracepoint.c (encode_actions): Update.
998         (trace_dump_command): Update.
999
1000 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
1001
1002         * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
1003         * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
1004         (read_structure_type): For RealView, set TYPE_STUB on structures with
1005         no byte size and no children.
1006         (read_subroutine_type): Mark functions as prototyped by default.
1007         * symtab.c (producer_is_realview): New function.
1008         * symtab.h (expand_line_sal): Fix declaration formatting.
1009         (producer_is_realview): Declare.
1010
1011 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
1012
1013         * arm-tdep.c (skip_prologue_function): New function.
1014         (submask, bit, bits, sbits, BranchDest): Move higher in the file.
1015         (thumb_analyze_prologue): Document return value.  Recognize more
1016         Thumb instructions, skippable calls, and some Thumb-2 instructions.
1017         Add debug output.
1018         (arm_skip_prologue): Remove call dummy check.  Check the prologue
1019         for non-GNU compilers.
1020         (arm_instruction_changes_pc): New function.
1021         (arm_analyze_prologue): New function, broken out from
1022         arm_scan_prologue.  Recognize more ARM instructions and skippable
1023         calls.  Update comments.  Handle NULL cache.  Return the address
1024         of the first unrecognized instruction.  Do not skip past other
1025         instructions which change control flow.  Add debug output.
1026         (arm_scan_prologue): Use arm_analyze_prologue.
1027         (ARM_PC_32): Delete.
1028         (shifted_reg_val): Simplify ARM_PC_32 check.
1029
1030 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1031
1032         * tracepoint.c (tvariables_info_1): Actually compute
1033         the number of rows in the result.
1034
1035 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
1036
1037         * remote.c (crc32): Constify `buf' parameter.
1038         (remote_verify_memory): New, abstracted out from...
1039         (compare_sections_command): ... this.  Remove hardcoded target
1040         checks.
1041         (init_remote_ops): Install remote_verify_memory.
1042         * target.c (target_verify_memory): New.
1043         * target.h (struct target_ops) <to_verify_memory>: New field.
1044         (target_verify_memory): Declare.
1045
1046 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1047
1048         Implement -trace-save.
1049
1050         * mi-cmds.h (mi_cmds_trace_save): Declare.
1051         * mi-cmds.c (mi_cmds): Register -trace-save.
1052         * mi/mi-main.c (mi_cmd_trace_save): New.
1053         * remote.c (remote_save_trace_data): Take const parameter.
1054         * target.h (struct target_ops::to_save_trace_data): Take
1055         const parameter.
1056         * target.c (update_current_target): Adjust to the above.
1057         * tracepoint.c (trave_save): New, extracted from
1058         (trace_save_command): ...this.
1059         (tfile_trace_find): Remove message that is unnecessary now
1060         that 'tfind' reports found frame.
1061         * tracepoint.h (trace_save): Declare.
1062
1063 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1064
1065         Implement -trace-find.
1066
1067         * mi/mi-cmds.c (mi_cmds): Register -trace-find.
1068         * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
1069         * mi/mi-main.c (mi_cmd_trace_find): New.
1070         * target.h (struct target_ops): Document to_trace_find.
1071         * tracepoint.h (tfind_1): Declare.
1072         * tracepoint.c (finish_tfind_command): Rename to...
1073         (tfind_1): ...this.
1074         * remote.c (remote_trace_find): Return -1 if target say
1075         there's no frame.  Improve error diagnostics.
1076
1077 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1078
1079         -trace-define-variable and -trace-list-variables.
1080
1081         * tracepoint.c (create_trace_state_variable): Make
1082         private copy of name, as opposed to assuming the
1083         pointer lives forever.
1084         (tvariables_info_1): New.
1085         (tvariables_info): Use the above.
1086         * tracepoint.h (create_trace_state_variable, tvariables_info_1):
1087         Declare.
1088         * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
1089         and -trace-list-variables.
1090         * mi/mi-cmds.h (mi_cmd_trace_define_variable)
1091         (mi_cmd_trace_list_variables): New.
1092         * mi/mi-main.c (mi_cmd_trace_define_variable)
1093         (mi_cmd_trace_list_variables): New.
1094
1095 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1096
1097         Implement -break-passcount.
1098
1099         * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
1100         * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
1101         * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
1102
1103 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1104
1105         -trace-start/-trace-end/-trace-status.
1106
1107         * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
1108         and -trace-stop.
1109         * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
1110         (mi_cmd_trace_stop): Declare.
1111         * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
1112         (mi_cmd_trace_stop): New.
1113         * tracepoint.c (start_tracing): New, extracted from...
1114         (trace_start_command): ...this.
1115         (trace_status_mi): New.
1116         * tracepoint.h (struct trace_status): Document
1117         stopping_tracepoint.
1118         (start_tracing, stop_tracing, trace_status_mi): Declare.
1119
1120 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1121
1122         Implement creating tracepoints with -break-insert.
1123
1124         * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
1125         to mean that tracepoint should be created.
1126
1127 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1128
1129         * breakpoint.c (check_no_tracepoint_commands): Use
1130         current spelling of 'teval'.
1131
1132 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1133
1134         Unify actions and commands
1135
1136         * defs.h (read_command_lines, read_command_lines_1): New
1137         parameters validator and closure.
1138         * tracepoint.h (struct action_line): Remove.
1139         * breakpoint.h (struct breakpoint): Remove the 'actions'
1140         field.
1141         * defs.h (enum command_control_type): New value
1142         while_stepping_control.
1143         (struct command_line): Add comments.
1144         * breakpoint.c (breakoint_is_tracepoint): New.
1145         (breakpoint_set_commands): For tracepoints,
1146         verify the commands are permissible.
1147         (check_tracepoint_commands): New.
1148         (commands_command): Require that each new line is validated using
1149         check_tracepoint_command, if we set commands for a tracepoint.
1150         (create_tracepoint_from_upload): Likewise.
1151         (print_one_breakpoint_location): Remove the code to print
1152         actions specifically.
1153         (tracepoint_save_command): Relay to print_command_lines.
1154         * cli/cli-script.c (process_next_line): New parameters validator
1155         and closure. Handle 'while-stepping'. Call validator if not null.
1156         (read_command_lines, read_command_lines1): Likewise.
1157         (recurse_read_control_structure): New parameters validator and
1158         closure. Handle while_stepping_control.
1159         (print_command_lines): Handle while-stepping.
1160         (get_command_line, define_command, document_command): Adjust.
1161         * remote.c (remote_download_tracepoint): Adjust.
1162         * tracepoint.c (make_cleanup_free_actions, read_actions)
1163         (free_actions, do_free_actions_cleanup): Remove.
1164         (trace_actions_command): Use read_command_lines.
1165         (validate_actionline): Use error in one place.
1166         (encode_actions_1): New, extracted from...
1167         (encode_actions): ...this. Also use cleanups for exception
1168         safety.
1169         (trace_dump_command): Adjust.
1170         * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
1171         it's tracepoint.
1172
1173 2010-03-23  Mike Frysinger  <vapier@gentoo.org>
1174
1175         * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
1176
1177 2010-03-22  Stan Shebs  <stan@codesourcery.com>
1178
1179         * value.c (value_static_field): Be lazy about the field's value.
1180
1181 2010-03-22  Reid Kleckner  <reid@kleckner.net>
1182
1183         PR gdb/11094
1184         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
1185         bp_jit_event.
1186         (disable_breakpoints_in_shlibs): Likewise.
1187
1188 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
1189
1190         * dwarf2read.c (partial_die_parent_scope): Work around buggy
1191         GCC 4.1 debug info generation (GCC PR c++/28460).
1192         (determine_prefix): Likewise.
1193
1194 2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
1195
1196         * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
1197         get_current_arch.
1198         * tui/tui-layout.c (extract_display_start_addr): Likewise.
1199
1200 2010-03-19  Stan Shebs  <stan@codesourcery.com>
1201
1202         * ax-gdb.c (gen_fetch): Handle bool.
1203         (gen_usual_unary): Ditto.
1204         (gen_cast): Ditto.
1205         (gen_equal): New function.
1206         (gen_less): New function.
1207         (gen_expr_binop_rest): Call them, also return integer type from
1208         logical operations.
1209         (gen_expr): Ditto.
1210
1211 2010-03-19  Tom Tromey  <tromey@redhat.com>
1212
1213         * jv-lang.c (jv_dynamics_objfile_data_key)
1214         (jv_type_objfile_data_key): New globals.
1215         (class_symtab): Move earlier.
1216         (jv_per_objfile_free): New function.
1217         (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
1218         parameter.
1219         Remove ancient #if 1.
1220         (add_class_symbol): Remove redundant declaration.
1221         (java_lookup_class): Use alloc_type, not alloc_type_arch.
1222         (java_link_class_type): Mark as static.  Update.
1223         (jv_clear_object_type): New function.
1224         (set_java_object_type): Likewise.
1225         (get_java_object_type): Use set_java_object_type.
1226         (is_object_type): Likewise.
1227         (_initialize_java_language): Register new objfile keys.
1228         (get_java_class_symtab): Add 'gdbarch' parameter.
1229         (add_class_symtab_symbol): Update.
1230         (type_from_class): Update.
1231
1232 2010-03-19  Stan Shebs  <stan@codesourcery.com>
1233
1234         * ax-general.c (ax_const_l): Fix a sizing bug.
1235
1236 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
1237
1238         GDB 7.1 released.
1239
1240 2010-03-18  Stan Shebs  <stan@codesourcery.com>
1241             Pedro Alves  <pedro@codesourcery.com>
1242
1243         * target.h (struct target_ops): New method
1244         to_set_circular_trace_buffer.
1245         (target_set_circular_trace_buffer): New macro.
1246         * target.c (update_current_target): Add
1247         to_set_circular_trace_buffer, fix to_set_disconnected_tracing
1248         default behavior.
1249         * remote.c (remote_set_circular_trace_buffer): New function.
1250         (init_remote_ops): Add it to vector.
1251         * tracepoint.h (struct trace_status): New field traceframes_created,
1252         change buffer_size and buffer_free to int.
1253         * tracepoint.c (circular_trace_buffer): New global.
1254         (start_tracing): Send values of disconnected tracing and circular
1255         trace buffer settings.
1256         (set_circular_trace_buffer): New function.
1257         (parse_trace_state): Handle total space and frames created.
1258         (trace_status_command): Display total space and total frames
1259         created.
1260         (trace_save): Write out new status values.
1261         (parse_trace_status): Set traceframe_count, traceframes_created,
1262         buffer_free and buffer_size to -1 by default.
1263         (_initialize_tracepoint): New setshow for circular-trace-buffer.
1264         * NEWS: Mention the circular trace buffer option.
1265
1266 2010-03-18  Tom Tromey  <tromey@redhat.com>
1267
1268         * infcmd.c (finish_command_continuation): Wrap print_return_value
1269         in TRY_CATCH.
1270
1271 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
1272
1273         * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
1274         DIE has a name before creating the associated partial symbol.
1275         (read_func_scope): Emit a complaint if the subprogram does not
1276         have a name or when we can't extract the subprogram PC bounds.
1277
1278 2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
1279
1280         * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
1281         instead of selected frame architecture.
1282
1283 2010-03-18  Pedro Alves  <pedro@codesourcery.com>
1284
1285         * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
1286         a valid selected thread, and that it is not running.
1287         (advance_command): Ditto.
1288         (finish_command): Ditto.
1289
1290 2010-03-17 Stan Shebs  <stan@codesourcery.com>
1291
1292         * ax-gdb.c (require_rvalue): Disallow non-scalars.
1293
1294         * infcall.c: Include tracepoint.h.
1295         (call_function_by_hand): Disallow calls in tfind mode.
1296         * infcmd.c: Include tracepoint.h.
1297         (ensure_not_tfind_mode): New function.
1298         (continue_1): Call it.
1299         (step_1) Ditto.
1300         (jump_command): Ditto.
1301         (signal_command): Ditto.
1302         (advance_command): Ditto.
1303         (until_command): Ditto.
1304         (finish_command): Ditto.
1305         * tracepoint.h (disconnect_or_stop_tracing): Declare.
1306
1307         * ax-gdb.h (struct axs_value): New field optimized_out.
1308         (gen_trace_for_var): Add gdbarch argument.
1309         * ax-gdb.c (gen_trace_static_fields): New function.
1310         (gen_traced_pop): Call it, add gdbarch argument.
1311         (gen_trace_for_expr): Update call to it.
1312         (gen_trace_for_var): Ditto, and report optimized-out variables.
1313         (gen_struct_ref_recursive): Check for optimized-out value.
1314         (gen_struct_elt_for_reference): Ditto.
1315         (gen_static_field): Pass gdbarch instead of expression, assume
1316         optimization if field not found.
1317         (gen_var_ref): Set the optimized_out flag.
1318         (gen_expr): Error on optimized-out variable.
1319         * tracepoint.c (collect_symbol): Handle struct-valued vars as
1320         expressions, skip optimized-out variables with computed locations.
1321         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
1322         erroring out if location expression missing.
1323         (loclist_tracepoint_var_ref): Don't error out here.
1324
1325 2010-03-17  Tom Tromey  <tromey@redhat.com>
1326
1327         * dwarf2read.c (dwarf2_get_section_info): Handle case where no
1328         DWARF data is available.
1329
1330 2010-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
1331
1332         * symfile.c (generic_load): Reset breakpoints after loading.
1333
1334 2010-03-17  Tom Tromey  <tromey@redhat.com>
1335
1336         * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
1337
1338 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1339
1340         * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
1341         create_breakpoint call, adjust the parameters.
1342
1343 2010-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1344             Chandru <chandru@in.ibm.com>
1345
1346         * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
1347         * valarith.c (value_subscripted_rvalue): Suppress error if
1348         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1349
1350 2010-03-16  Holger Hans Peter Freyther  <zecke@selfish.org>
1351
1352         * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
1353
1354 2010-03-16  Joel Brobecker  <brobecker@adacore.com>
1355
1356         * ada-tasks.c (task_command_1): Check that the task ptid is valid
1357         before doing the associated thread switch.
1358
1359 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
1360
1361         * MAINTAINERS: Update my email address.
1362
1363 2010-03-16  Vladimir Prus  <vladimir@codesourcery.com>
1364
1365         Simplify MI breakpoint setting.
1366
1367         * breakpoint.c (break_command_really): Make nonstatic and
1368         rename to...
1369         (create_breakpoint): ...this. Rename prior function by this name
1370         to...
1371         (create_breakpoint_sal): ...this.
1372         (create_breakpoints): Rename to...
1373         (create_breakpoints_sal): ...this.
1374         (set_breakpoint): Remove.
1375         * breakpoint.h: Adjust to above changes.
1376         * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
1377
1378 2010-03-15 Stan Shebs  <stan@codesourcery.com>
1379
1380         * ax-gdb.c: Include cp-support.h.
1381         (find_field): Remove.
1382         (gen_primitive_field): New function.
1383         (gen_struct_ref_recursive): New function.
1384         (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
1385         of find_field.
1386         (gen_static_field): New function.
1387         (gen_struct_elt_for_reference): New.
1388         (gen_namespace_elt): New.
1389         (gen_maybe_namespace_elt): New.
1390         (gen_aggregate_elt_ref): New.
1391         (gen_expr): Add OP_SCOPE, display opcode name in error message.
1392
1393 2010-03-15  Tom Tromey  <tromey@redhat.com>
1394
1395         * dwarf2read.c (die_needs_namespace): Also return 0 for
1396         DW_TAG_subprogram.
1397
1398 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
1399
1400         PR c++/7936:
1401         * cp-support.h: Added char *declaration element to using_direct
1402         data struct.
1403         (cp_add_using): Added char *declaration argument.
1404         (cp_add_using_directive): Ditto.
1405         (cp_lookup_symbol_imports): made extern.
1406         * cp-namespace.c: Updated with the above changes.
1407         * dwarf2read.c (read_import_statement): Ditto.
1408         (read_namespace): Ditto.
1409         (read_import_statement): Support import declarations.
1410         * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
1411         declarations.
1412         Added support for 'declaration_only' search.
1413         (cp_lookup_symbol_namespace): Attempt to search for the name as
1414         is before consideration of imports.
1415         * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
1416         search at every block level search.
1417         Now takes language argument.
1418         (lookup_symbol_aux): Updated.
1419
1420 2010-03-15  Tom Tromey  <tromey@redhat.com>
1421
1422         * c-exp.y (name_not_typename): Add 'operator' clause.
1423
1424 2010-03-15  Ralf Corsepius  <ralf.corsepius@rtems.org>  (tiny change)
1425
1426         * configure.ac: Exit if ${gdb_target_obs}" is not set.
1427         * configure: Regenerate.
1428
1429 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1430
1431         * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
1432         and ".sdynbss".  Update the comment.
1433
1434 2010-03-15  Jie Zhang  <jie@codesourcery.com>
1435
1436         * MAINTAINERS: Update my email address.
1437
1438 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
1439
1440         * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
1441
1442 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
1443
1444         * charset.c [USE_WIN32API]: Include <windows.h>.
1445          (_initialize_charset): Correct type of w32_host_default_charset.
1446
1447 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
1448
1449         * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
1450
1451 2010-03-12  Tom Tromey  <tromey@redhat.com>
1452
1453         PR c++/9708:
1454         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
1455         in a lexical block does not need a namespace.
1456         (new_symbol) <DW_TAG_variable>: Put extern variables on
1457         list_in_scope in all cases.
1458
1459 2010-03-12 Stan Shebs  <stan@codesourcery.com>
1460
1461         * ax-gdb.c (gen_expr): Add shift expressions.
1462         (gen_expr_binop_rest): Ditto.
1463
1464 2010-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
1465
1466         * buildsym.c (finish_block): Reset using_directives pointer
1467         after block initialization.
1468
1469 2010-03-12  H.J. Lu  <hongjiu.lu@intel.com>
1470
1471         * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
1472         * i386-tdep.c (i386_word_names): Likewise.
1473
1474 2010-03-12  Pedro Alves  <pedro@codesourcery.com>
1475
1476         * target.c (memory_xfer_partial): Don't use the stack cache if
1477         inspecting trace frames.
1478         * tracepoint.c (finish_tfind_command): Invalidate the target
1479         dcache.
1480
1481 2010-03-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1482
1483         * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
1484         for the PIC displacement, print also the displacement value.
1485         (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
1486
1487 2010-03-10  Kevin Buettner  <kevinb@redhat.com>
1488
1489         * remote-mips.c (close_ports, mips_initialize_cleanups)
1490         (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
1491         (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
1492         (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
1493         (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
1494         (pmon_check_entry_address, pmon_check_total, pmon_end_download)
1495         (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
1496         comments describing each of these functions.
1497         (mips_enter_debug, mips_exit_debug, common_open)
1498         (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
1499         blank line after the comment describing the function.
1500
1501 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1502
1503         * solib-svr4.c (svr4_exec_displacement): Return now success, new
1504         parameter displacementp.  Update comment.
1505         (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
1506         element exists.  Return if svr4_exec_displacement was not successful.
1507         Update comment.
1508
1509 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1510             Daniel Jacobowitz  <dan@codesourcery.com>
1511
1512         * solib-svr4.c (read_program_header): Support type == -1 to read
1513         all program headers.
1514         (read_program_headers_from_bfd): New function.
1515         (svr4_static_exec_displacement): Remove and move the comment ...
1516         (svr4_exec_displacement): ... here.  Remove variable found.  New
1517         variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
1518         alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
1519         targets using read_program_headers_from_bfd.  Remove the call of
1520         svr4_static_exec_displacement.
1521
1522 2010-03-10  Tom Tromey  <tromey@redhat.com>
1523
1524         * dwarf2read.c (struct pubnames_header): Remove.
1525         (_PUBNAMES_HEADER): Remove.
1526         (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
1527         (struct aranges_header): Remove.
1528         (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
1529         (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
1530         (PUBNAMES_SECTION): Remove.
1531         (ARANGES_SECTION): Remove.
1532         (dwarf2_locate_sections): Don't handle pubnames or aranges.
1533         (dwarf2_build_psymtabs): Remove dead code.
1534         (dwarf2_build_psymtabs_easy): Remove.
1535
1536 2010-03-10  Tom Tromey  <tromey@redhat.com>
1537
1538         * elfread.c (elf_symfile_read): Don't call
1539         dwarf2_build_frame_info.
1540         * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
1541         (struct dwarf2_per_objfile) <objfile>: New field.
1542         (dwarf2_has_info): Now idempotent.  Set objfile field.
1543         (dwarf2_read_section): Check and set readin field.  Call
1544         posix_madvise.
1545         (dwarf2_build_psymtabs): Don't read all sections.
1546         (read_type_comp_unit_head): Read types section.
1547         (create_debug_types_hash_table): Likewise.
1548         (init_cu_die_reader): Add asserts.
1549         (process_type_comp_unit): Add assert.
1550         (dwarf2_build_psymtabs_hard): Read info section.
1551         (load_partial_comp_unit): Add assert.
1552         (create_all_comp_units): Read info section.
1553         (load_full_comp_unit): Likewise.
1554         (dwarf2_ranges_read): Read ranges section.
1555         (dwarf2_record_block_ranges): Add assert.
1556         (dwarf2_read_abbrevs): Read abbrev section.
1557         (read_indirect_string): Read str section.
1558         (dwarf_decode_line_header): Read line section.
1559         (read_signatured_type_at_offset): Read types section.
1560         (dwarf_decode_macros): Read macinfo section.
1561         (dwarf2_symbol_mark_computed): Read loc section.
1562         * dwarf2-frame.c (dwarf2_frame_find_fde): Call
1563         dwarf2_build_frame_info.
1564         (dwarf2_build_frame_info): Unconditionally set
1565         dwarf2_frame_objfile_data on the objfile.
1566         * configure.ac: Check for posix_madvise.
1567         * config.in, configure: Rebuild.
1568
1569 2010-03-10  Tom Tromey  <tromey@redhat.com>
1570
1571         * xcoffread.c (xcoff_start_psymtab): Update.
1572         (xcoff_end_psymtab): Update.
1573         * psymtab.c (allocate_psymtab): Remove dead code.
1574         * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
1575         void*.
1576         * mdebugread.c (parse_partial_symbols): Update.
1577         (new_psymtab): Likewise.
1578         * dwarf2read.c (process_psymtab_comp_unit): Update.
1579         (psymtab_to_symtab_1): Update.
1580         * dbxread.c (start_psymtab): Update.
1581         (end_psymtab): Likewise.
1582
1583 2010-03-10  Tom Tromey  <tromey@redhat.com>
1584
1585         * xcoffread.c: Include psymtab.h.
1586         (xcoff_sym_fns): Update.
1587         * symtab.h (struct partial_symbol): Remove.
1588         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
1589         (struct partial_symtab): Remove.
1590         (PSYMTAB_TO_SYMTAB): Remove.
1591         (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
1592         (find_pc_sect_psymtab): Remove.
1593         (find_pc_sect_symtab_via_partial): Declare.
1594         (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
1595         (find_main_psymtab): Remove.
1596         (find_main_filename): Declare.
1597         (fixup_psymbol_section): Remove.
1598         (fixup_section): Declare.
1599         * symtab.c: Include psymtab.h.
1600         (lookup_symtab): Use lookup_symtab method.
1601         (lookup_partial_symtab): Remove.
1602         (find_pc_sect_psymtab_closer): Remove.
1603         (find_pc_sect_psymtab): Remove.
1604         (find_pc_sect_symtab_via_partial): New function.
1605         (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
1606         (fixup_section): No longer static.
1607         (fixup_psymbol_section): Remove.
1608         (lookup_symbol_aux): Use lookup_symbol_aux_quick.
1609         (lookup_global_symbol_from_objfile): Likewise.
1610         (lookup_symbol_aux_psymtabs): Remove.
1611         (lookup_symbol_aux_quick): New function.
1612         (lookup_symbol_global): Use lookup_symbol_aux_quick.
1613         (lookup_partial_symbol): Remove.
1614         (basic_lookup_transparent_type_quick): New function.
1615         (basic_lookup_transparent_type): Use it.
1616         (find_main_psymtab): Remove.
1617         (find_main_filename): New function.
1618         (find_pc_sect_symtab): Use find_pc_sect_symtab method.
1619         (find_line_symtab): Use expand_symtabs_with_filename method.
1620         (output_partial_symbol_filename): New function.
1621         (sources_info): Use map_partial_symbol_filenames.
1622         (struct search_symbols_data): New type.
1623         (search_symbols_file_matches): New function.
1624         (search_symbols_name_matches): Likewise.
1625         (search_symbols): Use expand_symtabs_matching method.
1626         (struct add_name_data): Rename from add_macro_name_data.
1627         (add_macro_name): Update.
1628         (add_partial_symbol_name): New function.
1629         (default_make_symbol_completion_list): Use
1630         map_partial_symbol_names.
1631         (struct add_partial_symbol_name): New type.
1632         (maybe_add_partial_symtab_filename): New function.
1633         (make_source_files_completion_list): Use
1634         map_partial_symbol_filenames.
1635         (expand_line_sal): Use expand_symtabs_with_filename method.
1636         * symmisc.c: Include psymtab.h.
1637         (print_objfile_statistics): Use print_stats method.
1638         (dump_objfile): Use dump method.
1639         (dump_psymtab, maintenance_print_psymbols)
1640         (maintenance_info_psymtabs, maintenance_check_symtabs)
1641         (extend_psymbol_list): Remove.
1642         * symfile.h (struct quick_symbol_functions): New struct.
1643         (struct sym_fns) <qf>: New field.
1644         (sort_pst_symbols): Remove.
1645         (increment_reading_symtab): Declare.
1646         * symfile.c: Include psymtab.h.
1647         (compare_psymbols, sort_pst_symbols): Remove.
1648         (psymtab_to_symtab): Remove.
1649         (increment_reading_symtab): New function.
1650         (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
1651         method.
1652         (set_initial_language): Use find_main_filename.
1653         (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
1654         (free_named_symtabs): Remove unused code.
1655         (start_psymtab_common, add_psymbol_to_bcache)
1656         (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
1657         Remove.
1658         * stack.c: Include psymtab.h, symfile.h.
1659         (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
1660         * source.h (psymtab_to_fullname): Don't declare.
1661         * source.c: Include psymtab.h.
1662         (select_source_symtab): Use find_last_source_symtab method.
1663         (forget_cached_source_info): Use forget_cached_source_info
1664         method.
1665         (find_and_open_source): No longer static.
1666         (psymtab_to_fullname): Remove.
1667         * somread.c: Include psymtab.h.
1668         (som_sym_fns): Update.
1669         * psympriv.h: New file.
1670         * psymtab.h: New file.
1671         * psymtab.c: New file.
1672         * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
1673         (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
1674         * objfiles.c: Include psymtab.h.
1675         (objfile_relocate1): Use relocate method.
1676         (objfile_has_partial_symbols): Use has_symbols method.
1677         * mipsread.c: Include psymtab.h.
1678         (ecoff_sym_fns): Update.
1679         * mi/mi-cmd-file.c: Include psymtab.h.
1680         (print_partial_file_name): New function.
1681         (mi_cmd_file_list_exec_source_files): Use
1682         map_partial_symbol_filenames.
1683         * mdebugread.c: Include psympriv.h.
1684         * machoread.c: Include psympriv.h.
1685         (macho_sym_fns): Update.
1686         * m2-exp.y (yylex): Use lookup_symtab.
1687         * elfread.c: Include psympriv.h.
1688         (elf_sym_fns): Update.
1689         * dwarf2read.c: Include psympriv.h.
1690         * dbxread.c: Include psympriv.h.
1691         (aout_sym_fns): Update.
1692         * cp-support.c: Include psymtab.h.
1693         (read_in_psymtabs): Remove.
1694         (make_symbol_overload_list_qualified): Use
1695         expand_symtabs_for_function method.
1696         * coffread.c: Include psympriv.h.
1697         (coff_sym_fns): Update.
1698         * blockframe.c: Include psymtab.h.
1699         (find_pc_partial_function): Use find_pc_sect_symtab method.
1700         * ada-lang.h (ada_update_initial_language): Update.
1701         * ada-lang.c: Include psymtab.h.
1702         (ada_update_initial_language): Remove 'main_pst' argument.
1703         (ada_lookup_partial_symbol): Remove.
1704         (struct ada_psym_data): New type.
1705         (ada_add_psyms): New function.
1706         (ada_add_non_local_symbols): Use map_ada_symtabs method.
1707         (struct add_partial_datum): New type.
1708         (ada_add_partial_symbol_completions): New function.
1709         (ada_make_symbol_completion_list): Use map_partial_symbol_names.
1710         (ada_exception_support_info_sniffer): Update.
1711         * Makefile.in (SFILES): Add psymtab.c.
1712         (COMMON_OBS): Add psymtab.o.
1713         (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
1714
1715 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1716
1717         * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
1718
1719 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
1720
1721         PR C++/11236:
1722         * cp-namespace.c (cp_add_using): Deleted.
1723         (cp_add_using_directive): Use obstack allocations.
1724         Merged the function cp_add_using into this one.
1725         Added 'struct obstack *' argument.
1726         (cp_scan_for_anonymous_namespaces): Updated.
1727         * cp-support.h: Updated.
1728         * dwarf2read.c (read_import_statement): Updated.
1729         (read_namespace): Updated.
1730
1731 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1732
1733         * windows-nat.c (cygwin_conv_path): Remove old macro.
1734
1735 2010-03-10  Pedro Alves  <pedro@codesourcery.com>
1736
1737         * breakpoint.c (condition_command): Handle watchpoint conditions.
1738         (is_hardware_watchpoint): Add comment.
1739         (is_watchpoint): New.
1740         (update_watchpoint): Don't reparse the watchpoint's condition
1741         unless necessary.
1742         (WP_IGNORE): New.
1743         (watchpoint_check): Use it.
1744         (bpstat_check_watchpoint): Handle it.
1745         (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
1746         conditions in a frame where it makes sense.
1747         (watch_command_1): Store the innermost block of the condition
1748         expression.
1749         (delete_breakpoint): Delete the watchpoint condition expression.
1750         * breakpoint.h (struct bp_location) <cond>: Update comment.
1751         (struct breakpoint): New field `cond_exp_valid_block'.
1752
1753 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
1754
1755         Adjust handling of Ada DIEs after dwarf2_physname patch.
1756         * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
1757
1758 2010-03-09  Christopher Faylor  <me+cygwin@cgf.cx>
1759             Pierre Muller  <muller@ics.u-strasbg.fr>
1760
1761         * windows-nat.c (cygwin_conv_path): Redefine to properly convert
1762         from/to posix/win32.
1763         (windows_make_so): Use non-Cygwin 1.7 specific function.
1764         (windows_create_inferior): Make sure that cygallargs points to
1765         original args in non Cygwin 1.7. case.
1766
1767 2010-03-09  Michael Snyder  <msnyder@vmware.com>
1768
1769         * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
1770         after target_read_memory to get host byte order.
1771         (i386_process_record): Ditto.
1772
1773 2010-03-09  Keith Seitz  <keiths@redhat.com>
1774
1775         Based on work from Daniel Jacobowitz  <dan@codesourcery.com>
1776         * c-typeprint.c (cp_type_print_method_args): For non-static methods,
1777         print out const or volatile qualifiers, too.
1778         (c_type_print_args): Add parameters show_artificial and language.
1779         Skip artificial parameters when requested.
1780         Use the appropriate language printer.
1781         (c_type_print_varspec): Tell c_type_print_args to skip artificial
1782         parameters and pass language_c.
1783         * dwarf2read.c (die_list): New file global.
1784         (struct partial_die_info): Update comments for name field.
1785         (pdi_needs_namespace): Renamed to ...
1786         (die_needs_namespace): ... this. Rewrite.
1787         (dwarf2_linkage_name): Remove.
1788         (add_partial_symbol): Do not predicate the call to
1789         partial_die_full_name based on pdi_needs_namespace.
1790         Remove call to cp_check_possible_namespace_symbols and associated
1791         outdated comments.
1792         (guess_structure_name): Do not inspect child subprogram DIEs.
1793         (dwarf2_fullname): Update comments.
1794         Use die_needs_namespace to assist in computing the name.
1795         (read_func_scope): Use dwarf2_name to get the DIE's name.
1796         Use dwarf2_physname to get the "linkage name" of the DIE.
1797         (dwarf2_add_member_field): Use dwarf2_physname instead of
1798         dwarf2_linkage_name.
1799         (read_structure_type): For structs and classes, set TYPE_NAME, too.
1800         (determine_class): Remove.
1801         (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
1802         except Ada.
1803         (new_symbol): Unconditionally call dwarf2_name.
1804         Compute the "linkage name" using dwarf2_physname.
1805         Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
1806         When determining to scan for anonymous C++ namespaces, ignore
1807         the linkage name.
1808         (dwarf2_physname): New function.
1809         (dwarf2_full_name): Move content to new function and call
1810         that.
1811         (dwarf2_compute_name): "New" function.
1812         (_initialize_dwarf2_read): Initialize die_list.
1813         * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
1814         physname.
1815         (gnu_v3_print_method_ptr): Use the physname for virtual methods
1816         without a demangled name.
1817         Print out type information for non-virtual methods.
1818         * linespec.c (decode_line_1): Force ANY string using "::" (or
1819         "." for java) to use decode_compound, and clean up any stray quoting.
1820         If we found a file symtab, re-evaluate whether the remainder is_quoted.
1821         (decode_compound): Stop consuming at an open parenthesis.
1822         Keep template parameters.
1823         Keep any overload information.
1824         Keep keywords like "const".
1825         Remove paren_pointer.
1826         Move is_quoted check from set_flags to here.
1827         Remove #if 0 code from 2000. Ten years is long enough.
1828         (find_method): Before comparing symbol names, canonicalize the string
1829         from the user.
1830         If a specific overload is requested, find it. Otherwise throw an error.
1831         (find_method_overload_end): New function.
1832         (set_flags): Remove.
1833         (decode_compound): Assume that parentheses are matched.
1834         It's a lot easier.
1835         * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
1836         to cplus_demangle.
1837         * linespec.c (decode_line_1): Keep important keywords like
1838         "const" and "volatile".
1839         * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
1840         * typeprint.h (c_type_print_args): Add declaration.
1841         * ui-file.c (do_ui_file_obsavestring): New function.
1842         (ui_file_obsavestring): New function.
1843         * ui-file.h (ui_file_obsavestring): Add declaration.
1844         * valops.c (find_overload_match): Resolve the object to
1845         a non-pointer type.
1846         If the object is a data member, search the object for the member
1847         and return with staticp set.
1848         Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
1849         Do not attempt to extract a function name from non-function types.
1850         If the extracted function name and the original name are the same,
1851         we don't have a C++ method.
1852
1853         From Jan Kratochvil  <jan.kratochvil@redhat.com>:
1854         * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
1855
1856         * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
1857         and arguments from symbol lookups.
1858         * ax-gdb.c (gen_expr): Likewise.
1859         * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
1860         cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
1861         lookup_possible_namespace_symbol): Likewise.
1862         * cp-support.c (read_in_psymtabs): Likewise.
1863         * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
1864         * language.h (la_lookup_symbol_nonlocal): Likewise.
1865         * scm-valprint.c (scm_inferior_print): Likewise.
1866         * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
1867         * solib-svr.c (elf_lookup_lib): Likewise.
1868         * solib.c (show_auto_solib_add): Likewise.
1869         * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
1870         * symmisc.c (maintenance_check_symtabs): Likewise.
1871         * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
1872         lookup_symbol_aux_local, lookup_symbol_aux_block,
1873         lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
1874         lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
1875         lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
1876         basic_lookup_transparent_type, find_main_psymtab,
1877         lookup_block_symbol): Likewise.
1878         * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
1879         lookup_symbol_global, lookup_symbol_aux_block,
1880         lookup_symbol_partial_symbol, lookup_block_symbol,
1881         lookup_global_symbol, value_maybe_namespace_elt): Likewise.
1882
1883 2010-03-09  Pierre Muller  <muller@ics.u-strasbg.fr>
1884
1885         * python/python-internal.h: Include symtab.h.
1886
1887 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
1888             Pierre Muller  <muller@ics.u-strasbg.fr>
1889
1890         * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
1891         * p-valprint.c (pascal_val_print): Remove undeed block and fix
1892         indentation.
1893
1894 2010-03-08  Tom Tromey  <tromey@redhat.com>
1895
1896         * breakpoint.c (breakpoint_1): Add "QUIT".
1897
1898 2010-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
1899             Pedro Alves  <pedro@codesourcery.com>
1900
1901         * solib.c (solib_find): Replace extension if
1902         solib_symbols_extension is set in the target gdbarch.
1903         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
1904         solib_symbols_extension to "sym".
1905         * gdbarch.sh (solib_symbols_extension): New variable.
1906         (pstring): New function.
1907         * gdbarch.h, gdbarch.c: Regenerate.
1908
1909 2010-03-08  Tom Tromey  <tromey@redhat.com>
1910
1911         PR cli/9591:
1912         * NEWS: Update.
1913         * utils.c: Include main.h.
1914         (fputs_maybe_filtered): Don't paginate if `batch_flag'.
1915         (defaulted_query): Use default answer if `batch_flag'.
1916         * main.h (batch_flag): Declare.
1917         * main.c (batch_flag): New global.
1918         (captured_main): Remove 'batch'.  Update.
1919
1920 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
1921
1922         From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
1923         and Kevin Buettner:
1924
1925         * remote-mips.c (rockhopper_ops): New target_ops struct.
1926         (MON_ROCKHOPPER): New mips_monitor_type.
1927         (read_hex_value): New function.
1928         (mips_request): Send 8-byte values with a 'T' packet.  Read the
1929         packet argument as a string and use read_hex_value to parse it.
1930         (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
1931         (rockhopper_open): New function.
1932         (mips_wait): Read the PC, FP and SP fields as strings.  Use
1933         read_hex_value to parse them and mips_set_register to commit them.
1934         (mips_set_register): New function.
1935         (mips_fetch_registers): Do not cast register value to "unsigned"
1936         when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
1937         (mips_store_registers): Use a 'T' packet to set registers when
1938         using MON_ROCKHOPPER.
1939         (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
1940         and expect the total to be printed before the entry address.
1941         (_initialize_remote_mips): Initialize and add rockhopper_ops.
1942
1943 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
1944
1945         * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
1946         Change return value to int.  Store value fetched in location
1947         addressed by `val'.  Use function's return value as success
1948         or failure indicator.  Adjust all callers.
1949
1950 2010-03-08  Pierre Muller  <muller@ics.u-strasbg.fr>
1951
1952         * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
1953
1954 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1955             Hui Zhu  <teawater@gmail.com>
1956
1957         * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
1958         tmp_to_stopped_data_address.
1959         (record_open): Reset tmp_to_stopped_by_watchpoint and
1960         tmp_to_stopped_data_address.
1961         * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
1962         to_stopped_data_address.
1963
1964 2010-03-08  Hui Zhu  <teawater@gmail.com>
1965
1966         * i386-tdep.c (i386_process_record): Initialize regnum.
1967
1968 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1969
1970         * symfile.c (addr_info_make_relative): New variable sect_name, use it.
1971         Do not warn on ".gnu.liblist" and ".gnu.conflict".
1972
1973 2010-03-08  Joel Brobecker  <brobecker@adacore.com>
1974
1975         Memory error when reading wrong core file.
1976         * solib-svr4.c (solib_svr4_r_map): catch and print all exception
1977         errors while reading the inferior memory, and return zero if
1978         an exception was raised.
1979
1980 2010-03-07  Michael Snyder  <msnyder@vmware.com>
1981
1982         * record.c (record_restore): Rename tmpu8 to rectype.
1983
1984         * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
1985         tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
1986
1987         (i386_record_push): Rename local tmpulongest to addr.
1988
1989         (i386_process_record): Rename local tmpulongest to addr.
1990
1991         Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
1992         addr64.
1993
1994         Rename local variable tmpu8 to opcode8 and regnum.
1995
1996 2010-03-07  Joel Brobecker  <brobecker@adacore.com>
1997
1998         * remote.c (remote_get_ada_task_ptid): New function.
1999         (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
2000
2001 2010-03-06  Christopher Faylor  <me+cygwin@cgf.cx>
2002
2003         * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
2004         block.  Define helper macros to reduce ifdefs in code.
2005         (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
2006         size.  Call unadorned GetModuleFileNameEx rather than
2007         GetModuleFileNameEx*.
2008         (windows_make_so): Use __PMAX to denote maximum buffer size and
2009         cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
2010         appropriate.
2011         (get_image_name): Use __PMAX to denote maximum buffer size.
2012         (handle_load_dll): Likewise.
2013         (windows_pid_to_exec_file): Likewise.
2014         (windows_create_inferior): Add many accommodations for older Cygwin and
2015         non-Cygwin.
2016         (bad_GetModuleFileNameExW): Control inclusion of this function based on
2017         __USEWIDE conditional.
2018         (bad_GetModuleFileNameExA): Likewise.
2019         (_initialize_loadable): Just use real function names without the dyn_
2020         part since they are defined earlier.
2021
2022 2010-03-05  Corinna Vinschen  <vinschen@redhat.com>
2023             Tom Tromey  <tromey@redhat.com>
2024
2025         * utils.c (host_char_to_target): Add 'gdbarch' argument.
2026         (parse_escape): Likewise.
2027         * python/py-utils.c (unicode_to_target_string): Update.
2028         (unicode_to_target_python_string): Update.
2029         (target_string_to_unicode): Update.
2030         * printcmd.c (printf_command): Update.
2031         * p-exp.y (yylex): Update.
2032         * objc-exp.y (yylex): Update.
2033         * mi/mi-parse.c: Include charset.h.
2034         (mi_parse_escape): New function.
2035         (mi_parse_argv): Use it.
2036         * jv-exp.y (yylex): Update.
2037         * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
2038         function.
2039         (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
2040         * gdbarch.sh (auto_charset, auto_wide_charset): New.
2041         * gdbarch.c: Rebuild.
2042         * gdbarch.h: Rebuild.
2043         * defs.h (parse_escape): Update.
2044         * cli/cli-setshow.c: Include arch-utils.h.
2045         (do_setshow_command): Update.
2046         * cli/cli-cmds.c (echo_command): Update.
2047         * charset.h (target_charset, target_wide_charset): Update.
2048         * charset.c: Include arch-utils.h.
2049         (target_charset_name): Default to "auto".
2050         (target_wide_charset_name): Likewise.
2051         (show_target_charset_name): Handle "auto".
2052         (show_target_wide_charset_name): Likewise.
2053         (be_le_arch): New global.
2054         (set_be_le_names): Add 'gdbarch' argument.
2055         (validate): Likewise.  Don't call set_be_le_names.
2056         (set_charset_sfunc, set_host_charset_sfunc)
2057         (set_target_charset_sfunc, set_target_wide_charset_sfunc):
2058         Update.
2059         (target_charset): Add 'gdbarch' argument.
2060         (target_wide_charset): Likewise.  Remove 'byte_order' argument.
2061         (auto_target_charset_name): New global.
2062         (default_auto_charset, default_auto_wide_charset): New functions.
2063         (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
2064         for target charsets.  Copy result of nl_langinfo.  Use GetACP if
2065         USE_WIN32API.
2066         * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
2067         remove 'byte_order' argument.  Update.
2068         (classify_type): Likewise.
2069         (c_emit_char): Update.
2070         (c_printchar): Update.
2071         (c_printstr): Update.
2072         (c_get_string): Update.
2073         (evaluate_subexp_c): Update.
2074         * arch-utils.h (default_auto_charset, default_auto_wide_charset):
2075         Declare.
2076         * python/python.c (gdbpy_target_charset): New function.
2077         (gdbpy_target_wide_charset): Likewise.
2078         (GdbMethods): Update.
2079         * NEWS: Update.
2080
2081 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
2082
2083         * symfile.c (build_section_addr_info_from_objfile): Do not mask
2084         off high address bits.
2085
2086 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
2087
2088         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
2089         address as UnsignedLongLong, not LongLong.
2090
2091 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
2092             Pedro Alves  <pedro@codesourcery.com>
2093
2094         * remote-mips.c (gdbthread.h): Include.
2095         (remote_mips_ptid): Declare.
2096         (mips_error): Only mourn the inferior when inferior_ptid is non-null.
2097         (common_open): Set inferior_ptid, add it as an inferior, and
2098         as a thread too.  Delete FIXME comment regarding start_remote().
2099         (mips_close): Invoke generic_mourn_inferior().
2100         (mips_kill): Make sure that target_mourn_inferior is invoked.
2101         (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
2102         it's now invoked from mips_close().
2103         (mips_load): Don't null out inferior_ptid.  Don't call
2104         clear_symtab_users().
2105         (mips_thread_alive, mips_pid_to_str): New functions.
2106         (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
2107         to_thread_alive and to_pid_to_str operations.
2108
2109 2010-03-04  Tom Tromey  <tromey@redhat.com>
2110
2111         * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
2112         in DWARF 3 and later.
2113         (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
2114
2115 2010-03-04  Keith Seitz  <keiths@redhat.com>
2116
2117         * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
2118         If the filename portion of the linespec was quoted, recheck the
2119         remainder for additional quoting.
2120         (locate_first_half): Skip over completer chars, too.
2121
2122 2010-03-04  Tom Tromey  <tromey@redhat.com>
2123
2124         * printcmd.c (printf_command): Pass dummy argument to
2125         printf_filtered.
2126
2127 2010-03-04  Doug Evans  <dje@google.com>
2128
2129         * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
2130         unwound_fp.
2131
2132         * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
2133
2134 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
2135
2136         * breakpoint.c (update_watchpoint): Create a sentinel location if
2137         the software watchpoint isn't watching any memory.
2138         (breakpoint_address_bits): Skip dummy software watchpoint locations.
2139
2140 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
2141
2142         * utils.c (fputs_maybe_filtered): Check if there's already a top
2143         level interpreter before dereferencing it.  If there isn't one,
2144         don't paginate either.
2145
2146 2010-03-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2147
2148         * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
2149         the state right when single stepping.
2150         (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
2151         Get the next PC along with the instruction state.
2152         (thumb_get_next_pc): Remove.
2153         (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
2154
2155 2010-03-04  Hui Zhu  <teawater@gmail.com>
2156
2157         * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
2158
2159 2010-03-03  Pedro Alves  <pedro@codesourcery.com>
2160
2161         * utils.c (fputs_maybe_filtered): Always disable pagination if the
2162         top level interpreter is MI.
2163
2164 2010-03-03 Stan Shebs  <stan@codesourcery.com>
2165
2166         * remote.c (remote_download_tracepoint): Iterate over locations.
2167         * tracepoint.c (validate_actionline): Ditto.
2168         (encode_actions): Add location argument.
2169         (trace_dump_command): Check all locations to see if stepping
2170         frame.
2171
2172 2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>
2173             Eli Zaretskii  <eliz@gnu.org>
2174
2175         * NEWS: Add X86 general purpose registers section.
2176
2177 2010-03-03  Tom Tromey  <tromey@redhat.com>
2178
2179         PR mi/11098:
2180         * varobj.c (install_new_value): Handle case where new print_value
2181         is NULL.
2182
2183 2010-03-03  Dainis Jonitis  <jonitis@gmail.com>
2184
2185         PR gdb/11345:
2186         * printcmd.c (printf_command): Print end of format string using
2187         printf_filtered.
2188
2189 2010-03-02  Tom Tromey  <tromey@redhat.com>
2190
2191         * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
2192         * defs.h (read_command_lines_1): Add missing 'void'.
2193         * cli/cli-script.c (recurse_read_control_structure): Add missing
2194         'void'.
2195         (read_next_line): Likewise.
2196         (read_command_lines_1): Likewise.
2197
2198 2010-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
2199
2200         * spu-tdep.c (spu_analyze_prologue): Track instruction to
2201         store backchain as part of prologue.
2202
2203 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
2204
2205         * progspace.c (update_address_spaces): Update inferior address spaces
2206         also.
2207
2208 2010-03-02  Doug Evans  <dje@google.com>
2209
2210         * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
2211         lowpc,highpc args to addrmap_set_empty.
2212
2213 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
2214
2215         * amd64-tdep.c (amd64_byte_names): New.
2216         (amd64_word_names): Likewise.
2217         (amd64_dword_names): Likewise.
2218         (amd64_pseudo_register_name): Likewise.
2219         (amd64_pseudo_register_read): Likewise.
2220         (amd64_pseudo_register_write): Likewise.
2221         (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
2222         and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
2223         set_gdbarch_pseudo_register_write and
2224         set_tdesc_pseudo_register_name.  Don't call
2225         set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
2226
2227         * i386-tdep.c (i386_num_mmx_regs): Removed.
2228         (i386_num_pseudo_regs): Likewise.
2229         (i386_byte_names): New.
2230         (i386_word_names): Likewise.
2231         (i386_byte_regnum_p): Likewise.
2232         (i386_word_regnum_p): Likewise.
2233         (i386_mmx_regnum_p): Updated.
2234         (i386_pseudo_register_name): Make it global.  Handle byte and
2235         word pseudo-registers.
2236         (i386_pseudo_register_read): Likewise.
2237         (i386_pseudo_register_write): Likewise.
2238         (i386_pseudo_register_type): Handle byte, word and dword
2239         pseudo-registers
2240         (i386_register_reggroup_p): Don't include pseudo
2241         registers, except for MXX, in any register groups.  Don't
2242         include pseudo byte, word, dword registers in general_reggroup.
2243         (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
2244         num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
2245         pseudo-registers after word pseudo-registers.  Call
2246         set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
2247
2248         * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
2249         al_regnum, num_word_regs, ax_regnum, num_dword_regs and
2250         eax_regnum.
2251         (i386_byte_regnum_p): New.
2252         (i386_word_regnum_p): Likewise.
2253         (i386_dword_regnum_p): Likewise.
2254         (i386_pseudo_register_name): Likewise.
2255         (i386_pseudo_register_read): Likewise.
2256         (i386_pseudo_register_write): Likewise.
2257
2258 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2259
2260         * target-descriptions.c (tdesc_type): Remove
2261         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2262         (tdesc_predefined_types): Likewise.
2263         (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
2264         if flag name is empty.
2265         (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
2266
2267         * features/i386/32bit-core.xml: Define i386_eflags.
2268         * features/i386/64bit-core.xml: Likewise.
2269
2270         * features/i386/32bit-sse.xml: Define i386_mxcsr.
2271         * features/i386/64bit-sse.xml: Likewise.
2272
2273         * features/i386/amd64-linux.c: Regenerated.
2274         * features/i386/amd64.c: Likewise.
2275         * features/i386/i386-linux.c: Likewise.
2276         * features/i386/i386.c: Likewise.
2277
2278 2010-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
2279
2280         * gdbtypes.c (append_composite_type_field_raw): New.
2281         (append_composite_type_field_aligned): Use the new function.
2282         * gdbtypes.h (append_composite_type_field_raw): Declare.
2283         * target-descriptions.c (struct tdesc_type_field): Add start and end.
2284         (struct tdesc_type_flag): New type.
2285         (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
2286         kind.  Add size to u.u.  Add u.f for flags.
2287         (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
2288         (tdesc_free_type): Likewise.
2289         (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
2290         (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
2291         (tdesc_add_bitfield, tdesc_add_flag): New.
2292         * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
2293         (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
2294         * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
2295         current_type.  Add current_type_size and current_type_is_flags.
2296         (tdesc_start_union): Clear the new fields.
2297         (tdesc_start_struct, tdesc_start_flags): New.
2298         (tdesc_start_field): Handle struct fields, including bitfields.
2299         (field_attributes): Make type optional.  Add start and end.
2300         (union_children): Rename to struct_union_children.
2301         (union_attributes): Rename to struct_union_attributes.  Add optional
2302         size.
2303         (flags_attributes): New.
2304         (feature_children): Add struct and flags.
2305         * features/gdb-target.dtd: Add flags and struct to features.
2306         Make field type optional.  Add field start and end.
2307
2308 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2309
2310         * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
2311         (amd64_linux_read_description): Likewise.
2312         (_initialize_amd64_linux_nat): Set to_read_description to
2313         amd64_linux_read_description.
2314
2315         * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
2316         (amd64_linux_register_name): Removed.
2317         (amd64_linux_register_type): Likewise.
2318         (amd64_linux_core_read_description): New.
2319         (amd64_linux_init_abi): Set target description to
2320         tdesc_amd64_linux if needed.  Support orig_rax in target
2321         description.  Don't call set_gdbarch_register_name nor
2322         set_gdbarch_register_type.  Call
2323         set_gdbarch_core_read_description.
2324         (_initialize_amd64_linux_tdep): Call
2325         initialize_tdesc_amd64_linux.
2326
2327         * amd64-linux-tdep.h (tdesc_amd64_linux): New.
2328
2329         * amd64-tdep.c:  Include "features/i386/amd64.c".
2330         (amd64_register_names): Removed.
2331         (amd64_register_name): Likewise.
2332         (amd64_register_type): Likewise.
2333         (amd64_init_abi):  Set num_core_regs and register_names.  Set
2334         target description to tdesc_amd64 if needed.  Don't call
2335         set_gdbarch_register_name nor set_gdbarch_register_type.
2336         (_initialize_amd64_tdep): New.
2337
2338         * i386-linux-nat.c (i386_linux_read_description): New.
2339         (_initialize_i386_linux_nat): Set to_read_description to
2340         i386_linux_read_description.
2341
2342         * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
2343         (i386_linux_register_name): Removed.
2344         (i386_linux_core_read_description): New.
2345         (i386_linux_read_description): Likewise.
2346         (i386_linux_init_abi): Don't call set_gdbarch_register_name.
2347         Set target description to tdesc_i386_linux if needed.  Support
2348         orig_eax.  Set register_reggroup_p.  Call
2349         set_gdbarch_core_read_description.
2350         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
2351
2352         * i386-linux-tdep.h (tdesc_i386_linux): New.
2353
2354         * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
2355         with I387_NUM_REGS.
2356
2357         * i386-tdep.c: Include "features/i386/i386.c".
2358         (i386_register_names): Make it const.
2359         (i386_mmx_names): Likewise.
2360         (i386_num_register_names): Removed.
2361         (i386_register_name): Likewise.
2362         (i386_eflags_type): Likewise.
2363         (i386_mxcsr_type): Likewise.
2364         (i386_sse_type): Likewise.
2365         (i386_register_type): Likewise.
2366         (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
2367         (i386_pseudo_register_name): New.
2368         (i386_pseudo_register_type): Likewise.
2369         (i386_mmx_type): Make it static.
2370         (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
2371         I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
2372         call set_gdbarch_register_name nor set_gdbarch_register_type.
2373         Set register_reggroup_p.  Set target description to tdesc_i386
2374         if needed.  Call set_tdesc_pseudo_register_type,
2375         set_tdesc_pseudo_register_name and tdesc_use_registers.
2376         (_initialize_i386_tdep): Call initialize_tdesc_i386.
2377         initialize_tdesc_x86_64.
2378
2379         * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
2380         i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
2381         register_names, tdesc and register_reggroup_p.
2382         (I386_NUM_FREGS): Removed.
2383         (i386_eflags_type): Likewise.
2384         (i386_mxcsr_type): Likewise.
2385         (i386_mmx_type): Likewise.
2386         (i386_sse_type): Likewise.
2387         (i386_register_name): Likewise.
2388         (i386_regnum): Add I386_MXCSR_REGNUM.
2389         (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
2390
2391         * i387-tdep.h (I387_NUM_REGS): New.
2392
2393         * regformats/i386/i386-linux.dat: Generated.
2394         * regformats/i386/i386.dat: Likewise.
2395         * regformats/i386/amd64-linux.dat: Likewise.
2396         * regformats/i386/amd64.dat: Likewise.
2397
2398         * regformats/reg-i386-linux.dat: Removed.
2399         * regformats/reg-i386.dat: Likewise.
2400         * regformats/reg-x86-64-linux.dat: Likewise.
2401         * regformats/reg-x86-64.dat: Likewise.
2402
2403 2010-03-01  Corinna Vinschen  <vinschen@redhat.com>
2404
2405         * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
2406         cygwin_conv_path API rather than the deprecated
2407         cygwin_conv_to_full_posix_path.
2408         * windows-nat.c:
2409         (GetModuleFileNameExA): Undefine for Cygwin.
2410         (GetModuleFileNameExW): Define for Cygwin.
2411         (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
2412         Call GetModuleFileNameExW and convert path to POSIX using
2413         cygwin_conv_path.
2414         (windows_make_so): Always define p.  Drop unused variable m.
2415         Don't use Win32 functions to check file existance, rather use
2416         access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
2417         Use canonicalize_file_name to get full path.
2418         (get_image_name): Use wcstombs, rather than WideCharToMultiByte
2419         to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
2420         use correct target buffer size in call to WideCharToMultiByte.
2421         (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
2422         (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
2423         (windows_create_inferior): Convert all paths and arguments to wchar_t
2424         and use CreateProcessW on Cygwin.
2425         (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
2426         (bad_GetModuleFileNameExA): Undefine for Cygwin.
2427         (bad_GetModuleFileNameExW): Define for Cygwin.
2428         (_initialize_loadable): Load GetModuleFileNameExW into
2429         dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
2430
2431 2010-02-28  Phil Muldoon  <pmuldoon@redhat.com>
2432
2433         PR python/11036
2434         * python/py-frame.c (frapy_read_var): Add block argument and logic
2435         to cope with user provided blocks.
2436
2437 2010-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2438
2439         * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
2440         New comment.
2441
2442 2010-02-28  Corinna Vinschen  <vinschen@redhat.com>
2443
2444         * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
2445         (COMMON_OBS): ... to here since it's used unconditionally.
2446         (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
2447         (SFILES): To here.
2448
2449 2010-02-26  David Daney  <ddaney@caviumnetworks.com>
2450
2451         * mips-linux-tdep.c: Update struct sigframe comments.
2452         (SIGFRAME_CODE_OFFSET): Delete macro.
2453         (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
2454         this_frame's sp.
2455         (mips_linux_n32n64_sigframe_init): Same.
2456
2457 2010-02-26  Kevin Buettner  <kevinb@redhat.com>
2458
2459         * remote-mips.c (mips_load): Don't use pseudo-register when
2460         invalidating regcache.
2461
2462 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
2463
2464         * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
2465
2466 2010-02-26  Pedro Alves  <pedro@codesourcery.com>
2467
2468         * NEWS: Add "New targets" section, and mention ARM Symbian
2469         support.
2470
2471 2010-02-26  Ulrich Weigand  <uweigand@de.ibm.com>
2472
2473         * dwarf2loc.c (struct piece_closure): Remove ARCH member,
2474         add ADDR_SIZE member.
2475         (allocate_piece_closure): Update.
2476         (copy_pieced_value_closure): Likewise.
2477         (dwarf2_evaluate_loc_desc): Likewise.
2478         (read_pieced_value): Use DWARF address size instead of
2479         GDB's gdbarch_addr_bit as size of values on the DWARF stack.
2480
2481 2010-02-26  Phil Muldoon  <pmuldoon@redhat.com>
2482             Tom Tromey  <tromey@redhat.com>
2483
2484         * python/py-type.c (typy_lookup_typename): Add in block argument.
2485         If provided restrict lookup to specified blocks.
2486         (gdbpy_lookup_type): Likewise.
2487         (typy_lookup_type): Likewise.
2488
2489 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
2490
2491         Symbian config
2492
2493         gdb/
2494         * arm-symbian-tdep.c: New.
2495         * configure.tgt (arm*-*-symbianelf*): New target.
2496         (*-*-symbianelf*): New OS.
2497         * osabi.c (gdb_osabi_names): Add Symbian.
2498         * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
2499         * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
2500         (ALLDEPFILES): Add arm-symbian-tdep.c.
2501
2502 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
2503
2504         * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
2505
2506 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
2507
2508         * mi/mi-main.c (mi_cmd_execute): Fix typo.
2509
2510 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
2511             Tom Tromey  <tromey@redhat.com>
2512             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2513
2514         * python/python.c (_initialize_python): Call
2515         gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
2516         gdbpy_initialize_blocks.
2517         * python/python-internal.h: Declare struct symbol, block and
2518         symtab_and_line.  Declare block_object_type and
2519         symbol_object_type
2520         (gdbpy_lookup_symbol gdbpy_block_for_pc)
2521         (symtab_and_line_to_sal_object, symtab_to_symtab_object)
2522         (symbol_to_symbol_object,  block_to_block_object)
2523         (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
2524         (gdbpy_initialize_blocks ): Declare.
2525         * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
2526         (frapy_select): Add methods.
2527         (frapy_read_var): Add symbol branch.
2528         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
2529         py-block.
2530         (SUBDIR_PYTHON_SRCS): Likewise.
2531         (py-symbol.o): New rule.
2532         (py-symtab.o): Likewise.
2533         (py-block.o): Likewise.
2534         * python/py-symbol.c: New file.
2535         * python/py-symtab.c: Likewise.
2536         * python/py-block.c: Likewise.
2537
2538 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
2539
2540         PR gdb/11321
2541
2542         * inferior.h (prepare_for_detach): Declare.
2543         (struct inferior) <detaching>: New field.
2544         * infrun.c (prepare_for_detach): New.
2545         (handle_inferior_event) <random signal>: Don't stop if detaching.
2546         * target.c (target_detach): Call prepare_for_detach.
2547
2548 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
2549
2550         Per-process displaced stepping queue.
2551
2552         * infrun.c (displaced_step_ptid, displaced_step_request_queue)
2553         (displaced_step_gdbarch, displaced_step_closure,
2554         (displaced_step_original, displaced_step_copy): Move globals to
2555         this...
2556         (struct displaced_step_inferior_state): ... new structure.
2557         (displaced_step_inferior_states): New global.
2558         (get_displaced_stepping_state, add_displaced_stepping_state)
2559         (remove_displaced_stepping_state, infrun_inferior_exit): New
2560         functions.
2561         (displaced_step_clear): Add displaced_step_inferior_state
2562         parameter, and adjust to handle it.
2563         (displaced_step_clear_cleanup): Parameter is now a
2564         displaced_step_inferior_state.  Adjust.
2565         (displaced_step_prepare): Adjust.
2566         (displaced_step_fixup, displaced_step_fixup)
2567         (infrun_thread_ptid_changed, resume): Adjust.
2568         (init_wait_for_inferior): Don't call displaced_step_clear.
2569         (infrun_thread_stop_requested): Rewrite.
2570         (_initialize_infrun): Install infrun_inferior_exit as
2571         inferior_exit observer.
2572
2573 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
2574
2575         * inferior.h (ptid_match): Declare.
2576         * infrun.c (ptid_match): New.
2577         * remote.c (queued_stop_reply): Rewrite and use ptid_match.
2578         (handle_notification): Add debug output.
2579         * linux-nat.c (ptid_match): Delete.
2580
2581 2010-02-24  David S. Miller  <davem@davemloft.net>
2582
2583         * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
2584         * syscalls/sparc-linux.xml: New.
2585         * syscalls/sparc64-linux.xml: New.
2586         * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
2587         * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
2588         (sparc32_linux_get_syscall_number): New function.
2589         (sparc32_linux_init_abi): Set syscall XML file name and hook up
2590         syscall number fetcher.
2591         * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
2592         (sparc64_linux_get_syscall_number): New function.
2593         (sparc64_linux_init_abi): Set syscall XML file name and hook up
2594         syscall number fetcher.
2595
2596 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
2597
2598         Multiexec MI
2599
2600         * breakpoint.c (clear_syscall_counts): Take struct inferior*.
2601         * inferior.c (add_inferior_silent): Notify inferior_added
2602         observer.
2603         (delete_inferior_1): Notify inferior_removed observer.
2604         (exit_inferior_1): Pass inferior, not pid, to observer.
2605         (inferior_appeared): Likewise.
2606         (add_inferior_with_spaces): New.
2607         (add_inferior_command): Use the above.
2608         * inferior.h (delete_inferior_1, add_inferior_with_spaces):
2609         Declare.
2610
2611         * inflow.c (inflow_inferior_exit): Likewise.
2612         * jit.c (jit_inferior_exit_hook): Likewise.
2613
2614         * mi/mi-cmds.c (mi_cmds): Register add-inferior and
2615         remove-inferior.
2616         * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
2617         * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
2618         (report_initial_inferior): New.
2619         (mi_inferior_removed): Register the above. Make sure
2620         inferior_added observer is called on the first inferior.
2621         (mi_new_thread, mi_thread_exit): Thread group is now identified by
2622         inferior number, not pid.
2623         (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
2624         affected.
2625         * mi/mi-main.c (current_context): New.
2626         (proceed_thread_callback): Use typed closure.
2627         Proceed everything if pid is 0. Most implementation split into
2628         (proceed_thread): ... this.
2629         (run_one_inferior): New.
2630         (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
2631         Adjust for multiexec behaviour.
2632         (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
2633         (mi_cmd_execute): Handle the 'thread-group' option here.
2634         Do some extra checks.
2635         * mi-parse.c (mi_parse): Handle the --all and --thread-group
2636         options.
2637         * mi-parse.h (struct mi_parse): New fields all and thread_group.
2638
2639 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
2640
2641         Make -exec-run a proper MI commands.
2642
2643         * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
2644         * mi/mi-cmds.c (mi_cmds): Adjust.
2645         * mi/mi-main.c (mi_cmd_exec_run): New.
2646
2647 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
2648             Stan Shebs  <stan@codesourcery.com>
2649
2650         * tracepoint.h (set_traceframe_number)
2651         (cleanup_restore_current_traceframe): Declare.
2652         * tracepoint.c (set_traceframe_number): New.
2653         (struct current_traceframe_cleanup): New.
2654         (do_restore_current_traceframe_cleanup)
2655         (restore_current_traceframe_cleanup_dtor)
2656         (make_cleanup_restore_current_traceframe): New.
2657         * infrun.c: Include tracepoint.h.
2658         (fetch_inferior_event): Switch out and in of tfind mode.
2659
2660 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
2661
2662         * breakpoint.c (breakpoint_init_inferior): Also delete
2663         bp_shlib_event breakpoints.
2664         * solib-frv.c (enable_break): Remove call to
2665         remove_solib_event_breakpoints.
2666         * solib-svr4.c (enable_break): Ditto.
2667         * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
2668         * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
2669         * solib-som.c (som_solib_create_inferior_hook): Ditto.
2670         * solib-spu.c (spu_enable_break): Ditto.
2671
2672 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
2673
2674         * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
2675
2676 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
2677
2678         * varobj.c (varobj_update): Avoid non-constants in initializers.
2679
2680 2010-02-23  Tom Tromey  <tromey@redhat.com>
2681
2682         * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
2683         handle big-endian values.
2684         (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
2685
2686 2010-02-22  Pedro Alves  <pedro@codesourcery.com>
2687
2688         PR9605
2689
2690         gdb/
2691         * breakpoint.c (insert_bp_location): If inserting the read
2692         watchpoint failed, fallback to an access watchpoint.
2693         (bpstat_check_watchpoint): Stop for read watchpoint triggers even
2694         if the value changed, if not watching the same memory for writes.
2695         (watchpoint_locations_match): Add comment.
2696         (update_global_location_list): Copy the location's watchpoint type.
2697         * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
2698         handle read watchpoints here.
2699         (i386_insert_watchpoint): Read watchpoints aren't supported.
2700         * remote.c (remote_insert_watchpoint): Return 1 for unsupported
2701         packets.
2702         * target.h (target_insert_watchpoint): Update description.
2703
2704 2010-02-19  Tom Tromey  <tromey@redhat.com>
2705
2706         * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
2707         * m2-typeprint.c (m2_print_type): Update.
2708         * gdbtypes.c (recursive_dump_type): Update.
2709         (copy_type_recursive): Update.
2710         * c-typeprint.c (c_type_print_varspec_prefix): Update.
2711         (c_type_print_base): Update.
2712         * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
2713         Remove.
2714         (struct cplus_struct_type) <ntemplate_args>: Remove.
2715         <struct template_arg>: Remove.
2716         <is_dynamic>: Move earlier.
2717         (TYPE_TEMPLATE_ARGS): Remove.
2718         (TYPE_NTEMPLATE_ARGS): Remove.
2719         (TYPE_TEMPLATE_ARG): Remove.
2720
2721 2010-02-19  Tom Tromey  <tromey@redhat.com>
2722
2723         PR c++/8693, PR c++/9496:
2724         * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
2725         * c-exp.y (lex_one_token): Rename from yylex.  Don't call
2726         write_dollar_variable.  Don't try to classify NAME tokens.
2727         (token_and_value): New type.
2728         (token_fifo, popping, name_obstack): New globals.
2729         (classify_name): New function.
2730         (classify_inner_name): Likewise.
2731         (yylex): Likewise.
2732         (VARIABLE): Now has type sval.
2733         (exp : VARIABLE): Call write_dollar_variable.
2734         (qualified_name): Use TYPENAME, not typebase.  Add production for
2735         multiple "::" instances.
2736         (variable): Use name_not_typename.
2737         (qualified_type): Remove.
2738         (typebase): Update.
2739
2740 2010-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2741
2742         * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
2743         a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
2744         found by bfd_get_section_by_name.
2745         * symfile.h (struct section_addr_info) <sectindex>: New comment.
2746
2747 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
2748
2749         * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
2750         7.0 section" into "Changes in 7.1".
2751
2752 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
2753
2754         GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
2755         * version.in: Bump version to 7.1.50.20100219-cvs.
2756
2757 2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>
2758
2759         * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
2760         * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
2761
2762 2010-02-17  Tom Tromey  <tromey@redhat.com>
2763
2764         * NEWS: Add Python API Improvements section.
2765
2766 2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
2767
2768         * NEWS: Correct typo.
2769
2770 2010-02-17  Tom Tromey  <tromey@redhat.com>
2771
2772         * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
2773
2774 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2775
2776         * symfile.c (build_section_addr_info_from_objfile): Include sections
2777         only if they are SEC_ALLOC or SEC_LOAD.
2778
2779 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2780
2781         PR shlibs/11293
2782         * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
2783         of ULONGEST for address size.
2784
2785 2010-02-17  Tom Tromey  <tromey@redhat.com>
2786
2787         * NEWS: Add C++ improvements section.
2788
2789 2010-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
2790
2791         * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
2792         PyThreadState_Swap): Avoid "statement with no effect" warning.
2793
2794 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2795
2796         * solib-svr4.c (enable_break <target_auxv_search>): New variable
2797         addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
2798
2799 2010-02-17  Tristan Gingold  <gingold@adacore.com>
2800             Petr Hluzín <petr.hluzin@gmail.com>
2801
2802         * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
2803         gdb_assert.  Fix info->size for SIG prologue.
2804
2805 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
2806
2807         * infcmd.c (show_inferior_tty_command): Check for NULL.
2808         Correct output message.
2809
2810 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
2811
2812         * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
2813         FUNCTION contains parentheses.  Improve removal of a trailing
2814         single quote.
2815
2816 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
2817
2818         * gcore.c (do_bfd_delete_cleanup): New function.
2819         (gcore_command): Use it.  Discard the cleanup after success.
2820         (gcore_copy_callback): Delete dead code.
2821
2822 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
2823
2824         * symfile.c (addr_info_make_relative): Always use
2825         find_lowest_section.
2826
2827 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
2828
2829         * NEWS: Added entry for namespace fixes.
2830
2831 2010-02-15  Tom Tromey  <tromey@redhat.com>
2832
2833         * dwarf2read.c (guess_structure_name): Allocate name on the
2834         objfile obstack.
2835
2836 2010-02-15  Tom Tromey  <tromey@redhat.com>
2837
2838         * c-typeprint.c (c_type_print_base): Reverse order of test.
2839
2840 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2841
2842         * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
2843         initialize it from ELF BFD.  Extend the prelink condition by it.
2844
2845 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2846
2847         * defs.h (parse_pid_to_attach): New.
2848         * utils.c (parse_pid_to_attach): New.
2849         * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
2850         * gnu-nat.c (gnu_attach): Likewise.
2851         * nto-procfs.c (procfs_attach): Likewise.
2852         * procfs.c (procfs_attach): Likewise.
2853         * windows-nat.c (windows_attach): Likewise.
2854         * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
2855         * inf-ttrace.c (inf_ttrace_attach): Likewise.
2856         * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
2857         check.
2858
2859 2010-02-14  Masaki Muranaka  <monaka@monami-software.com>
2860
2861         * MAINTAINERS: Add myself for write after approval privileges.
2862
2863 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2864
2865         * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
2866         block.
2867
2868 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2869
2870         * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
2871         only if INFO_VERBOSE.
2872
2873 2010-02-12  Tomas Holmberg <th@virtutech.com>
2874
2875         * mi/mi-main.c: Added the --reverse flag to the following MI
2876         commands: exec-continue, exec-finish, exec-next, exec-step,
2877         exec-next-instruction, exec-step-instruction. This is to
2878         support reverse execution over the MI interface to gdb.
2879
2880 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
2881
2882         * tracepoint.c (_initialize_tracepoint): Specify that the address
2883         range of `tfind outsize' is exclusive, and that the address range
2884         of `tfind range' is inclusive, in the commands' help strings.
2885
2886 2010-02-12  Joel Brobecker  <brobecker@adacore.com>
2887
2888         Spurious "dll not found" error messages on x64-windows.
2889         * windows-nat.c: Add include of complaints.h.
2890         (handle_unload_dll): Change dll-not-found error into a complaint.
2891
2892 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
2893
2894         * breakpoint.c (allocate_bp_location): Use bp_loc_other for
2895         bp_tracepoint and bp_fast_tracepoint, not
2896         bp_loc_software_breakpoint.
2897         (update_global_location_list): Tracepoints are never duplicates of
2898         anything.
2899
2900 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
2901
2902         * breakpoint.c (break_command_really): Change return type to int.
2903         Return false if no breakpoint was created, true otherwise.
2904         (trace_command): Don't set the tracepoint count if no tracepoint
2905         was created.
2906         (ftrace_command): Ditto.
2907         (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
2908         created in the breakpoints table.
2909
2910 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2911             Ulrich Weigand  <uweigand@de.ibm.com>
2912
2913         * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
2914
2915 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
2916
2917         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
2918         the offset value isn't of integral type.
2919
2920 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2921
2922         * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
2923         New.
2924
2925 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
2926
2927         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
2928         non-subscriptable types.
2929         * valarith.c (binop_types_user_defined_p): New, abstracted out
2930         from ...
2931         (binop_user_defined_p): ... this.
2932         * value.h (binop_types_user_defined_p): Declare.
2933
2934 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
2935
2936         * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
2937         Merge uploaded TSVs before merging uploaded tracepoints.
2938
2939 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
2940
2941         * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
2942
2943 2010-02-11  Vladimir Prus  <vladimir@codesourcery.com>
2944
2945         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
2946         whitespace character after a dot in comment.
2947         (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
2948         Likewise.
2949         (list_args_or_locals): For the 'all' (that is
2950         -stack-list-variables) case, always output list of tuples.
2951         Output 'arg' field if variable is argument.
2952
2953 2010-02-10  Tom Tromey  <tromey@redhat.com>
2954
2955         * parser-defs.h (parser_debug): Declare.
2956         * parse.c (_initialize_parse): Install "debug parser" set/show
2957         command.
2958         (parser_debug): New global.
2959         (show_parserdebug): New function.
2960         * c-exp.y (c_parse): Set yydebug.
2961
2962 2010-02-10  H.J. Lu  <hongjiu.lu@intel.com>
2963
2964         * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
2965         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2966         (tdesc_predefined_types): Add i387_ext, i386_eflags and
2967         i386_mxcsr.
2968         (tdesc_find_type): New.
2969         (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
2970         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2971
2972         * target-descriptions.h (tdesc_find_type): New.
2973
2974 2010-02-10  Michael Snyder  <msnyder@vmware.com>
2975
2976         * gdb-gdb.py: Comment fix.
2977
2978 2010-02-09  Tristan Gingold  <gingold@adacore.com>
2979
2980         * machoread.c (macho_symfile_relocate): New function.
2981         (macho_sym_fns): Use macho_symfile_relocate instead of
2982         default_symfile_relocate.
2983         (macho_oso_data): New type.
2984         (current_oso): New variable.
2985         (macho_add_oso_symfile): Do not compute section_addr_info, but
2986         instead set vma of sections.
2987         Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
2988         Set and clear current_oso.
2989
2990 2010-02-09  Joel Brobecker  <brobecker@adacore.com>
2991
2992         Wrong type description for tagged type parameter.
2993         * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
2994         EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
2995         reference to a tagged type.
2996
2997 2010-02-09  Tristan Gingold  <gingold@adacore.com>
2998
2999         * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
3000         brothers of the parent.
3001
3002 2010-02-08  Tom Tromey  <tromey@redhat.com>
3003
3004         PR c++/8017:
3005         * value.h: Update.
3006         * valops.c (search_struct_field): Make 'name' const.
3007         (search_struct_method): Likewise.
3008         (find_method_list): Make 'method' const.
3009         (value_struct_elt): Make 'name' and 'err' const.
3010         (value_find_oload_method_list): Make 'method' const.
3011         (find_overload_match): Make 'name' const.
3012         * eval.c (evaluate_subexp_standard): New locals function,
3013         function_name.
3014         <OP_FUNCALL>: Handle OP_SCOPE specially.
3015
3016 2010-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
3017
3018         * infrun.c (handle_inferior_event): Do not look up regcache
3019         for exited processes.
3020
3021 2010-02-08  Chris Moller  <moller@mollerware.com>
3022
3023         PR gdb/10728
3024         * valarith.c (value_ptrdiff): Added a test for a zero type length,
3025         warn if found, and assume length = 1.
3026
3027 2010-02-08  Chris Moller  <cmoller@redhat.com>
3028
3029         PR gdb/9067
3030         * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
3031         cp_print_static_field)  Fix use of obstacks.
3032
3033 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
3034
3035         * linux-nat.c (linux_nat_resume): In non-stop, also only tag
3036         resumed LWPs as resumed.
3037         (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
3038         we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
3039         of throwing an internal error.  If an LWP of a process we're not
3040         waiting for reports a signal, don't force collecting a SIGSTOP,
3041         and if it was breakpoint hit in non-stop mode, cancel it.  Don't
3042         go through all LWPs cancelling breakpoints in non-stop mode.
3043         (resume_stopped_resumed_lwps): New.
3044         (linux_nat_wait): Use it.
3045
3046 2010-02-07  H.J. Lu  <hongjiu.lu@intel.com>
3047
3048         * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
3049         i386/amd64 and i386/amd64-linux.
3050         (i386/i386-expedite): New.
3051         (i386/i386-linux-expedite): Likewise.
3052         (i386/amd64-expedite):Likewise.
3053         (i386/amd64-linux-expedite): Likewise.
3054         ($(outdir)/i386/i386-linux.dat): Likewise.
3055         ($(outdir)/i386/amd64.dat): Likewise.
3056         ($(outdir)/i386/amd64-linux.dat): Likewise.
3057
3058         * features/i386/32bit-core.xml: New.
3059         * features/i386/32bit-linux.xml: Likewise.
3060         * features/i386/32bit-sse.xml: Likewise.
3061         * features/i386/64bit-core.xml: Likewise.
3062         * features/i386/64bit-linux.xml: Likewise.
3063         * features/i386/64bit-sse.xml: Likewise.
3064         * features/i386/i386-linux.xml: Likewise.
3065         * features/i386/i386.xml: Likewise.
3066         * features/i386/amd64-linux.xml: Likewise.
3067         * features/i386/amd64.xml: Likewise.
3068         * features/i386/i386-linux.c: Likewise.
3069         * features/i386/i386.c: Likewise.
3070         * features/i386/amd64-linux.c: Likewise.
3071         * features/i386/amd64.c: Likewise.
3072
3073 2010-02-05  Sami Wagiaalla  <swagiaal@redhat.com>
3074
3075         PR c++/7935:
3076         * cp-support.h: Added char* alias element to using_direct data
3077         struct.
3078         (cp_add_using): Added char* alias argument.
3079         (cp_add_using_directive): Ditto.
3080         * cp-namespace.c: Updated with the above changes.
3081         (cp_lookup_symbol_imports): Check for aliases.
3082         * dwarf2read.c (read_import_statement): Figure out local alias
3083         for the import and pass it on to cp_add_using.
3084         (read_namespace): Pass alias argument to cp_add_using.
3085
3086 2010-02-05  Hui Zhu  <teawater@gmail.com>
3087
3088         * defs.h (gdb_bfd_errmsg): New extern.
3089         * exec.c (exec_file_attach): Change bfd_errmsg to
3090         gdb_bfd_errmsg.
3091         * utils.c (AMBIGUOUS_MESS1): New macro.
3092         (AMBIGUOUS_MESS2): New macro.
3093         (gdb_bfd_errmsg): New function.
3094
3095 2010-02-04  Doug Evans  <dje@google.com>
3096
3097         * solib-svr4.c (enable_break): Add comment.
3098
3099 2010-02-04  Anthony Green  <green@moxielogic.com>
3100
3101         * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
3102         gracefully.
3103
3104 2010-02-04  Tom Tromey  <tromey@redhat.com>
3105
3106         * valops.c (search_struct_field): Account for
3107         value_embedded_offset.  Fix check for virtual base past the end of
3108         the object.  Use value_copy when making a slice of the value.
3109
3110 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
3111
3112         PR tui/9622
3113         * tui/tui-interp.c (tui_init): Call tui_initialize_readline
3114         only if gdb_stdout is a tty.
3115
3116 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
3117
3118         * target-descriptions.c: Include "osabi.h".
3119         (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
3120         OSABI.
3121
3122 2010-02-04  Tristan Gingold  <gingold@adacore.com>
3123
3124         * machoread.c (macho_add_oso): Renamed to macho_register_oso.
3125         (macho_symtab_read): Adjust calls to macho_add_oso.
3126         (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
3127         (macho_symfile_read): Adjust call to macho_oso_symfile.
3128         (macho_new_init): Move this function after declarations.
3129         (macho_symfile_init): Ditto.
3130         * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
3131         * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
3132
3133 2010-02-04  Vladimir Prus  <vladimir@codesourcery.com>
3134
3135         Include MI command in remotelog.
3136
3137         * mi/mi-main.c (mi_execute_command): Call target_log_command.
3138
3139 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3140
3141         * remote.c (remote_state): Remove gdbarch.
3142         (init_remote_state): Don't set gdbarch.
3143         (remote_query_supported): Pass target_gdbarch instead of
3144         rs->gdbarch to gdbarch_qsupported.
3145
3146 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3147
3148         * gdbarch.sh: Add qsupported.
3149
3150         * gdbarch.c: Regenerated.
3151         * gdbarch.h: Likewise.
3152
3153         * remote.c (remote_state): Add gdbarch.
3154         (init_remote_state): Set gdbarch.
3155         (remote_query_supported): Support gdbarch_qsupported.
3156
3157 2010-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
3158
3159         * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
3160         __FreeBSD_kernel_version.
3161
3162 2010-02-03  Tristan Gingold  <gingold@adacore.com>
3163
3164         * symfile.h (struct sym_fns): Add sym_relocate field.
3165         (default_symfile_relocate): New prototype.
3166         (symfile_relocate_debug_section): First argument is now an objfile.
3167         * symfile.c (default_symfile_relocate): Rename from
3168         symfile_relocate_debug_section, first argument is now an objfile.
3169         (symfile_relocate_debug_section): New function.
3170         * coffread.c (coff_sym_fns): Set sym_relocate field.
3171         * somread.c (som_sym_fns): Ditto.
3172         * mipsread.c (ecoff_sym_fns): Ditto.
3173         * machoread.c (macho_sym_fns): Ditto.
3174         * elfread.c (elf_sym_fns): Ditto.
3175         * dwarf2read.c (dwarf2_read_section): Ditto.
3176         * xcoffread.c (xcoff_sym_fns): Ditto.
3177         * dbxread.c (aout_sym_fns): Ditto.
3178         (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
3179         (elfstab_build_psymtabs): Ditto.
3180
3181 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3182
3183         * defs.h (MAX_REGISTER_SIZE): Increase to 32.
3184
3185 2010-02-02  Tom Tromey  <tromey@redhat.com>
3186
3187         * valops.c (value_cast_structs): Try downcasting using the RTTI
3188         type.
3189
3190 2010-02-02  Tom Tromey  <tromey@redhat.com>
3191
3192         * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
3193         (gnuv2_baseclass_offset): Now static.
3194         * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
3195         * gnu-v2-abi.h: Remove.
3196
3197 2010-02-02  Tom Tromey  <tromey@redhat.com>
3198
3199         * m2-typeprint.c (m2_record_fields): Don't use
3200         TYPE_DECLARED_TYPE.
3201         * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
3202         (struct main_type) <flag_declared_class>: New field.
3203         (struct cplus_struct_type) <declared_type>: Remove.
3204         <ntemplate_args>: Move earlier.
3205         (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
3206         (DECLARED_TYPE_TEMPLATE): Remove.
3207         (TYPE_DECLARED_TYPE): Remove.
3208         * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
3209         * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
3210         * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
3211         TYPE_DECLARED_TYPE.
3212
3213 2010-02-02  Tom Tromey  <tromey@redhat.com>
3214
3215         PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
3216         * valops.c (search_struct_field): Compute nbases after calling
3217         CHECK_TYPEDEF.
3218         (check_field): Call CHECK_TYPEDEF.
3219         * cp-valprint.c (cp_print_value): Pass correct address to
3220         baseclass_offset.  Fix check for virtual base past the end of the
3221         object.  Don't offset address passed to cp_print_value_fields or
3222         apply_val_pretty_printer.
3223         (cp_print_value_fields): Fix call to val_print.
3224         (cp_print_value_fields_rtti): New function.
3225         * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
3226         * p-valprint.c (pascal_object_print_value_fields): Fix call to
3227         val_print.
3228         * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
3229         offset to address.
3230         * language.h (struct language_defn) <la_val_print>: Document.
3231         * c-lang.h (cp_print_value_fields_rtti): Declare.
3232
3233 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3234
3235         PR libc/11214:
3236         * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3237         (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
3238         (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3239
3240 2010-02-01  Michael Matz  <matz@suse.de>
3241             Daniel Jacobowitz  <dan@codesourcery.com>
3242
3243         * i386-tdep.c (i386_frame_cache): Assume valid anonymous
3244         functions use a frame pointer.
3245
3246 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3247
3248         * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
3249         by a conditional setting DYN_ADDR.  Use DYN_ADDR.
3250         * config/djgpp/fnchange.lst: Add translations for
3251         symbol-without-target_section.exp and symbol-without-target_section.c.
3252
3253 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
3254
3255         * gdbarch.sh: Set LANG and LC_ALL to C, not c.
3256         (remote_breakpoint_for_pc): Correct invalid_p check.
3257         * gdbarch.c: Regenerated.
3258
3259 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
3260
3261         * arm-tdep.c (arm_find_mapping_symbol): New function, from
3262         arm_pc_is_thumb.
3263         (arm_pc_is_thumb): Use arm_find_mapping_symbol.
3264         (extend_buffer_earlier): New function.
3265         (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
3266         (arm_adjust_breakpoint_address): New function.
3267         (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
3268
3269 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
3270
3271         * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
3272         (arm_linux_thumb2_le_breakpoint): New constants.
3273         (arm_linux_init_abi): Set thumb2_breakpoint and
3274         thumb2_breakpoint_size.
3275         * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
3276         (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
3277         Implement support for single stepping through IT blocks if
3278         a 32-bit Thumb breakpoint instruction is available.
3279         (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
3280         is available, use it when needed.
3281         (arm_remote_breakpoint_from_pc): New function.
3282         (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
3283         * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
3284         comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
3285
3286 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
3287
3288         * arch-utils.c (default_remote_breakpoint_from_pc): New function.
3289         * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
3290         * gdbarch.c, gdbarch.h: Regenerated.
3291         * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
3292         * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
3293         gdbarch_remote_breakpoint_from_pc.
3294
3295 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
3296
3297         * infrun.c (prepare_to_proceed): Handle other signals which might
3298         match a breakpoint.
3299         (handle_inferior_event): Move the check for unusual breakpoint
3300         signals earlier.
3301
3302 2010-01-29  Paul Hilfinger  <hilfinger@adacore.com>
3303
3304         amd64 - function returning record with field straddling 2 registers.
3305         * amd64-tdep.c (amd_classify_aggregate): Handle the case of
3306         a record of length <= 16 in which a field straddles the two
3307         eightbytes.
3308
3309 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
3310
3311         Implement return values on amd64-windows.
3312         * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
3313         (amd64_windows_return_value): New function.
3314         (amd64_windows_init_abi): Call set_gdbarch_return_value with
3315         amd64_windows_return_value.
3316
3317 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
3318
3319         amd64-windows: 32 bytes allocated on stack by caller for integer
3320         parameter registers.
3321         * i386-tdep.h (struct gdbarch_tdep): Add new field
3322         integer_param_regs_saved_in_caller_frame.
3323         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3324         tdep->integer_param_regs_saved_in_caller_frame to 1.
3325         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3326         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3327
3328 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
3329
3330         amd64-windows: memory args passed by pointer during function calls.
3331         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3332         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3333         where tdep->memory_args_by_pointer is non-zero.
3334         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3335         tdep->memory_args_by_pointer to 1.
3336
3337 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
3338
3339         amd64-windows: Integer parameters in function calls.
3340         * i386-tdep.h (enum amd64_reg_class): New, moved here from
3341         amd64-tdep.c.
3342         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3343         call_dummy_integer_regs, and classify.
3344         * amd64-tdep.h (amd64_classify): Add declaration.
3345         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3346         (amd64_reg_class): Delete, moved to i386-tdep.h.
3347         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
3348         Replace call to amd64_classify by call to tdep->classify.
3349         (amd64_push_arguments): Get the list of registers to use for
3350         passing integer parameters from the gdbarch tdep structure,
3351         rather than using a hardcoded one.  Replace calls to amd64_classify
3352         by calls to tdep->classify.
3353         (amd64_push_dummy_call): Get the register number used for
3354         the "hidden" argument from tdep->call_dummy_integer_regs.
3355         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3356         and tdep->call_dummy_integer_regs.  Set tdep->classify.
3357         * amd64-windows-tdep.c: Add include of gdbtypes.h.
3358         (amd64_windows_dummy_call_integer_regs): New static global.
3359         (amd64_windows_classify): New function.
3360         (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
3361         tdep->call_dummy_integer_regs and tdep->classify.
3362
3363 2010-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
3364
3365         * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
3366         for the new regcache.  All callers updated.
3367         (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
3368         (get_thread_arch_regcache): Do not set aspace here.
3369         * regcache.h (regcache_xmalloc): Update declaration.
3370
3371         * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
3372         regcache_xmalloc updated.
3373
3374 2010-01-28  Joel Brobecker  <brobecker@adacore.com>
3375
3376         Another -Wunused-function error in procfs.c (sparc-solaris)
3377         * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
3378         Only define if SYS_syssgi is defined.
3379         (remove_dbx_link_breakpoint): Delete declaration.  Move up.
3380         (dbx_link_addr, insert_dbx_link_bpt_in_file)
3381         (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
3382         is itself defined.
3383
3384 2010-01-27  Christopher Faylor  <me+cygwin@cgf.cx>
3385
3386         * windows-nat.c (windows_initialization_done): New variable.
3387         (get_windows_debug_event): Issue error when process dies before
3388         completely initializing.
3389         (do_initial_windows_stuff): Set flag to indicate when we are done with
3390         the initial steps of attaching to the child.
3391
3392 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3393
3394         * symtab.h (struct symbol <symtab>): New comment on NULL values.
3395
3396 2010-01-27  Doug Evans  <dje@google.com>
3397
3398         * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
3399
3400         * breakpoint.c (bpstat_stop_status): Delete useless code.
3401
3402 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3403
3404         * printcmd.c (display_uses_solib_p): Remove variable section.  Access
3405         objfile via SYMBOL_SYMTAB.
3406
3407 2010-01-26  Tom Tromey  <tromey@redhat.com>
3408
3409         PR exp/7643:
3410         * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
3411         coerce_array on result.
3412
3413 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
3414
3415         * cp-namespace.c (cp_lookup_symbol_namespace): Added
3416         search_parent argument.
3417         (cp_add_using): Initialize 'searched' field.
3418         (reset_directive_searched): New function.
3419         * cp-support.h: Add 'searched' field to using_direct struct.
3420         (cp_lookup_symbol_imports): Ditto.
3421         * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
3422         Perform recursive search.
3423         Implement non parent search.
3424         * valops.c (value_maybe_namespace_elt): Updated.
3425
3426 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
3427
3428         PR gdb/10929:
3429         * dwarf2read.c (read_lexical_block_scope): Create blocks for
3430         scopes which contain using directives even if they contain no
3431         declarations.
3432         * symtab.c (lookup_symbol_aux): Pass lowest level block to
3433         la_lookup_symbol_nonlocal.
3434         * cp-namespace.c (cp_lookup_symbol_nonlocal): call
3435         cp_lookup_symbol_namespace.
3436         (cp_lookup_symbol_namespace): Perform an import lookup at every
3437         block level.
3438         (cp_lookup_symbol_imports): New function.
3439         (cp_lookup_symbol_in_namespace): New function.
3440
3441 2010-01-25  Tom Tromey  <tromey@redhat.com>
3442
3443         PR gdb/11049:
3444         * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
3445         result.
3446
3447 2010-01-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3448
3449         * configure.ac: Only use host_os part when disabling TUI on osf.
3450         Use test to check variables, prefix strings with x.
3451         * configure: Regenerate.
3452
3453         * solib-osf.c (osf_current_sos): Initialize tail.
3454
3455 2010-01-25  gingold  <gingold@adacore.com>
3456
3457         * windows-nat.c (windows_continue): Use %x to print thread id.
3458         (get_windows_debug_event): Ditto.
3459
3460 2010-01-22  Tom Tromey  <tromey@redhat.com>
3461
3462         PR symtab/11199:
3463         * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
3464         type and arguments.  Use smash_to_methodptr_type.
3465         (read_structure_type): Call quirk_gcc_member_function_pointer
3466         later.
3467         * gdbtypes.h (smash_to_methodptr_type): Declare.
3468         * gdbtypes.c (smash_to_methodptr_type): New function.
3469         (lookup_methodptr_type): Use it.
3470
3471 2010-01-21  Tom Tromey  <tromey@redhat.com>
3472
3473         PR symtab/11198:
3474         * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
3475         * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
3476         * glibc-tdep.c (find_minsym_and_objfile): Remove.
3477         (glibc_skip_solib_resolver): Use
3478         lookup_minimal_symbol_and_objfile.
3479
3480 2010-01-21  Kai Tietz  <kai.tietz@onevision.com>
3481
3482         * inflow.c (check_syscall): Guard by #if clause for GO32 and
3483         WIN32 targets.
3484
3485 2010-01-20  Tom Tromey  <tromey@redhat.com>
3486
3487         PR backtrace/10770:
3488         * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
3489         BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
3490         * dwarf2expr.c (new_dwarf_expr_context): Allocate
3491         dwarf_stack_values, not CORE_ADDRs.
3492         (execute_stack_op): Change DW_OP_div and comparison operators to
3493         use signed operands.
3494
3495 2010-01-20  Vladimir Prus  <vladimir@codesourcery.com>
3496
3497         Per-inferior args and tty and environment.
3498
3499         * infcmd.c (inferior_args): Rename to ...
3500         (inferior_args_scratch): ... this.
3501         (inferior_io_terminal): Rename to ...
3502         (inferior_io_terminal_scratch): ... this.
3503         (inferior_argc, inferior_argv): Remove.
3504         (set_inferior_io_terminal, get_inferior_io_terminal): Store
3505         inside current_inferior().
3506         (set_inferior_tty_command, show_inferior_tty_command): New.
3507         (get_inferior_args, set_inferior_args): Store inside
3508         current_inferior().
3509         (notice_args_set): Likewise and rename to...
3510         (set_args_command): ... this.
3511         (set_inferior_args_vector): Likewise.
3512         (notice_args_read): Rename to...
3513         (show_args_command): ...new.
3514         (tty_command): Remove.
3515         (run_command_1): Don't free old args, as they are freed by
3516         set_inferior_arg now.
3517         (run_no_args_command): Likewise.
3518         (inferior_environ): Remove.
3519         (run_command_1): Use environment of the current inferior.
3520         (environment_info, set_environment_command)
3521         (unset_environment_command, path_info, path_command): Likewise.
3522         (_initialize_infcmd): Adjust for function and variable renames.
3523         Do not init inferior_environ.
3524         * inferior.h (set_inferior_arg): Adjust prototype.
3525         (struct inferior): New fields args, argc, argv, terminal, environment.
3526         (inferior_environ): Remove declaration.
3527         * inferior.c (free_inferior): Free new fields.
3528         (add_inferior_silent): Initialize 'environment' field.
3529         * main.c (captured_main): Set arguments only after the initial
3530         inferior has been created.  Set set_inferior_io_terminal,
3531         not tty_command.
3532         * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
3533         inferior.
3534         (_initialize_mi_cmd_env): Adjust for disappearance of global
3535         inferior_environ.
3536         * solib.c (solib_find): Use environment of the current inferior.
3537
3538 2010-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3539
3540         * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
3541         HAVE_PYTHON.
3542         (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
3543
3544 2010-01-20  Joel Brobecker  <brobecker@adacore.com>
3545
3546         Get rid of ada-lang.c:function_name_from_pc.
3547         * ada-lang.c: Add "stack.h" #include.
3548         (function_name_from_pc): Delete.
3549         (is_known_support_routine): Replace call to function_name_from_pc
3550         by call to find_frame_funname.
3551         (ada_unhandled_exception_name_addr_from_raise): Likewise.
3552
3553 2010-01-19  Tom Tromey  <tromey@redhat.com>
3554
3555         PR c++/11026:
3556         * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
3557         objfile obstack.
3558
3559 2010-01-19  Tom Tromey  <tromey@redhat.com>
3560
3561         * top.c (stop_sig, float_handler, do_nothing): Remove.
3562
3563 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3564
3565         * breakpoint.c (watchpoint_check): Check the call
3566         gdbarch_in_function_epilogue_p before calling frame_find_by_id.
3567         Extend the comment.
3568         * config/djgpp/fnchange.lst: Add translations for
3569         watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
3570         watchpoint-cond-gone-stripped.c.
3571
3572 2010-01-19  Tom Tromey  <tromey@redhat.com>
3573
3574         PR c++/8000:
3575         * dwarf2read.c (partial_die_parent_scope): Put enumeration type
3576         into parent scope, and enumerator into grandparent scope.
3577
3578 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
3579
3580         * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
3581
3582 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
3583
3584         * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
3585         i[34567]86-*-solaris2.1[0-9]*.
3586         * configure.tgt: Likewise.
3587
3588 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
3589
3590         * NEWS: Document the source command enhancement allowing it
3591         to load Python scripts. Document the "set/show script-extension"
3592         commands.
3593
3594 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
3595
3596         Add -Wunused-function to compile flags.
3597         * configure.ac: Add -Wunused-function to build_warnings.
3598         * configure: Regenerate.
3599
3600 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
3601
3602         "delete" ada-lex.c:input function, not used.
3603         * ada-lex.l: #define YY_NO_INPUT.
3604
3605 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
3606
3607         Delete free_named_symtabs and associated cleanup.
3608         * symfile.h (free_named_symtabs): Delete declaration.
3609         * symfile.c: Remove some commented out code (clear_symtab_users_once).
3610         (cashier_psymtab): Comment function out.
3611         Delete declaration.
3612         (free_named_symtabs): Delete.
3613         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
3614         * dbxread.c (end_psymtab): Likewise.
3615         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
3616         * exec.c (exec_close_1): Ditto.
3617         * xcoffread.c (xcoff_end_psymtab): Likewise.
3618
3619 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
3620
3621         * stack.c (print_block_frame_labels): Comment function out.
3622
3623 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
3624
3625         Delete unused or undefined functions.
3626         * breakpoint.c (ep_parse_optional_filename): Delete.
3627         * dcache.c (dcache_write_line): Remove declaration.
3628         * infrun.c (build_infrun): Remove declaration.
3629         * tracepoint.c (tracepoint_save_command): Remove declaration.
3630         * linux-nat.c (init_lwp_list): Delete. No longer used.
3631         * event-loop.c (check_async_signal_handlers): Delete declaration.
3632         * infrun.c (init_execution_control_state): Delete.
3633         (proceed): Update comment to avoid mentioning
3634         init_execution_control_state.
3635         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
3636         * ada-lang.c (ada_to_static_fixed_value): Delete.
3637         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
3638         * cp-namespace.c (cp_copy_usings): Delete.
3639         * xml-syscall.c (xml_number_of_syscalls): Delete.
3640         * progspace.c (find_program_space_by_num): Delete.
3641         * inflow.c (handle_sigio): Delete declaration.
3642         * hppa-tdep.c (hppa_alignof): Delete.
3643         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
3644         (mipsnbsd_core_osabi_sniffer): Delete.
3645
3646 2010-01-18  Tom Tromey  <tromey@redhat.com>
3647
3648         PR c++/9680:
3649         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
3650         (CONST_CAST): New tokens.
3651         (exp): Add new productions.
3652         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
3653         reinterpret_cast.
3654         (is_cast_operator): New function.
3655         (yylex): Handle cast operators specially.
3656         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
3657         UNOP_REINTERPRET_CAST>: New cases.
3658         * expprint.c (print_subexp_standard): Likewise.
3659         (op_name_standard): Likewise.
3660         (dump_subexp_body_standard): Likewise.
3661         * parse.c (operator_length_standard): Likewise.
3662         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
3663         UNOP_REINTERPRET_CAST.
3664         * gdbtypes.c (class_types_same_p): New function.
3665         (is_ancestor): Use it.
3666         (is_public_ancestor): New function.
3667         (is_unique_ancestor_worker): Likewise.
3668         (is_unique_ancestor): Likewise.
3669         * gdbtypes.h (class_types_same_p, is_public_ancestor)
3670         (is_unique_ancestor): Declare.
3671         * valops.c (value_reinterpret_cast): New function.
3672         (dynamic_cast_check_1): Likewise.
3673         (dynamic_cast_check_2): Likewise.
3674         (value_dynamic_cast): Likewise.
3675         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
3676
3677 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
3678
3679         Fix build failure when building without Python support.
3680         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
3681         is not defined.
3682
3683 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
3684
3685         Use XVS field type instead of doing a parallel lookup.
3686         * ada-lang.c (ada_get_base_type): Follow the XVS field type
3687         if it is a reference type instead of doing a type lookup using
3688         the XVS field name.
3689
3690 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
3691
3692         Trust PAD types instead of using PAD___XVS.
3693         * ada-lang.c (trust_pad_over_xvs): New static variable.
3694         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
3695         parallel XVS type, follow the XVS type instead of the PAD type.
3696         (unwrap_value): Make sure that there is no parallel XVE type
3697         before returning the value as is.
3698         (set_ada_list, show_ada_list): New static variables.
3699         (set_ada_command, show_ada_command): New functions.
3700         (_initialize_ada_language): Add new "set/show ada" prefix commands.
3701         Add new "set/show ada trust-PAD-over-XVS" setting.
3702
3703 2010-01-18  Tom Tromey  <tromey@redhat.com>
3704             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3705
3706         Allow "source" to load python scripts.
3707         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
3708         * python/python.c (source_python_script): New function.
3709         * python/python.h (source_python_script): Add declaration.
3710         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
3711         (script_ext_off, script_ext_soft, script_ext_strict)
3712         (script_ext_enums, script_ext_mode): New static constants.
3713         (show_script_ext_mode, find_and_open_script): New functions.
3714         (source_script): Enhance to handle Python scripts.
3715         (init_cli_cmds): Add set/show script-extension commands.
3716
3717 2010-01-16  Stan Shebs  <stan@codesourcery.com>
3718
3719         * tracepoint.h (struct trace_status): Use unsigned long long
3720         instead of size_t.
3721         * tracepoint.c (trace_status_command): Fix printf directive.
3722         (trace_save_command): Check fwrite returns, fix printf directive.
3723         (trace_filename): New global.
3724         (tfile_open): Set it, check read returns.
3725         (tfile_close): Free trace_filename.
3726         (tfile_get_traceframe_address): Check read returns.
3727         (tfile_trace_find): Ditto.
3728         (tfile_fetch_registers): Ditto.
3729         (tfile_xfer_partial): Ditto.
3730         (tfile_get_trace_state_variable_value): Ditto.
3731
3732 2010-01-15  Stan Shebs  <stan@codesourcery.com>
3733
3734         Add trace file support.
3735         * tracepoint.h (enum trace_stop_reason): New enum.
3736         (struct trace_status): New struct.
3737         (parse_trace_status): Declare.
3738         (struct uploaded_tp): Move here from remote.c,
3739         add fields for actions.
3740         (struct uploaded_tsv): New struct.
3741         * tracepoint.c (tfile_ops): New target vector.
3742         (trace_fd): New global.
3743         (tfile_open): New function.
3744         (tfile_close): New function.
3745         (tfile_files_info): New function.
3746         (tfile_get_trace_status): New function.
3747         (tfile_get_traceframe_address): New function.
3748         (tfile_trace_find): New function.
3749         (tfile_fetch_registers): New function.
3750         (tfile_xfer_partial): New function.
3751         (tfile_get_trace_state_variable_value): New function.
3752         (init_tfile_ops): New function.
3753         (_initialize_tracepoint): Call it, add tfile target.
3754         (trace_status): New global.
3755         (current_trace_status): New function.
3756         (trace_running_p): Remove, change all users to get from
3757         current_trace_status()->running.
3758         (get_trace_status): Remove.
3759         (trace_status_command): Call target_get_trace_status directly,
3760         report more detail including tracing stop reasons.
3761         (trace_find_command): Always allow tfind on a file.
3762         (trace_find_pc_command): Ditto.
3763         (trace_find_tracepoint_command): Ditto.
3764         (trace_find_line_command): Ditto.
3765         (trace_find_range_command): Ditto.
3766         (trace_find_outside_command): Ditto.
3767         (trace_frames_offset, cur_offset): Declare as off_t.
3768         (trace_regblock_size): Rename from reg_size, update users.
3769         (parse_trace_status): New function.
3770         (tfile_interp_line): New function.
3771         (disconnect_or_stop_tracing): Ensure current trace
3772         status before asking what to do.
3773         (stop_reason_names): New global.
3774         (trace_save_command): New command.
3775         (get_uploaded_tp): Move here from remote.c.
3776         (find_matching_tracepoint): Ditto.
3777         (merge_uploaded_tracepoints): New function.
3778         (parse_trace_status): Use stop_reason_names.
3779         (_initialize_tracepoint): Define tsave command.
3780         * target.h (target_ops): New fields to_save_trace_data,
3781         to_upload_tracepoints, to_upload_trace_state_variables,
3782         to_get_raw_trace_data, change to_get_trace_status
3783         to take a pointer to a status struct.
3784         (target_save_trace_data): New macro.
3785         (target_upload_tracepoints): New macro.
3786         (target_upload_trace_state_variables): New macro.
3787         (target_get_raw_trace_data): New macro.
3788         * target.c (update_current_target): Add new methods, change
3789         signature of to_get_trace_status.
3790         * remote.c (hex2bin): Make globally visible.
3791         (bin2hex): Ditto.
3792         (remote_download_trace_state_variable): Download name also.
3793         (remote_get_trace_status): Update parameter, use
3794         parse_trace_status.
3795         (remote_save_trace_data): New function.
3796         (remote_upload_tracepoints): New function.
3797         (remote_upload_trace_state_variables): New function.
3798         (remote_get_raw_trace_data): New function.
3799         (remote_start_remote): Use them.
3800         (_initialize_remote_ops): Add operations.
3801         * ax-gdb.c: Include breakpoint.h.
3802         * breakpoint.c (create_tracepoint_from_upload): Use
3803         break_command_really, return tracepoint, warn about unimplemented
3804         parts.
3805         * NEWS: Mention trace file addition.
3806
3807 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3808
3809         Fix compilation warning on gcc-3.4.
3810         * exec.c (print_section_info): Move the `displacement' variable
3811         initialization to its declaration.
3812
3813 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3814
3815         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
3816         comparison.
3817
3818 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
3819
3820         "info tasks" broken by typedefs in ATCB type definitions.
3821         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
3822         ada_check_typedef before retrieving the length of the type for
3823         regular fields.
3824
3825 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
3826
3827         Do not use name-based lookup for unconstrained packed arrays.
3828         * ada-lang.c (find_parallel_type_by_descriptive_type):
3829         Limit the fallback to name-based lookups to the case where
3830         the type is a constrained packed array.
3831
3832 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
3833
3834         Enhance gdb-gdb.py to handle main_type.type_specific.
3835         * gdb-gdb.py: Print the type-specific part of struct main_type.
3836
3837 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3838
3839         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
3840         * configure: Regenerate.
3841         * config.in: Regenerate.
3842         * utils.c: Include sys/resource.h.
3843         (dump_core, can_dump_core): New.
3844         (internal_vproblem): Update the comment.  Check can_dump_core while
3845         setting dump_core_p.  Replace two abort calls by dump_core calls.
3846
3847 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3848             Eli Zaretskii  <eliz@gnu.org>
3849
3850         * NEWS: Document the PIE support.
3851
3852 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3853
3854         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
3855         (check_is_pie_binary, _initialize_linux_tdep): Remove.
3856
3857 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3858
3859         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
3860         Replace exec_entry_point call by bfd_get_start_address.
3861
3862 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3863
3864         Support Valgrind attachments broken by the PIE support.
3865         * auxv.c: Include gdbcore.h.
3866         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
3867         parameters ops, object and annex.  Remove their assertions.
3868         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
3869         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
3870         (memory_xfer_auxv): ... here.
3871         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
3872         memory_xfer_auxv.
3873         * procfs.c (procfs_xfer_partial): Likewise.
3874         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
3875         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
3876         (svr4_solib_create_inferior_hook): Conditionalize the
3877         svr4_relocate_main_executable call.
3878
3879 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3880
3881         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
3882         target_section.  Find SECT in current_target_sections, gdb_assert it.
3883         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
3884         New variable abfd.
3885         * symtab.c (lookup_objfile_from_block): Return the binary file instead
3886         of separate debug info file.
3887
3888 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3889
3890         Support PIEs with no symfile_objfile.
3891         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
3892         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
3893
3894 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3895
3896         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
3897         code part to ...
3898         (svr4_static_exec_displacement): ... a new function.
3899         (svr4_exec_displacement): New function.
3900         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
3901         new_offsets using alloca now.  Remove variable old_chain and changed.
3902         Call objfile_relocate unconditionally now.
3903
3904 2010-01-14  Doug Evans  <dje@google.com>
3905
3906         * gdbtypes.c (arch_flags_type): Fix comment.
3907         * gdbtypes.h (arch_composite_type): Fix comment.
3908
3909 2009-01-14  Tristan Gingold  <gingold@adacore.com>
3910
3911         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
3912         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
3913         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
3914         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
3915         macho_add_oso_symfile.
3916         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
3917
3918 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
3919
3920         Tru64: Dead threads are never deleted.
3921         * dec-thread.c (dec_thread_ptid_is_alive): New function.
3922         (dec_thread_count_gdb_threads): Fix counter increment.
3923         (dec_thread_add_gdb_thread): Fix *listp increment.
3924         (resync_thread_list): Fix bug in deletion of dead threads that
3925         caused all threads to be deleted, instead of just the dead ones.
3926
3927 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
3928
3929         PR python/10705
3930
3931         * python/python-internal.h: Add lazy_string_object_type
3932         definition.
3933         (create_lazy_string_object, gdbpy_initialize_lazy_string)
3934         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
3935         * python/py-value.c (valpy_lazy_string): New function.
3936         (convert_value_from_python): Add lazy string conversion.
3937         * python/py-prettyprint.c (pretty_print_one_value): Check if
3938         return is also a lazy string.
3939         (print_string_repr): Add lazy string printing branch.
3940         (print_children): Likewise.
3941         * python/py-lazy-string.c: New file. Implement lazy strings.
3942         * python/python.c (_initialize_python): Call
3943         gdbpy_initialize_lazy_string.
3944         * varobj.c (value_get_print_value): Add lazy string printing
3945         branch.  Account for encoding.
3946         * c-lang.c (c_printstr): Account for new encoding argument.  If
3947         encoding is NULL, find encoding suited for type, otherwise use
3948         user encoding.
3949         * language.h (language_defn): Add encoding argument.
3950         (LA_PRINT_STRING): Likewise.
3951         * language.c (unk_lang_printstr): Update to reflect new encoding
3952         argument to language_defn.
3953         * ada-lang.h (ada_printstr): Likewise.
3954         * c-lang.h (c_printstr): Likewise.
3955         * p-lang.h (pascal_printstr);
3956         * f-lang.c (f_printstr): Likewise.
3957         * m2-lang.c (m2_printstr): Likewise.
3958         * objc-lang.c (objc_printstr): Likewise.
3959         * p-lang.c (pascal_printstr): Likewise.
3960         * scm-lang.c (scm_printstr): Likewise.
3961         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
3962         encoding argument.
3963         * ada-valprint.c (ada_printstr): Likewise.
3964         * f-valprint.c (f_val_print): Likewise
3965         * m2-valprint.c (m2_val_print): Likewise.
3966         * p-valprint.c (pascal_val_print): Likewise.
3967         * expprint.c (print_subexp_standard): Likewise.
3968         * valprint.c (val_print_string): Likewise.
3969         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
3970         (SUBDIR_PYTHON_SRCS): Likewise.
3971         (py-lazy-string.o): New rule.
3972
3973 2010-01-13  Doug Evans  <dje@google.com>
3974
3975         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
3976         uninitialized" warning from gcc on local `tree'.
3977
3978 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
3979
3980         Implement core awareness.
3981
3982         * bcache.c (compare_ints): Remove
3983         (print_percentage): Use compare_positive_ints.
3984         * defs.h (compare_positive_ints): Declare.
3985         * linux-nat.h (struct lin_lwp): New field core.
3986         (linux_nat_core_of_thread_1): Declare.
3987         * linux-nat.c (add_lwp): Init the 'core' field.
3988         (linux_nat_wait_1): Record the core.
3989         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
3990         (linux_nat_add_target): Register the above.
3991         * linux-thread-db.c (update_thread_core): New.
3992         (thread_db_find_new_threads): Update core information for
3993         every thread.
3994         * remote.c (struct private_thread_info): New.
3995         (free_private_thread_info, demand_private_info): New.
3996         (PACKET_qXfer_threads, use_osdata_threads): New.
3997         (struct thread_item, threads_parsing_context
3998         (start_thread, end_thread, thread_attributes)
3999         (thread_children, threads_children, threads_elements): New.
4000         (remote_threads_info): Try qXfer:threads before anything
4001         else.
4002         (remote_protocol_packets): Register qXfer:threads.
4003         (remote_open_1): Init use_osdata_threads.
4004         (struct stop_reply): New field 'core'.
4005         (remote_parse_stop_reply): Parse core number.
4006         (process_stop_reply): Record core number.
4007         (remote_xfer_partial): Handle qXfer:threads.
4008         (remote_core_of_thread): New.
4009         (init_remote_ops): Register remote_core_of_thread.
4010         (_initialize_remote): Register qXfer:read.
4011         * target.c (target_core_of_thread): New
4012         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
4013         (struct target_ops): New field to_core_of_threads.
4014         (target_core_of_thread): Declare.
4015         * gdbthread.h (struct thread_info): New field private_dtor.
4016         * thread.c (print_thread_info): Report the core.
4017         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
4018         * utils.c (compare_positive_ints): New.
4019         * features/threads.dtd: New.
4020         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
4021         * mi/mi-main.c (struct collect_cores_data, collect_cores)
4022         (do_nothing, free_vector_of_osdata_items)
4023         (splay_tree_int_comparator, free_splay_tree): New.
4024         (print_one_inferior_data): Implemented printing of selected
4025         inferiors.  Collect and print cores.
4026         (output_cores): New.
4027         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
4028         thread groups together with --available.
4029
4030 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4031
4032         * configure: Regenerate (for _STRUCTURED_PROC).
4033
4034 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
4035
4036         Delete dead function.
4037         * ada-lang.c (extract_string): Delete.  No longer used.
4038
4039 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
4040
4041         Fix -Wunused warning in dec-thread.c.
4042         * dec-thread.c (dec_thread_count_gdb_threads)
4043         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
4044
4045 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
4046
4047         * ada-valprint.c (ada_print_floating): Remove trailing space.
4048
4049 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
4050
4051         Add support for DW_AT_GNAT_descriptive_type.
4052         * gdbtypes.h (enum type_specific_kind): New enum.
4053         (struct main_type) [type_specific_field]: New component.
4054         [type_specific]: Add new component "gnat_stuff".
4055         (struct gnat_aux_type): New type.
4056         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
4057         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
4058         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
4059         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
4060         (TYPE_SPECIFIC_FIELD): New macros.
4061         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
4062         type does not hold any cplus-specific data.
4063         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
4064         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
4065         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
4066         cplus-specific data.
4067         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
4068         Set new component TYPE_SPECIFIC_FIELD (type).
4069         (gnat_aux_default): New constant.
4070         (allocate_gnat_aux_type): New function.
4071         (init_type): Add initialization the type-specific stuff for
4072         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
4073         (print_gnat_stuff): New function.
4074         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
4075         specific data.  Adjust code that prints the contents of the
4076         type-specific union using the TYPE_SPECIFIC_FIELD value.
4077         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
4078         the type cplus stuff for Ada types.
4079         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
4080         Error out if these routines are called with an Ada type.
4081         (read_structure_type, read_array_type, read_subrange_type):
4082         Add call to set_descriptive_type.
4083         (set_die_type): Initialize the gnat-specific data if necessary.
4084         (need_gnat_info, die_descriptive_type, set_descriptive_type):
4085         New functions.
4086         * ada-lang.c (decode_constrained_packed_array_type): Use
4087         decode_constrained_packed_array_type instead of doing a standard
4088         lookup to locate a parallel type.
4089         (find_parallel_type_by_descriptive_type): New function.
4090         (ada_find_parallel_type_with_name): New function.
4091         (ada_find_parallel_type): Reimplement using
4092         ada_find_parallel_type_with_name.
4093         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
4094         to check if type has a cplus stuff.
4095         * linespec.c (total_number_of_methods): Likewise.
4096         * mdebugread.c (new_type): Likewise.
4097
4098 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4099
4100         * NEWS: Document the 0b binary number prefix parsing.
4101
4102 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4103
4104         * objfiles.c (objfile_relocate1): Change the return type to int.
4105         Describe the new return value.  Return non-zero if data changed.
4106         (objfile_relocate): New variable changed.  Set it.  Call
4107         breakpoint_re_set depending on CHANGED.
4108
4109 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4110
4111         Implement binary numbers parsing.
4112         * c-exp.y (parse_number): New case 'b' and 'B'.
4113
4114 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4115             Tristan Gingold  <gingold@adacore.com>
4116
4117         * solib.c (info_sharedlibrary_command): Replace
4118         objfile_has_partial_symbols and objfile_has_full_symbols calls by
4119         objfile_has_symbols.
4120
4121 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
4122
4123         * NEWS: Document the improvements made to the mips-irix port.
4124
4125 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4126
4127         Fix the documentation of valprint.c:value_print.
4128         * valprint.c (value_print): Update the function description to
4129         mention that the syntax of the output follows the current_language,
4130         not necessarily C.
4131
4132 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4133
4134         Fix displacement of separate debug info files.
4135         * objfiles.c (objfile_relocate): Rename to ...
4136         (objfile_relocate1): ... here and make it static.  Extend the comment.
4137         (objfile_relocate): New function.
4138         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
4139         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
4140         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
4141         allocated using alloca.
4142         * symfile.c (copy_section_addr_info): Remove.
4143         (build_section_addr_info_from_objfile): Make it global.  New variables
4144         addr_bit and mask, use them.
4145         * symfile.h (build_section_addr_info_from_objfile): New prototype.
4146         (copy_section_addr_info): Remove.
4147
4148 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4149
4150         Signal unwinder for mips-irix N32.
4151         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
4152         tramp-frame.h.
4153         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
4154         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
4155         (SIGCONTEXT_LO_OFF): New macros.
4156         (mips_irix_n32_tramp_frame_init): New function.
4157         (mips_irix_n32_tramp_frame): New static constant.
4158         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
4159
4160 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4161
4162         Breakpoint in shared library does not work on mips-irix.
4163         * procfs.c: #include "observer.h".
4164         (procfs_inferior_created): New function, moving here the code
4165         which unsets the syssgi syscall-exit notifications.
4166         (procfs_create_inferior): Remove the code which unsets the syssgi
4167         syscall-exit notifications. It is too early to do this here.
4168         (_initialize_procfs): Attach the procfs_inferior_created observer.
4169
4170 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4171
4172         Wrong return convention for arrays (mips-irix).
4173         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
4174         128 bits or smaller are returned the same way as structs
4175         and unions of the the same size.
4176
4177 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4178
4179         Cannot set the PC on mips-irix.
4180         * irix5-nat.c (fill_gregset): Check regno against the raw PC
4181         register number, no the cooked one.
4182
4183 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4184
4185         Error while loading core file on mips-irix.
4186         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
4187         if debugging from a core file.
4188
4189 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4190
4191         GDB hangs when attaching to process on mips-irix.
4192         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
4193         attaching to a process.
4194
4195 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4196
4197         Use the correct breakpoint instruction on mips-irix.
4198         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
4199         containing the correct breakpoint instruction to use on mips-irix.
4200         Use it when the osabi is GDB_OSABI_IRIX.
4201
4202 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4203
4204         -Wunused warning in procfs.c (mips-irix only).
4205         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
4206         throughout instead of using praddset and prdelset respectively.
4207
4208 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4209
4210         GDB crash while stepping into function.
4211         * infrun.c (handle_inferior_event): Refetch the current frame
4212         after handling what.main_action, in case that pointer became
4213         dangling.
4214
4215 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4216
4217         Fix build failure of solaris-hosted cross debuggers.
4218         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
4219
4220 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
4221
4222         Fix build failure on sparc-solaris.
4223         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
4224
4225 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4226
4227         Move some symfile code into subroutines.
4228         * symfile.h (relative_addr_info_to_section_offsets)
4229         (addr_info_make_relative): New prototypes.
4230         * symfile.c (default_symfile_offsets): Move a part to ...
4231         (relative_addr_info_to_section_offsets): ... this new function.
4232         (default_symfile_offsets): Call it.
4233         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
4234         this part to ...
4235         (addr_info_make_relative): ... this new function.
4236
4237 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4238
4239         Add from_tty to solib_create_inferior_hook.
4240         * infcmd.c (post_create_inferior): Move solib_add after
4241         solib_create_inferior_hook.  Pass from_tty to
4242         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
4243         0 from_tty and comment why.
4244         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
4245         * linux-nat.c (linux_child_follow_fork): Likewise.
4246         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
4247         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
4248         from_tty.
4249         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
4250         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4251         * solib-null.c (null_solib_create_inferior_hook): Likewise.
4252         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4253         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
4254         * solib-som.c (som_solib_create_inferior_hook): Likewise.
4255         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
4256         Pass it to svr4_so_ops.solib_create_inferior_hook.
4257         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
4258         from_tty.
4259         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
4260         solib_add.
4261         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
4262         enable_break.
4263         * solib-target.c (solib_target_solib_create_inferior_hook): New
4264         parameter from_tty.
4265         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
4266         it to ops->solib_create_inferior_hook.
4267         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
4268         Move solib_add after solib_create_inferior_hook, call it now with
4269         from_tty as 0.  New comment there.
4270         * solib.h (solib_create_inferior_hook): New parameter from_tty.
4271         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
4272         Likewise.
4273
4274 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
4275
4276         Fix multiexec race.
4277         * infrun.c (handle_inferior_event): Use get_thread_regcache
4278         with events ptid, not get_current_regcache.
4279
4280 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
4281
4282         GDB crash with empty executable name (MinGW).
4283         * source.c (openp): Add assert that parameter string is not NULL.
4284         if parameter string is an empty string, then return with a failure
4285         immediately.
4286
4287 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
4288
4289         Get rid of support for VAX Floats.
4290         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4291         (ada_vax_float_print_function): Delete.
4292         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4293         (ada_vax_float_print_function): Delete.
4294         * ada-typeprint.c (print_vax_floating_point_type): Delete.
4295         (ada_print_type): Remove support for VAX floats.
4296         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
4297
4298 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4299
4300         * stabsread.c (read_args): Handle zero arguments.
4301
4302 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
4303
4304         Cannot find in-tree libiconv.a after reconfigure.
4305         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
4306         that we can use, then cache the path to this archive.
4307         * configure: Regenerate.
4308
4309 2010-01-07  Stan Shebs  <stan@codesourcery.com>
4310
4311         Make tracepoint operations go through target vector.
4312         * target.h (enum trace_find_type): New enum.
4313         (struct target_ops): New fields to_trace_init,
4314         to_download_tracepoint, to_download_trace_state_variable,
4315         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
4316         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
4317         to_set_disconnected_tracing.
4318         (target_trace_init): New macro.
4319         (target_download_tracepoint): New macro.
4320         (target_download_trace_state_variable): New macro.
4321         (target_trace_start): New macro.
4322         (target_trace_set_readonly_regions): New macro.
4323         (target_get_trace_status): New macro.
4324         (target_trace_stop): New macro.
4325         (target_trace_find): New macro.
4326         (target_get_trace_state_variable_value): New macro.
4327         (target_set_disconnected_tracing): New macro.
4328         * target.c (update_current_target): Inherit and set defaults for
4329         tracepoint operations.
4330         * tracepoint.c (default_collect): Make globally visible.
4331         (target_is_remote): Remove, along with all calls.
4332         (tvariables_info): Call target_get_trace_state_variable_value.
4333         (remote_set_transparent_ranges): Remove.
4334         (trace_start_command): Call target_trace_init,
4335         target_download_tracepoint, etc.
4336         (download_tracepoint): Remove.
4337         (trace_stop_command): Simplify.
4338         (stop_tracing): Call target_trace_stop.
4339         (get_trace_status): Call target_get_trace_status.
4340         (trace_status_command): Add case for targets that cannot trace.
4341         (finish_tfind_command): Change to take numerical arguments, call
4342         target_trace_find.
4343         (trace_find_command): Update call to finish_tfind_command.
4344         (trace_find_pc_command): Ditto.
4345         (trace_find_tracepoint_command): Ditto.
4346         (trace_find_line_command): Ditto.
4347         (trace_find_range_command): Ditto.
4348         (trace_find_outside_command): Ditto.
4349         (set_disconnected_tracing_value): Call
4350         target_set_disconnected_tracing.
4351         * remote.c: Add protocol encoding bits from tracepoint.c.
4352         (trace_error): Move from tracepoint.c.
4353         (remote_get_noisy_reply): Ditto.
4354         (free_actions_list_cleanup_wrapper): Ditto.
4355         (free_actions_list): Ditto.
4356         (remote_trace_init): New function.
4357         (remote_download_tracepoint): New function.
4358         (remote_download_trace_state_variable): New function.
4359         (remote_trace_set_readonly_regions): New function.
4360         (remote_trace_start): New function.
4361         (remote_get_trace_status): New function.
4362         (remote_trace_stop): New function.
4363         (remote_trace_find): New function.
4364         (remote_download_trace_state_variable): New function.
4365         (remote_set_disconnected_tracing): New function.
4366         (init_remote_ops): Add tracepoint operations.
4367
4368         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
4369
4370 2010-01-07  Tristan Gingold  <gingold@adacore.com>
4371
4372         * symfile.c (build_section_addr_info_from_objfile): New function.
4373         (symbol_file_add_separate): Don't use offsets from objfile but
4374         built an addr info.
4375
4376 2010-01-06  Stan Shebs  <stan@codesourcery.com>
4377
4378         Support disconnected tracing.
4379         * infcmd.c (detach_command): Ask whether to stop tracing.
4380         * cli/cli-cmds.c (quit_command): Ditto.
4381         * breakpoint.h (struct breakpoint): New field number_on_target.
4382         * breakpoint.c (create_tracepoint_from_upload): New function.
4383         (get_tracepoint_by_number_on_target): New function.
4384         * remote.c (struct remote): New field disconnected_tracing.
4385         (remote_disconnected_tracing_feature): New function.
4386         (remote_protocol_features): Add DisconnectedTracing.
4387         (struct uploaded_tp): New struct.
4388         (uploaded_tps): New global.
4389         (get_uploaded_tp): New function.
4390         (find_matching_tracepoint): New function.
4391         (remote_get_tracing_state): New function.
4392         (remote_start_remote): Call it.
4393         * tracepoint.c (disconnected_tracing): New global.
4394         (trace_start_command): Initialize number_on_target.
4395         (stop_tracing): New function, split out from...
4396         (trace_stop_command): Call stop_tracing.
4397         (get_trace_status): New function, split out from...
4398         (trace_status_command): Call get_trace_status, add info on
4399         disconnection behavior.
4400         (disconnect_or_stop_tracing): New function.
4401         (finish_tfind_command): Translate from number on target.
4402         (trace_find_tracepoint_command): Translate to number on target.
4403         (send_disconnected_tracing_value): New function.
4404         (set_disconnected_tracing): New function.
4405         (_initialize_tracepoint): Add disconnected-tracing variable.
4406         * NEWS: Mention disconnected tracing.
4407
4408 2010-01-06  Tristan Gingold  <gingold@adacore.com>
4409
4410         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
4411         parameter to main_objfile.  Iterate on all separate debug objfiles.
4412         * symfile.h (symbol_file_add_separate)
4413         (find_separate_debug_file_by_debuglink): Remove parameter names.
4414         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
4415         (reread_symbols): Use free_objfile_separate_debug.
4416         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
4417         Adjust comment.
4418         (objfile_separate_debug_iterate, add_separate_debug_objfile)
4419         (free_objfile_separate_debug): New prototypes.
4420         * objfiles.c (objfile_separate_debug_iterate): New function.
4421         (add_separate_debug_objfile, free_objfile_separate_debug): New
4422         functions.
4423         (free_objfile): Use free_objfile_separate_debug.  Adjust for
4424         multiple separate debug objfile.
4425         (objfile_has_symbols): Adjust comment.  Iterate on all separate
4426         debug objfiles.
4427         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
4428         debug objfile.
4429         (lookup_minimal_symbol_text): Ditto.
4430         (lookup_minimal_symbol_by_pc_name): Ditto.
4431         (lookup_minimal_symbol_solib_trampoline): Ditto.
4432         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
4433         debug objfiles.
4434
4435 2010-01-05  Stan Shebs  <stan@codesourcery.com>
4436
4437         Add fast tracepoints.
4438         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
4439         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
4440         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
4441         * breakpoint.c (tracepoint_type): New function.
4442         (ALL_TRACEPOINTS): Use it.
4443         (should_be_inserted): Ditto.
4444         (bpstat_check_location): Ditto.
4445         (print_one_breakpoint_location): Ditto.
4446         (user_settable_breakpoint): Ditto.
4447         (set_breakpoint_location_function): Ditto.
4448         (disable_breakpoints_in_shlibs): Ditto.
4449         (delete_trace_command): Ditto.
4450         (print_it_typical): Add bp_fast_tracepoint case.
4451         (bpstat_what): Ditto.
4452         (print_one_breakpoint_location): Ditto.
4453         (allocate_bp_location): Ditto.
4454         (mention): Ditto.
4455         (breakpoint_re_set_one): Ditto.
4456         (disable_command): Ditto.
4457         (enable_command): Ditto.
4458         (check_fast_tracepoint_sals): New function.
4459         (break_command_really): Call it.
4460         (ftrace_command): New function.
4461         (_initialize_breakpoint): Add ftrace command.
4462         * gdbarch.sh (fast_tracepoint_valid_at): New.
4463         * gdbarch.h, gdbarch.c: Regenerate.
4464         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
4465         (i386_gdbarch_init): Use it.
4466         * remote.c (struct remote_state): New field fast_tracepoints.
4467         (PACKET_FastTracepoints): New packet config type.
4468         (remote_fast_tracepoint_feature): New function.
4469         (remote_protocol_features): Add FastTracepoints.
4470         (remote_supports_fast_tracepoints): New function.
4471         (_initialize_remote): Add FastTracepoints.
4472         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
4473         * NEWS: Mention fast tracepoints.
4474
4475 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
4476
4477         * gdb-gdb.py: New file.
4478
4479 2010-01-05  Michael Snyder  <msnyder@vmware.com>
4480
4481         * infrun.c (handle_inferior_event): Fix typo in comment.
4482
4483 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4484
4485         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
4486
4487 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
4488
4489         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
4490         and s390x-linux64.
4491         (s390-linux32-expedite): Define.
4492         (s390-linux64-expedite): Define.
4493         (s390x-linux64-expedite): Define.
4494         * features/s390-acr.xml: New file.
4495         * features/s390-fpr.xml: New file.
4496         * features/s390-core32.xml: New file.
4497         * features/s390-core64.xml: New file.
4498         * features/s390x-core64.xml: New file.
4499         * features/s390-linux32.xml: New file.
4500         * features/s390-linux64.xml: New file.
4501         * features/s390x-linux64.xml: New file.
4502         * features/s390-linux32.c: New generated file.
4503         * features/s390-linux64.c: New generated file.
4504         * features/s390x-linux64.c: New generated file.
4505
4506         * regformats/s390-linux32.dat: New generated file.
4507         * regformats/s390-linux64.dat: New generated file.
4508         * regformats/s390x-linux64.dat: New generated file.
4509         * regformats/reg-s390.dat: Remove.
4510         * regformats/reg-s390x.dat: Remove.
4511
4512         * s390-nat.c: Include "auxv.h" and <elf.h>.
4513         (HWCAP_S390_HIGH_GPRS): Define if undefined.
4514         (s390_target_wordsize): New function.
4515         (s390_auxv_parse): Likewise.
4516         (s390_get_hwcap): Likewise.
4517         (s390_read_description): Likewise.
4518         (_initialize_s390_nat): Install s390_auxv_parse and
4519         s390_read_description.
4520
4521         * s390-tdep.c: Include "features/s390-linux32.c",
4522         "features/s390-linux64.c", and "features/s390x-linux64.c".
4523         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
4524         (s390_register_call_saved): New function.
4525         (s390_register_name): Remove.
4526         (s390_register_type): Remove.
4527         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
4528         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
4529         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
4530         (s390_pseudo_register_name): New function.
4531         (s390_pseudo_register_type): New function.
4532         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
4533         Handle full GPR pesudos and varying pseudo register numbers.
4534         (s390_pseudo_register_write): Likewise
4535         (s390x_pseudo_register_read): Remove.
4536         (s390x_pseudo_register_write): Likewise.
4537         (s390_register_group): Remove.
4538         (s390_pseudo_register_group): New function.
4539         (s390_regmap_gregset): Add GPR upper halves.
4540         (s390x_regmap_gregset): Likewise.
4541         (s390_regmap_fpregset): Likewise.
4542         (s390_regmap_upper): New global variable.
4543         (s390_upper_regset): New global variable.
4544         (s390_upper_regset_sections): New global variable.
4545         (s390_regset_from_core_section): Handle GPR upper halves.
4546         (s390_core_read_description): New function.
4547         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
4548         register information.  Handle varying pseudo register numbers.
4549         (s390_backchain_frame_unwind_cache): Likewise.
4550         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
4551         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
4552         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
4553         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
4554         Handle varying pseudo register numbers.
4555         (s390_unwind_pc): Handle varying pseudo register numbers.
4556         (s390_dwarf2_prev_register): New function.
4557         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
4558         register information.  Handle varying pseudo register numbers.
4559         Install s390_dwarf2_prev_register to unwind full GPRs.
4560         (s390_gdbarch_init): Handle target descriptions.  Assign varying
4561         pseudo register numbers.  Install s390_adjust_frame_regnum.
4562         (_initialize_s390_tdep): Initialize target descriptions.
4563
4564         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
4565         (S390_NUM_REGS): Redefine to include upper half registers.
4566         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
4567         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
4568         (tdesc_s390_linux32): Add declaration.
4569         (tdesc_s390_linux64): Likewise.
4570         (tdesc_s390x_linux64): Likewise.
4571
4572 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
4573
4574         * regset.h (struct core_regset_section): Add HUMAN_NAME.
4575         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
4576         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
4577         (ppc_linux_vmx_regset_sections): Likewise.
4578         (ppc_linux_fp_regset_sections): Likewise.
4579
4580         * corelow.c (get_core_register_section): Constify arguments.
4581         (get_core_registers): Use gdbarch_core_regset_sections instead
4582         of hard-coded platform-specific register section names.
4583
4584 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
4585
4586         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
4587         a register, assume the least-significant part is used.
4588         (write_pieced_value): Likewise.
4589
4590 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
4591
4592         * printcmd.c: Include "arch-utils.h".
4593         (do_one_display): Re-parse expression if current architecture changed.
4594
4595 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4596             Joel Brobecker  <brobecker@adacore.com>
4597
4598         * gdbtypes.c (check_typedef): New comment on type length.
4599         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
4600         comment on type length.
4601         (value_primitive_field): Keep the original TYPE value, new comment.
4602
4603 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4604
4605         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
4606         p_start.  Change != comparisons to > and < comparisons.
4607
4608 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4609
4610         * cli/cli-script.c (process_next_line): Check P2 overrun.
4611
4612 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
4613
4614         Update the copyright hearder to add year 2010 for most GDB files.
4615
4616 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
4617
4618         Fix build failure in inf-ptrace.c.
4619         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
4620
4621 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
4622
4623         * top.c (print_gdb_version): Update copyright year.
4624
4625 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
4626
4627         Fix break *FUN'address thread NUM.
4628         * ada-lex.l (task): Expand rule to also match the thread keyword.
4629
4630 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
4631
4632         Fix break *FUN'address task NUM.
4633         * ada-lex.l (task): New rule.
4634         * ada-lang.c (valid_task_id): Make sure the Ada task list has
4635         been built before using it.
4636
4637 For older changes see ChangeLog-2009.
4638 \f
4639 Local Variables:
4640 mode: change-log
4641 left-margin: 8
4642 fill-column: 74
4643 version-control: never
4644 coding: utf-8
4645 End: