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