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