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