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