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