gdbserver/ChangeLog
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6bc305f5
SDJ
12013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 * value.c (isvoid_internal_fn): Replace "parameter" with
4 "argument".
5
0a7cfe2c
SS
62013-09-16 Stan Shebs <stan@codesourcery.com>
7
8 * README: Update references to writing code for GDB.
9 * configure.ac (build_warnings): Remove obsolete comment.
10 * configure: Regenerate.
11 * gdbarch.sh: Remove references to gdbint.texinfo.
12 * gdbarch.h: Regenerate.
13 * gdbtypes.c (objfile_type): Remove comments referencing internals
14 manual and D10V.
15
a280dbd1
SDJ
162013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
17
18 * NEWS: Mention new convenience function $_isvoid.
19 * value.c (isvoid_internal_fn): New function.
20 (_initialize_values): Add new convenience function $_isvoid.
21
04a83fee
PM
222013-09-16 Pierre Muller <muller@sourceware.org>
23
24 * arm-linux-tdep.c: Add "elf/common.h" header.
25 Remove AT_HWCAP macro definintion as it is provided in
26 added include file.
27 * s390-tdep.c: Remove system header <elf.h>
28 Add "elf/common.h" header for AT_HWCAP definition.
29 (s390_core_read_description): Use correct CORE_ADDR
30 for hwcap local variable used as third parameter
31 of function target_auxv_search.
32
88505fac
PM
332013-09-14 Pierre Muller <muller@sourceware.org>
34 Tom Tromey <tromey@redhat.com>
35 Pedro Alves <palves@redhat.com>
36
37 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
38 mode if operating system doesn't know O_CLOEXEC.
39
d3846e71
JK
402013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
41
42 Code cleanup.
43 * symfile.c (reread_symbols): Move variable obfd_filename to a more
44 inner block.
45
4ac33720
UW
462013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
47
48 * NEWS: Mention TDB support.
49 * features/s390-tdb.xml: New file.
50 * features/s390-te-linux64.xml: New file.
51 * features/s390x-te-linux64.xml: New file.
52 * features/Makefile (WHICH): Add new tdescs above.
53 (s390-te-linux64-expedite): Set.
54 (s390x-te-linux64-expedite): Set.
55 * features/s390-te-linux64.c: New file (generated).
56 * features/s390x-te-linux64.c: New file (generated).
57 * regformats/s390-te-linux64.dat: New file (generated).
58 * regformats/s390x-te-linux64.dat: New file (generated).
59 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
60 (HWCAP_S390_TE): Likewise.
61 (S390_TDB_DWORD0_REGNUM): Likewise.
62 (S390_TDB_DWORD0_REGNUM): Likewise.
63 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
64 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
65 (S390_TDB_ATIA_REGNUM): Likewise.
66 (S390_TDB_R0_REGNUM): Likewise.
67 (S390_TDB_R1_REGNUM): Likewise.
68 (S390_TDB_R2_REGNUM): Likewise.
69 (S390_TDB_R3_REGNUM): Likewise.
70 (S390_TDB_R4_REGNUM): Likewise.
71 (S390_TDB_R5_REGNUM): Likewise.
72 (S390_TDB_R6_REGNUM): Likewise.
73 (S390_TDB_R7_REGNUM): Likewise.
74 (S390_TDB_R8_REGNUM): Likewise.
75 (S390_TDB_R9_REGNUM): Likewise.
76 (S390_TDB_R10_REGNUM): Likewise.
77 (S390_TDB_R11_REGNUM): Likewise.
78 (S390_TDB_R12_REGNUM): Likewise.
79 (S390_TDB_R13_REGNUM): Likewise.
80 (S390_TDB_R14_REGNUM): Likewise.
81 (S390_TDB_R15_REGNUM): Likewise.
82 (S390_NUM_REGS): Increase.
83 (S390_IS_TDBREGSET_REGNUM): New macro.
84 (s390_regmap_tdb): Declare.
85 (s390_sizeof_tdbregset): Define.
86 (tdesc_s390_te_linux64): Declare.
87 (tdesc_s390x_te_linux64): Likewise.
88 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
89 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
90 (s390_regmap_tdb): New regmap.
91 (s390_supply_tdb_regset): New function.
92 (s390_tdb_regset): New regset.
93 (s390_linux64v2_regset_sections): Add TDB regset to list.
94 (s390x_linux64v2_regset_sections): Likewise.
95 (s390_regset_from_core_section): Recognize TDB core note section.
96 (s390_core_read_description): If HWCAP indicates TE support,
97 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
98 (s390_gdbarch_init): Handle TDB regset.
99 (_initialize_s390_tdep): Initialize new tdescs.
100 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
101 (have_regset_tdb): New variable.
102 (s390_native_supply): Support register invalidation.
103 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
104 (check_regset): Treat ENODATA as "regset exists".
105 (s390_linux_fetch_inferior_registers): Add TDB.
106 (s390_read_description): Check for TDB existence and select
107 appropriate tdesc.
108 * gdbserver/Makefile.in (clean): Add removal of new makefile
109 targets.
110 (s390-te-linux64.c): New makefile target.
111 (s390x-te-linux64.c): Likewise.
112 * gdbserver/configure.srv (srv_regobj): Append new objects
113 s390-te-linux64.o and s390x-te-linux64.o.
114 (srv_xmlfiles): Append new files s390-te-linux64.xml,
115 s390x-te-linux64.xml, and s390-tdb.xml.
116 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
117 declaration.
118 (tdesc_s390_te_linux64): Likewise.
119 (init_registers_s390x_te_linux64): Likewise.
120 (tdesc_s390x_te_linux64): Likewise.
121 (s390_check_regset): Treat ENODATA as "regset exists".
122 (s390_arch_setup): Add TDB regset support.
123 (initialize_low_arch): Initialize registers for new tdescs.
124
2ccd1468
UW
1252013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
126
127 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
128 (S390_IS_FPREGSET_REGNUM): New macro.
129 * s390-tdep.c (s390_dwarf_regmap): Make const.
130 (regnum_is_gpr_full): New function for replacing repeated code.
131 (s390_pseudo_register_name): Use it.
132 (s390_pseudo_register_type): Likewise.
133 (s390_pseudo_register_read): Likewise.
134 (s390_pseudo_register_write): Likewise.
135 (s390_unwind_pseudo_register): Likewise.
136 (s390_regmap_gregset): New format for regmap.
137 (s390x_regmap_gregset): Likewise.
138 (s390_regmap_fpregset): Likewise.
139 (s390_regmap_upper): Likewise.
140 (s390_regmap_last_break): Likewise.
141 (s390_regmap_system_call): Likewise.
142 (s390_supply_regset): Adjust to new regmap format.
143 (s390_collect_regset): Likewise.
144 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
145 (s390_native_collect): Likewise.
146 (supply_gregset): Likewise.
147 (fill_gregset): Likewise.
148 (supply_fpregset): Likewise.
149 (fill_fpregset): Likewise.
150 (fetch_regset): Likewise.
151 (store_regset): Likewise.
152 (s390_linux_fetch_inferior_registers): Likewise.
153 (s390_linux_fetch_inferior_registers): Likewise.
154
1aa4cd77
AP
1552013-09-12 Andrew Pinski <apinski@cavium.com>
156
157 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
158
d91fab15
UW
1592013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
160
161 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
162
5a5d8ead
AB
1632013-09-09 Andrew Burgess <aburgess@broadcom.com>
164
165 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
166
1385f66c
PA
1672013-09-06 Pedro Alves <palves@redhat.com>
168
169 * remote-sim.c (dump_mem, gdbsim_fetch_register)
170 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
171 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
172 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
173 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
174 gdb_stdlog.
175
146ec4db
PA
1762013-09-06 Pedro Alves <palves@redhat.com>
177
178 * remote-sim.c (dump_mem): Constify buf parameter.
179 gdbsim_xfer_inferior_memory): Rename to ...
180 (gdbsim_xfer_memory): ... this. Adjust interface as
181 target_xfer_partial helper.
182 (gdbsim_xfer_partial): New function.
183 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
184 Install a to_xfer_partial hook. Send output to gdb_stdlog.
185
fcde0081
PA
1862013-09-06 Pedro Alves <palves@redhat.com>
187
188 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
189 host_address_to_string, and send debug output to gdb_stdlog.
190
749c8b38
RW
1912013-09-06 Ricard Wanderlof <ricardw@axis.com>
192
193 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
194 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
195 gdb_target_obs for cris target.
196 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
197 (cris_gdbarch_init): Move calls to
198 set_gdbarch_fetch_tls_load_module_address and
199 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
200 Add call to gdbarch_init_osabi.
201 * cris-linux-tdep.c: New file.
202 * cris-tdep.h: New file.
203
43df09d9
AB
2042013-09-06 Andrew Burgess <aburgess@broadcom.com>
205
206 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
207 to deprecated_init_ui_hook.
208
4d09c5b4
AB
2092013-09-06 Andrew Burgess <aburgess@broadcom.com>
210
211 * cli/cli-interp.c (_initialize_cli_interp): Add a
212 command_loop_proc to interp_procs.
213 * event-top.c (cli_command_loop): Change signature to match
214 interp_command_loop_ftype.
215 * event-top.h (cli_command_loop): Same.
216 * interps.c (interp_new): Require every interpreter to have a
217 command_loop_proc.
218 (current_interp_command_loop): Just call the command_loop_proc on
219 the current interpreter.
220 * tui/tui-interp.c (_initialize_tui_interp): Add a
221 command_loop_proc to interp_procs.
222
8eb3d7b6
RW
2232013-09-06 Ricard Wanderlof <ricardw@axis.com>
224
225 * cris-tdep.c (cris_gdbarch_init): Add call to
226 get_gdbarch_fetch_tls_load_module_address.
227
18b3c2f5
RW
2282013-09-06 Ricard Wanderlof <ricardw@axis.com>
229
230 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
231 (cris_elf_gregset_t): Rename from elf_gregset_t.
232 (crisv32_elf_gregset_t): Adjust.
233 (cris_supply_gregset, fetch_core_registers): Adjust.
234
dc8636ef
RW
2352013-09-06 Ricard Wanderlof <ricardw@axis.com>
236
237 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
238
257e6d53
AB
2392013-09-05 Andrew Burgess <aburgess@broadcom.com>
240
1581d8a7 241 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 242 references in comments.
1581d8a7 243 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
244 deprecated_command_loop_hook.
245 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
246 setup.
1581d8a7 247 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 248
7c33b57c
PA
2492013-09-05 Pedro Alves <palves@redhat.com>
250
251 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
252 local is now int instead of ULONGEST. Print it with %d
253 instead of paddress.
254
9f8edbd5
TG
2552013-09-05 Tristan Gingold <gingold@adacore.com>
256
257 * MAINTAINERS: Remove avr maintainership.
258
d5b495b4
PA
2592013-09-05 Pedro Alves <palves@redhat.com>
260
261 * findvar.c (value_of_register): Rework in terms of
262 value_of_register_lazy.
263
40b91786
MB
2642013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
265
266 * symfile.c (add_symbol_file_command): Remove trailing
267 whitespaces and blank line after comment.
268
6eed1678
PA
2692013-09-05 Pedro Alves <palves@redhat.com>
270
271 * tui/tui-regs.c (tui_register_format): Don't look at the
272 register's name here. Return string representing register
273 value instead of storing it in the data element.
274 (tui_get_register): Compare register string representations
275 instead of register value states and contents.
276
8eb6bda2
PA
2772013-09-05 Pedro Alves <palves@redhat.com>
278
279 PR tui/15933
280 * tui/tui-regs.c (tui_show_registers): Show registers of the
281 selected frame, not the current frame.
282
48b1f08c
RW
2832013-09-05 Ricard Wanderlof <ricardw@axis.com>
284
285 * MAINTAINERS (Write After Approval): Add myself to the list.
286
89e63ee4
DE
2872013-09-04 Doug Evans <dje@google.com>
288
289 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
290 (queue_and_load_dwo_tu): New function.
291 (lookup_dwo_signatured_type): Set per_cu.tu_read.
292 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
293 Make dependent_cu optional.
294 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
295 and an older .gdb_index is in use, queue and load all its TUs too.
296
492c0ab7
JK
2972013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
298
299 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
300 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
301 variable search_flags.
302 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
303 (OPF_RETURN_REALPATH): ... here.
304 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
305 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
306 call. Twice.
307 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
308 openp call.
309 * solib.c (solib_find): Likewise. Four times.
310 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
311 in the function comment and for the realpath_fptr variable.
312 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
313 (find_and_open_source): Likewise. Twice.
314 * symfile.c (symfile_bfd_open): Likewise, also twice.
315
23a44de8
DE
3162013-09-04 Doug Evans <dje@google.com>
317
318 * progspace.c (save_current_space_and_thread): Remove unnecessary
319 call to save_current_inferior.
320
47061676
AB
3212013-09-04 Andrew Burgess <aburgess@broadcom.com>
322
323 * sh64-tdep.c (sh64_do_register): Return after printing message
324 about unavailable register contents.
325
41dc8db8
MB
3262013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
327 Pedro Alves <palves@redhat.com>
328
329 * symfile.c (add_symbol_file_command): Error out on unknown
330 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
331 options and collapse into single conditional branch.
332
07107ca6
LM
3332013-09-03 Luis Machado <lgustavo@codesourcery.com>
334
335 * inf-child.c (inf_child_follow_fork) New parameter
336 detach_fork.
337 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
338 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
339 * inferior.h (detach_fork): Remove.
340 * infrun.c (detach_fork): Adjust comment and make it
341 static.
342 (follow_fork): Pass detach_fork parameter to
343 target_follow_fork.
344 * linux-nat.c (linux_child_follow_fork): New parameter
345 detach_fork.
346 * target.c (target_follow_fork): New parameter detach_fork.
347 Pass detach_fork as parameter and print its value.
348 * target.h (struct target_ops) <to_follow_fork>: New int
349 parameter.
350 (target_follow_fork): New parameter detach_fork.
351
3bec2768
JB
3522013-09-03 Joel Brobecker <brobecker@adacore.com>
353
354 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
355 Replace sec->bfd by sec->the_bfd_section->owner.
356
c01cbb3d
YQ
3572013-09-03 Yao Qi <yao@codesourcery.com>
358
359 * linux-tdep.c (linux_is_uclinux): New function. Code moved
360 from linux_has_shared_address_space.
361 (linux_has_shared_address_space): Call linux_is_uclinux.
362 * linux-tdep.h (linux_is_uclinux): Declare.
363 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
364 linux_is_uclinux.
365
7b00db47
YQ
3662013-09-03 Yao Qi <yao@codesourcery.com>
367
368 * config/djgpp/fnchange.lst: Remove entry of
369 i386-interix-nat.c and i386-interix-tdep.c.
370 * configure.ac: Remove '*-*-interix*'.
371 * configure: Re-generated.
372 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
373 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
374 obsolete comments.
375 * osabi.c (gdb_osabi_names): Remove "Interix".
376
0f9741f2
YQ
3772013-09-03 Yao Qi <yao@codesourcery.com>
378
379 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
380
1e038f67
MM
3812013-09-02 Markus Metzger <markus.t.metzger@intel.com>
382
383 * record.h (record_print_flag) <record_print_src_line,
384 record_print_insn_range>: Rename into ...
385 (record_print_flag) <record_print_src_line,
386 record_print_insn_range>: ... this. Update all users.
387
9e52adf9
PM
3882013-09-02 Pierre Muller <muller@sourceware.org>
389
390 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
391 error code.
392
a2388568
PM
3932013-09-02 Pierre Muller <muller@sourceware.org>
394
395 * windows-nat.c (windows_xfer_memory): Fix compilation failure
396 by use of plongest function.
397
9058cc3a
TG
3982013-09-02 Tristan Gingold <gingold@adacore.com>
399
400 * NEWS: Add entry mentioning support for native Windows x64
401 SEH data.
402
403 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
404 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
405 (struct amd64_windows_frame_cache): New struct.
406 (amd64_windows_w2gdb_regnum): New global.
407 (pc_in_range, amd64_windows_frame_decode_epilogue)
408 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
409 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
410 (amd64_windows_frame_this_id): New functions.
411 (amd64_windows_frame_unwind): New static global.
412 (amd64_windows_skip_prologue): New function.
413 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
414 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
415 with amd64_windows_skip_prologue.
416
3161820b 4172013-08-30 Joel Brobecker <brobecker@adacore.com>
418
419 GDB 7.6.1 released.
420
02457c76
PA
4212013-08-30 Pedro Alves <palves@redhat.com>
422
423 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
424 SRC_AND_LOC.
425
e0162910
PA
4262013-08-30 Pedro Alves <palves@redhat.com>
427
428 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
429 warning text.
430
6391ce51
PA
4312013-08-30 Pedro Alves <palves@redhat.com>
432
433 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
434 Adjust arguments to print_stack_frame.
435
d1da0587
PA
4362013-08-30 Pedro Alves <palves@redhat.com>
437
438 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
439
adfd8245
PA
4402013-08-30 Pedro Alves <palves@redhat.com>
441
442 * frame.h (show_and_print_stack_frame): Delete declaration.
443
96d9056e
PM
4442013-08-30 Phil Muldoon <pmuldoon@redhat.com>
445
446 PR python/15461
447
448 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
449 (archpy_name): Check for valid architecture.
450 (archpy_disassemble): Ditto.
451
11cb8762
JB
4522013-08-29 Joel Brobecker <brobecker@adacore.com>
453
454 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
455 instead of "long long" in call to ptrace64.
456
1af12a7d
AB
4572013-08-29 Andrew Burgess <aburgess@broadcom.com>
458
459 * mi/mi-interp.c (mi_command_loop): Change signature to match
460 interp_command_loop_ftype.
461 (mi1_command_loop): Remove.
462 (mi2_command_loop): Remove.
463 (mi3_command_loop): Remove.
464 (mi_interpreter_resume): Remove setting of
465 deprecated_command_loop_hook.
466 (_initialize_mi_interp): Set mi_command_loop as the command loop
467 callback.
468
acc900c2
SA
4692013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
470
471 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
472 value_type.
473
548b762d
SA
4742013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
475
476 * value.c (allocate_value_contents): Make static.
477 * value.h (allocate_value_contents): Remove prototype.
478
08039c9e
SA
4792013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
480
481 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
482 of assembling value via allocate_value_lazy and attribute setter.
483 * findvar.c (default_read_var_value): Use value_at_lazy instead of
484 assembling value via allocate_value_lazy and attribute setter.
485 * valops.c (do_search_struct_field): Use value_at_lazy instead of
486 assembling value via allocate_value_lazy and attribute setter.
487
314c7de9
SA
4882013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
489
490 * value.c (value_from_contents_and_address): Replace allocate_value and
491 memcpy with value_from_contents.
492
8f28f522
PM
4932013-08-29 Phil Muldoon <pmuldoon@redhat.com>
494
495 * python/py-framefilter.c (py_print_frame): Remove usage of
496 PyString_AsString. Use python_string_to_host_string instead.
497 Refactor function to work with a string as a new allocation
498 instead of a pointer.
499 (py_print_frame): Ditto.
500 * python/lib/gdb/frames.py (return_list): Cain iterators together
501 instead of adding them as a list.
502 (_sort_list): Call return_list, and remove duplicate code.
503 (execute_frame_filters): Convert iterator to a list with list().
504 * python/lib/gdb/command/frame_filters.py
505 (SetFrameFilterPriority._set_filter_priority): Convert priority
506 attribute to an integer.
507 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
508 wrapper function __next__.
509 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
510 define as "str".
511
8ee002df
PM
5122013-08-29 Phil Muldoon <pmuldoon@redhat.com>
513
514 PR python/15752
8ee002df
PM
515 * python/py-framefilter.c (apply_frame_filter): Check
516 gdb_python_initialized. Exit if the Python frame-filter code
517 cannot be initialized.
518
af4c453a
PM
5192013-08-29 Phil Muldoon <pmuldoon@redhat.com>
520
521 PR cli/15842
af4c453a
PM
522 * top.c (print_gdb_version): Remove erroneous newline after help
523 text.
524
bf8793bb
YQ
5252013-08-29 Yao Qi <yao@codesourcery.com>
526
527 * varobj.c (install_dynamic_child): Remove trailing space.
528 Add one blank line after variable declaration.
529
1f0c4988
JK
5302013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
531
532 PR gdb/15415
533 * corefile.c (get_exec_file): Use exec_filename.
534 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
535 * exec.c (exec_close): Free EXEC_FILENAME.
536 (exec_file_attach): New variable canonical_pathname. Use
537 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
538 EXEC_FILENAME.
539 * exec.h (exec_filename): New.
540 * inferior.c (print_inferior, inferior_command): Use
541 PSPACE_EXEC_FILENAME.
542 * mi/mi-main.c (print_one_inferior): Likewise.
543 * progspace.c (clone_program_space, print_program_space): Likewise.
544 * progspace.h (struct program_space): New field pspace_exec_filename.
545 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
546 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
547
59ee9f94
WN
5482013-08-28 Will Newton <will.newton@linaro.org>
549
550 * common/linux-ptrace.c: Include stdint.h unconditionally.
551
c8a2a419
JK
5522013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
553
554 Code cleanup.
555 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
556
ffa4ac95
YQ
5572013-08-28 Yao Qi <yao@codesourcery.com>
558 Pedro Alves <palves@redhat.com>
559
560 * event-top.c (gdb_setup_readline): Call stderr_fileopen
561 instead of stdio_fileopen.
562 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
563 .Call stderr_fileopen instead of stdio_fileopen.
564 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
565 [__MINGW32__] (stderr_file_fputs): New function.
566 (stderr_fileopen): New function.
567 * ui-file.h (stderr_fileopen): Declare.
568
69d751e3
DE
5692013-08-27 Doug Evans <dje@google.com>
570
571 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
572 (struct dwarf2_per_cu_data): Ditto.
573 (maybe_queue_comp_unit): Delete forward decl. Add comment.
574 (process_imported_unit_die): Ditto.
575 (follow_die_sig_1): Simplify assert.
576
44f38867
PA
5772013-08-27 Pedro Alves <palves@redhat.com>
578
579 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
580 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
581 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
582 windows_xfer_memory directly.
583 (init_windows_ops): Don't install a deprecated_xfer_memory method.
584
d28d46b5
PA
5852013-08-27 Pedro Alves <palves@redhat.com>
586
587 * darwin-nat.c (darwin_xfer_memory): Delete.
588 (_initialize_darwin_inferior): Don't install a
589 deprecated_xfer_memory method.
590
6211c335
YQ
5912013-08-27 Pedro Alves <pedro@codesourcery.com>
592 Yao Qi <yao@codesourcery.com>
593
594 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
595 (parse_no_frames_option): Remove.
596 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
597 (mi_cmd_stack_list_args): Adjust.
598 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
599 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
600 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
601 Caller update.
602 (list_args_or_locals): New parameter 'skip_unavailable'.
603 Handle it.
604 * valprint.c (scalar_type_p): Rename to ...
605 (val_print_scalar_type_p): ... this. Make extern.
606 (val_print, value_check_printable): Adjust.
607 * valprint.h (val_print_scalar_type_p): Declare.
608 * value.c (value_entirely_unavailable): New function.
609 * value.h (value_entirely_unavailable): Declare.
610
611 * NEWS: Mention the new option "--skip-unavailable" to MI
612 commands '-stack-list-locals', '-stack-list-arguments' and
613 '-stack-list-variables'.
614
242f1fd7
YQ
6152013-08-27 Yao Qi <yao@codesourcery.com>
616
617 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
618 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
619 options.
620 * mi/mi-getopt.c (mi_getopt): Remove.
621 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
622 'error_on_unknown'.
623 (mi_getopt): Call mi_getopt_1.
624 (mi_getopt_silent): New.
625 * mi/mi-getopt.h (mi_getopt_silent): Declare.
626
260b681b
DE
6272013-08-26 Doug Evans <dje@google.com>
628
779bd270
DE
629 PR symtab/15885
630 * dwarf2read.c (dw2_dump): Print some minimal information indicating
631 .gdb_index is in use.
632 * symfile.c (reread_symbols): Reset objfile->sf.
633
52e260a3
DE
634 * NEWS: Document "mt print objfiles" now takes optional regexp.
635 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
636 regexp of objfiles to print.
637 (_initialize_symmisc): Update doc string for "mt print objfiles".
638
260b681b
DE
639 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
640 missing debug info checks.
641
a85c52f2
UW
6422013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
643 Ulrich Weigand <uweigand@de.ibm.com>
644
645 * xcoffread.c (arrange_linetable): Add fix to correctly handle
646 line tables generated by XLC compiled binaries.
647
4f00dda3
DE
6482013-08-23 Doug Evans <dje@google.com>
649
db68bbae
DE
650 * symmisc.c (dump_symtab): Delete prototype.
651 (dump_msymbols, dump_objfile): Ditto.
652 (maintenance_info_symtabs): Mark as dont_repeat.
653 (_initialize_symmisc): Improve doc string for "mt info symtabs".
654
4f00dda3
DE
655 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
656 debugging printf to better location.
657
23d577b0
PA
6582013-08-23 Pedro Alves <palves@redhat.com>
659
660 * target.c (target_read_live_memory): Change type of 'ret' local
661 to LONGEST.
662
00d84524
PA
6632013-08-23 Pedro Alves <palves@redhat.com>
664
665 * remote.c (remote_write_bytes_aux, remote_write_bytes)
666 (remote_read_bytes): Change return type to LONGEST, and adjust to
667 return a target_xfer_error on error.
668 (remote_xfer_memory): Delete.
669 (remote_flash_write): Change type of 'ret' local to LONGEST.
670 (remote_xfer_partial, remote_xfer_partial): Adjust.
671 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
672
1ed3ee94
PM
6732013-08-23 Pierre Muller <muller@sourceware.org>
674
675 ARI fix: Push # directives to start of line.
676 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
677
9eaabc75
MW
6782013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
679
680 PR gdb/15501
681 * breakpoint.c (enable_command, disable_command): Iterate over
682 all specified breakpoint locations.
683
101158d9
LM
6842013-08-22 Luis Machado <lgustavo@codesourcery.com>
685
686 * common/linux-ptrace.c (linux_fork_to_function): Push #
687 directives to the start of the line.
688 (linux_check_ptrace_features): Fix warning message to use
689 the "_" markup.
690
96d7229d
LM
6912013-08-22 Luis Machado <lgustavo@codesourcery.com>
692
693 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
694 nat/linux-waitpid.h.
695 (linux-waitpid.o): New object file rule.
696 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
697 (current_ptrace_options): Moved from linux-nat.c.
698 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
699 parameters.
700 (linux_fork_to_function): New function.
701 (linux_grandchild_function): Likewise.
702 (linux_child_function): Likewise.
703 (linux_check_ptrace_features): New function, heavily
704 based on linux-nat.c:linux_test_for_tracefork.
705 (linux_enable_event_reporting): New function.
706 (ptrace_supports_feature): Likewise.
707 (linux_supports_tracefork): Likewise.
708 (linux_supports_traceclone): Likewise.
709 (linux_supports_tracevforkdone): Likewise.
710 (linux_supports_tracesysgood): Likewise.
711 * common/linux-ptrace.h (HAS_NOMMU): Moved from
712 gdbserver/linux-low.c.
713 (linux_enable_event_reporting): New declaration.
714 (linux_supports_tracefork): Likewise.
715 (linux_supports_traceclone): Likewise.
716 (linux_supports_tracevforkdone): Likewise.
717 (linux_supports_tracesysgood): Likewise.
718 * config.in (PTRACE_TYPE_ARG4): Regenerate.
719 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
720 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
721 * config/arm/linux.mh (NATDEPFILES): Likewise.
722 * config/i386/linux.mh (NATDEPFILES): Likewise.
723 * config/i386/linux64.mh (NATDEPFILES): Likewise.
724 * config/ia64/linux.mh (NATDEPFILES): Likewise.
725 * config/m32r/linux.mh (NATDEPFILES): Likewise.
726 * config/m68k/linux.mh (NATDEPFILES): Likewise.
727 * config/mips/linux.mh (NATDEPFILES): Likewise.
728 * config/pa/linux.mh (NATDEPFILES): Likewise..
729 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
730 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
731 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
732 * config/sparc/linux.mh (NATDEPFILES): Likewise.
733 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
734 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
735 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
736 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
737 ptrace's 4th argument's types.
738 Check the type of PTRACE_TYPE_ARG4.
739 * configure: Regenerate.
740 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
741 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
742 (linux_supports_tracefork_flag): Remove.
743 (linux_supports_tracesysgood_flag): Likewise.
744 (linux_supports_tracevforkdone_flag): Likewise.
745 (current_ptrace_options): Moved to
746 common/linux-ptrace.c.
747 (linux_tracefork_child): Remove.
748 (my_waitpid): Remove.
749 (linux_test_for_tracefork): Renamed to
750 linux_check_ptrace_features and moved to common/linux-ptrace.c.
751 (linux_test_for_tracesysgood): Remove.
752 (linux_supports_tracesysgood): Remove.
753 (linux_supports_tracefork): Remove.
754 (linux_supports_tracevforkdone): Remove.
755 (linux_enable_tracesysgood): Remove.
756 (linux_enable_event_reporting): Remove.
757 (linux_init_ptrace): New function.
758 (linux_child_post_attach): Call linux_init_ptrace.
759 (linux_child_post_startup_inferior): Call linux_init_ptrace.
760 (linux_child_follow_fork): Call linux_supports_tracefork
761 and linux_supports_tracevforkdone.
762 (linux_child_insert_fork_catchpoint): Call
763 linux_supports_tracefork.
764 (linux_child_insert_vfork_catchpoint): Likewise.
765 (linux_child_set_syscall_catchpoint): Call
766 linux_supports_tracesysgood.
767 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
768 * nat/linux-nat.h: New file.
769 * nat/linux-waitpid.c: New file.
770 * nat/linux-waitpid.h: New file.
771
9f948660
SDJ
7722013-08-22 Samuel Bronson <naesten@gmail.com>
773
774 ARM Linux support for `catch syscall'.
775 * syscalls/arm-linux.py: New file.
776 * syscalls/arm-linux.xml: Likewise.
777 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
778 (arm_linux_init_abi): Register the new function and syscall xml file.
779 * data-directory/Makefile.in: Install the new syscall xml file.
780 * NEWS: Brag about this.
781
6be7b56e
PA
7822013-08-22 Pedro Alves <palves@redhat.com>
783
784 PR gdb/15871
785 * corefile.c (target_xfer_memory_error): New function.
786 (memory_error): Defer EIO to target_memory_error.
787 (read_memory): Use target_xfer_partial, and handle finer-grained
788 target xfer errors.
789 * target.c (target_xfer_error_to_string): New function.
790 (memory_xfer_partial_1): If memory is known to be
791 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
792 (target_xfer_partial): Make extern.
793 * target.h (enum target_xfer_error): New enum.
794 (target_xfer_error_to_string): Declare function.
795 (target_xfer_partial): Declare function.
796 (struct target_ops) <xfer_partial>: Adjust describing comment.
797
bcbec14e
AM
7982013-08-22 Alan Modra <amodra@gmail.com>
799
800 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
801 * configure.tgt: Likewise as targets.
802
fc474241
DE
8032013-08-20 Doug Evans <dje@google.com>
804
805 * buildsym.c (subfile_stack): Move here from buildsym.h.
806 (pending_macros): Ditto.
807 (get_macro_table): New function.
808 (buildsym_init): Initialize subfile_stack.
809 * coffread.c (type_vector,type_vector_length): Moved here from
810 buildsym.h.
811 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
812 (coff_symtab_read): Use it.
813 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
814 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
815 with call to get_macro_table.
816 * stabsread.c (type_vector,type_vector_length): Moved here from
817 buildsym.h.
818 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
819 * buildsym.h (get_macro_table): Declare.
820
bec71544
TT
8212013-08-20 Tom Tromey <tromey@redhat.com>
822
823 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
824 Update.
825 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
826
0002ad5f
DE
8272013-08-20 Doug Evans <dje@google.com>
828
829 * blockframe.c: Remove #include "psymtab.h".
830 * cp-support.c: Ditto.
831 * source.c: Ditto.
832 * stack.c: Ditto.
833
df302446
TT
8342013-08-20 Tom Tromey <tromey@redhat.com>
835
836 PR python/15816:
837 * exceptions.h (return_mask): Now an enum.
838 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
839 enum constants.
840
df6d5441
TT
8412013-08-20 Tom Tromey <tromey@redhat.com>
842
843 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
844 get_objfile_arch.
845 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
846 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
847 * jit.c (jit_object_close_impl): Update.
848 * jv-lang.c (get_dynamics_objfile): Update.
849 * linespec.c (add_minsym): Use get_dynamics_objfile.
850 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
851 (allocate_objfile): Don't initialize 'gdbarch' field.
852 (get_objfile_arch): Update.
853 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
854 moved from...
855 (struct objfile) <gdbarch>: ... here. Remove.
856 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
857 get_objfile_arch.
858 * symfile.c (init_entry_point_info): Use get_objfile_arch.
859
f5aee5ee
AM
8602013-08-20 Alan Modra <amodra@gmail.com>
861
862 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
863 for IBM long double nan and inf.
864 (floatformat_is_negative, floatformat_classify,
865 floatformat_mantissa): Similarly.
866 (floatformat_ieee_single, floatformat_ieee_double,
867 floatformat_ieee_quad, floatformat_arm_ext,
868 floatformat_ia64_spill): Delete unused vars.
869 (_initialize_doublest): Delete unused function.
870 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
871 little-endian variants of floatformat_ibm_long_double.
872
33b60d58 8732013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 874
33b60d58
LM
875 * Makefile.in (SFILES): Remove common/target-common.c and
876 add target/waitstatus.c.
877 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
878 target/resume.h, target/wait.h and target/waitstatus.h.
879 (COMMON_OBS): Remove target-common.o and add
880 waitstatus.o.
881 (target-common.o): Remove.
882 (waitstatus.o): New target object file.
883 * common/target-common.c: Move contents to
884 target/waitstatus.c and remove.
885 * common/target-common.h: Move contents to other files and
886 remove.
887 (enum resume_kind: Move to target/resume.h.
888 (TARGET_WNOHANG): Move to target/wait.h.
889 (enum target_waitkind): Move to target/waitstatus.h.
890 (struct target_waitstatus): Likewise.
891 * target.h: Do not include target-common.h and
892 include target/resume.h, target/wait.h and
893 target/waitstatus.h.
894 * target/resume.h: New file.
895 * target/wait.h: New file.
896 * target/waitstatus.h: New file.
897 * target/waitstatus.c: New file.
898
12696c10
PA
8992013-08-19 Pedro Alves <palves@redhat.com>
900
901 * linux-nat.c (linux_test_for_tracefork)
902 (linux_test_for_tracesysgood, linux_child_follow_fork)
903 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
904 (linux_nat_wait_1): Extend comment.
905 (linux_async_pipe): Add comment.
906
ba89f962
KB
9072013-08-15 Kevin Buettner <kevinb@redhat.com>
908
909 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
910 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
911 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
912 Update to account for fact that PC is now a pseudo-register.
913 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
914 cases for RL78_PC_REGNUM.
915
35ab155d
MB
9162013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
917
918 PR cli/15841
919 * top.c (quit_force): Skip writing history file
920 if input is not from terminal.
921
0d031856
TT
9222013-08-14 Tom Tromey <tromey@redhat.com>
923
924 * remote.c (struct remote_state) <echo_nextthread, nextthread,
925 resultthreadlist>: New fields.
926 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
927 (remote_get_threadlist, remote_threadlist_iterator): Use
928 new fields. Remove static variables.
929
ee154bee
TT
9302013-08-14 Tom Tromey <tromey@redhat.com>
931
932 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
933 remote_watch_data_address>: New fields.
934 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
935 (process_stop_reply, remote_wait_as)
936 (remote_check_watch_resources, remote_stopped_data_address): Update.
937
88b496c3
TT
9382013-08-14 Tom Tromey <tromey@redhat.com>
939
940 * remote.c (struct remote_state) <async_client_callback,
941 async_client_context>: New fields.
942 (async_client_callback, async_client_context): Remove.
943 (remote_async_serial_handler, remote_async): Update.
944
2f65bcb7
TT
9452013-08-14 Tom Tromey <tromey@redhat.com>
946
947 * remote.c (sizeof_pkt): Remove.
948 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
949
b80fafe3
TT
9502013-08-14 Tom Tromey <tromey@redhat.com>
951
952 * remote.c (struct remote_state) <use_threadinfo_query,
953 use_threadextra_query>: New fields.
954 (remote_threads_info, remote_threads_extra_info)
955 (remote_open_1): Update.
956
8e88304f
TT
9572013-08-14 Tom Tromey <tromey@redhat.com>
958
959 * remote.c (struct remote_state) <finished_object,
960 finished_annex, finished_offset>: New fields.
961 (remote_read_qxfer): Use remote_state fields; remove static
962 variables.
963
280ceea3
TT
9642013-08-14 Tom Tromey <tromey@redhat.com>
965
966 * remote.c (struct remote_state) <last_sent_step>:
967 New field.
968 (last_sent_step): Remove.
969 (remote_resume, remote_wait_as): Update.
970
b73be471
TT
9712013-08-14 Tom Tromey <tromey@redhat.com>
972
973 * remote.c (struct remote_state) <last_sent_signal>:
974 New field.
975 (last_sent_signal): Remove.
976 (new_remote_state, remote_resume, remote_wait_as): Update.
977
5e4a05c4
TT
9782013-08-14 Tom Tromey <tromey@redhat.com>
979
980 * remote.c (struct remote_state) <last_program_signals_packet>:
981 New field.
982 (last_program_signals_packet): Remove.
983 (remote_program_signals, remote_open_1): Update.
984
747dc59d
TT
9852013-08-14 Tom Tromey <tromey@redhat.com>
986
987 * remote.c (struct remote_state) <last_pass_packet>:
988 New field.
989 (last_pass_packet): Remove.
990 (remote_pass_signals, remote_open_1): Update.
991
262e1174
TT
9922013-08-14 Tom Tromey <tromey@redhat.com>
993
994 * remote.c (struct remote_state) <remote_traceframe_number>:
995 New field.
996 (remote_traceframe_number): Remove.
997 (new_remote_state, remote_open_1, set_remote_traceframe)
998 (remote_trace_find): Update.
999
47f8a51d
TT
10002013-08-14 Tom Tromey <tromey@redhat.com>
1001
1002 * remote.c (struct remote_state) <general_thread, continue_thread>:
1003 New fields.
1004 (general_thread, continue_thread): Remove.
1005 (record_currthread, set_thread, set_general_process)
1006 (remote_open_1, extended_remote_attach_1, remote_wait_as)
1007 (extended_remote_mourn_1): Update.
1008
5d93a237
TT
10092013-08-14 Tom Tromey <tromey@redhat.com>
1010
1011 * remote.c (struct remote_state) <remote_desc>: New field.
1012 (remote_desc): Remove.
1013 (remote_threads_info, remote_threads_extra_info, remote_close)
1014 (send_interrupt_sequence, remote_start_remote, remote_open_1)
1015 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
1016 (remote_hostio_send_command, remote_file_put, remote_file_get)
1017 (remote_file_delete, remote_can_async_p, remote_is_async_p)
1018 (remote_async, remote_new_objfile, set_range_stepping): Update.
1019
cf792862
TT
10202013-08-14 Tom Tromey <tromey@redhat.com>
1021
1022 * remote.c (remote_state): Now a pointer.
1023 (get_remote_state_raw): Update.
1024 (new_remote_state): New function.
1025 (_initialize_remote): Use new_remote_state.
1026
dc473cfb
TT
10272013-08-14 Tom Tromey <tromey@redhat.com>
1028
1029 * remote.c (remote_protocol_features): Now const.
1030
85ec6ce7
TT
10312013-08-14 Tom Tromey <tromey@redhat.com>
1032
1033 * remote.c (crc32_table, crc32): Remove.
1034 (remote_verify_memory): Use xcrc32.
1035
73033f12
SDJ
10362013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
1037
1038 * value.h (create_internalvar_type_lazy): Adjust prototype
1039 declaration.
1040
5c30d39a
AB
10412013-08-13 Andrew Burgess <aburgess@broadcom.com>
1042
1043 * common/format.c (parse_format_string): Don't allow '#' flag for
1044 pointer arguments in format string.
1045
1a66331e
PM
10462013-08-13 Pierre Muller <muller@sourceware.org>
1047
fde605f3 1048 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
1049 if rl_get_screen_size did not return useful values.
1050
b4013987
AA
10512013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
1052
1053 PR breakpoints/15117
1054 * linespec.c (linespec_parse_basic): Check for convenience
1055 variable or history value while parsing.
1056
959b6a66
SDJ
10572013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
1058
1059 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
1060 AVR.
1061 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
1062 different signals between the generic Linux kernel implementation
1063 and AVR's.
1064 (avr_linux_gdb_signal_from_target): Delete.
1065 (avr_linux_gdb_signal_to_target): Delete.
1066 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
1067
24a55014
DE
10682013-08-09 Doug Evans <dje@google.com>
1069
1070 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
1071 entries.
1072
eb14d406
SDJ
10732013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
1074
1075 * linux-tdep.c: Define enum with generic signal numbers.
1076 (linux_gdb_signal_from_target): New function.
1077 (linux_gdb_signal_to_target): Likewise.
1078 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1079 methods to the functions above.
1080 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
1081 (linux_gdb_signal_to_target): Likewise.
1082 * alpha-linux-tdep.c: Define new enum with signals different
1083 from generic Linux kernel.
1084 (alpha_linux_gdb_signal_from_target): New function.
1085 (alpha_linux_gdb_signal_to_target): Likewise.
1086 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1087 with the functions mentioned above.
1088 * avr-tdep.c: Define enum with differences between Linux kernel
1089 and AVR signals.
1090 (avr_linux_gdb_signal_from_target): New function.
1091 (avr_linux_gdb_signal_to_target): Likewise.
1092 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
1093 the functions mentioned above.
1094 * sparc-linux-tdep.c: Define enum with differences between SPARC
1095 and generic Linux kernel signal numbers.
1096 (sparc32_linux_gdb_signal_from_target): New function.
1097 (sparc32_linux_gdb_signal_to_target): Likewise.
1098 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1099 to the functions defined above.
1100 * xtensa-linux-tdep.c: Define enum with differences between
1101 Xtensa and Linux kernel generic signals.
1102 (xtensa_linux_gdb_signal_from_target): New function.
1103 (xtensa_linux_gdb_signal_to_target): Likewise.
1104 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
1105 to the functions defined above.
1106 * mips-linux-tdep.c: Define enum with differences between
1107 signals in MIPS and Linux kernel generic ones.
1108 (mips_gdb_signal_to_target): New function.
1109 (mips_gdb_signal_from_target): Redefine to use new enum, handle
1110 only different signals from the Linux kernel generic.
1111 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1112 the functions defined above.
1113 * mips-linux-tdep.h (enum mips_signals): Remove.
1114
156d08c8
PA
11152013-08-09 Pedro Alves <palves@redhat.com>
1116
1117 * avr-tdep.c (XMALLOC): Delete macro.
1118 * cli/cli-dump.c (XMALLOC): Delete macro.
1119
db229724
PA
11202013-08-09 Pedro Alves <palves@redhat.com>
1121
1122 * cli/cli-dump.c: Don't include cli/cli-dump.h.
1123 (scan_expression_with_cleanup, scan_filename_with_cleanup)
1124 (fopen_with_cleanup, add_dump_command): Make static.
1125 * cli/cli-dump.h: Delete file.
1126 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
1127 cli/cli-dump.h.
1128
3f12a589
PA
11292013-08-09 Pedro Alves <palves@redhat.com>
1130
1131 * tracepoint.c (tfile_start): Show tilde-expanded filename in
1132 error message.
1133
c718be47
PA
11342013-08-09 Pedro Alves <palves@redhat.com>
1135
156d08c8 1136 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
1137 error message.
1138
1e351ed1
PA
11392013-08-09 Pedro Alves <palves@redhat.com>
1140
1141 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
1142 (gcore_command): Use tilde_expand here, and when showing the
1143 filename to the user, show the expanded version.
1144
1ed8d800
YQ
11452013-08-09 Yao Qi <yao@codesourcery.com>
1146
1147 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
1148 'entryval' is set.
1149
47ecca85
PA
11502013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
1151
1152 * gcore.c (create_gcore_bfd): Use tilde_expand.
1153
82a0a75f
YQ
11542013-08-08 Yao Qi <yao@codesourcery.com>
1155
1156 * frame.h (read_frame_local): Declare.
1157 * mi/mi-cmd-stack.c (list_args_or_locals): Call
1158 read_frame_local.
1159 * stack.c (read_frame_local): New.
1160
5c4aa40b
YQ
11612013-08-08 Yao Qi <yao@codesourcery.com>
1162
1163 * mi/mi-cmd-stack.c: Update comments to function
1164 list_args_or_locals.
1165
b93601f3
TT
11662013-08-07 Tom Tromey <tromey@redhat.com>
1167
1168 PR symtab/15028:
1169 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
1170 (process_psymtab_comp_unit_reader): Use it.
1171 (process_psymtab_comp_unit): Update. Add "pretend_language"
1172 argument.
1173 (dwarf2_build_psymtabs_hard): Update.
1174 (scan_partial_symbols): Pass CU's language to
1175 process_psymtab_comp_unit.
1176
fa760f46
TT
11772013-08-07 Tom Tromey <tromey@redhat.com>
1178
1179 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
1180 (dwarf2_gdb_index_functions): Update.
1181 * psymtab.c (find_symbol_file_from_partial): Remove.
1182 (psym_functions): Update.
1183 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1184 Remove.
1185
bf6d8a91
TT
11862013-08-07 Tom Tromey <tromey@redhat.com>
1187
1188 * symfile.c (set_initial_language): Look up "main" symbol
1189 and use its language.
1190 * symtab.c (find_main_filename): Remove.
1191 * symtab.h (find_main_filename): Remove.
1192
f9125b6c
TT
11932013-08-07 Tom Tromey <tromey@redhat.com>
1194
1195 * dwarf2read.c (recursively_compute_inclusions): Add
1196 "immediate_parent" argument. Set symtab's "user" field
1197 if not set.
1198 (compute_symtab_includes): Update.
1199
fdbb204b
TT
12002013-08-07 Tom Tromey <tromey@redhat.com>
1201
1202 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
1203 when adding label symbols.
1204
49de1690
UW
12052013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1206 Ulrich Weigand <uweigand@de.ibm.com>
1207
1208 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
1209 * configure.host (powerpc64-*-aix*): Likewise.
1210
b08ee99f
UW
12112013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1212 Ulrich Weigand <uweigand@de.ibm.com>
1213
1214 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
1215 is defined.
1216 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
1217 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
1218 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
1219 * configure.ac: Check for ptrace64.
1220 * configure, config.in: Regenerate.
1221
fecf803e
UW
12222013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1223 Ulrich Weigand <uweigand@de.ibm.com>
1224
1225 * aixthread.c: Call ptrace64 instead of ptracex if defined.
1226 Call ptrace64 instead of ptrace if defined.
1227 Add macro addr_ptr to take care of ptrace address argument.
1228 (pdc_read_regs): Likewise.
1229 (pdc_write_regs): Likewise.
1230 (aix_thread_resume): Likewise.
1231 (fetch_regs_kernel_thread): Likewise.
1232 (store_regs_kernel_thread): Likewise.
1233
3bb5e4a8
AB
12342013-08-07 Anton Blanchard <anton@samba.org>
1235
1236 * MAINTAINERS: Add myself to Write After Approval.
1237
12070676
TT
12382013-08-05 Tom Tromey <tromey@redhat.com>
1239
1240 * aix-thread.c (_initialize_aix_thread): Use
1241 complete_target_initialization.
1242 * bsd-uthread.c (_initialize_bsd_uthread): Use
1243 complete_target_initialization.
1244 * dec-thread.c (_initialize_dec_thread): Use
1245 complete_target_initialization.
1246 * ravenscar-thread.c (_initialize_ravenscar): Use
1247 complete_target_initialization.
1248 * sol-thread.c (_initialize_sol_thread): Use
1249 complete_target_initialization.
1250 * spu-multiarch.c (_initialize_spu_multiarch): Use
1251 complete_target_initialization.
1252
7c7b6655
TT
12532013-08-05 Tom Tromey <tromey@redhat.com>
1254
1255 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
1256 * ada-lang.c (ada_lookup_simple_minsym): Return
1257 bound_minimal_symbol.
1258 * ada-lang.h (ada_lookup_simple_minsym): Update.
1259 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
1260 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
1261 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
1262 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
1263 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
1264 * minsyms.c (msymbol_objfile): Remove.
1265 (lookup_minimal_symbol_internal): New function, from
1266 lookup_minimal_symbol.
1267 (lookup_minimal_symbol): Rewrite using
1268 lookup_minimal_symbol_internal.
1269 (lookup_bound_minimal_symbol): New function.
1270 * minsyms.h (msymbol_objfile): Remove.
1271 (lookup_bound_minimal_symbol): Declare.
1272 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
1273 * parse.c (write_exp_msymbol): Change parameter to a
1274 bound_minimal_symbol.
1275 (write_dollar_variable): Use lookup_bound_minimal_symbol.
1276 * parser-defs.h (write_exp_msymbol): Update.
1277 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
1278 * symfile.c (simple_read_overlay_table): Use
1279 lookup_bound_minimal_symbol.
1280 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
1281 (search_symbols): Likewise.
1282 (print_msymbol_info): Take a bound_minimal_symbol argument.
1283 (symtab_symbol_info, rbreak_command): Update.
1284 * symtab.h (struct symbol_search) <msymbol>: Change type
1285 to bound_minimal_symbol.
1286 * valops.c (find_function_in_inferior): Use
1287 lookup_bound_minimal_symbol.
1288 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
1289
934b9bac
JK
12902013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1291
1292 Code cleanup.
1293 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
1294 to ...
1295 (async_cleanup_sigint_signal_handler): ... this.
1296 (initialize_sigint_signal_handler): Remove declaration.
1297 (handle_remote_sigint): Rename the declaration to ...
1298 (async_handle_remote_sigint): ... this.
1299 (handle_remote_sigint_twice): Rename the declaration to ...
1300 (async_handle_remote_sigint_twice): ... this.
1301 (async_remote_interrupt, async_remote_interrupt_twice)
1302 (remote_interrupt): Remove the declarations.
1303 (remote_interrupt_twice): Rename the declaration ...
1304 (sync_remote_interrupt_twice): ... this.
1305 (sigint_remote_twice_token): Rename the variable to ...
1306 (async_sigint_remote_twice_token): ... this.
1307 (sigint_remote_token): Rename the variable to ...
1308 (async_sigint_remote_token): ... this.
1309 (initialize_sigint_signal_handler): Rename the function to ...
1310 (async_initialize_sigint_signal_handler): ... this. Update the name
1311 inside.
1312 (handle_remote_sigint): Rename the function to ...
1313 (async_handle_remote_sigint): ... this. Update the names inside.
1314 (handle_remote_sigint_twice): Rename the function to ...
1315 (async_handle_remote_sigint_twice): ... this. Update the names inside.
1316 (cleanup_sigint_signal_handler): Rename the function to ...
1317 (async_cleanup_sigint_signal_handler): ... this.
1318 (remote_interrupt): Rename the function to ...
1319 (sync_remote_interrupt): this. Update the names inside.
1320 (remote_interrupt_twice): Rename the function to ...
1321 (sync_remote_interrupt_twice): this. Update the names inside.
1322 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
1323 (_initialize_remote): Update the names inside.
1324
3a1115a0
TT
13252013-08-02 Tom Tromey <tromey@redhat.com>
1326
1327 PR symtab/15719:
1328 * breakpoint.c (update_watchpoint, watchpoint_check)
1329 (watch_command_1): Update.
1330 * eval.c (fetch_subexp_value): Add "preserve_errors"
1331 parameter.
1332 * ppc-linux-nat.c (check_condition): Update.
1333 * value.h (fetch_subexp_value): Update.
1334
58b19776
AB
13352013-08-02 Andrew Burgess <aburgess@broadcom.com>
1336
1337 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
1338 add_file_handler.
1339
ec94af83
DE
13402013-08-01 Doug Evans <dje@google.com>
1341
7ee85ab1
DE
1342 PR symtab/15691
1343 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
1344 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
1345 Add assert of sig_entry->dwo_unit == NULL.
1346 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
1347 had already been read.
1348 (read_signatured_type): Set per_cu.tu_read.
1349
b846d303
DE
1350 PR symtab/15695
1351 * valops.c (value_struct_elt): Add missing call to check_typedef.
1352 (value_find_oload_method_list): Ditto.
1353
b52109bc
DE
1354 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
1355 effectively, struct symbol_search **.
1356 (make_cleanup_free_search_symbols): Change arg to struct
1357 symbol_search **. All callers updated.
1358 (compare_search_syms): Compare symtab file name and block as well.
1359 (search_symbols_equal): New function.
1360 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
1361 New args new_head, new_tail. Result is now void. Remove dups after
1362 sorting the symbols.
1363 (search_symbols): Sort all found symbols once, after all have been
1364 found, and remove duplicates. Simplify cleanup tracking of result.
1365 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
1366
ec94af83
DE
1367 Further workarounds for binutils/15021.
1368 * dwarf2read.c (recursively_compute_inclusions): Change type of result
1369 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
1370 Watch for duplicate symtabs coming from type units.
1371 (compute_symtab_includes): Update call to
1372 recursively_compute_inclusions. Build vector of included symtabs
1373 instead of per_cus.
1374 * symtab.h (symtab_ptr): New typedef.
1375 (DEF_VEC_P (symtab_ptr)): New VEC type.
1376 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
1377 instead.
1378
b2ae85cf
AB
13792013-08-01 Andrew Burgess <aburgess@broadcom.com>
1380
1381 * cli/cli-script.c (script_from_file): Remove use of
1382 error_pre_print.
1383 * main.c (captured_main): Remove use of error_pre_print and
1384 quit_pre_print.
1385 * utils.c (error_pre_print, quit_pre_print): Remove.
1386 * utils.h (error_pre_print, quit_pre_print): Likewise.
1387
645eab03
YQ
13882013-08-01 Yao Qi <yao@codesourcery.com>
1389
1390 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
1391 with mi_getopt.
1392 (mi_cmd_stack_list_variables): Likewise.
1393
16f92dd4
AB
13942013-07-31 Andrew Burgess <aburgess@broadcom.com>
1395
1396 * exceptions.c (deprecated_throw_reason): Remove.
1397 * exceptions.h (deprecated_throw_reason): Remove.
1398
13f78033
AB
13992013-07-31 Andrew Burgess <aburgess@broadcom.com>
1400
1401 * remote-mips.c (mips_error): Replace use of
1402 deprecated_throw_reason with throw_verror. Use the error message
1403 passed to mips_error as the error message for throw_verror.
1404
039e3c22
AB
14052013-07-31 Andrew Burgess <aburgess@broadcom.com>
1406
1407 * monitor.c (monitor_interrupt_query): Replace use of
1408 deprecated_throw_reason with quit.
1409 * nto-procfs.c (interrupt_query): Likewise.
1410 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
1411 * remote-mips.c (mips_kill): Likewise.
1412 * remote.c (interrupt_query): Likewise.
1413
8150913b
AB
14142013-07-31 Andrew Burgess <aburgess@broadcom.com>
1415
1416 * utils.c (internal_verror): Replace use of deprecated_throw_reason
1417 with call to fatal.
1418
de74e63a
YQ
14192013-07-31 Pedro Alves <pedro@codesourcery.com>
1420 Yao Qi <yao@codesourcery.com>
1421
1422 * tracepoint.c (trace_dump_command): Select the current frame.
1423
247f5c4f
DE
14242013-07-30 Doug Evans <dje@google.com>
1425
1426 * dwarf2read.c (process_queue): Add type signature to debug output.
1427
11b4b7cc
AB
14282013-07-30 Andrew Burgess <aburgess@broadcom.com>
1429
1430 * value.c (value_fetch_lazy): Mark optimized out values as such
1431 rather than raising an error.
1432
b0c54aa5
AB
14332013-07-30 Andrew Burgess <aburgess@broadcom.com>
1434
1435 * value.c (value_fetch_lazy): Ensure parent value is not lazy
1436 before checking which bits of the parent, not the child, value are
1437 valid.
1438
97c85fc6
MB
14392013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
1440
1441 PR gdb/15715
1442 * top.c: Include "filenames.h".
1443 (set_history_filename): New function.
1444 (init_main): Install it as set hook of the "set history filename"
1445 command.
1446
ff39bb5e
SA
14472013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1448
1449 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
1450 attribute parameter.
1451 (dwarf2_const_value_data): Constify struct attribute parameter.
1452 (dwarf2_const_value): Constify struct attribute parameter.
1453 (dwarf2_const_value_attr): Constify struct attribute parameter.
1454 (lookup_die_type): Constify struct attribute parameter.
1455 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
1456 (follow_die_ref_or_sig): Constify struct attribute parameter.
1457 (follow_die_ref): Constify struct attribute parameter.
1458 (follow_die_sig): Constify struct attribute parameter.
1459 (get_DW_AT_signature_type): Constify struct attribute parameter.
1460 (get_type_unit_group): Constify struct attribute parameter.
1461 (fill_in_loclist_baton): Constify struct attribute parameter.
1462 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
1463 (type_unit_group): Constify struct attribute parameter.
1464
6e5a29e1
SA
14652013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1466
1467 * dwarf2read.c (attr_form_is_block): Make argument const.
1468 (attr_form_is_section_offset): Make argument const.
1469 (attr_form_is_constant): Make argument const.
1470 (attr_form_is_ref): Make argument const.
1471
7771576e
SA
14722013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1473
1474 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
1475 All uses updated.
1476 (attr_form_is_ref): Moved below attr_form_is_constant.
1477
a94e8645
DE
14782013-07-29 Doug Evans <dje@google.com>
1479
bb5291d0
DE
1480 * main.c (captured_command_loop): Tweak comment.
1481
b5419e49
DE
1482 * target.c (target_async_permitted_1): Fix comment.
1483
b2d23133
DE
1484 * symtab.c (iterate_over_some_symtabs): Add comment.
1485
a94e8645
DE
1486 * symtab.c (iterate_over_some_symtabs): Fix indentation.
1487
7a60ad40
YQ
14882013-07-27 Yao Qi <yao@codesourcery.com>
1489
1490 * NEWS: Mention that GDBserver now supports hardware
1491 watchpoints on the MIPS GNU/Linux target.
1492
aaee2056
YQ
14932013-07-27 Yao Qi <yao@codesourcery.com>
1494
1495 * Makefile.in (HFILES_NO_SRCDIR): Add
1496 common/mips-linux-watch.h.
1497 (mips-linux-watch.o): New rule.
1498 * common/mips-linux-watch.c: New.
1499 * common/mips-linux-watch.h: New.
1500 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
1501 * mips-linux-nat.c: Include mips-linux-watch.h.
1502 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
1503 to common/mips-linux-watch.h.
1504 (MAX_DEBUG_REGISTER): Likewise.
1505 (enum pt_watch_style): Likewise.
1506 (struct mips32_watch_regs): Likewise.
1507 (struct mips64_watch_regs): Likewise.
1508 (struct pt_watch_regs): Likewise.
1509 (struct mips_watchpoint): Likewise.
1510 (mips_linux_watch_get_irw_mask): Move to
1511 common/mips-linux-watch.c.
1512 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
1513 (mips_linux_watch_get_watchlo): Likewise.
1514 (mips_linux_watch_set_watchlo): Likewise.
1515 (mips_linux_watch_get_watchhi): Likewise.
1516 (mips_linux_watch_set_watchhi): Likewise.
1517 (mips_linux_read_watch_registers): Likewise.
1518 (mips_linux_watch_type_to_irw): Likewise.
1519 (mips_linux_stopped_data_address, fill_mask): Likewise.
1520 (mips_linux_watch_try_one_watch): Likewise.
1521 (mips_linux_watch_populate_regs): Likewise.
1522
b3436450
YQ
15232013-07-27 Yao Qi <yao@codesourcery.com>
1524
1525 * mips-linux-nat.c (get_irw_mask): Rename to ...
1526 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
1527 'set' to 'n'. Update function comment. All callers changed.
1528 (get_reg_mask): Rename parameter 'set' to 'n'. Update
1529 function comment. All callers changed.
1530 (get_num_valid): Rename to ...
1531 (mips_linux_watch_get_num_valid): ... this. Rename parameter
1532 'set' to 'n'. Update function comment. All callers changed.
1533 (get_watchlo): Rename to ...
1534 (mips_linux_watch_get_watchlo): ... this. Rename parameter
1535 'set' to 'n'. Update function comment. All callers changed.
1536 (set_watchlo): Rename to ...
1537 (mips_linux_watch_set_watchlo): ... this. Rename parameter
1538 'set' to 'n'. Update function comment. All callers changed.
1539 (get_watchhi): Rename to ...
1540 (mips_linux_watch_get_watchhi): ... this. Update function
1541 comment. All callers changed.
1542 (set_watchhi): Rename to ...
1543 (mips_linux_watch_set_watchhi): ... this. Update function
1544 comment. All callers changed.
1545 (mips_linux_read_watch_registers): Update function comment.
1546 Add new parameters 'lwpid', 'watch_readback', and
1547 'watch_readback_valid'. Update.
1548 (type_to_irw): Rename to ...
1549 (mips_linux_watch_type_to_irw): ... this. Update function
1550 comment. All callers changed.
1551 (fill_mask): Update function comment.
1552 (try_one_watch): Rename to ...
1553 (mips_linux_watch_try_one_watch): ... this. Change the type
1554 of parameter 'irw' from 'unsigned' to 'uint32_t'.
1555 (populate_regs_from_watches): Rename to ...
1556 (mips_linux_watch_populate_regs): ... this. Add parameter
1557 'current_watches'. All callers changed.
1558
9be14b81
YQ
15592013-07-27 Yao Qi <yao@codesourcery.com>
1560
1561 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
1562 the code.
1563 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
1564 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
1565 (struct pt_watch_regs): Likewise.
1566 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
1567 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
1568 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
1569 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
1570 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
1571
de6f69ad
YQ
15722013-07-27 Yao Qi <yao@codesourcery.com>
1573
1574 * breakpoint.h: Include break-common.h.
1575 (enum target_hw_bp_type): Move to ...
1576 * common/break-common.h: ... here. New.
1577
6f64ef53
PA
15782013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
1579
1580 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
1581 process group regardless of having tty on stdin.
1582
6107e809
DE
15832013-07-25 Doug Evans <dje@google.com>
1584
1585 * linux-fork.h (detach_fork): Delete.
1586
7fdc1521
TT
15872013-07-25 Tom Tromey <tromey@redhat.com>
1588
1589 PR remote/15256, PR remote/15266:
1590 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
1591 * monitor.c (monitor_detach): Use unpush_target.
1592 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
1593 * remote-mips.c (mips_detach): Use unpush_target. Don't
1594 call mips_close.
1595 * remote-sim.c (gdbsim_detach): Use unpush_target.
1596 * target.c (pop_target): Remove.
1597 (pop_all_targets_above): Don't call target_close.
1598 (target_close): Assert that the target is unpushed.
1599 * target.h (pop_target): Don't declare.
1600 * tracepoint.c (tfile_open): Use unpush_target.
1601
c22a2b88
TT
16022013-07-25 Tom Tromey <tromey@redhat.com>
1603
1604 * linux-thread-db.c (init_thread_db_ops): Call
1605 complete_target_initialization.
1606 (_initialize_thread_db): Don't call add_target.
1607 * target.c (complete_target_initialization): New function.
1608 (add_target_with_completer): Call it.
1609 * target.h (complete_target_initialization): Declare.
1610
cbb6aada
MK
16112013-07-25 Mark Kettenis <kettenis@gnu.org>
1612
1613 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
1614 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
1615 (HPPANBSD_SIZEOF_GREGS): New define.
1616 (hppaobsd_supply_gregset): Handle additional registers.
1617 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
1618 we provide more registers now.
1619 (hppabsd_supply_gregset): Supply additional registers.
1620 (hppabsd_collect_gregset): Collect additional registers.
1621
17767988
MK
16222013-07-25 Mark Kettenis <kettenis@gnu.org>
1623
1624 * hppabsd-tdep.c: Include "dwarf2-frame.h".
1625 (hppabsd_dwarf2_frame_init_reg): New function.
1626 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
1627
fdc8aae8
AB
16282013-07-25 Andrew Burgess <aburgess@broadcom.com>
1629
1630 * mi/mi-main.c (output_register): Make MI 'r' format use standard
1631 'z' format code. Remove error for optimized out values, standard
1632 code will handle these fine.
1633
6fbe845e
AB
16342013-07-25 Andrew Burgess <aburgess@broadcom.com>
1635
1636 * NEWS: Mention new 'z' formatter.
1637 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
1638 (_initialize_printcmd): Mention 'z' formatter in help text of the
1639 'x' command.
1640
3373342d
MR
16412013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
1642
1643 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
1644 formatting.
1645
25f9533e
SDJ
16462013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
1647
1648 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
1649 interface can evaluate arguments. Fallback to the old mode if it
1650 cannot.
1651 (create_exception_master_breakpoint): Likewise.
1652 * elfread.c (elf_can_evaluate_probe_arguments): New function.
1653 (struct sym_probe_fns elf_probe_fns): Export function above to the
1654 probe interface.
1655 * probe.c (can_evaluate_probe_arguments): New function.
1656 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
1657 function pointer.
1658 (can_evaluate_probe_arguments): New function prototype.
1659 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
1660 probe interface can evaluate arguments. Fallback to the old mode
1661 if it cannot.
1662 * stap-probe.c (stap_get_probe_argument_count): Check if probe
1663 interface can evaluate arguments. Warning the user if it cannot.
1664 (stap_can_evaluate_probe_arguments): New function.
1665 (struct probe_ops stap_probe_ops): Export function above to the
1666 probe interface.
1667 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
1668 New function pointer.
1669
3360c0bf
LM
16702013-07-24 Luis Machado <lgustavo@codesourcery.com>
1671
1672 * Makefile.in (SFILES): Add common/target-common.c.
1673 Add common/target-common.h to headers.
1674 (COMMON_OBS): Add target-common.o.
1675 (target-common.o): New target.
1676 * linux-nat.h (resume_kind): Move to common/target-common.h.
1677 * target.c (target_waitstatus_to_string): Move to
1678 common/target-common.c.
1679 * target.h: Include target-common.h.
1680 (target_waitkind): Move to common/target-common.h.
1681 (target_waitstatus): Likewise.
1682 (TARGET_WNOHANG): Likewise.
1683 * common/target-common.c: New file.
1684 * common/target-common.h: New file.
1685
6656a72d
DE
16862013-07-24 Doug Evans <dje@google.com>
1687
1688 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
1689 a warning.
1690
6df81a63
YQ
16912013-07-23 Yao Qi <yao@codesourcery.com>
1692
1693 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
1694 parameter 'gdbarch'.
1695 (i386_stack_tramp_frame_sniffer): Caller update.
1696 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
1697 parameter 'gdbarch' and 'target'.
1698 (i386_linux_core_read_description): Caller update.
1699 * amd64-linux-tdep.c (amd64_linux_core_read_description):
1700 Likewise.
1701 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
1702 declaration.
1703
365156ad
TT
17042013-07-23 Tom Tromey <tromey@redhat.com>
1705
1706 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
1707 2013-07-22.
1708
046ac79f
JK
17092013-07-22 Doug Evans <dje@google.com>
1710
1711 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
1712 * exec.c (exec_close): Update call to remove_target_sections.
1713 (remove_target_sections): Delete arg abfd.
046ac79f
JK
1714 * solib.c (update_solib_list): Ditto.
1715 (reload_shared_libraries_1): Ditto.
1716 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
1717 * target.h (struct target_section): Rename key to owner.
1718 All uses updated.
046ac79f 1719
29b2cc46
TT
17202013-07-22 Tom Tromey <tromey@redhat.com>
1721
1722 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
1723
d1160018
TT
17242013-07-22 Tom Tromey <tromey@redhat.com>
1725
1726 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
1727 Simplify cleanup handling.
1728
2f324bf6
TT
17292013-07-22 Tom Tromey <tromey@redhat.com>
1730
1731 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
1732 on all return paths.
1733
e23b9d6e
UW
17342013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1735
1736 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
1737 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
1738 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
1739
1cf55f60
PM
17402013-07-22 Phil Muldoon <pmuldoon@redhat.com>
1741
1742 * top.c (print_gdb_version): Add help, apropos description and
1743 url to online documentation.
1744
fa876972
HZ
17452013-07-19 Hui Zhu <hui@codesourcery.com>
1746
1747 PR gdb/15692
1748 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
1749
1527aea8
YQ
17502013-07-19 Yao Qi <yao@codesourcery.com>
1751
1752 * target.c (update_current_target): Change the default action
1753 of 'to_traceframe_info' from tcomplain to return_zero.
1754 * target.h (struct target_ops) <to_traceframe_info>: Add more
1755 comments.
1756 * valops.c (read_value_memory): Call
1757 traceframe_available_memory unconditionally.
1758
886f230e
YQ
17592013-07-18 Yao Qi <yao@codesourcery.com>
1760
1761 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
1762 if the name is prefixed by "__imp_" or "_imp_", look for minimal
1763 symbol without prefix. If found, set its type to
1764 'mst_solib_trampoline'.
1765
16419bae
DE
17662013-07-17 Doug Evans <dje@google.com>
1767
e7045703
DE
1768 * NEWS: Mention "set print raw frame-arguments".
1769 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
1770 * stack.c (print_raw_frame_arguments): New static global.
1771 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
1772 (_initialize_stack): New command "set/show print raw frame-arguments".
1773 * valprint.c (setprintrawlist, showprintrawlist): New globals.
1774 (set_print_raw, show_print_raw): New functions.
1775 (_initialize_valprint): New prefix command "set/show print raw".
1776 * valprint.h (value_print_options): Improve comments.
1777
453e48a5
DE
1778 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
1779 of all *list variables.
1780
16419bae
DE
1781 * gdbcmd.h (togglelist): Delete.
1782 * cli/cli-cmds.c (togglelist): Delete.
1783 (init_cmd_lists): Update.
1784 * cli/cli-cmds.h (togglelist): Delete.
1785
626f2d1c
TT
17862013-07-17 Tom Tromey <tromey@redhat.com>
1787
1788 * dwarf2read.c (dwarf2_per_objfile_free): Clear
1789 dwarf2_per_objfile.
1790
57e6060e
DE
17912013-07-16 Doug Evans <dje@google.com>
1792
1793 * nto-tdep.c (nto_relocate_section_addresses): Update,
1794 target_section.bfd deleted.
1795 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
1796 * s390-tdep.c (s390_load): Ditto.
1797 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
1798
5ea5559b
AB
17992013-07-16 Andrew Burgess <aburgess@broadcom.com>
1800
1801 * common/format.c (parse_format_string): Add checks for NULL
1802 character before calling strchr.
1803
2b2848e2
DE
18042013-07-16 Doug Evans <dje@google.com>
1805
2c571006
DE
1806 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
1807 temp_pathname argument.
1808 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
1809 when opening the file fails.
1810
2b2848e2
DE
1811 * target.h (struct target_section): Delete member bfd.
1812 All users updated to use the_bfd_section->owner instead.
1813 * exec.c (add_to_section_table): Assert bfd is expected value.
1814 Remove initialization of target_section.bfd.
1815 (remove_target_sections): Update.
1816 (section_table_available_memory): Update.
1817 (section_table_xfer_memory_partial): Update.
1818 (print_section_info): Update.
1819 (exec_set_section_address): Update.
1820 * record-full.c (record_full_core_xfer_partial): Update.
1821 * solib-svr4.c (svr4_relocate_section_addresses): Update.
1822 * solib-target.c (solib_target_relocate_section_addresses): Update.
1823 * symfile.c (build_section_addr_info_from_section_table): Update.
1824 * target.c (memory_xfer_live_readonly_partial): Update.
1825 (memory_xfer_partial_1): Update.
1826
926bf92d
UW
18272013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1828
1829 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
1830 now available for embedded (BookE) and server (BookS) processors,
1831 correct mentions of 'booke' and adjust comments accordingly in order to
1832 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
1833 (have_ptrace_booke_interface): Rename function and variable
1834 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
1835 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
1836 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
1837 'hwdebug_point_cmp'. Update all uses.
1838 (booke_find_thread_points_by_tid): Rename function
1839 'booke_find_thread_points_by_tid' to
1840 'hwdebug_find_thread_points_by_tid'. Update all uses.
1841 (booke_insert_point): Rename function 'booke_insert_point' to
1842 'hwdebug_insert_point'. Update all uses.
1843 (booke_remove_point): Rename function 'booke_remove_point' to
1844 'hwdebug_remove_point'. Update all uses.
1845
d929bc19
MR
18462013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
1847
1848 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
1849 numbers with enum values.
1850
054e8d9e
AA
18512013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
1852
1853 PR threads/13217
1854 * thread.c (thread_apply_all_command): Check for valid threads
1855 and thread count.
1856 (thread_array_cleanup): New struct.
1857 (set_thread_refcount): New function.
1858
cf006359
AB
18592013-07-11 Andrew Burgess <aburgess@broadcom.com>
1860
1861 * infcmd.c (default_print_one_register_info): Reuse function
1862 print_hex_chars.
1863
94e36acc
TT
18642013-07-10 Tom Tromey <tromey@redhat.com>
1865
1866 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
1867 (ada-exp.o): New target.
1868
915dd369
SDJ
18692013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
1870
1871 * mt-tdep.c (mt_registers_info): Call
1872 get_no_prettyformat_print_options instead of
1873 get_raw_print_options (regression by last patch from Doug
1874 Evans).
1875
eca07816
JB
18762013-07-09 Pedro Alves <palves@redhat.com>
1877
1878 Checked in by Joel Brobecker <brobecker@adacore.com>.
1879 * ada-lang.c (coerce_unspec_val_to_type): Use
1880 value_optimized_out_const.
1881 * value.c (value_optimized_out_const): New function.
1882 * value.h (value_optimized_out_const): New declaration.
1883
2a998fc0
DE
18842013-07-09 Doug Evans <dje@google.com>
1885
1886 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
1887 Enum values rename as well. All uses updated.
1888 * valprint.h (value_print_options): Rename member pretty to
1889 pretty format. Rename member prettyprint_arrays to
1890 prettyformat_arrays. Rename member prettyprint_structs to
1891 prettyformat_structs. All uses updated.
1892 (get_no_prettyformat_print_options): Renamed from
1893 get_raw_print_options.
1894 * valprint.c (get_no_prettyformat_print_options): Renamed from
1895 get_raw_print_options. All callers updated.
1896 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
1897 All callers updated.
1898 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
1899 All callers updated.
1900 (_initialize_valprint): Improve help text for "set print pretty" and
1901 "set print arrays".
1902
466c1fca
AB
19032013-07-09 Andrew Burgess <aburgess@broadcom.com>
1904
1905 * value.c (value_bits_valid): Revert previous change, and change
1906 by Pedro on 2013-07-04, due to regressions in
1907 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
1908
ad0f0303
AB
19092013-07-08 Andrew Burgess <aburgess@broadcom.com>
1910 Pedro Alves <palves@redhat.com>
1911
1912 * value.c (value_bits_valid): If the value is not lval_computed
1913 or has no check validity handler then the answer is the
1914 optimized_out flag, otherwise defer to the handler.
1915
b187bec1
EZ
19162013-07-06 Eli Zaretskii <eliz@gnu.org>
1917
48d1d6f5
EZ
1918 * top.c (print_gdb_configuration): Explain in output of
1919 --configuration what does "relocatable" mean.
1920
b187bec1
EZ
1921 * main.c (print_gdb_help): Regroup options in the --help text.
1922 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
1923 the relevant discussions.
1924
52d361e1
YQ
19252013-07-06 Yao Qi <yao@codesourcery.com>
1926
1927 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
1928 Remove parameter 'lsal'.
1929 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
1930 to inner block. Caller update.
1931 (base_breakpoint_create_breakpoints_sal): Update.
1932 (bkpt_create_breakpoints_sal): Likewise.
1933 (tracepoint_create_breakpoints_sal): Likewise.
1934 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
1935 element 0 of vector 'canonical->sals'.
1936
e1ec1b42
LM
19372013-07-05 Luis Machado <lgustavo@codesourcery.com>
1938
1939 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
1940 register number instead of the pseudo register one.
1941 (rs6000_dwarf2_reg_to_regnum): Likewise.
1942
7195e6f0
PA
19432013-07-04 Pedro Alves <palves@redhat.com>
1944
1945 * findvar.c (value_of_register): Use allocate_optimized_out_value
1946 if the register has been optimized out, instead of
1947 set_value_optimized_out.
1948 * frame-unwind.c (frame_unwind_got_optimized): Use
1949 allocate_optimized_out_value.
1950
58722cac
PA
19512013-07-04 Pedro Alves <palves@redhat.com>
1952
1953 * value.c (value_bits_valid): If the value is not lval_computed,
1954 or doesn't have a check_validity hook, assume the value is entirely
1955 valid.
1956
691a26f5
AB
19572013-07-04 Andrew Burgess <aburgess@broadcom.com>
1958
1959 * stack.c (read_frame_arg): No longer fetch lazy values.
1960 * value.c (value_optimized_out): If the value is not already
1961 marked optimized out, and is lazy then fetch it.
1962 (value_primitive_field): Move optimized out check to later in the
1963 function, after we have loaded any lazy values.
1964 (value_fetch_lazy): Use optimized out flag directly rather than
1965 calling optimized_out method.
1966
a58e2656
AB
19672013-07-04 Andrew Burgess <aburgess@broadcom.com>
1968
1969 * valops.c: Don't include "user-regs.h".
1970 (value_fetch_lazy): Moved to value.c.
1971 * value.c: Include "user-regs.h".
1972 (value_fetch_lazy): Moved from valops.c.
1973
bd885420
YQ
19742013-07-04 Yao Qi <yao@codesourcery.com>
1975
1976 Revert:
1977 2013-06-27 Yao Qi <yao@codesourcery.com>
1978
1979 * common/create-version.sh: Update comments. Handle the case
1980 that TARGET_ALIAS is empty.
1981
17ef446e
PA
19822013-07-03 Pedro Alves <palves@redhat.com>
1983
1984 * Makefile.in (config.status): Depend on development.sh.
1985 (aclocal_m4_deps): Add libmcheck.m4.
1986 * acinclude.m4: Include libmcheck.m4.
1987 * configure.ac: Source development.sh instead of setting
1988 'development' here. --enable-libmcheck/--disable-libmcheck code
1989 factored out to GDB_AC_LIBMCHECK. Run it.
1990 * development.sh: New file.
1991 * libmcheck.m4: New file.
1992 * configure: Regenerate.
1993
ac6dd50f
TT
19942013-07-02 Tom Tromey <tromey@redhat.com>
1995
1996 * contrib/ari/update-web-ari.sh: Update for version.in change.
1997
bd1df410
TT
19982013-07-02 Tom Tromey <tromey@redhat.com>
1999
2000 * common/ptid.h: Comment fixes.
2001
4db1a1dc
TT
20022013-07-01 Tom Tromey <tromey@redhat.com>
2003
2004 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
2005 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
2006 (dwarf2_read_index, create_all_comp_units): Update.
2007
dd9aa048
TT
20082013-07-01 Tom Tromey <tromey@redhat.com>
2009
2010 * configure.ac (build_warnings): Add -Wold-style-definition.
2011 * configure: Rebuild.
2012 * machoread.c (_initialize_machoread): Use "(void)".
2013 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
2014 use "(void)".
2015
44d100c3
TT
20162013-07-01 Tom Tromey <tromey@redhat.com>
2017
2018 * configure.ac (build_warnings): Add -Wold-style-declaration.
2019 * configure: Rebuild.
2020 * dsrec.c (make_srec): Use "static const", not "const static".
2021 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
2022 not "const static".
2023 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
2024 Use "static const", not "const static".
2025 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
2026 not "const static".
2027 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
2028 not "const static".
2029 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
2030 not "const static".
2031 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
2032 not "const static".
2033 (v850_dbtrap_breakpoint_from_pc): Likewise.
2034 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
2035 not "const static".
2036
2945b807
TT
20372013-07-01 Tom Tromey <tromey@redhat.com>
2038
2039 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
2040 * configure: Rebuild.
2041
d8d2a3ee
PA
20422013-07-01 Pedro Alves <palves@redhat.com>
2043
2044 * defs.h: Include "pathmax.h".
2045 * utils.c: Don't include sys/param.h.
2046 (gdb_realpath): Remove code that checks for MAXPATHLEN.
2047 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
2048 instead of MAXPATHLEN.
2049 * solib-sunos.c: Don't include sys/param.h.
2050 * xcoffread.c: Don't include sys/param.h.
2051 * bsd-kvm.c: Don't include sys/param.h.
2052 * darwin-nat.c: Don't include sys/param.h.
2053 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2054 * darwin-nat-info.c: Don't include sys/param.h.
2055 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
2056 MAXPATHLEN.
2057 * i386obsd-nat.c: Don't include sys/param.h.
2058 * inf-child.c: Don't include sys/param.h.
2059 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
2060 * linux-fork.c: Don't include sys/param.h.
2061 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
2062 * linux-nat.c: Don't include sys/param.h.
2063 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
2064 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
2065 * m68klinux-nat.c: Don't include sys/param.h.
2066 * nbsd-nat.c: Don't include sys/param.h.
2067 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2068 * ppc-linux-nat.c: Don't include sys/param.h.
2069 * rs6000-nat.c: Don't include sys/param.h.
2070 * spu-linux-nat.c. Don't include sys/param.h.
2071 * windows-nat.c: Don't include sys/param.h.
2072 * xtensa-linux-nat.c: Don't include sys/param.h.
2073 * config/i386/nm-fbsd.h: Don't include sys/param.h.
2074
38ec2207
PA
20752013-07-01 Pedro Alves <palves@redhat.com>
2076
2077 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
2078 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
2079 * gnulib/aclocal.m4: Regenerate.
2080 * gnulib/config.in: Regenerate.
2081 * gnulib/configure: Regenerate.
2082 * gnulib/import/pathmax.h: New file.
2083 * gnulib/import/Makefile.am: Regenerate.
2084 * gnulib/import/Makefile.in: Regenerate.
2085 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2086 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2087 * gnulib/import/m4/pathmax.m4: New file.
2088
e655c1a2
PA
20892013-07-01 Pedro Alves <palves@redhat.com>
2090
2091 * configure.ac (GDBINIT): Define, depending on host.
2092 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
2093 * top.c (PATH_MAX): Delete fallback definition.
2094 (GDBINIT_FILENAME): Delete.
2095 (gdbinit): Reimplement as const char array set to the GDBINIT
2096 string constant.
2097 * top.h (gdbinit): Make const.
2098 * configure, config.in: Regenerate.
2099
50dd9793
PA
21002013-07-01 Pedro Alves <palves@redhat.com>
2101
2102 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
2103 * cli/cli-cmds.h (source_script): Likewise.
2104 * exceptions.c (catch_command_errors_const): New function.
2105 * exceptions.h (catch_command_errors_const): Declare.
2106 * main.c (get_init_files): Make parameters const, and adjust.
2107 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
2108 'local_gdbinit' locals const. Adjust to use
2109 catch_command_errors_const.
2110 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
2111 'local_gdbinit' locals const.
2112
bc7dea8d
PA
21132013-07-01 Pedro Alves <palves@redhat.com>
2114
2115 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
2116 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
2117 * tracepoint.c: Don't check HAVE_UNISTD_H before including
2118 <unistd.h>.
2119
8839a007
PA
21202013-07-01 Pedro Alves <palves@redhat.com>
2121
2122 Import the "unistd" gnulib module.
2123 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
2124 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
2125 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
2126 import/m4/unistd_h.m4.
2127 * gnulib/aclocal.m4: Renenerate.
2128 * gnulib/config.in: Renenerate.
2129 * gnulib/configure: Renenerate.
2130 * gnulib/import/Makefile.am: Renenerate.
2131 * gnulib/import/Makefile.in: Renenerate.
2132 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
2133 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
2134 * gnulib/import/m4/off_t.m4: New file.
2135 * gnulib/import/m4/ssize_t.m4: New file.
2136 * gnulib/import/m4/sys_types_h.m4: New file.
2137 * gnulib/import/m4/unistd_h.m4: New file.
2138 * gnulib/import/sys_types.in.h: New file.
2139 * gnulib/import/unistd.c: New file.
2140 * gnulib/import/unistd.in.h: New file.
2141
8c0da261
PA
21422013-07-01 Pedro Alves <palves@redhat.com>
2143
2144 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
2145 defined instead of checking HAVE_UNISTD_H.
2146
3574124b
PA
21472013-07-01 Pedro Alves <palves@redhat.com>
2148
2149 Reimport gnulib from scratch.
2150 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
2151 import/m4/onceonly.m4.
2152 * gnulib/aclocal.m4: Renegerate.
2153 * gnulib/config.in: Renegerate.
2154 * gnulib/configure: Renegerate.
2155 * gnulib/import/Makefile.in: Renegerate.
2156 * gnulib/import/extra/update-copyright: Renegerate.
2157 * gnulib/import/m4/onceonly.m4: Delete.
2158
702dc4fd
PA
21592013-07-01 Pedro Alves <palves@redhat.com>
2160
2161 * tui/tui-regs.c (pagination_enabled): Delete declaration.
2162
47e1ce27
JK
21632013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2164
2165 Code cleanup.
2166 * remote.c (async_remote_interrupt_twice): Make it static.
2167 * remote.h (async_remote_interrupt_twice): Remove the declaration.
2168
e82839d4
SDJ
21692013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
2170
2171 * ia64-linux-tdep.c: Include <ctype.h>.
2172 (ia64_linux_stap_is_single_operand): New function.
2173 (ia64_linux_init_abi): Initialize SystemTap related attributes.
2174
d6c2da54
TT
21752013-06-28 Tom Tromey <tromey@redhat.com>
2176
2177 * Makefile.in (version.c): Use version.in, not
2178 common/version.in.
2179 * common/create-version.sh: Likewise.
2180 * common/version.in: Move...
2181 * version.in: ...here.
2182
74da6f00
PA
21832013-06-28 Pedro Alves <palves@redhat.com>
2184
2185 * infrun.c (set_observer_mode): Don't declare pagination_enabled
2186 here.
2187 * utils.h (pagination_enabled): Declare.
2188
d32dc48e
PA
21892013-06-28 Pedro Alves <palves@redhat.com>
2190
2191 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
2192 Move higher up in file.
2193
0edd9e3b
TT
21942013-06-28 Tom Tromey <tromey@redhat.com>
2195
2196 * tracepoint.c (deprecated_readline_begin_hook)
2197 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
2198 declare.
2199
4eb59108
PA
22002013-06-28 Pedro Alves <palves@redhat.com>
2201
2202 PR tui/14880
2203 * tui/tui-regs.c (tui_get_register): Fetch value contents before
2204 checking if they're available.
2205 * value.c (value_available_contents_eq): Change comment.
2206 * value.h (value_available_contents_eq): Expand comment.
2207
97b17156
TT
22082013-06-27 Tom Tromey <tromey@redhat.com>
2209
2210 * target.c (find_run_target): Remove.
2211 * target.h (find_run_target): Remove.
2212
6a3bfc5c
TT
22132013-06-27 Tom Tromey <tromey@redhat.com>
2214
2215 * corelow.c (core_gdbarch): Now static.
2216
c9ef825d
TT
22172013-06-27 Tom Tromey <tromey@redhat.com>
2218
2219 * target.c (target_struct_index): Remove.
2220
e5823f1c
PA
22212013-06-27 Pedro Alves <palves@redhat.com>
2222
2223 * infrun.c: Remove comment describing the 'stepping over runtime
2224 loader dynamic symbol resolution code' mechanism; moved to
2225 gdbint.texinfo.
2226
97f8dd09
PA
22272013-06-27 Pedro Alves <palves@redhat.com>
2228
2229 * exceptions.c (catch_command_errors): Remove spurious space.
2230 * exceptions.h (catch_command_errors): Second parameter is "arg",
2231 not "command".
2232
02b1871e
YQ
22332013-06-27 Yao Qi <yao@codesourcery.com>
2234
2235 * common/create-version.sh: Update comments. Handle the case
2236 that TARGET_ALIAS is empty.
2237
bb1b1cf1
PA
22382013-06-26 Pedro Alves <palves@redhat.com>
2239
2240 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
2241 comment.
2242
7b624e71
PA
22432013-06-26 Pedro Alves <palves@redhat.com>
2244
2245 * infrun.c: Update comments on stepping over runtime loader
2246 dynamic symbol resolution code.
2247
74e5a346
SDJ
22482013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
2249
2250 * ax-gdb.h (union exp_element): Forward declare.
2251 * parser-defs.h: Include expression.h.
2252
a2fb2cee
MR
22532013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2254
2255 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
2256
cdba14e0
DK
22572013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2258
2259 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
2260
f30aa5af
DK
22612013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2262
2263 Fix trace-status to output proper start-time and stop-time.
2264 * tracepoint.c (trace_status_command): Fix type of printf arg to
2265 prevent improper type conversion.
2266 (trace_status_mi): Likewise.
2267
1aee363c
MR
22682013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2269
2270 * mips-tdep.c (mips_next_pc): Fix a typo.
2271
3356937a
MR
22722013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2273
2274 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
2275
dc673c81
YQ
22762013-06-26 Pedro Alves <pedro@codesourcery.com>
2277 Yao Qi <yao@codesourcery.com>
2278
2279 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
2280 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
2281 * mi/mi-main.c (print_variable_or_computed): New function.
2282 (mi_cmd_trace_frame_collected): New function.
2283 * tracepoint.c (find_trace_state_variable_by_number): New.
2284 (struct traceframe_info): Move to tracepoint.h
2285 (struct collection_list): Likewise.
2286 (do_collect_symbol): Include locals and arguments in the
2287 collected variables list.
2288 (clear_collection_list): Clear wholly collected variables list
2289 and computed variables list.
2290 (append_exp): New function.
2291 (encode_actions_1): Include variables in the wholly
2292 collected variables list. Include memory ranges and
2293 full-fledged expressions in the computed expressions list.
2294 (encode_actions): Move some code to ...
2295 Return the cleanup chain.
2296 (encode_actions_rsp): ... here. New function.
2297 (get_traceframe_location, get_traceframe_info): Remove static.
2298 * tracepoint.h (struct memrange): Moved from tracepoint.c.
2299 (struct collection_list): Moved from tracepoint.c. Add two
2300 new fields 'wholly_collected' and 'computed'.
2301 (find_trace_state_variable_by_number): Declare.
2302 (encode_actions): Adjust declaration.
2303 (encode_actions_rsp): Declare.
2304 (get_traceframe_info, get_traceframe_location): Declare.
2305
2306 * NEWS: Mention new MI command -trace-frame-collected.
2307
28a93511
YQ
23082013-06-26 Pedro Alves <pedro@codesourcery.com>
2309 Yao Qi <yao@codesourcery.com>
2310
2311 * ctf.c (ctf_traceframe_info): Push trace state variables
2312 present in the trace data into the traceframe info object.
2313 * breakpoint.c (DEF_VEC_I): Remove.
2314 * common/filestuff.c (DEF_VEC_I): Likewise.
2315 * dwarf2loc.c (DEF_VEC_I): Likewise.
2316 * mi/mi-main.c (DEF_VEC_I): Likewise.
2317 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
2318 * features/traceframe-info.dtd: Add tvar element and its
2319 attributes.
2320 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
2321 (build_traceframe_info): Push trace state variables present in
2322 the trace data into the traceframe info object.
2323 (traceframe_info_start_tvar): New function.
2324 (tvar_attributes): New.
2325 (traceframe_info_children): Add "tvar" element.
2326 * tracepoint.h (struct traceframe_info) <tvars>: New field.
2327
2328 * NEWS: Mention the change in GDB and GDBserver.
2329
ddacd3c8
YQ
23302013-06-26 Pedro Alves <pedro@codesourcery.com>
2331 Yao Qi <yao@codesourcery.com>
2332
2333 * tracepoint.c (trace_dump_command): Move code to ...
2334 (get_traceframe_location): ... here. New.
2335
05796b35
YQ
23362013-06-26 Pedro Alves <pedro@codesourcery.com>
2337 Yao Qi <yao@codesourcery.com>
2338
2339 * tracepoint.c (trace_dump_command): GDB emits an error
2340 instead of a warning when a traceframe is not selected.
2341
cbfa3b61
YQ
23422013-06-26 Pedro Alves <pedro@codesourcery.com>
2343 Yao Qi <yao@codesourcery.com>
2344
2345 * tracepoint.c (tracepoint_list, stepping_list): Remove.
2346 (clear_collection_list): Free fields 'aexpre_list' and 'list'
2347 in collection_list.
2348 (do_clear_collection_list, init_collection_list): New.
2349 (encode_actions): Add local variables 'tracepoint_list' and
2350 'stepping_list'. Call init_collection_list and make cleanup
2351 which calls do_clear_collection_list. Don't call
2352 clear_collection_list.
2353 (_initialize_tracepoint): Delete references to
2354 'tracepoint_list' and 'stepping_list'.
2355
6e2048d3
TT
23562013-06-25 Tom Tromey <tromey@redhat.com>
2357
2358 * common/create-version.sh (date): Use "$", not "$$" in sed
2359 expression.
2360
42059f0e
KB
23612013-06-25 Kevin Buettner <kevinb@redhat.com>
2362
2363 * NEWS (New targets): Add entry for TI MSP430.
2364
a0743c90
YQ
23652013-06-25 Yao Qi <yao@codesourcery.com>
2366
2367 * remote.c (remote_start_remote): Move code to upload tsv
2368 earlier.
2369
9d6e6e84
HZ
23702013-06-25 Yao Qi <yao@codesourcery.com>
2371 Hui Zhu <hui@codesourcery.com>
2372 Pedro Alves <palves@redhat.com>
2373
2374 PR breakpoints/15075
2375 PR breakpoints/15434
2376 * breakpoint.c (bpstat_stop_status): Call
2377 b->ops->after_condition_true.
2378 (update_dprintf_command_list): Don't append "continue" command
2379 to the command list of dprintf breakpoint.
2380 (base_breakpoint_after_condition_true): New function.
2381 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
2382 (dprintf_after_condition_true): New function.
2383 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
2384 * breakpoint.h (breakpoint_ops): Add after_condition_true.
2385
586cf749
KB
23862013-06-24 Kevin Buettner <kevinb@redhat.com>
2387
2388 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
2389 (ALLDEPFILES): Add msp430-tdep.c.
2390 * configure.tgt (msp430*-*-elf): New target.
2391 * msp430-tdep.c: New file.
2392
1bbce132
MR
23932013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2394
2395 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
2396 microMIPS synthetic symbols.
2397
3e5d3a5a
MR
23982013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2399
2400 * objfiles.h (pc_in_section): New prototype.
2401 (in_plt_section): Remove name argument, replace prototype with
2402 static inline function.
2403 * mips-tdep.h: Include "objfiles.h".
2404 (in_mips_stubs_section): New function.
2405 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
2406 in_solib_call_trampoline member.
2407 (hppa_in_solib_call_trampoline): Remove name argument.
2408 * objfiles.c (pc_in_section): New function.
2409 (in_plt_section): Remove function.
2410 * mips-linux-tdep.c: Include "objfiles.h".
2411 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
2412 name argument. Return 1 rather than the low 16-bit halfword of
2413 any instruction examined.
2414 (mips_linux_in_dynsym_resolve_code): Update
2415 mips_linux_in_dynsym_stub call accordingly.
2416 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
2417 rather than an equivalent hand-coded sequence.
2418 * hppa-hpux-tdep.c (in_opd_section): Remove function.
2419 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
2420 (hppa64_hpux_in_solib_call_trampoline): Likewise.
2421 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
2422 in_opd_section.
2423 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
2424 on call to tdep->in_solib_call_trampoline.
2425 (hppa_in_solib_call_trampoline): Remove name argument, update
2426 according to in_plt_section change.
2427 (hppa_skip_trampoline_code): Update according to in_plt_section
2428 change.
2429 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
2430 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
2431 Likewise.
2432 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
2433 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2434 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2435 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
2436 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
2437 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
2438 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
2439 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
2440 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
2441 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
2442 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
2443 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
2444 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
2445
b9b26a16
JB
24462013-06-24 Joel Brobecker <brobecker@adacore.com>
2447
2448 * common/create-version.sh: Fix expansion of $host_alias
2449 and $target_alias in generation of HOST_NAME and TARGET_NAME
2450 (resp.).
2451
01208463
TT
24522013-06-24 Tom Tromey <tromey@redhat.com>
2453
2454 * common/create-version.sh: New file.
2455 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
2456 create-version.sh.
2457 (HFILES_NO_SRCDIR): Use common/version.h.
2458 * version.in: Move to ...
2459 * common/version.in: ... here. Replace date with "DATE".
2460 * version.h: Move to ...
2461 * common/version.h: ... here.
2462
bb6b9a5e
JB
24632013-06-21 Joel Brobecker <brobecker@adacore.com>
2464
2465 * gdb/gnulib/Makefile.in: Update date in copyright header.
2466 * gdb/gnulib/configure.ac: Ditto.
2467 * gdb/gnulib/update-gnulib.sh: Ditto.
2468
c3b18ee7
JB
24692013-06-21 Joel Brobecker <brobecker@adacore.com>
2470
2471 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
2472 "gdb/gnulib/import".
2473
85d3b769
WN
24742013-06-21 Will Newton <will.newton@linaro.org>
2475
2476 * doublest.c (ldfrexp): Remove function.
2477 (convert_doublest_to_floatformat): Call frexpl instead of
2478 ldfrexp.
2479
88b48903
WN
24802013-06-21 Will Newton <will.newton@linaro.org>
2481
2482 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
2483 * gnulib/aclocal.m4: Regenerate.
2484 * gnulib/config.in: Regenerate.
2485 * gnulib/configure: Regenerate.
2486 * gnulib/import/Makefile.am: Update.
2487 * gnulib/import/Makefile.in: Update.
2488 * gnulib/import/m4/gnulib-cache.m4: Update.
2489 * gnulib/import/m4/gnulib-comp.m4: Update.
2490 * gnulib/import/float+.h: Import.
2491 * gnulib/import/float.c: Import.
2492 * gnulib/import/float.in.h: Import.
2493 * gnulib/import/fpucw.h: Import.
2494 * gnulib/import/frexp.c: Import.
2495 * gnulib/import/frexpl.c: Import.
2496 * gnulib/import/isnan.c: Import.
2497 * gnulib/import/isnand-nolibm.h: Import.
2498 * gnulib/import/isnand.c: Import.
2499 * gnulib/import/isnanl-nolibm.h: Import.
2500 * gnulib/import/isnanl.c: Import.
2501 * gnulib/import/itold.c: Import.
2502 * gnulib/import/m4/exponentd.m4: Import.
2503 * gnulib/import/m4/exponentl.m4: Import.
2504 * gnulib/import/m4/float_h.m4: Import.
2505 * gnulib/import/m4/fpieee.m4: Import.
2506 * gnulib/import/m4/frexp.m4: Import.
2507 * gnulib/import/m4/frexpl.m4: Import.
2508 * gnulib/import/m4/isnand.m4: Import.
2509 * gnulib/import/m4/isnanl.m4: Import.
2510 * gnulib/import/m4/math_h.m4: Import.
2511 * gnulib/import/math.c: Import.
2512 * gnulib/import/math.in.h: Import.
2513
4353c9e6
JK
25142013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2515
2516 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
2517 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
2518 signature_INTEL_edx comparisons.
2519
e3e06db3
DE
25202013-06-20 Doug Evans <dje@google.com>
2521
6ac97d4c
DE
2522 symtab/15652
2523 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
2524 All callers updated.
2525 (open_dwp_file): If we can't find the dwp file, search the basename
2526 in debug-file-directory.
2527
93417882
DE
2528 * dwarf2read.c (struct dwp_file): Fix comment.
2529 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
2530
e3e06db3
DE
2531 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
2532 better.
2533
0878d0fa
YQ
25342013-06-20 Yao Qi <yao@codesourcery.com>
2535
2536 * breakpoint.c (create_breakpoint): Fix code indentation.
2537
023fa29b
YQ
25382013-06-20 Yao Qi <yao@codesourcery.com>
2539
2540 * breakpoint.c (create_breakpoints_sal_default): Remove
2541 parameter 'lsal'. Update declaration.
2542 (bkpt_create_breakpoints_sal): Caller update.
2543 (tracepoint_create_breakpoints_sal): Likewise.
2544
c898adb7
YQ
25452013-06-20 Pedro Alves <pedro@codesourcery.com>
2546 Yao Qi <yao@codesourcery.com>
2547
2548 * NEWS: Mention the new option '--skip-unavailable' of command
2549 -data-list-register-values.
2550 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
2551 --skip-unavailable option. Adjust to use output_register.
2552 (output_register): Add new 'skip_unavailable' parameter.
2553 Handle it.
2554
4d157a3d
MF
25552013-06-19 Mike Frysinger <vapier@gentoo.org>
2556
2557 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
2558 common/i386-gcc-cpuid.h.
2559 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
2560 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
2561 Copy the latest version from upstream gcc.
2562 * common/linux-btrace.c: Include i386-cpuid.h.
2563 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
2564 call to i386_cpuid.
2565 (cpu_supports_btrace): Likewise.
2566 * go32-nat.c: Include i386-cpuid.h.
2567 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
2568
1ce4db08
DE
25692013-06-19 Doug Evans <dje@google.com>
2570
2571 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
2572 (get_section_index): Ditto.
2573
0e4777df
TT
25742013-06-19 Tom Tromey <tromey@redhat.com>
2575
2576 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
2577 "dprintf" help.
2578
3190f0c6
DE
25792013-06-18 Doug Evans <dje@google.com>
2580
2581 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
2582 before using it.
2583 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
2584 Move test of cu_index closer to use. Print complaint if cu_index
2585 is bad.
2586
8b89a20a
JB
25872013-06-18 Joel Brobecker <brobecker@adacore.com>
2588
2589 * machoread.c (oso_vector): Delete this global.
2590 (macho_register_oso): Add new parameter "oso_vector_ptr".
2591 Use it instead of the "oso_vector" global.
2592 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
2593 (macho_symfile_read): Use a local oso_vector, to be free'ed
2594 at the end of this function, in place of the old "oso_vector"
2595 global. Update various function calls accordingly. Use one
2596 single cleanup chain for the entire function.
2597
59b0c7c1
JB
25982013-06-18 Joel Brobecker <brobecker@adacore.com>
2599
937c708c 2600 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
2601 DWARF2_PER_OBJFILE by uses of DATA instead.
2602
427cd150
TT
26032013-06-18 Tom Tromey <tromey@redhat.com>
2604
2605 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
2606 argument.
2607 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
2608 Special case signals other than GDB_SIGNAL_TRAP.
2609 (explains_signal_watchpoint): New function.
2610 (base_breakpoint_explains_signal): Add 'sig' argument.
2611 (initialize_breakpoint_ops): Set 'explains_signal' method for
2612 watchpoints.
2613 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
2614 signal argument.
2615 (bpstat_explains_signal): Likewise.
2616 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
2617
2d57700b
TT
26182013-06-18 Tom Tromey <tromey@redhat.com>
2619
2620 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
2621
ac475191
TT
26222013-06-18 Tom Tromey <tromey@redhat.com>
2623
2624 * python/python.c (finish_python_initialization): Decref
2625 'pythondir' on failure path as well.
2626
5bd1ef56
TT
26272013-06-18 Tom Tromey <tromey@redhat.com>
2628
2629 PR symtab/15391:
2630 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
2631 after taking bits_to_skip into account. Sign extend byte_offset.
2632 * utils.h (gdb_sign_extend): Declare.
2633 * utils.c (gdb_sign_extend): New function.
2634
92fac807
JK
26352013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2636
2637 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
2638
2d503272
PM
26392013-06-17 Pierre Muller <muller@sourceware.org>
2640
2641 * corelow.c (core_open): Print GDB signal name instead of target
2642 signal number.
2643
6916fd98
MF
26442013-06-17 Mike Frysinger <vapier@gentoo.org>
2645
2646 * .gitignore: Add /gcore.
2647
9c02c129
DE
26482013-06-13 Doug Evans <dje@google.com>
2649
2650 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
2651 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
2652
d0548fa2
PM
26532013-06-12 Phil Muldoon <pmuldoon@redhat.com>
2654
2655 * stack.c (backtrace_command_1): Fix indentation.
2656
22128028
JB
26572013-06-11 Joel Brobecker <brobecker@adacore.com>
2658
2659 * window-nat.c (thread_rec): Add missing empty line after
2660 local variable declaration.
2661
2ed3e009
JB
26622013-06-11 Joel Brobecker <brobecker@adacore.com>
2663
2664 * windows-nat.c (thread_rec): Revert format used to print
2665 error code returned by SuspendThread from %d back to %u.
2666
0c3d84be
JB
26672013-06-11 Joel Brobecker <brobecker@adacore.com>
2668
2669 * windows-nat.c (windows_continue): Add "0x" prefix for thread
2670 ID in debug trace.
2671 (get_windows_debug_event): Likewise, for all debug traces.
2672
80e88e1a
JB
26732013-06-11 Joel Brobecker <brobecker@adacore.com>
2674
2675 * window-nat.c (thread_rec): Add thread ID in SuspendThread
2676 warning message.
2677
1edebdbf
YQ
26782013-06-08 Pedro Alves <pedro@codesourcery.com>
2679 Yao Qi <yao@codesourcery.com>
2680
2681 * mi/mi-main.c (get_register): Remove declaration.
2682 (output_register): Declare.
2683 (mi_cmd_data_list_register_values): Remove local variable
2684 'tuple_cleanup'. Move some code into output_register.
2685 (get_register): Renamed to ...
2686 (output_register): ... this. Output the register's
2687 "number" ui_out tuple here.
2688
47d48711
PA
26892013-06-07 Pedro Alves <palves@redhat.com>
2690
2691 * darwin-nat.c: Fix formating in copyright header.
2692 * darwin-nat.h: Likewise.
2693 * gnu-nat.c: Likewise.
2694 * machoread.c: Likewise.
2695
3aee8918
PA
26962013-06-07 Pedro Alves <palves@redhat.com>
2697
5f2b57b5 2698 PR server/14823
3aee8918
PA
2699 * regformats/regdat.sh: Output #include tdesc.h. Make globals
2700 static. Output a global target description pointer.
2701 (init_registers_${name}): Adjust to initialize a
2702 target description structure.
2703
fe8400b4
WN
27042013-06-07 Will Newton <will.newton@linaro.org>
2705
2706 * printcmd.c (build_address_symbolic): Call
2707 gdbarch_addr_bits_remove for text minimal symbols.
2708
20df6206
WN
27092013-06-07 Will Newton <will.newton@linaro.org>
2710
2711 * MAINTAINERS: Add myself to Write After Approval.
2712
aef525cb
YQ
27132013-06-07 Yao Qi <yao@codesourcery.com>
2714
2715 * tracepoint.c (start_tracing): Move code to ...
2716 (trace_reset_local_state): ... here. New.
2717 (disconnect_tracing): Don't call set_current_traceframe,
2718 set_tracepoint_num, and set_traceframe_context. Call
2719 trace_reset_local_state instead.
2720 (tfile_close): Call trace_reset_local_state.
2721 * ctf.c (ctf_close): Likewise.
2722 * remote.c (remote_close): Likewise.
2723 * tracepoint.h (trace_reset_local_state): Declare.
2724
d2415c6c
DE
27252013-06-06 Doug Evans <dje@google.com>
2726
2727 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
2728 and fix header docs.
2729
69fc87c2
DE
27302013-06-05 Doug Evans <dje@google.com>
2731 Keith Seitz <keiths@redhat.com>
2732
2733 PR 15519
2734 * cp-namespace.c (find_symbol_in_baseclass): Call
2735 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
2736 Check result of call to lookup_symbol_static.
2737 Call lookup_static_symbol_aux unconditionally.
2738 Call check_typedef on base types before accessing them.
2739 (cp_lookup_nested_symbol): Fix comment.
2740
a513d1e8
LM
27412013-06-05 Luis Machado <lgustavo@codesourcery.com>
2742
2743 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
2744 minimal symbols pointing to function descriptors.
2745
351a6f02
TT
27462013-06-05 Tom Tromey <tromey@redhat.com>
2747
2748 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
2749
5e1b953b 27502013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 2751 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
2752
2753 * remote.c (remote_wait_as): Restore signal handler before returning
2754 when GDB gets a notification.
2755
f9e14852
GB
27562013-06-04 Gary Benson <gbenson@redhat.com>
2757
8445cbf1 2758 PR 2328
f9e14852
GB
2759 * breakpoint.h (handle_solib_event): Moved function declaration
2760 to solib.h.
2761 * breakpoint.c (handle_solib_event): Moved function to solib.c.
2762 (bpstat_stop_status): Pass new argument to handle_solib_event.
2763 * solib.h (update_solib_breakpoints): New function declaration.
2764 (handle_solib_event): Moved function declaration from
2765 breakpoint.h.
2766 * solib.c (update_solib_breakpoints): New function.
2767 (handle_solib_event): Moved function from breakpoint.c.
2768 Updated to call solib_ops->handle_event if not NULL.
2769 * solist.h (target_so_ops): New fields "update_breakpoints" and
2770 "handle_event".
2771 * infrun.c (set_stop_on_solib_events): New function.
2772 (_initialize_infrun): Use the above for "set
2773 stop-on-solib-events".
2774 (handle_inferior_event): Pass new argument to handle_solib_event.
2775 * solib-svr4.c (probe.h): New include.
2776 (svr4_free_library_list): New forward declaration.
2777 (probe_action): New enum.
2778 (probe_info): New struct.
2779 (probe_info): New static variable.
2780 (NUM_PROBES): New definition.
2781 (svr4_info): New fields "using_xfer", "probes_table" and
2782 "solib_list".
2783 (free_probes_table): New function.
2784 (free_solib_list): New function.
2785 (svr4_pspace_data_cleanup): Free probes table and solib list.
2786 (svr4_copy_library_list): New function.
2787 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
2788 (svr4_read_so_list): New parameter "prev_lm".
2789 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
2790 (svr4_current_sos): New function.
2791 (probe_and_action): New struct.
2792 (hash_probe_and_action): New function.
2793 (equal_probe_and_action): Likewise.
2794 (register_solib_event_probe): Likewise.
2795 (solib_event_probe_at): Likewise.
2796 (solib_event_probe_action): Likewise.
2797 (solist_update_full): Likewise.
2798 (solist_update_incremental): Likewise.
2799 (disable_probes_interface_cleanup): Likewise.
2800 (svr4_handle_solib_event): Likewise.
2801 (svr4_update_solib_event_breakpoint): Likewise.
2802 (svr4_update_solib_event_breakpoints): Likewise.
2803 (svr4_create_solib_event_breakpoints): Likewise.
2804 (enable_break): Free probes table before creating breakpoints.
2805 Use svr4_create_solib_event_breakpoints to create breakpoints.
2806 (svr4_solib_create_inferior_hook): Free the solib list.
2807 (_initialize_svr4_solib): Initialise
2808 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
2809
ced63ec0
GB
28102013-06-04 Gary Benson <gbenson@redhat.com>
2811
2812 * target.h (target_ops): New field
2813 "to_augmented_libraries_svr4_read".
2814 (target_augmented_libraries_svr4_read): New macro.
2815 * target.c (update_current_target): Handle
2816 to_augmented_libraries_svr4_read.
2817 * remote.c (remote_state): New field
2818 "augmented_libraries_svr4_read".
2819 (remote_augmented_libraries_svr4_read_feature): New function.
2820 (remote_protocol_features): Add entry for
2821 "augmented-libraries-svr4-read".
2822 (remote_augmented_libraries_svr4_read): New function.
2823 (init_remote_ops): Initialize
2824 remote_ops.to_augmented_libraries_svr4_read.
2825
7f91dbec
GB
28262013-06-04 Gary Benson <gbenson@redhat.com>
2827
2828 * NEWS: Update.
2829
607ece04
GB
28302013-06-04 Gary Benson <gbenson@redhat.com>
2831
2832 * objfiles.h (inhibit_section_map_updates): New function
2833 declaration.
2834 (resume_section_map_updates): Likewise.
2835 (resume_section_map_updates_cleanup): Likewise.
2836 * objfiles.c (objfile_pspace_info): Removed field
2837 "objfiles_changed_p". New fields "new_objfiles_available",
2838 "section_map_dirty" and "inhibit_updates".
2839 (allocate_objfile): Set new_objfiles_available.
2840 (free_objfile): Set section_map_dirty.
2841 (objfile_relocate1): Likewise.
2842 (in_plt_section): Likewise.
2843 (find_pc_section): Update the conditions under which the
2844 section map will be updated.
2845 (inhibit_section_map_updates): New function.
2846 (resume_section_map_updates): Likewise.
2847 (resume_section_map_updates_cleanup): Likewise.
2848
9ee6a5ac
GB
28492013-06-04 Gary Benson <gbenson@redhat.com>
2850
2851 * probe.h (get_probe_argument_count): New declaration.
2852 (evaluate_probe_argument): Likewise.
2853 * probe.c (get_probe_argument_count): New function.
2854 (evaluate_probe_argument): Likewise.
2855 (probe_safe_evaluate_at_pc): Use the above new functions.
2856
845d4708
AM
28572013-06-04 Alan Modra <amodra@gmail.com>
2858
2859 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2860 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
2861 (ppc_insns_match_pattern): Add frame param. Avoid multiple
2862 target mem reads on optional insns.
2863 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
2864 ppc_insns_match_pattern calls.
2865 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
2866 Add match for power7 thread safety insns, and new order of
2867 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
2868 invocation in comment, and update rest of comment.
2869 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
2870 PPC64_STANDARD_LINKAGE3_LEN): Delete.
2871 (ppc64_standard_linkage2_target): Update insn offsets.
2872 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
2873 stubs first. Update calls.
2874
404e278f
YQ
28752013-06-04 Yao Qi <yao@codesourcery.com>
2876
2877 * solib.c (solib_find): Don't need dir separator if path has
2878 drive spec.
2879
f6aea118
JB
28802013-06-03 Joel Brobecker <brobecker@adacore.com>
2881
2882 Revert (indirectly causes a SIGSEGV):
2883 * machoread.c (macho_symfile_read): Assign first cleanup to
2884 'back_to'.
2885
87967e27
YQ
28862013-06-03 Yao Qi <yao@codesourcery.com>
2887
2888 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
2889 mi-parse.c. Make them static.
2890 (mi_all_values): Likewise.
2891 (mi_parse_values_option): Move to mi-parse.c. Rename it to
2892 mi_parse_print_values. Make it external.
2893 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
2894 Remove the declarations.
2895 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
2896 * mi/mi-parse.h (mi_parse_print_values): Declare.
2897 * mi/mi-cmd-stack.c: Include mi-parse.h.
2898 (parse_print_values): Remove
2899 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
2900 of parse_print_values.
2901 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
2902
3ca73e0c
YQ
29032013-05-31 Pedro Alves <pedro@codesourcery.com>
2904 Yao Qi <yao@codesourcery.com>
2905
2906 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
2907 (encode_actions): Move code to ...
2908 (all_tracepoint_actions_and_cleanup): ... here. New.
2909 (trace_dump_command): Likewise.
2910
4e993a19
TT
29112013-05-30 Tom Tromey <tromey@redhat.com>
2912
2913 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
2914
e3b76b4f
TT
29152013-05-30 Tom Tromey <tromey@redhat.com>
2916
2917 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
2918 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
2919 'old_chain' argument. Add 'parser_result' argument.
2920 (gdb_xml_create_parser_and_cleanup): Remove old version.
2921 (gdb_xml_parse_quick): Update.
2922 (xml_process_xincludes): Update.
2923 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
2924 declare.
2925
db26349c
TT
29262013-05-30 Tom Tromey <tromey@redhat.com>
2927
2928 * probe.c (collect_probes): Check arguments for NULL before
2929 calling compile_rx_or_error.
2930 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
2931 Remove NULL return.
2932
77f9e713
TT
29332013-05-30 Tom Tromey <tromey@redhat.com>
2934
2935 * infrun.c (adjust_pc_after_break): Introduce an outer null
2936 cleanup.
2937
45475de7
TT
29382013-05-30 Tom Tromey <tromey@redhat.com>
2939
2940 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
2941
ac5007fd
TT
29422013-05-30 Tom Tromey <tromey@redhat.com>
2943
2944 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
2945 for 'old_chain'. Do not check 'head' before processing
2946 cleanups.
2947
cd82eddc
TT
29482013-05-30 Tom Tromey <tromey@redhat.com>
2949
2950 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
2951 "cleanup_tuple".
2952
57cee33a
TT
29532013-05-30 Tom Tromey <tromey@redhat.com>
2954
2955 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
2956 inner scope. Unconditionally call do_cleanups.
2957
795d915c
TT
29582013-05-30 Tom Tromey <tromey@redhat.com>
2959
2960 * source.c (find_and_open_source): Call do_cleanups.
2961
1fc3cf4a
TT
29622013-05-30 Tom Tromey <tromey@redhat.com>
2963
2964 * linux-thread-db.c (thread_db_load_search): Unconditionally
2965 call do_cleanups.
2966
e35ac9bf
TT
29672013-05-30 Tom Tromey <tromey@redhat.com>
2968
2969 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
2970 for 'cleanup'; instead use a later one.
2971
f3300387
TT
29722013-05-30 Tom Tromey <tromey@redhat.com>
2973
2974 * python/py-breakpoint.c (bppy_get_commands): Use
2975 explicit, unconditional return.
2976 * python/py-frame.c (frapy_read_var): Likewise.
2977 * python/python.c (gdbpy_decode_line): Likewise.
2978
c27e16e3
TT
29792013-05-30 Tom Tromey <tromey@redhat.com>
2980
2981 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
2982 do_cleanups on all return paths.
2983
5ae85e44
TT
29842013-05-30 Tom Tromey <tromey@redhat.com>
2985
2986 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
2987
73b8d9da
TT
29882013-05-30 Tom Tromey <tromey@redhat.com>
2989
2990 * stabsread.c (read_struct_type): Call do_cleanups along
2991 all return paths.
2992
7d266584
MR
29932013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
2994
2995 * mips-linux-tdep.c: Adjust formatting throughout.
2996
0f900f54
TT
29972013-05-30 Tom Tromey <tromey@redhat.com>
2998
2999 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
3000 along all return paths.
3001
a991ac28
TT
30022013-05-30 Tom Tromey <tromey@redhat.com>
3003
3004 * symfile.c (find_separate_debug_file): Call do_cleanups
3005 along all return paths.
3006
1abaf042
TT
30072013-05-30 Tom Tromey <tromey@redhat.com>
3008
3009 * symtab.c (search_symbols): Introduce a null cleanup for
3010 'retval_chain'.
3011
edefe1da
TT
30122013-05-30 Tom Tromey <tromey@redhat.com>
3013
3014 * python/py-value.c (valpy_binop): Call do_cleanups before
3015 exiting loop.
3016
54f72dcc
TT
30172013-05-30 Tom Tromey <tromey@redhat.com>
3018
3019 * python/py-prettyprint.c (print_children): Remove extra
3020 do_cleanups call.
3021
af1c6971
TT
30222013-05-30 Tom Tromey <tromey@redhat.com>
3023
3024 * python/py-frame.c (frapy_read_var): Call do_cleanups along
3025 all return paths.
3026
b862ce75
TT
30272013-05-30 Tom Tromey <tromey@redhat.com>
3028
3029 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
3030 along all return paths.
3031
e12fefc8
TT
30322013-05-30 Tom Tromey <tromey@redhat.com>
3033
3034 * cli/cli-logging.c (set_logging_redirect): Unconditionally
3035 call do_cleanups.
3036
4867f990
TT
30372013-05-30 Tom Tromey <tromey@redhat.com>
3038
3039 * varobj.c (c_value_of_root): Call do_cleanups along all
3040 return paths.
3041
4fd2d6af
TT
30422013-05-30 Tom Tromey <tromey@redhat.com>
3043
3044 * tracepoint.c (trace_dump_command): Unconditionally call
3045 do_cleanups.
3046
752eb8b4
TT
30472013-05-30 Tom Tromey <tromey@redhat.com>
3048
3049 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
3050 do_cleanups earlier.
3051
e42d0aa5
TT
30522013-05-30 Tom Tromey <tromey@redhat.com>
3053
3054 * machoread.c (macho_symfile_read): Assign first cleanup to
3055 'back_to'.
3056
4bbc010a
TT
30572013-05-30 Tom Tromey <tromey@redhat.com>
3058
3059 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
3060
b9635925
TT
30612013-05-30 Tom Tromey <tromey@redhat.com>
3062
3063 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
3064
25f43500
TT
30652013-05-30 Tom Tromey <tromey@redhat.com>
3066
3067 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
3068 call discard_cleanups.
3069 (inf_ptrace_attach): Likewise.
3070
d6a2e54a
TT
30712013-05-30 Tom Tromey <tromey@redhat.com>
3072
3073 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
3074 return paths.
3075 (mips_initialize): Likewise.
3076 (common_open): Call do_cleanups.
3077
48be7c1b
TT
30782013-05-30 Tom Tromey <tromey@redhat.com>
3079
3080 * utils.c (internal_vproblem): Call do_cleanups.
3081
e61727ab
TT
30822013-05-30 Tom Tromey <tromey@redhat.com>
3083
3084 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
3085
b81b921f
TT
30862013-05-30 Tom Tromey <tromey@redhat.com>
3087
3088 * cli/cli-script.c (setup_user_args): Don't return after error.
3089
fe48dfb1
TT
30902013-05-30 Tom Tromey <tromey@redhat.com>
3091
3092 * somread.c (som_symtab_read): Call do_cleanups.
3093
27833de7
TT
30942013-05-30 Tom Tromey <tromey@redhat.com>
3095
3096 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
3097
5b3fca71
TT
30982013-05-30 Tom Tromey <tromey@redhat.com>
3099
3100 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
3101 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
3102 * interps.c (interpreter_exec_cmd): Call do_cleanups.
3103 * source.c (show_substitute_path_command): Call do_cleanups.
3104 (unset_substitute_path_command, set_substitute_path_command):
3105 Likewise.
3106 * symfile.c (load_command): Call do_cleanups.
3107
af83e3f8
TT
31082013-05-30 Tom Tromey <tromey@redhat.com>
3109
3110 * contrib/cleanup_check.py: New file.
3111 * contrib/gcc-with-excheck: Add option parsing.
3112
564eac42
JB
31132013-05-30 Joel Brobecker <brobecker@adacore.com>
3114
3115 * windows-nat.c (windows_delete_thread): Add missing space
3116 in cast expression.
3117
47902076
HAQ
31182013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
3119
3120 * inferior.c (top level): Include tilde.h.
3121 (add_inferior_command): Call tilde_expand on the value of 'exec'
3122 argument.
3123
23da373a
YQ
31242013-05-30 Pedro Alves <pedro@codesourcery.com>
3125 Yao Qi <yao@codesourcery.com>
3126
3127 * tracepoint.c (encode_actions_1): Remove parameter 't'.
3128 Caller update.
3129 (encode_actions): Likewise.
3130 * remote.c (remote_download_tracepoint): Caller update.
3131 * tracepoint.h (encode_actions): Update declaration.
3132
a6e6f791
PA
31332013-05-30 Pedro Alves <palves@redhat.com>
3134
3135 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
3136 pointer.
3137
36d25514
YQ
31382013-05-30 Yao Qi <yao@codesourcery.com>
3139
3140 * remote.c (remote_check_symbols): Remove unused parameter
3141 'objfile'.
3142 Declaration update.
3143 (remote_start_remote, remote_new_objfile): Caller update.
3144
62a813cc
YQ
31452013-05-30 Yao Qi <yao@codesourcery.com>
3146
3147 * mi/mi-cmds.c (mi_cmds): Define MI command
3148 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
3149 DEF_MI_CMD_CLI.
3150
28439a30
PA
31512013-05-29 Pedro Alves <palves@redhat.com>
3152
3153 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
3154 (remote_insert_watchpoint, remote_remove_watchpoint)
3155 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
3156 (remote_verify_memory, compare_sections_command)
3157 (remote_search_memory): Set the general process/thread on the
3158 remote side.
3159
6ac1c082
PA
31602013-05-29 Pedro Alves <palves@redhat.com>
3161
3162 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
3163 (_initialize_aarch64_tdep): Don't call
3164 initialize_tdesc_aarch64_without_fpu.
3165 * features/Makefile (WHICH): Remove reference to
3166 aarch64-without-fpu.
3167 * features/aarch64-without-fpu.c: Delete file.
3168 * regformats/aarch64-without-fpu.dat: Delete file.
3169
a73e3634
YQ
31702013-05-28 Yao Qi <yao@codesourcery.com>
3171
3172 * tracepoint.c (stringify_collection_list): Remove parameter
3173 'string'.
3174 (encode_actions): Caller update. Remove local variables.
3175
c0ea94eb
YQ
31762013-05-24 Yao Qi <yao@codesourcery.com>
3177
3178 * tracepoint.c (TFILE_PID): Remove.
3179 (tfile_open): Don't add thread and inferior.
3180 (tfile_close): Don't set 'inferior_ptid'. Don't call
3181 exit_inferior_silent.
3182 (tfile_thread_alive): Remove.
3183 (init_tfile_ops): Don't set field 'to_thread_alive' of
3184 tfile_ops.
3185
20d7f211
DE
31862013-05-23 Doug Evans <dje@google.com>
3187
3188 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
3189
8658d16d
PA
31902013-05-23 Pedro Alves <palves@redhat.com>
3191
3192 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
3193 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
3194 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
3195 Only define if HAVE_SOCKETS is defined.
3196 * configure.ac: Check for sys/socket.h.
3197 * config.in, configure: Regenerate.
3198
21aa081e
PA
31992013-05-23 Pedro Alves <palves@redhat.com>
3200
3201 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
3202 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
3203 printing uint32_t variables.
3204
c2d6af84
PA
32052013-05-23 Pedro Alves <palves@redhat.com>
3206
3207 * NEWS: Mention GDBserver range stepping support.
3208
c1e36e3e
PA
32092013-05-23 Yao Qi <yao@codesourcery.com>
3210 Pedro Alves <palves@redhat.com>
3211
3212 * gdbthread.h (struct thread_control_state) <may_range_step>: New
3213 field.
3214 * infcmd.c (step_once, until_next_command): Enable range stepping.
3215 * infrun.c (displaced_step_prepare): Disable range stepping.
3216 (resume): Disable range stepping if stepping over a breakpoint or
3217 we have software watchpoints. If range stepping is enabled,
3218 assert the thread is in the stepping range.
3219 (clear_proceed_status_thread): Clear may_range_step.
3220 (handle_inferior_event): Disable range stepping as soon as we know
3221 the thread that hit the event. Re-enable it whenever we're going
3222 to step with a step range.
3223 * remote.c (struct vCont_action_support) <r>: New field.
3224 (use_range_stepping): New global.
3225 (remote_vcont_probe): Handle 'r' action.
3226 (append_resumption): Append an 'r' action if the thread may range
3227 step.
3228 (show_range_stepping): New function.
3229 (set_range_stepping): New function.
3230 (_initialize_remote): Call add_setshow_boolean_cmd to register the
3231 'set range-stepping' and 'show range-stepping' commands.
3232 * NEWS: Mention range stepping, the new vCont;r action, and the
3233 new "set/show range-stepping" commands.
3234
d458bd84
PA
32352013-05-23 Yao Qi <yao@codesourcery.com>
3236 Pedro Alves <palves@redhat.com>
3237
3238 * remote.c (struct vCont_action_support): New struct.
3239 (struct remote_state) <support_vCont_t>: Remove field.
3240 <vCont_actions_support>: New field.
3241 (remote_vcont_probe, remote_stop_ns): Update.
3242
ce4c476a
PA
32432013-05-23 Yao Qi <yao@codesourcery.com>
3244 Pedro Alves <palves@redhat.com>
3245
3246 * gdbthread.h (pc_in_thread_step_range): New declaration.
3247 * thread.c (pc_in_thread_step_range): New function.
3248 * infrun.c (handle_inferior_event): Use it.
3249
ce70887a
JB
32502013-05-23 Joel Brobecker <brobecker@adacore.com>
3251
3252 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
3253 of sprintf.
3254
55b87a52
KS
32552013-05-22 Keith Seitz <keiths@redhat.com>
3256
3257 * ada-lang.c (is_known_support_routine): Add explicit free of
3258 'func_name' from find_frame_funname.
3259 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
3260 for func_name from find_frame_funname.
3261 * python/py-frame.c (frapy_name): Add explicit free of
3262 'name' from find_frame_funname.
3263 * stack.c (find_frame_funname): Add comment explaining that
3264 funcp must be freed by the caller.
3265 Return copy of symbol names instead of pointers.
3266 (print_frame): Add a cleanup for 'funname' from
3267 find_frame_funname.
3268 * stack.h (find_frame_funname): Remove "const" from
3269 'funname' parameter.
3270
5f2e6b00
TT
32712013-05-22 Tom Tromey <tromey@redhat.com>
3272
3273 PR c++/15401:
3274 * c-valprint.c (c_value_print): Use value_addr for
3275 references. Convert back to reference type with value_ref.
3276
d85c4847
EZ
32772013-05-22 Eli Zaretskii <eliz@gnu.org>
3278
3279 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
3280 unloaded DLL, it will be done by handle_solib_event. See
3281 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
3282 details.
3283
54eb231c
PM
32842013-05-22 Phil Muldoon <pmuldoon@redhat.com>
3285
3286 * ui-out.c: Create typedef ui_out_level_p and define vector
3287 operations for that type.
3288 (struct ui_out): Use a vector instead of an array.
3289 (current_level): Return level from a vector.
3290 (push_level): Create a level in a vector.
3291 (pop_level): Delete a level in a vector.
3292 (ui_out_new): Create initial level zero level, and store in a
3293 vector.
3294 (ui_out_destroy): Add vector cleanup.
3295
ac90359c
PA
32962013-05-22 Pedro Alves <palves@redhat.com>
3297
3298 * python/python-internal.h (gdb_Py_DECREF): Tag with
3299 "ARI: editCase function".
3300
6dcc1893
PP
33012013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
3302
3303 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
3304
c8c735b9
PA
33052013-05-21 Pedro Alves <palves@redhat.com>
3306
3307 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3308 whether PRINTER is NULL before installing a Py_DECREF cleanup.
3309 * python/py-utils.c (py_decref): Don't check for NULL before
3310 calling Py_DECREF.
3311
1915daeb
PA
33122013-05-21 Pedro Alves <palves@redhat.com>
3313
3314 * python/py-utils.c (py_decref): Remove extra braces.
3315 (gdb_pymodule_addobject): Remove extra braces.
3316 * python-internal.h (gdb_Py_DECREF): New static inline function.
3317 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
3318
bd9673a4
PW
33192013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3320
3321 * breakpoints.c (detach_breakpoints): Do not
3322 detach breakpoints locations with loc_type bp_loc_other.
3323
ff6009d0
JK
33242013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3325
3326 Workaround Python 2.6.
3327 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
3328 a block.
3329
3641da11
JK
33302013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3331
3332 Code cleanup: constification.
3333 * solib.c (solib_ops): Make return type and ops variable type const.
3334 (set_solib_ops): Make the new_ops parameter and ops variable const.
3335 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
3336 (solib_add, solib_keep_data_in_core, clear_solib)
3337 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3338 (reload_shared_libraries, solib_global_lookup): Make the ops variable
3339 const.
3340 * solib.h (set_solib_ops): Make the new_ops parameter const.
3341
776af39e
JB
33422013-05-21 Joel Brobecker <brobecker@adacore.com>
3343
3344 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
3345 variable.
3346 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
3347 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
3348 (SYSTEM_GDBINIT_FILES): New variables.
3349 (all): Add stamp-system-gdbinit.
3350 (stamp-system-gdbinit): New rule.
3351 (clean-system-gdbinit, install-system-gdbinit)
3352 (uninstall-system-gdbinit): New rules. Make them .PHONY.
3353 (install-only): Add dependency on install-system-gdbinit.
3354 (uninstall): Add dependency on uninstall-system-gdbinit.
3355 (clean): Add dependency on clean-system-gdbinit.
3356 * system-gdbinit/elinos.py: New file.
3357 * system-gdbinit/wrs-linux.py: New file.
3358
1509e573
JB
33592013-05-21 Joel Brobecker <brobecker@adacore.com>
3360
3361 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
3362
c5867ab6
HZ
33632013-05-21 Hui Zhu <hui@codesourcery.com>
3364
3365 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
3366 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
3367 * mi/mi-cmd-break.c (ctype.h): New include.
3368 (gdb_obstack.h): New include.
3369 (mi_argv_to_format, mi_cmd_break_insert_1): New.
3370 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
3371 (mi_cmd_dprintf_insert): New.
3372 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
3373 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
3374
7d38e38f
TT
33752013-05-20 Tom Tromey <tromey@redhat.com>
3376
3377 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
3378
97b77b39
TT
33792013-05-20 Tom Tromey <tromey@redhat.com>
3380
3381 * python/py-value.c (valpy_get_dynamic_type): Simplify
3382 dynamic_type assignment. Use Py_XINCREF.
3383
53e66479
TT
33842013-05-20 Tom Tromey <tromey@redhat.com>
3385
3386 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
3387
dcf87832
TT
33882013-05-20 Tom Tromey <tromey@redhat.com>
3389
3390 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
3391 (gdbpy_selected_frame): Move object-construction code
3392 out of TRY_CATCH.
3393
aa36459a
TT
33942013-05-20 Tom Tromey <tromey@redhat.com>
3395
3396 * python/py-arch.c (gdbpy_initialize_arch): Use
3397 gdb_pymodule_addobject.
3398 * python/py-block.c (gdbpy_initialize_blocks): Use
3399 gdb_pymodule_addobject.
3400 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
3401 gdb_pymodule_addobject.
3402 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
3403 gdb_pymodule_addobject.
3404 * python/py-event.c (gdbpy_initialize_event_generic): Use
3405 gdb_pymodule_addobject.
3406 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
3407 gdb_pymodule_addobject.
3408 * python/py-evts.c (add_new_registry): Use
3409 gdb_pymodule_addobject.
3410 (gdbpy_initialize_py_events): Likewise.
3411 * python/py-finishbreakpoint.c
3412 (gdbpy_initialize_finishbreakpoints): Use
3413 gdb_pymodule_addobject.
3414 * python/py-frame.c (gdbpy_initialize_frames): Use
3415 gdb_pymodule_addobject.
3416 * python/py-function.c (gdbpy_initialize_functions): Use
3417 gdb_pymodule_addobject.
3418 * python/py-inferior.c (gdbpy_initialize_inferior): Use
3419 gdb_pymodule_addobject.
3420 * python/py-infthread.c (gdbpy_initialize_thread): Use
3421 gdb_pymodule_addobject.
3422 * python/py-objfile.c (gdbpy_initialize_objfile): Use
3423 gdb_pymodule_addobject.
3424 * python/py-param.c (gdbpy_initialize_parameters): Use
3425 gdb_pymodule_addobject.
3426 * python/py-progspace.c (gdbpy_initialize_pspace): Use
3427 gdb_pymodule_addobject.
3428 * python/py-symbol.c (gdbpy_initialize_symbols): Use
3429 gdb_pymodule_addobject.
3430 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
3431 gdb_pymodule_addobject.
3432 * python/py-type.c (gdbpy_initialize_types): Use
3433 gdb_pymodule_addobject.
3434 * python/py-utils.c (gdb_pymodule_addobject): New function.
3435 * python/py-value.c (gdbpy_initialize_values): Use
3436 gdb_pymodule_addobject.
3437 * python/python-internal.h (gdb_pymodule_addobject): Declare.
3438 * python/python.c (_initialize_python): Use
3439 gdb_pymodule_addobject.
3440
3d4a3c3e
TT
34412013-05-20 Tom Tromey <tromey@redhat.com>
3442
3443 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
3444 * python/py-param.c (get_set_value, get_show_value): Use
3445 explicit decrefs.
3446 * python/python.c (start_type_printers, apply_type_printers):
3447 Use explicit decrefs.
3448
72ff8829
TT
34492013-05-20 Tom Tromey <tromey@redhat.com>
3450
3451 * python/py-evts.c (gdbpy_initialize_py_events): Don't
3452 incref the module.
3453
02146ba5
TT
34542013-05-20 Tom Tromey <tromey@redhat.com>
3455
3456 * python/python.c (gdbpy_run_events): Decref the result
3457 of PyObject_CallObject.
3458
33ee792f
TT
34592013-05-20 Tom Tromey <tromey@redhat.com>
3460
3461 * python/py-symtab.c (set_sal): Use
3462 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
3463 (symtab_and_line_to_sal_object): Update.
3464
fcb49fc8
TT
34652013-05-20 Tom Tromey <tromey@redhat.com>
3466
3467 * python/py-param.c (compute_enum_values): Decref 'item'.
3468
0646da15
TT
34692013-05-20 Tom Tromey <tromey@redhat.com>
3470
3471 * mi/mi-main.c: Include python-internal.h.
3472 (mi_cmd_list_features): Check gdb_python_initialized.
3473 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
3474 (python_inferior_exit, python_new_objfile, add_thread_object)
3475 (delete_thread_object, py_free_inferior): Check
3476 gdb_python_initialized.
3477 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3478 gdb_python_initialized.
3479 * python/py-type.c (save_objfile_types): Check
3480 gdb_python_initialized.
3481 * python/python-internal.h (gdb_python_initialized): Declare.
3482 * python/python.c (ensure_python_env): Throw exception if
3483 Python not initialized.
3484 (before_prompt_hook, source_python_script_for_objfile)
3485 (start_type_printers, apply_type_printers,
3486 free_type_printers): Check gdb_python_initialized.
3487 * varobj.c (varobj_get_display_hint)
3488 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
3489 (install_new_value_visualizer, varobj_set_visualizer)
3490 (value_get_print_value): Check gdb_python_initialized.
3491
999633ed
TT
34922013-05-20 Tom Tromey <tromey@redhat.com>
3493
3494 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
3495 Check errors.
3496 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
3497 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
3498 Check errors.
3499 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
3500 Check errors.
3501 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
3502 Check errors.
3503 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
3504 Check errors.
3505 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
3506 init function to return 'int'.
3507 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
3508 Return 'int'. Check errors.
3509 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
3510 Check errors.
3511 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
3512 Return 'int'. Check errors.
3513 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
3514 Check errors.
3515 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
3516 Check errors.
3517 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
3518 Check errors.
3519 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
3520 Check errors.
3521 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
3522 Check errors.
3523 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
3524 Check errors.
3525 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
3526 Check errors.
3527 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
3528 Check errors.
3529 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
3530 Check errors.
3531 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
3532 Check errors.
3533 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
3534 Check errors.
3535 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
3536 Check errors.
3537 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
3538 Check errors.
3539 * python/python-internal.h (gdbpy_initialize_auto_load,
3540 gdbpy_initialize_values, gdbpy_initialize_frames,
3541 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
3542 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
3543 gdbpy_initialize_blocks, gdbpy_initialize_types,
3544 gdbpy_initialize_functions, gdbpy_initialize_pspace,
3545 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
3546 gdbpy_initialize_finishbreakpoints,
3547 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
3548 gdbpy_initialize_thread, gdbpy_initialize_inferior,
3549 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
3550 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
3551 gdbpy_initialize_signal_event,
3552 gdbpy_initialize_breakpoint_event,
3553 gdbpy_initialize_continue_event,
3554 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
3555 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
3556 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3557 * python/python.c (gdb_python_initialized): New global.
3558 (gdbpy_initialize_events): Return 'int'. Check errors.
3559 (_initialize_python): Check errors. Set
3560 gdb_python_initialized.
3561
18868860
TT
35622013-05-20 Tom Tromey <tromey@redhat.com>
3563
3564 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
3565 Decref the reslut of PyObject_CallMethod.
3566
9f4ff0c2
TT
35672013-05-20 Tom Tromey <tromey@redhat.com>
3568
3569 * python/py-event.c (gdbpy_initialize_event_generic): Return
3570 early if PyType_Ready fails.
3571
0d3a2e8a
TT
35722013-05-20 Tom Tromey <tromey@redhat.com>
3573
3574 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
3575 as 'default' in the switch.
3576
b86af38a
TT
35772013-05-20 Tom Tromey <tromey@redhat.com>
3578
3579 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
3580 get_addr_from_python calls out of TRY_CATCH.
3581 (infpy_write_memory, infpy_search_memory): Likewise.
3582 * python/py-utils.c (get_addr_from_python): Return negative
3583 value on error. Use TRY_CATCH.
3584 * python/python-internal.h (get_addr_from_python): Use
3585 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3586
c127ec58
TT
35872013-05-20 Tom Tromey <tromey@redhat.com>
3588
3589 * python/py-event.c (evpy_emit_event): Decref the
3590 result of PyObject_CallFunctionObjArgs.
3591
ba327838
TT
35922013-05-20 Tom Tromey <tromey@redhat.com>
3593
3594 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
3595 Correctly decref.
3596
d8191432
TT
35972013-05-20 Tom Tromey <tromey@redhat.com>
3598
3599 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
3600
5d153bd1
TT
36012013-05-20 Tom Tromey <tromey@redhat.com>
3602
3603 * python/py-event.h (gdbpy_initialize_event_generic): Use
3604 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3605 * python/py-evts.c (add_new_registry): Use
3606 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3607 * python/python-internal.h
3608 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
3609
56cc411c
TT
36102013-05-20 Tom Tromey <tromey@redhat.com>
3611
3612 * python/py-arch.c (archpy_disassemble): Update.
3613 * python/py-type.c (typy_get_composite, typy_lookup_typename)
3614 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
3615 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
3616 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
3617 macro.
3618 (GDB_PY_HANDLE_EXCEPTION): Update.
3619 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
3620
8919e174
TT
36212013-05-20 Tom Tromey <tromey@redhat.com>
3622
3623 * python/python-internal.h (events_object_type): Remove.
3624
9b08f225
TT
36252013-05-20 Tom Tromey <tromey@redhat.com>
3626
f5aee5ee
AM
3627 * python/py-event.h (evpy_emit_event): Use
3628 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3629 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3630 New macro.
9b08f225 3631
f04010ff
TT
36322013-05-20 Tom Tromey <tromey@redhat.com>
3633
3634 * py-evtregistry.c (create_event_object): Decref
3635 eventregistry_object if PyList_New fails.
3636
3919fd96
TT
36372013-05-20 Tom Tromey <tromey@redhat.com>
3638
3639 * py-cmd.c (gdbpy_string_to_argv): Check result of
3640 PyList_New.
3641
0430e8cb
TT
36422013-05-20 Tom Tromey <tromey@redhat.com>
3643
3644 * python/python.c (before_prompt_hook): Add cleanup to
3645 decref 'hook'.
3646
764123e4
TT
36472013-05-20 Tom Tromey <tromey@redhat.com>
3648
3649 * python/py-function.c (fnpy_init): Decref result of
3650 PyObject_GetAttrString.
3651
634c58be
TT
36522013-05-20 Tom Tromey <tromey@redhat.com>
3653
3654 * python/py-threadevent.c (get_event_thread): Use
3655 CPYCHECKER_RETURNS_BORROWED_REF.
3656 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3657 New define.
3658 (pspace_to_pspace_object, objfile_to_objfile_object)
3659 (find_thread_object): Use it.
3660
62eec1a5
TT
36612013-05-20 Tom Tromey <tromey@redhat.com>
3662
3663 * python/py-arch.c (arch_object_type): Use
3664 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3665 * python/py-block.c (block_syms_iterator_object_type):
3666 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3667 * python/py-bpevent.c (breakpoint_event_object_type):
3668 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3669 * python/py-cmd.c (cmdpy_object_type): Use
3670 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3671 * python/py-continueevent.c (continue_event_object_type):
3672 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3673 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
3674 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3675 * python/py-events.h (thread_event_object_type):
3676 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3677 * python/py-evtregistry.c (eventregistry_object_type): Use
3678 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3679 * python/py-exitedevent.c (exited_event_object_type):
3680 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3681 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
3682 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3683 * python/py-function.c (fnpy_object_type): Use
3684 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3685 * python/py-inferior.c (inferior_object_type, membuf_object_type):
3686 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3687 * python/py-infthread.c (thread_object_type): Use
3688 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3689 * python/py-lazy-string.c (lazy_string_object_type):
3690 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3691 * python/py-newobjfileevent.c (new_objfile_event_object_type):
3692 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3693 * python/py-objfile.c (objfile_object_type): Use
3694 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3695 * python/py-param.c (parmpy_object_type):
3696 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3697 * python/py-progspace.c (pspace_object_type):
3698 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3699 * python/py-signalevent.c (signal_event_object_type):
3700 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3701 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
3702 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3703 * python/py-type.c (type_object_type, field_object_type)
3704 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3705 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
3706 define.
3707 (value_object_type, block_object_type, symbol_object_type)
3708 (event_object_type, stop_event_object_type, breakpoint_object_type)
3709 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3710
81ea8796
AT
37112013-05-20 Andreas Tobler <andreas@fgznet.ch>
3712
3713 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
3714 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
3715
a2ce51a0
DE
37162013-05-20 Doug Evans <dje@google.com>
3717
3718 When reading CU, stay in DWO. Be more tolerent of bad debug info.
3719 For Fission.
3720 * dwarf2read.c (struct dwarf2_per_cu_data): New member
3721 reading_dwo_directly.
3722 (struct signatured_type): New member dwo_unit.
3723 (struct die_reader_specs): New member comp_dir.
3724 (create_signatured_type_table_from_index): Use malloc for
3725 all_type_units instead of objfile's obstack.
3726 (create_all_type_units): Ditto.
3727 (fill_in_sig_entry_from_dwo_entry): New function.
3728 (add_type_unit): New function.
3729 (lookup_dwo_signatured_type): New function.
3730 (lookup_dwp_signatured_type): New function.
3731 (lookup_signatured_type): New arg cu. All callers updated.
3732 (init_cu_die_reader): Initialize comp_dir.
3733 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
3734 Change assert of matching type signatures to call error on mismatch.
3735 (lookup_dwo_unit): Add assert.
3736 (init_tu_and_read_dwo_dies): New function.
3737 (init_cutu_and_read_dies): Call it.
3738 (build_type_unit_groups): Handle case of no type unit groups created.
3739 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
3740 (lookup_dwo_cutu): Tweak complaint.
3741 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
3742 (dwarf2_per_objfile_free): Free all_type_units.
3743
a25cd31f
JB
37442013-05-20 Joel Brobecker <brobecker@adacore.com>
3745
3746 * windows-nat.c (handle_unload_dll): Add missing empty line.
3747
4d804846
JB
37482013-05-20 Joel Brobecker <brobecker@adacore.com>
3749
3750 * dwarf2read.c (prototyped_function_p): New function.
3751 (read_subroutine_type): Use it.
3752
1c432e72
JB
37532013-05-20 Joel Brobecker <brobecker@adacore.com>
3754
3755 * rs6000-aix-tdep.c: De-indent some example code provided
3756 as a comment.
3757
4feebbdd
EBM
37582013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
3759
3760 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
3761 region is ok for a hardware watchpoint using the new ptrace interface
3762 on Power servers.
3763
7d0c9981
DE
37642013-05-17 Doug Evans <dje@google.com>
3765
3766 * NEWS: Mention new maintenance commands check-symtabs, and
3767 expand-symtabs, and renamed check-psymtabs.
3768 * psymtab.c (maintenance_check_psymtabs): Renamed from
3769 maintenance_check_symtabs. Only process already-expanded symbol
3770 tables.
3771 (_initialize_psymtab): Update.
3772 * symmisc.c (maintenance_check_symtabs): New function.
3773 (maintenance_expand_name_matcher): New function
3774 (maintenance_expand_file_matcher): New function
3775 (maintenance_expand_symtabs): New function.
3776 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
3777 commands.
3778
6cbc7c3d
TT
37792013-05-17 Tom Tromey <tromey@redhat.com>
3780
3781 * python/py-inferior.c (infpy_read_memory): Don't call
3782 PyErr_SetString if PyObject_New fails.
3783 * python/py-frame.c (frame_info_to_frame_object): Don't call
3784 PyErr_SetString if PyObject_New fails.
3785
a48b32c0
L
37862013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
3787
3788 * acinclude.m4: Add check for dlopen in libdl.
3789 * configure.ac: Ditto.
3790 * configure: Regenerate.
3791
3de661e6
PM
37922013-05-17 Phil Muldoon <pmuldoon@redhat.com>
3793
3794 * frame.c (frame_stash): Convert to htab.
3795 (frame_addr_hash): New function.
3796 (frame_addr_hash_eq): New function.
3797 (frame_stash_create): Convert function to create
3798 a hash table.
3799 (frame_stash_add): Convert function to add an entry to a hash
3800 table.
3801 (frame_stash_find): Convert function to search the hash table.
3802 (frame_stash_invalidate): Convert function to empty the hash
3803 table.
3804 (get_frame_id): Only add to stash if a frame_id is created.
3805 (_initialize_frame): Call frame_stash_create.
3806
bb4168a9 38072013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
3808
3809 * configure.ac: Ensure MIG is available when building for GNU Hurd
3810 hosts.
3811 * configure: Regenerate.
3812
d1be3247
JB
38132013-05-16 Joel Brobecker <brobecker@adacore.com>
3814
3815 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
3816
b8fea896
JB
38172013-05-16 Joel Brobecker <brobecker@adacore.com>
3818
3819 * ada-lang.c (ada_make_symbol_completion_list): Make sure
3820 all cleanups are done before returning from this function.
3821
af880d85
JB
38222013-05-15 Joel Brobecker <brobecker@adacore.com>
3823
3824 * utils.h: #include "exceptions.h".
3825 (enum errors): Remove partial declaration.
3826
356a5233
JB
38272013-05-15 Joel Brobecker <brobecker@adacore.com>
3828
3829 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
3830 * gdbarch.h, gdbarch.c: Regenerate.
3831 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
3832 handling.
3833
3834 * rs6000-aix-tdep.h: New file.
3835 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
3836 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
3837 "xml-utils.h".
3838 (struct field_info, struct ld_info_desc): New types.
3839 (ld_info32_desc, ld_info64_desc): New static constants.
3840 (struct ld_info): New type.
3841 (rs6000_aix_extract_ld_info): New function.
3842 (rs6000_aix_shared_library_to_xml): Likewise.
3843 (rs6000_aix_ld_info_to_xml): Likewise.
3844 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3845 (rs6000_aix_init_osabi): Add call to
3846 set_gdbarch_core_xfer_shared_libraries_aix.
3847 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
3848 Remove "xml-utils.h" include.
3849 (LdInfo): Delete typedef.
3850 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
3851 Delete macros.
3852 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
3853 Adjust code accordingly.
3854 (rs6000_core_ldinfo): Delete, folded into
3855 rs6000_aix_core_xfer_shared_libraries_aix.
3856 (rs6000_xfer_shared_library): Delete.
3857 (rs6000_xfer_shared_libraries): Reimplement.
3858
742ce053
MM
38592013-05-15 Markus Metzger <markus.t.metzger@intel.com>
3860
3861 * record.c (record_goto_cmdlist): New.
3862 (cmd_record_goto): Split into this ...
3863 (cmd_record_goto_begin): ... this
3864 (cmd_record_goto_end): ... and this.
3865 (_initialize_record): Change "record goto" to prefix command.
3866 Add commands for "record goto begin" and "record goto end".
3867 Add an alias for "record goto start" to "record goto begin".
3868
e93ba630
JK
38692013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3870
3871 * linespec.c (convert_linespec_to_sals): New comment for
3872 SOURCE_FILENAME assignment.
3873
5821aace
JK
38742013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3875
3876 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
3877 internal_warning.
3878
a1b8c4cc
TT
38792013-05-14 Tom Tromey <tromey@redhat.com>
3880
3881 * eval.c (parse_and_eval_long): Make 'exp' const.
3882 * value.h (parse_and_eval_long): Update.
3883
23b3a2c3
TT
38842013-05-14 Tom Tromey <tromey@redhat.com>
3885
3886 * ui-file.c (gdb_fopen): Make arguments const.
3887 * ui-file.h (gdb_fopen): Make arguments const.
3888
ca623f82
TT
38892013-05-14 Tom Tromey <tromey@redhat.com>
3890
3891 * remote.c (remote_set_trace_notes): Make arguments const.
3892 * target.c (update_current_target): Update cast.
3893 * target.h (to_set_trace_notes): Make arguments const.
3894
503ebb2c
TT
38952013-05-14 Tom Tromey <tromey@redhat.com>
3896
3897 * go32-nat.c (go32_terminal_info): Make 'args' const.
3898 * inferior.h (child_terminal_info): Update.
3899 * inflow.c (child_terminal_info): Make 'args' const.
3900 * target.c (default_terminal_info): Make 'args' const.
3901 (debug_to_terminal_save_ours): Likewise.
3902 * target.h (struct target_ops) <to_terminal_info>: Make argument
3903 const.
3904
85e1311a
TT
39052013-05-13 Tom Tromey <tromey@redhat.com>
3906
3907 * gcore.c (create_gcore_bfd): Make 'filename' const.
3908 * gcore.h (create_gcore_bfd): Make 'filename' const.
3909 * record-full.c (record_full_save): Make 'recfilename' const.
3910 * target.c (target_save_record): Make 'filename' const.
3911 * target.h (struct target_ops) <to_save_record>: Make 'filename'
3912 const.
3913 (target_save_record): Likewise.
3914
d62bfeaf
TT
39152013-05-13 Tom Tromey <tromey@redhat.com>
3916
f5aee5ee 3917 PR gdb/15338:
d62bfeaf
TT
3918 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
3919 ranges section has been read.
3920
ac1ca910
TT
39212013-05-13 Tom Tromey <tromey@redhat.com>
3922
3923 PR exp/15364:
3924 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3925 STRUCTOP_PTR>: Return a not_lval value for
3926 EVAL_AVOID_SIDE_EFFECTS.
3927 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
3928 for EVAL_AVOID_SIDE_EFFECTS.
3929
36d1c68c
JB
39302013-05-13 Joel Brobecker <brobecker@adacore.com>
3931
3932 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
3933 floating point registers to register type before storing
3934 value.
3935 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
3936 Likewise.
3937
21ff4686
TT
39382013-05-10 Joel Brobecker <brobecker@adacore.com>
3939 Tom Tromey <tromey@redhat.com>
3940
3941 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3942 New functions.
3943 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3944 Declare.
3945 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
3946 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
3947 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
3948 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
3949
d3685d60
TT
39502013-05-10 Freddie Chopin <freddie_chopin@op.pl>
3951 Tom Tromey <tromey@redhat.com>
3952
3953 PR build/15414:
3954 * configure: Rebuild.
3955 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
3956 with -Wno-format.
3957
eb9fe518
PA
39582013-05-10 Pedro Alves <palves@redhat.com>
3959
3960 * remote.c (_initialize_remote): Fix spelling of
3961 qXfer:traceframe-info:read packet in packet config command.
3962
9779ab84
PA
39632013-05-10 David Taylor <dtaylor@emc.com>
3964
3965 PR remote/15455
3966
3967 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
3968 "QTro" at start of packet.
3969
060cfbef
JB
39702013-05-10 Joel Brobecker <brobecker@adacore.com>
3971
3972 * solib-aix.c (solib_aix_relocate_section_addresses):
3973 For the .bss section action, apply the same offset as
3974 the .data section.
3975
ab1c4e88
JB
39762013-05-10 Joel Brobecker <brobecker@adacore.com>
3977
3978 * solib-aix.c (solib_aix_relocate_section_addresses):
3979 Remove FIXME comment.
3980
c1357578
JB
39812013-05-10 Joel Brobecker <brobecker@adacore.com>
3982
3983 PR tdep/15420:
3984 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
3985 New functions, directly copied from sparc-sol-thread.c.
3986 * sparc-sol-thread.c: Delete.
3987 * configure.ac: Remove code handling sparc-solaris-thread.c.
3988 * configure: Regenerate.
3989
1e611234
PM
39902013-05-10 Phil Muldoon <pmuldoon@redhat.com>
3991
3992 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
3993 filter logic.
3994 (backtrace_command): Add "no-filters" option parsing.
3995 (_initialize_stack): Alter help to reflect "no-filters" option.
3996 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
3997 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
3998 (py-frame.o): Add target
3999 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
4000 filter files.
4001 * python/python.h: Add new frame filter constants, and flag enum.
4002 (apply_frame_filter): Add definition.
4003 * python/python.c (apply_frame_filter): New non-Python
4004 enabled function.
4005 * python/py-utils.c (py_xdecref): New function.
4006 (make_cleanup_py_xdecref): Ditto.
4007 * python/py-objfile.c: Declare frame_filters dictionary.
4008 (objfpy_dealloc): Add frame_filters dealloc.
4009 (objfpy_new): Initialize frame_filters attribute.
4010 (objfile_to_objfile_object): Ditto.
4011 (objfpy_get_frame_filters): New function.
4012 (objfpy_set_frame_filters): New function.
4013 * python/py-progspace.c: Declare frame_filters dictionary.
4014 (pspy_dealloc): Add frame_filters dealloc.
4015 (pspy_new): Initialize frame_filters attribute.
4016 (pspacee_to_pspace_object): Ditto.
4017 (pspy_get_frame_filters): New function.
4018 (pspy_set_frame_filters): New function.
4019 * python/py-framefilter.c: New file.
4020 * python/lib/gdb/command/frame_filters.py: New file.
4021 * python/lib/gdb/frames.py: New file.
4022 * python/lib/gdb/__init__.py: Initialize global frame_filters
4023 dictionary
4024 * python/lib/gdb/FrameDecorator.py: New file.
4025 * python/lib/gdb/FrameIterator.py: New file.
4026 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
4027 * mi/mi-cmds.h: Declare.
4028 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
4029 --no-frame-filter logic, and Python frame filter logic.
4030 (stack_enable_frame_filters): New function.
4031 (parse_no_frame_option): Ditto.
4032 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
4033 filter logic.
4034 (mi_cmd_stack_list_locals): Ditto.
4035 (mi_cmd_stack_list_args): Ditto.
4036 (mi_cmd_stack_list_variables): Ditto.
4037 * NEWS: Add frame filter note.
4038
2cb9c859
DE
40392013-05-09 Doug Evans <dje@google.com>
4040
6bf667bb
DE
4041 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
4042 All callers updated.
4043 (syms_from_objfile): Ditto. Make static.
4044 (symbol_file_add_with_addrs): Renamed from
4045 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
4046 num_offsets. All callers updated.
4047 * symfile.h (syms_from_objfile): Delete.
4048
2cb9c859
DE
4049 * symfile.c (decrement_reading_symtab): Add assert.
4050 (increment_reading_symtab): Ditto.
4051
40aea477
JB
40522013-05-09 Joel Brobecker <brobecker@adacore.com>
4053
4054 * source.c (forward_search_command): Replace call to getc
4055 by call to fgetc.
4056 (reverse_search_command): Likewise.
4057
680d1742
DE
40582013-05-08 Doug Evans <dje@google.com>
4059
4060 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
4061 matching test.
4062
17e760ae
JB
40632013-05-08 Joel Brobecker <brobecker@adacore.com>
4064
4065 * sol-thread.c (info_cb): Factorize the code a little.
4066
c0f5f490
JB
40672013-05-08 Joel Brobecker <brobecker@adacore.com>
4068
4069 * sol-thread.c (info_cb): Rework the output of the "maintenance
4070 info sol-threads" command a bit.
4071
5d74e061
JB
40722013-05-08 Joel Brobecker <brobecker@adacore.com>
4073
4074 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
4075 Replace ti.ti_startfunc by ti.ti_pc.
4076
814a3ff7
JB
40772013-05-08 Joel Brobecker <brobecker@adacore.com>
4078
4079 * solib-aix.c (solib_aix_free_library_list): New function
4080 for the case where HAVE_LIBEXPAT is not defined.
4081
58ce7251
SDJ
40822013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4083
4084 PR breakpoints/15413:
4085 * breakpoint.c (condition_completer): Simplify the code to
4086 disconsider multiple locations of breakpoints when completing the
4087 "condition" command.
4088
be8b1ea6
PM
40892013-05-07 Pierre Muller <muller@sourceware.org>
4090
4091 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
4092 instead of <sys/wait.h>.
4093
1e52bda6
PM
40942013-05-07 Pierre Muller <muller@sourceware.org>
4095
4096 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
4097 trailing new line from warning message.
4098
27fd0c6b
PM
40992013-05-07 Pierre Muller <muller@sourceware.org>
4100
4101 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
4102 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
4103
e228ac87
JB
41042013-05-07 Joel Brobecker <brobecker@adacore.com>
4105
4106 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
4107 error message (ARI fix).
4108
41092013-05-07 Joel Brobecker <brobecker@adacore.com>
4110
4111 * features/library-list-aix.dtd: Replace library-list by
4112 library-list-aix.
4113 * rs6000-nat.c: Replace library-list by library-list-aix
4114 throughout.
4115 * solib-aix.c: Likewise.
4116
41172013-05-07 Joel Brobecker <brobecker@adacore.com>
4118
4119 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
4120 Renames TARGET_OBJECT_AIX_LIBRARIES.
4121 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
4122 TARGET_OBJECT_LIBRARIES_AIX throughout.
4123 * solib-aix.c: Likwise.
4124
26a4dda9
YQ
41252013-05-07 Yao Qi <yao@codesourcery.com>
4126
4127 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
4128 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
4129
3582629f
YQ
41302013-05-07 Yao Qi <yao@codesourcery.com>
4131
4132 * solib-dsbt.c (enable_break): Declare.
4133 (dsbt_current_sos): Remove call to enable_break2.
4134 (enable_break2): Rename to enable_break. Set solib breakpoint
4135 on '_dl_debug_state'.
4136 (enable_break): Remove.
4137
aacbb8a5
LM
41382013-05-07 Luis Machado <lgustavo@codesourcery.com>
4139
4140 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
4141 debug state prior to replicating existing hardware watchpoints or
4142 breakpoints.
4143
0c013353
JK
41442013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4145
4146 * gcore.c (gcore_create_callback): Ignore sections with
4147 separate_debug_objfile_backlink != NULL.
4148
a1217d97
SL
41492013-05-06 Sandra Loosemore <sandra@codesourcery.com>
4150 Andrew Jenner <andrew@codesourcery.com>
4151 Chung-Lin Tang <cltang@codesourcery.com>
4152 Julian Brown <julian@codesourcery.com>
4153
4154 Based on the nios2-elf port from Altera Corporation.
4155
4156 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
4157 nios2-linux-tdep.o.
4158 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
4159 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
4160 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
4161 * nios2-tdep.h: New.
4162 * nios2-tdep.c: New.
4163 * nios2-linux-tdep.c: New.
4164 * features/Makefile (WHICH): Add nios2-linux.
4165 (nios2-linux-expedite): Set.
4166 * features/nios2-cpu.xml: New.
4167 * features/nios2.xml: New.
4168 * features/nios2-linux.xml: New.
4169 * features/nios2.c: New (autogenerated).
4170 * features/nios2-linux.c: New (autogenerated).
4171 * regformats/nios2-linux.dat: New (autogenerated).
4172 * NEWS (Changes since GDB 7.6): Add new Nios II targets
4173 and commands.
4174
0892cb63
DE
41752013-05-06 Doug Evans <dje@google.com>
4176
3b7bacac
DE
4177 * symfile.c: Whitespace cleanup.
4178
0892cb63
DE
4179 * solist.h (struct target_so_ops): New member clear_so.
4180 * solib-svr4.c (svr4_clear_so): New function.
4181 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
4182 * solib.c (clear_so): Renamed from free_so_symbols.
4183 All callers updated. Call target clear_so if it exists.
4184
40501e00
TT
41852013-05-06 Tom Tromey <tromey@redhat.com>
4186
4187 * ada-lang.c (ada_value_primitive_packed_val): Don't
4188 call value_incref.
4189 * value.c (set_value_parent): Incref the new parent and decref
4190 the old parent.
4191 (value_copy, value_primitive_field): Use set_value_parent.
4192
b6807d98
TT
41932013-05-06 Tom Tromey <tromey@redhat.com>
4194
4195 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
4196 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
4197 if needed.
4198 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
4199 * dwarf2read.c (write_constant_as_bytes)
4200 (dwarf2_fetch_constant_bytes): New functions.
4201
3aef2284
TT
42022013-05-06 Tom Tromey <tromey@redhat.com>
4203
4204 * dwarf2read.c (dwarf2_const_value_data): Remove unused
4205 parameters.
4206 (dwarf2_const_value_attr): Update.
4207
66f65e2b
TT
42082013-05-06 Tom Tromey <tromey@redhat.com>
4209
4210 * somread.c (som_symfile_offsets): Add 'const' to addrs.
4211 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
4212 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
4213 Remove declaration.
4214
7919a973
TT
42152013-05-06 Tom Tromey <tromey@redhat.com>
4216
4217 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
4218 objfile's obstack.
4219
a7bfba49
DE
42202013-05-06 Doug Evans <dje@google.com>
4221
3189cb12
DE
4222 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
4223 * stabsread.h (process_one_symbol): Update declaration.
4224 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
4225 * elfread.c (elf_symfile_relocate_probe): Ditto.
4226 * psymtab.c (relocate_psymtabs): Ditto.
4227 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
4228 (objfile_relocate): Ditto.
4229 * objfiles.h (objfile_relocate): Update declaration.
4230 * symfile.c (relative_addr_info_to_section_offsets): Constify
4231 addrs parameter.
4232 (default_symfile_offsets): Ditto.
4233 (syms_from_objfile_1): Constify offsets parameter.
4234 (syms_from_objfile): Ditto.
4235 (symbol_file_add_with_addrs_or_offsets): Ditto.
4236 (symfile_map_offsets_to_segments): Constify data parameter.
4237 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
4238 delta parameters of member relocate.
4239 (struct sym_probe_fns): Constify new_offsets,
4240 delta parameters of member sym_relocate_probe.
4241 (struct sym_fns): Constify section_addr_info parameter of member
4242 sym_offsets.
4243 (relative_addr_info_to_section_offsets): Update declaration.
4244 (default_symfile_offsets): Ditto.
4245 (syms_from_objfile): Ditto.
4246 (symfile_map_offsets_to_segments): Ditto.
4247
a7bfba49
DE
4248 * symfile.c (syms_from_objfile_1): Use correct section count when
4249 objfile->sf == NULL.
4250
5f8e0b8f
MF
42512013-05-06 Mike Frysinger <vapier@gentoo.org>
4252
4253 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
4254
ea52d893
DE
42552013-05-06 Doug Evans <dje@google.com>
4256
4257 * psympriv.h (struct partial_symtab): Augment comment for member
4258 section_offsets.
4259
4d1eb6b4
JB
42602013-05-06 Joel Brobecker <brobecker@adacore.com>
4261
4262 Reimplement shared library support on ppc-aix...
4263 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
4264 * features/library-list-aix.dtd: New file.
4265 * solib-aix.h, solib-aix.c: New file.
4266 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
4267 (rs6000_find_toc_address_hook): Delete.
4268 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
4269 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
4270 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
4271 "xml-utils.h".
4272 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
4273 (vmap_symtab, fixup_breakpoints): Delete.
4274 (rs6000_xfer_shared_libraries): New function.
4275 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
4276 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
4277 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
4278 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
4279 (rs6000_xfer_shared_library): New function.
4280 (find_toc_address): Delete.
4281 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
4282 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
4283 * xcoffread.c (record_minimal_symbol): Reloate symbol address
4284 before creating minimal symbol. Adjust function description
4285 accordingly.
4286 (scan_xcoff_symtab): Replace call to
4287 prim_record_minimal_symbol_and_info by call to
4288 record_minimal_symbol.
4289 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
4290 around default_symfile_offsets.
4291 * configure.tgt: Add solib-aix.o to gdb_target_obs for
4292 powerpc-aix targets.
4293 * config/rs6000/nm-rs6000.h: Delete.
4294 * config/powerpc/aix.mh (NAT_FILE): Delete.
4295 (NATDEPFILES): Remove xcoffsolib.o.
4296 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
4297 (ALL_TARGET_OBS): Add solib-aix.o.
4298 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
4299 config/rs6000/nm-rs6000.h. Add solib-aix.h.
4300 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
4301 * xcoffsolib.h, xcoffsolib.c: Delete.
4302
4303 * solib.c (reload_shared_libraries): Remove reference to
4304 SOLIB_CREATE_INFERIOR_HOOK.
4305 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
4306 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
4307 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
4308 comment.
4309 * corelow.c (deprecated_core_resize_section_table): Delete.
4310 * exec.c: Remove include of xcoffsolib.h".
4311 (map_vmap, vmap): Delete.
4312 (exec_close_1): Remove references to vmap.
4313 (exec_file_attach): Remove vmap handling code, and reference
4314 to DEPRECATED_IBM6000_TARGET.
4315 (bfdsec_to_vmap): Delete.
4316 (exec_files_info): Remove block of code handling VMAP.
4317 * infcmd.c (post_create_inferior): Remove reference to
4318 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
4319 * infrun.c (follow_exec): Remove reference to
4320 SOLIB_CREATE_INFERIOR_HOOK.
4321 * stack.c (print_frame): Remove reference to PC_SOLIB.
4322 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
4323 (dsbt_relocate_main_executable): Likewise.
4324 * solib-frv.c (frv_current_sos): Likewise.
4325
0c4f667c
JB
43262013-05-06 Joel Brobecker <brobecker@adacore.com>
4327
4328 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
4329 to target_write_memory and target_read_memory.
4330
726ce67c
JB
43312013-05-06 Joel Brobecker <brobecker@adacore.com>
4332
4333 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
4334 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
4335
c8c9911f
JB
43362013-05-06 Joel Brobecker <brobecker@adacore.com>
4337
4338 * darwin-nat.c: Replace all "%x" instances in format strings
4339 into "0x%x" throughout.
4340
fda184b6
JB
43412013-05-06 Joel Brobecker <brobecker@adacore.com>
4342
4343 * darwin-nat.c (darwin_mourn_inferior): Replace call to
4344 gdb_assert by call to MACH_CHECK_ERROR.
4345 (darwin_attach_pid): Raise an error rather than a failed
4346 assertion when various system calls failed. Report a warning
4347 instead of raising a failed assertion when PREV_NOT is not NULL
4348 after call to mach_port_request_notification.
4349 (darwin_ptrace_me): Raise an error rather than a failed
4350 assertion when read returns nonzero.
4351
d1d69afb
JB
43522013-05-06 Joel Brobecker <brobecker@adacore.com>
4353
4354 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
4355
dc90b24d
JK
43562013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4357
4358 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
4359
faab9922
JK
43602013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4361
4362 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
4363 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
4364 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
4365 a stale cleanup. Fix double free of NAME.
4366
e0ea48a0
EZ
43672013-05-04 Eli Zaretskii <eliz@gnu.org>
4368
4369 * windows-nat.c (windows_delete_thread): Accept an additional
4370 argument, the thread's exit code, and announce thread death when
4371 print_thread_events is non-zero and we are deleting a thread that
4372 is not the main thread.
4373 (get_windows_debug_event): Pass thread exit code to
4374 windows_delete_thread.
4375
83b2706a
KB
43762013-05-03 Kevin Buettner <kevinb@redhat.com>
4377
4378 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
4379 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
4380 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
4381 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
4382 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
4383 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
4384 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
4385 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
4386 (gdbarch_tdep): New struct.
4387 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
4388 E_NUM_REGS.
4389 (v850e3v5_register_name): New function.
4390 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
4391 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
4392 code handling the struct return conventions for the RH850 ABI.
4393 Update all callers.
4394 (v850_eight_byte_align_p): New function.
4395 (v850_push_call_dummy): Push structs by value, not by reference
4396 for the RH850 ABI. Add support for eight byte alignment.
4397 (v850_dbtrap_breakpoint_from_pc): New function.
4398 (v850_gdbarch_init): Add ABI detection code. Register
4399 v850e3v5_register_name for the v850e3v5 architecture. Set the
4400 number of registers for v850e3v5. Register
4401 v850_dbtrap_breakpoint_from_pc as appropriate.
4402 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
4403
d445b2f6
DE
44042013-05-03 Doug Evans <dje@google.com>
4405
4406 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
4407 of bfd_count_sections.
4408 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
4409 * symfile.c (default_symfile_offsets): Ditto.
4410 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
4411 one entry, not bfd_count_sections entries.
4412
b3ce41ea
KB
44132013-05-03 Kevin Buettner <kevinb@redhat.com>
4414
4415 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
4416 `save' and `restore' register groups. Don't include SPL
4417 or SPH in these groups.
4418 (rl78_dwarf_reg_to_regnum): Adjust mapping for
4419 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
4420 RL78_ES_REGNUM, and RL78_CS_REGNUM.
4421 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
4422 dwarf2_append_unwinders().
4423
96f7d3f1
PW
44242013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4425
4426 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
4427 ignore SIGINT and SIGTRAP in case these internal signals are
4428 caught explicitely.
4429
b9dd1947
JB
44302013-05-01 Joel Brobecker <brobecker@adacore.com>
4431
4432 * darwin-nat.c (darwin_read_write_inferior): Change types
4433 of parameters rdaddr and wraddr to "gdb_byte *". Change type
4434 of copy_count to "mach_msg_type_number_t".
4435 (darwin_read_dyld_info): Change type of parameter
4436 rdaddr to "gdb_byte *".
4437
4ca18a63
JB
44382013-05-01 Joel Brobecker <brobecker@adacore.com>
4439
4440 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
4441 of &info->load_map from "char *" to "gdb_byte *".
4442
2b692d32
JB
44432013-05-01 Joel Brobecker <brobecker@adacore.com>
4444
4445 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
4446 from "char *" to "gdb_byte *".
4447 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
4448
a98c29a0
DE
44492013-04-30 Doug Evans <dje@google.com>
4450
6a506a2d
DE
4451 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
4452 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
4453 DWO stub. If DWO isn't found, just use stub.
4454 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
4455
a98c29a0
DE
4456 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
4457 calling init_cutu_and_read_dies.
4458
f92b06da
WT
44592013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4460
4461 * target-descriptions.c (maint_print_c_tdesc_cmd):
4462 Add case to parse structures as register types and
4463 bitfields.
4464
95eebdcc
WT
44652013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
4466
4467 * MAINTAINERS (Write After Approval): Add myself to the list.
4468
019c1128
JB
44692013-04-30 Joel Brobecker <brobecker@adacore.com>
4470
4471 * sol-thread.c (rw_common): Change type of parameter "buf"
4472 to "gdb_byte *".
4473 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
4474 rw_common to "gdb_byte *" instead of "char *".
4475
5812197c
JB
44762013-04-30 Joel Brobecker <brobecker@adacore.com>
4477
4478 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
4479 of local variable msym to const struct bound_minimal_symbol.
4480 Adjust use accordingly.
4481 [ti.ti_state == TD_THR_SLEEP]: Likewise.
4482
ecccb813
TS
44832013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
4484
4485 * i386gnu-nat.c (CREG_OFFSET): New macro.
4486 (creg_offset): New array.
4487 (CREG_ADDR): Use creg_offset instead of reg_offset.
4488
f1d02dd4 44892013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
4490
4491 * mep-tdep.c (mep_write_pc): Delete.
4492 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
4493 Add call to set_gdbarch_pc_regnum.
4494
f1d02dd4 44952013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
4496
4497 * common/filestuff.c: Replace #include <dirent.h> by
4498 #include "gdb_dirent.h".
4499
f1d02dd4 45002013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
4501
4502 * common/filestuff.c: Replace #include <sys/stat.h> by
4503 #include "gdb_stat.h".
4504
b385a60d
PM
45052013-04-29 Pierre Muller <muller@sourceware.org>
4506
4507 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
4508 editCase function rule.
4509 (get_DW_AT_signature_type): Likewise.
4510
d27b54ad
JB
45112013-04-29 Joel Brobecker <brobecker@adacore.com>
4512
4513 * m32r-tdep.c (m32r_write_pc): Delete.
4514 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
4515 Add call to set_gdbarch_pc_regnum.
4516
47d21dc5
PM
45172013-04-29 Pierre Muller <muller@sourceware.org>
4518
4519 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
4520
9056882e
JB
45212013-04-29 Joel Brobecker <brobecker@adacore.com>
4522
4523 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
4524
7ee4732a
YQ
45252013-04-28 Yao Qi <yao@codesourcery.com>
4526
4527 * solib-dsbt.c (fetch_loadmap): Re-indent.
4528 (displacement_from_map, enable_break2): Likewise.
4529 (dsbt_relocate_section_addresses): Likewise.
4530
2260af53 45312013-04-26 Joel Brobecker <brobecker@adacore.com>
4532
4533 GDB 7.6 released.
4534
ff546935
TT
45352013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
4536
4537 PR corefiles/14983:
4538 * dwarf2read.c (process_full_comp_unit): Always create a static
4539 block.
4540
40fb6c5e
HZ
45412013-04-25 Hui Zhu <hui@codesourcery.com>
4542
4543 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
4544 to loc->cmd_bytecode.
4545
74e04d1c
DE
45462013-04-24 Doug Evans <dje@google.com>
4547
4548 * dwarf2read.c (setup_type_unit_groups): Fix comment.
4549
3cf62c1d
KS
45502013-04-22 Keith Seitz <keiths@redhat.com>
4551
4552 * tracepoint.c (trace_save): Call the writer's start method.
4553
bf9e4d0c
MB
45542013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
4555
4556 PR gdb/10462
4557 * cli/cli-decode.c (lookup_command): Show an error if there is no space
4558 before argument.
4559
5d71132c
TT
45602013-04-23 Tom Tromey <tromey@redhat.com>
4561
4562 * common/filestuff.c: Check USE_WIN32API before including
4563 sys/socket.h.
4564 (HAVE_F_GETFD): New define.
4565 (mark_cloexec): Check HAVE_F_GETFD.
4566 (gdb_open_cloexec): Change 'mode' to unsigned long.
4567 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
4568 (gdb_pipe_cloexec): Check HAVE_PIPE.
4569 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
4570 long.
4571
a11cfd87
HZ
45722013-04-23 Hui Zhu <hui@codesourcery.com>
4573
4574 PR gdb/15293
a11cfd87
HZ
4575 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
4576
2d9442cc
HZ
45772013-04-23 Hui Zhu <hui@codesourcery.com>
4578
4579 PR gdb/15165
2d9442cc
HZ
4580 * breakpoint.c (dprintf_print_recreate): New.
4581 (save_breakpoints): Let it not save dprintf commands.
4582 (initialize_breakpoint_ops): Set dprintf_print_recreate.
4583
614c279d
TT
45842013-04-22 Tom Tromey <tromey@redhat.com>
4585
4586 PR gdb/7912:
4587 * Makefile.in (SFILES): Add filestuff.c
4588 (COMMON_OBS): Add filestuff.o.
4589 (filestuff.o): New target.
4590 * auto-load.c (auto_load_objfile_script_1): Use
4591 gdb_fopen_cloexec.
4592 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
4593 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
4594 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
4595 * common/agent.c (gdb_connect_sync_socket): Use
4596 gdb_socket_cloexec.
4597 * common/filestuff.c: New file.
4598 * common/filestuff.h: New file.
4599 * common/linux-osdata.c (linux_common_core_of_thread)
4600 (command_from_pid, commandline_from_pid, print_source_lines)
4601 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4602 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
4603 gdb_fopen_cloexec.
4604 * common/linux-procfs.c (linux_proc_get_int)
4605 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
4606 * config.in, configure: Rebuild.
4607 * configure.ac: Don't check for sys/socket.h. Check for
4608 fdwalk, pipe2.
4609 * corelow.c (core_open): Use gdb_open_cloexec.
4610 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
4611 * fork-child.c (fork_inferior): Call close_most_fds.
4612 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
4613 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
4614 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
4615 Use gdb_fopen_cloexec.
4616 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
4617 gdb_open_cloexec.
4618 (linux_async_pipe): Use gdb_pipe_cloexec.
4619 * remote-fileio.c (remote_fileio_func_open): Use
4620 gdb_open_cloexec.
4621 * remote.c (remote_file_put, remote_file_get): Use
4622 gdb_fopen_cloexec.
4623 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
4624 close_most_fds.
4625 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
4626 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
4627 * solib.c (solib_find): Use gdb_open_cloexec.
4628 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
4629 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
4630 (tfile_open): Use gdb_open_cloexec.
4631 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
4632 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
4633 * xml-support.c (xml_fetch_content_from_file): Use
4634 gdb_fopen_cloexec.
4635 * main.c (captured_main): Call notice_open_fds.
4636
5fda2332
EBM
46372013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
4638
4639 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
4640 'char *' to 'gdb_byte *'.
4641 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
4642 'gdb_byte'.
4643
eb6c553b
YQ
46442013-04-22 Yao Qi <yao@codesourcery.com>
4645
4646 * infrun.c: Fix typo in comment.
4647
9991b207
SDJ
46482013-04-22 Andrew Haley <aph@redhat.com>
4649
4650 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
4651 instead of "long".
4652
8b4833e3
YQ
46532013-04-20 Yao Qi <yao@codesourcery.com>
4654
4655 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
4656 'char *' to 'gdb_byte *'. Cast the return value of
4657 'bt_ctf_get_char_array' to 'gdb_byte *'.
4658
bd3f3b55
PA
46592013-04-19 Pedro Alves <palves@redhat.com>
4660
4661 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
4662 -Wpointer-sign.
4663 * configure: Regenerate.
4664
c49e7f76
PA
46652013-04-19 Pedro Alves <palves@redhat.com>
4666
4667 * ser-tcp.c (net_read_prim): Cast second argument to recv to
4668 'void *'.
4669
12ff8552
PA
46702013-04-19 Pedro Alves <palves@redhat.com>
4671
4672 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
4673 Change type of 'myaddr' parameter to gdb_byte pointer.
4674 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
4675 to 'long long' pointer instead of to 'unsigned long long'.
4676 (monitor_write_memory_block, monitor_read_memory_single)
4677 (monitor_read_memory): Change type of 'myaddr' parameter to
4678 gdb_byte pointer.
4679
9c37696b
PA
46802013-04-19 Pedro Alves <palves@redhat.com>
4681
4682 * record.c (validate_history_size): Make parameter 'setting'
4683 unsigned.
4684
a398505b
PA
46852013-04-19 Pedro Alves <palves@redhat.com>
4686
4687 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
4688 to 'gdb_byte *'.
4689
9f8afa72
PA
46902013-04-19 Pedro Alves <palves@redhat.com>
4691
4692 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
4693 local to int.
4694
c714b426
PA
46952013-04-19 Pedro Alves <palves@redhat.com>
4696
4697 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
4698 * ada-tasks.c (read_fat_string_value): Likewise.
4699
507a579c
PA
47002013-04-19 Pedro Alves <palves@redhat.com>
4701
4702 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
4703 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
4704 'offset', and adjust.
4705
f9d83a0b
PA
47062013-04-19 Pedro Alves <palves@redhat.com>
4707
4708 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
4709 (read_index_from_section): Add cast to 'char *'.
4710
745eb4fd
PA
47112013-04-19 Pedro Alves <palves@redhat.com>
4712
4713 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
4714
db5be46f
PA
47152013-04-19 Pedro Alves <palves@redhat.com>
4716
4717 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
4718
0f928d68
PA
47192013-04-19 Pedro Alves <palves@redhat.com>
4720
4721 * record-full.c (record_full_get_bookmark): Change local 'ret'
4722 type to char * and add cast to gdb_byte *.
4723 (record_full_goto_bookmark): Handle 'bookmark' argument as a
4724 string.
4725 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
4726
89f6d837
PA
47272013-04-19 Pedro Alves <palves@redhat.com>
4728
4729 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
4730 * python/py-prettyprint.c (print_string_repr): Change type of
4731 'output' local to char *. Add cast to gdb_byte * in
4732 LA_PRINT_STRING call.
4733 (print_children): Change type of 'output' local to char *.
4734 * python/py-value.c (valpy_string): Add cast to const char * in
4735 PyUnicode_Decode call.
4736
ce6ec7d8
PA
47372013-04-19 Pedro Alves <palves@redhat.com>
4738
4739 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
4740 and change its type to 'const char *'. Adjust.
4741 (mips_send_packet): Add cast to 'char *', and remove cast to
4742 'unsigned char *'.
4743 (mips_receive_packet): Remove cast to 'unsigned char *'.
4744 (mips_load_srec): Use bfd_byte.
4745 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
4746 (pmon_checkset): Make 'value' parameter unsigned.
4747
fda0389f
PA
47482013-04-19 Pedro Alves <palves@redhat.com>
4749
4750 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
4751
bc20a4af
PA
47522013-04-19 Pedro Alves <palves@redhat.com>
4753
4754 * remote.c (remote_write_bytes_aux, compare_sections_command)
4755 (remote_read_qxfer)
4756 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
4757 (remote_hostio_readlink, remote_bfd_iovec_pread)
4758 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
4759 binary buffer, and char when buffer is used as string.
4760 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
4761 (trace_save, tfile_open, traceframe_walk_blocks)
4762 (tfile_fetch_registers): Likewise.
4763
c628b528
PA
47642013-04-19 Pedro Alves <palves@redhat.com>
4765
4766 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
4767 buffer and size_t size. Adjust.
4768 * ser-base.h (ser_base_write): Adjust.
4769 * ser-go32.c (cnts): Change type to size_t.
4770 (dos_write): Change prototype -- take 'void *'
4771 buffer and size_t size. Adjust.
4772 (dos_info): Print elements of 'cnts' as unsigned long.
4773 * serial.c (serial_write): Likewise.
4774 * serial.h (serial_write): Adjust.
4775 (struct serial_ops) <write>: Change prototype -- take 'void *'
4776 buffer and size_t size. Adjust.
4777
51a5cd90
PA
47782013-04-19 Pedro Alves <palves@redhat.com>
4779
4780 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
4781 gdb_byte *.
4782 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
4783
a9933661
PA
47842013-04-19 Pedro Alves <palves@redhat.com>
4785
4786 * alpha-tdep.c (alpha_extract_return_value): Use
4787 regcache_cooked_read_unsigned to read 'v0'.
4788
19afdd07
PA
47892013-04-19 Pedro Alves <palves@redhat.com>
4790
4791 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
4792 parameters 'at', 'as' and 'offset' to uint32_t.
4793
96b32e50
PA
47942013-04-19 Pedro Alves <palves@redhat.com>
4795
4796 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
4797 'is64' to signed 'int'.
4798
eb1bd1fb
PA
47992013-04-19 Pedro Alves <palves@redhat.com>
4800
4801 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
4802 parameter to int *.
4803
463920bf
PA
48042013-04-19 Pedro Alves <palves@redhat.com>
4805
4806 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
4807 'insnbuf' buffer type to unsigned int[].
4808
70242eb1
PA
48092013-04-19 Pedro Alves <palves@redhat.com>
4810
4811 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
4812
9d1dd0e2
PA
48132013-04-19 Pedro Alves <palves@redhat.com>
4814
4815 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
4816 unsigned long *.
4817
44096aee
PA
48182013-04-19 Pedro Alves <palves@redhat.com>
4819
4820 * alpha-tdep.c (heuristic_fence_post): Change type to int.
4821 (alpha_heuristic_proc_start): Adjust to check -1 instead of
4822 UINT_MAX.
4823 * mips-tdep.c (heuristic_fence_post): Change type to int.
4824 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
4825
e4286e57
PA
48262013-04-19 Pedro Alves <palves@redhat.com>
4827
4828 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
4829 (struct gdbarch_tdep) <cris_version>: Make unsigned.
4830 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
4831
001f13d8
PA
48322013-04-19 Pedro Alves <palves@redhat.com>
4833
4834 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
4835 it to get a string view of the byte buffer.
4836 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
4837 type to gdb_byte *. Adjust.
4838 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
4839 Change local to char *.
4840 * solib-darwin.c (find_program_interpreter): Change return type to
4841 char *. Adjust.
4842 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
4843 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
4844 * solib-frv.c (enable_break2): Change local 'buf' to char *.
4845 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
4846 * solib-svr4.c (find_program_interpreter): Change return type to
4847 char *. Adjust.
4848 (enable_break): Change local 'interp_name' to char *.
4849 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4850 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
4851 (spu_pseudo_register_write_spu): Use char for string buffer.
4852 Adjust.
4853 (info_spu_event_command, info_spu_signal_command): Add casts to
4854 'char *'.
4855
948f8e3d
PA
48562013-04-19 Pedro Alves <palves@redhat.com>
4857
4858 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
4859 gdb_byte[].
4860 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
4861 * ada-lang.c (ada_value_assign): Use gdb_byte.
4862 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
4863 (alphanbsd_sigtramp_offset): Use gdb_byte.
4864 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
4865 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
4866 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
4867 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
4868 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
4869 * arm-tdep.c (arm_stub_unwind_sniffer)
4870 (arm_displaced_init_closure): Use gdb_byte.
4871 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
4872 (arm_default_thumb_le_breakpoint)
4873 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
4874 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
4875 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
4876 * arm-wince-tdep.c (arm_wince_le_breakpoint)
4877 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
4878 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
4879 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
4880 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
4881 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
4882 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
4883 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
4884 (cris_store_return_value, cris_extract_return_value): Use
4885 gdb_byte.
4886 (constraint): Change type of parameter to char * from signed
4887 char*. Use gdb_byte.
4888 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
4889 of local buffer to gdb_byte *.
4890 * dwarf2read.c (read_index_from_section): Use gdb_byte.
4891 (create_dwp_hash_table): Change type of locals to gdb_byte *.
4892 (add_address_entry): Change type of local buffer to gdb_byte[].
4893 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
4894 (frv_push_dummy_call): Use gdb_byte.
4895 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
4896 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
4897 (hppa_hpux_supply_save_state): Use gdb_byte.
4898 * hppa-tdep.c (hppa32_push_dummy_call)
4899 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
4900 * ia64-tdep.c (extract_bit_field, replace_bit_field)
4901 (slotN_contents, replace_slotN_contents): Change type of parameter
4902 to gdb_byte *.
4903 (fetch_instruction, ia64_pseudo_register_write)
4904 (ia64_register_to_value, ia64_value_to_register)
4905 (ia64_extract_return_value, ia64_store_return_value)
4906 (ia64_push_dummy_call): Use gdb_byte.
4907 * m32c-tdep.c (m32c_return_value): Remove cast.
4908 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
4909 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
4910 gdb_byte.
4911 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
4912 * mn10300-tdep.c (mn10300_store_return_value)
4913 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
4914 gdb_byte.
4915 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
4916 (moxie_process_record): Remove casts.
4917 * ppc-ravenscar-thread.c (supply_register_at_address)
4918 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
4919 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
4920 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
4921 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
4922 * remote.c (compare_sections_command): Use gdb_byte.
4923 * score-tdep.c (score7_free_memblock): Change type of parameter to
4924 gdb_byte *.
4925 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
4926 gdb_byte *. Use gdb_byte.
4927 (sh_push_dummy_call_fpu): Use gdb_byte.
4928 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
4929 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
4930 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
4931 Change parameter type to 'gdb_byte *'. Use gdb_byte.
4932 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
4933 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
4934 (sh64_store_return_value, sh64_register_convert_to_virtual):
4935 Change parameter type to 'gdb_byte *'. Use gdb_byte.
4936 (sh64_pseudo_register_write): Use gdb_byte.
4937 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
4938 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
4939 buffer.
4940 (irix_current_sos): Use gdb_byte.
4941 * solib-som.c (som_current_sos): Use gdb_byte.
4942 * sparc-ravenscar-thread.c (supply_register_at_address)
4943 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
4944 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4945 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
4946 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
4947 'gdb_byte *'.
4948 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
4949 'gdb_byte *'.
4950 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
4951 * xstormy16-tdep.c (xstormy16_extract_return_value)
4952 (xstormy16_store_return_value): Change parameter type to
4953 'gdb_byte *'. Adjust.
4954 (xstormy16_push_dummy_call): Use gdb_byte.
4955 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
4956 (call0_analyze_prologue, execute_code): Use gdb_byte.
4957
433730c9
PA
49582013-04-19 Vladimir Kargov <kargov@gmail.com>
4959 Pedro Alves <palves@redhat.com>
4960
4961 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
4962 value contents.
4963
ac9ec31b
DE
49642013-04-17 Doug Evans <dje@google.com>
4965
4966 * dwarf2read.c (struct signatured_type): New member type.
4967 (struct attribute): Replace member signatured_type with signature.
4968 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
4969 (read_call_site_scope): Call follow_die_ref instead of
4970 follow_die_ref_or_sig.
4971 (read_structure_type): Rewrite handling of signatured types.
4972 (read_enumeration_type): Ditto.
4973 (read_attribute_value): Update.
4974 (build_error_marker_type): New function.
4975 (lookup_die_type): Add assert. Rewrite handling of signatured types.
4976 Don't call error for bad types, just build an error marker type.
4977 (dump_die_shallow): Update.
4978 (follow_die_sig_1): Renamed from follow_die_sig.
4979 Don't call error for bad types, instead return NULL.
4980 (follow_die_sig): New function.
4981 (get_signatured_type, get_DW_AT_signature_type): New functions.
4982
e546e8bb
YZ
49832013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
4984
4985 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
4986 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
4987 function.
e546e8bb 4988
ab116149
YQ
49892013-04-17 Yao Qi <yao@codesourcery.com>
4990
4991 * top.c (print_gdb_configuration): Print configure-time
4992 parameter on using libbabeltrace or not.
4993
488a42b8
PA
49942013-04-16 Pedro Alves <palves@redhat.com>
4995
4996 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
4997
f5fb825b
PA
49982013-04-16 Pedro Alves <palves@redhat.com>
4999
85d494ea 5000 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
5001 (git 568035b7874a099087b77f7bba3e36a1173787b0).
5002
e1154999
PA
50032013-04-16 Pedro Alves <palves@redhat.com>
5004
5005 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
5006 * common/glibc_thread_db.h: ... this new file ...
5007 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
5008
e3b50a7f
PA
50092013-04-16 Will Newton <will.newton@gmail.com>
5010 Pedro Alves <palves@redhat.com>
5011
5012 PR build/11881
5013
5014 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
5015 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
5016 HAVE_THREAD_DB_H.
5017
1c2e4450
PA
50182013-04-16 Pedro Alves <palves@redhat.com>
5019 Eli Zaretskii <eliz@gnu.org>
5020
5021 * NEWS: Mention "set foo unlimited".
5022
4031ecc5
DE
50232013-04-15 Doug Evans <dje@google.com>
5024
19c3d4c9
DE
5025 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
5026 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
5027 (create_dwo_cu_reader): Renamed from
5028 create_dwo_debug_info_hash_table_reader.
5029 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
5030 Remove support for multiple CUs in a DWO file.
5031 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
5032
4031ecc5
DE
5033 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
5034 instead of phex.
5035 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
5036 (create_dwo_in_dwp): Ditto.
5037
b340913d
TT
50382013-04-15 Tom Tromey <tromey@redhat.com>
5039
5040 * NEWS: Move recent entries into "since 7.6" section.
5041
cc16e6c9
TT
50422013-04-15 Tom Tromey <tromey@redhat.com>
5043
5044 PR c++/13588:
5045 * NEWS: Update.
5046 * break-catch-throw.c (struct exception_catchpoint)
5047 <exception_rx, pattern>: New fields.
5048 (fetch_probe_arguments, dtor_exception_catchpoint)
5049 (check_status_exception_catchpoint)
5050 (print_one_detail_exception_catchpoint): New functions.
5051 (handle_gnu_v3_exceptions): Add "except_rx" argument.
5052 Compile regular expression if needed.
5053 (extract_exception_regexp): New function.
5054 (catch_exception_command_1): Use extract_exception_regexp.
5055 (compute_exception): Use fetch_probe_arguments.
5056 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
5057 and check_status fields.
5058 * cp-abi.c (cplus_typename_from_type_info): New function.
5059 * cp-abi.h (cplus_typename_from_type_info): Declare.
5060 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
5061 * gdb_regex.h (compile_rx_or_error): Declare.
5062 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
5063 comment.
5064 (init_gnuv3_ops): Set get_type_from_type_info field.
5065 * probe.c (compile_rx_or_error): Move...
5066 * utils.c (compile_rx_or_error): ... here.
5067
72f1fe8a
TT
50682013-04-15 Tom Tromey <tromey@redhat.com>
5069
5070 PR c++/15176:
5071 * NEWS: Update.
5072 * break-catch-throw.c (compute_exception): New function.
5073 (exception_funcs): New global.
5074 (_initialize_break_catch_throw): Create $_exception.
5075 * cp-abi.c (cplus_type_from_type_info): New function.
5076 * cp-abi.h (cplus_type_from_type_info): Declare.
5077 (struct cp_abi_ops) <get_type_from_type_info>: New field.
5078 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
5079 (gnuv3_get_type_from_type_info): New functions.
5080 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
5081
fc4746a2
TT
50822013-04-15 Tom Tromey <tromey@redhat.com>
5083
5084 * break-catch-throw.c (struct exception_names): New.
5085 (exception_functions): Change type.
5086 (re_set_exception_catchpoint): Look for SDT probes.
5087
15a73f56
TT
50882013-04-15 Tom Tromey <tromey@redhat.com>
5089
5090 PR c++/10119:
5091 * break-catch-throw.c (exception_functions): New global.
5092 (gnu_v3_exception_catchpoint_ops): Move earlier.
5093 (struct exception_catchpoint): New.
5094 (classify_exception_breakpoint): Rewrite.
5095 (re_set_exception_catchpoint): New function.
5096 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
5097 Allocate a struct exception_catchpoint.
5098 (catch_exception_command_1): Update.
5099 (initialize_throw_catchpoint_ops): Set 're_set' method.
5100
916703c0
TT
51012013-04-15 Tom Tromey <tromey@redhat.com>
5102
5103 * Makefile.in (SFILES): Add break-catch-throw.c
5104 (COMMON_OBS): Add break-catch-throw.o.
5105 * break-catch-throw.c: New file.
5106 * breakpoint.c: Move exception-catching code to new file.
5107 (ep_parse_optional_if_clause): No longer static.
5108 * breakpoint.h (ep_parse_optional_if_clause): Declare.
5109
6e72ca20
TT
51102013-04-15 Tom Tromey <tromey@redhat.com>
5111
5112 PR c++/9065:
5113 * NEWS: Update.
5114 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
5115 * c-exp.y (TYPEID): New token.
5116 (exp): Add new TYPEID productions.
5117 (ident_tokens): Add "typeid".
5118 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
5119 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
5120 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
5121 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
5122 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
5123 case.
5124 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
5125 (build_std_type_info_type, gnuv3_get_typeid_type)
5126 (gnuv3_get_typeid): New functions.
5127 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
5128 new fields on ABI object.
5129 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
5130 * std-operator.def (OP_TYPEID): New.
5131
715c6909
TT
51322013-04-15 Tom Tromey <tromey@redhat.com>
5133
5134 * elfread.c (elf_symtab_read): Install versioned symbol under
5135 unversioned name as well.
5136
8de20a37
TT
51372013-04-15 Tom Tromey <tromey@redhat.com>
5138
5139 PR c++/11990:
5140 * c-lang.c (cplus_language_defn): Use gdb_demangle.
5141 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
5142 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
5143 (gdb_demangle): New function.
5144 * cp-support.h (gdb_demangle): Declare.
5145 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
5146 (dwarf2_name): Use gdb_demangle.
5147 * gdbtypes.c (check_stub_method): Use gdb_demangle.
5148 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
5149 suffixes from name.
5150 (gnuv3_print_method_ptr): Use gdb_demangle.
5151 * jv-lang.c (java_demangle): Use gdb_demangle.
5152 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
5153 * language.c (unk_lang_demangle): Use gdb_demangle.
5154 * symtab.c (symbol_find_demangled_name)
5155 (demangle_for_lookup): Use gdb_demangle.
5156
591f19e8
TT
51572013-04-15 Tom Tromey <tromey@redhat.com>
5158
5159 PR c++/12824:
5160 * NEWS: Update.
5161 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
5162 New constant.
5163 (classify_exception_breakpoint): New function.
5164 (print_it_exception_catchpoint, print_one_exception_catchpoint)
5165 (print_mention_exception_catchpoint)
5166 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
5167 (catch_exception_command_1): Handle "rethrow" catchpoint.
5168 (catch_rethrow_command): New function.
5169 (_initialize_breakpoint): Add "catch rethrow" command.
5170
4d40cad2
PM
51712013-04-15 Pierre Muller <muller@sourceware.org>
5172
5173 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
5174 set_gdbarch_write_pc as deprecated anymore.
5175
30bcb456
JB
51762013-04-15 Joel Brobecker <brobecker@adacore.com>
5177
5178 * spu-tdep.c (spu_write_pc): Add empty line after local variable
5179 declarations.
5180
da9160e4
YQ
51812013-04-13 Yao Qi <yao@codesourcery.com>
5182
5183 * ctf.c (_initialize_ctf): Include "completer.h".
5184 Call add_target_with_completer instead of add_target.
5185
39ed5604
JK
51862013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5187
5188 Fix GDB regression related to PR binutils/14813.
5189 * jit.c (mem_bfd_iovec_close): Return 0 for success.
5190 * minidebug.c (lzma_close): Add return value comment.
5191 * remote.c (remote_bfd_iovec_close): Return 0 for success.
5192 * solib-spu.c (spu_bfd_iovec_close): Likewise.
5193 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
5194
51952013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
5196
5197 * config.in: Regenerate.
5198
d521ce57
TT
51992013-04-12 Tom Tromey <tromey@redhat.com>
5200
5201 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
5202 const.
5203 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
5204 (struct die_reader_specs) <buffer>: Likewise.
5205 (die_reader_func_ftype): Make 'info_ptr' const.
5206 (struct line_header) <include_dirs, statement_program_start,
5207 statement_program_end>: Now const.
5208 (struct file_entry) <name>: Likewise.
5209 (struct partial_die_info) <sibling>: Likewise.
5210 (struct dwarf_block) <data>: Likewise.
5211 (dwarf2_read_section): Remove cast.
5212 (dwarf2_get_section_info): Make 'bufp' const.
5213 (read_index_from_section): Constify.
5214 (dw2_get_file_names_reader): Make 'info_ptr' const.
5215 (dw2_get_primary_filename_reader): Likewise.
5216 (read_comp_unit_head): Make 'info_ptr' and return type const.
5217 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
5218 Likewise.
5219 (read_abbrev_offset): Constify.
5220 (dwarf2_create_include_psymtab): Make 'name' const.
5221 (create_debug_types_hash_table): Update.
5222 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
5223 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
5224 Constify.
5225 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
5226 (load_partial_comp_unit_reader): Make 'info_ptr' const.
5227 (read_comp_units_from_section): Constify.
5228 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
5229 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
5230 const.
5231 (dwarf2_compute_name, setup_type_unit_groups): Constify.
5232 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
5233 (create_dwp_hash_table, dwarf2_ranges_read)
5234 (dwarf2_record_block_ranges): Constify.
5235 (read_die_and_children, read_die_and_siblings_1)
5236 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
5237 const.
5238 (read_full_die_1, read_full_die): Make 'info_ptr' const.
5239 (abbrev_table_read_table): Constify.
5240 (load_partial_dies): Make 'info_ptr' const.
5241 (read_partial_die, read_attribute_value, read_attribute): Make
5242 'info_ptr' and return type const.
5243 (read_address, read_initial_length)
5244 (read_checked_initial_length_and_offset, read_offset)
5245 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
5246 const.
5247 (read_direct_string): Make 'buf' and return type const.
5248 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
5249 (read_indirect_string): Make return type const.
5250 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
5251 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
5252 'info_ptr' const.
5253 (read_str_index): Make return type const.
5254 (add_include_dir): Make 'include_dir' const.
5255 (add_file_name): Make 'name' const.
5256 (dwarf_decode_line_header): Constify.
5257 (psymtab_include_file_name): Make return type const.
5258 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
5259 (dwarf2_start_subfile): Make 'filename' const.
5260 (dwarf2_const_value_attr): Make 'bytes' const.
5261 (read_signatured_type_reader): Make 'info_ptr' const.
5262 (decode_locdesc): Constify.
5263 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
5264 const.
5265 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
5266 'mac_end', and return type const.
5267 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
5268 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
5269 type const.
5270 (per_cu_header_read_in): Constify.
5271 * symfile.h (dwarf2_get_section_info): Update.
5272
d47a1bc1
TT
52732013-04-12 Tom Tromey <tromey@redhat.com>
5274
5275 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
5276
6eaaf48b
EZ
52772013-04-12 Eli Zaretskii <eliz@gnu.org>
5278
fc4c25bf 5279 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
5280 * top.c (print_gdb_configuration): New function, displays the
5281 details about GDB configure-time parameters.
5282 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
5283 * cli/cli-cmds.c (show_configuration): New function.
5284 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
5285 * main.c (captured_main) <print_configuration>: New static var.
5286 <long_options>: Use it.
5287 If --configuration was given, call print_gdb_configuration.
5288
b292c783
JK
52892013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5290 Pedro Alves <palves@redhat.com>
5291
5292 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
5293 (generated_files): Add gcore.
5294 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
5295 HAVE_NATIVE_GCORE_HOST.
5296 (gcore): New.
5297 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
5298 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
5299 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
5300 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
5301 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
5302 Add HAVE_NATIVE_GCORE_HOST.
5303 * configure: Regenerate.
5304 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
5305 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
5306 AC_CONFIG_FILES for gcore.
5307 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
5308 gdb_have_gcore.
5309 * gdb_gcore.sh: Rename to ...
5310 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
5311 and GCORE_TRANSFORM_NAME substitutions.
5312
c96b3c4f
JK
5313 Fix parsing tabs in ${gdb_target_obs}.
5314 * configure.tgt (gdb_have_gcore): Replace case with for and if.
5315
d6cb50a2
JK
53162013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5317
5318 * remote.c (unpush_and_perror): Add output message final dot.
5319
cf2cb5ec
YQ
53202013-04-11 Yao Qi <yao@codesourcery.com>
5321
5322 * tracepoint.c (tfile_interp_line): Fit parameters line and
5323 utpp in one line.
5324
07293be4
JB
53252013-04-10 Joel Brobecker <brobecker@adacore.com>
5326
5327 * solib.c (solib_map_sections): Remove code overwriting
5328 SO->SO_NAME with the bfd's filename.
5329
f81d1120
PA
53302013-04-10 Pedro Alves <palves@redhat.com>
5331
5332 * cli/cli-decode.c (integer_unlimited_completer): New function.
5333 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
5334 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
5335 completer.
5336 * cli/cli-setshow.c: Include "cli/cli-utils.h".
5337 (is_unlimited_literal): New function.
5338 (do_set_command): Handle literal "unlimited" arguments.
5339 * frame.c (_initialize_frame) <set backtrace limit>: Document
5340 "unlimited".
5341 * printcmd.c (_initialize_printcmd) <set print
5342 max-symbolic-offset>: Add help text.
5343 * record-full.c (_initialize_record_full) <set record full
5344 insn-number-max>: Likewise.
5345 * record.c (_initialize_record) <set record
5346 instruction-history-size, set record function-call-history-size>:
5347 Add help text.
5348 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
5349 help text.
5350 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
5351 Likewise.
5352 * source.c (_initialize_source) <set listsize>: Add help text.
5353 * utils.c (initialize_utils) <set height, set width>: Likewise.
5354 <set pagination>: Mention "set height unlimited".
5355 * valprint.c (_initialize_valprint) <set print elements, set print
5356 repeats>: Document "unlimited".
5357
2f9d54cf
PA
53582013-04-10 Pedro Alves <palves@redhat.com>
5359
5360 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
5361 instead of disconnect_tracing.
5362 * infcmd.c (detach_command, disconnect_command): Call
5363 query_if_trace_running. Adjust.
5364 * top.c: Include "tracepoint.h".
5365 (quit_target): Delete. Contents moved ...
5366 (quit_force): ... here. Wrap each stage of teardown in
5367 TRY_CATCH. Call disconnect_tracing before detaching.
5368
393fd4c3
YQ
53692013-04-10 Hui Zhu <hui@codesourcery.com>
5370 Yao Qi <yao@codesourcery.com>
5371
5372 * configure.ac: Check libbabeltrace is installed.
5373 * config.in: Regenerate.
5374 * configure: Regenerate.
5375 * Makefile.in (LIBBABELTRACE): New.
5376 (CLIBS): Add LIBBABELTRACE.
5377 * ctf.c: Include "exec.h".
5378 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
5379 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
5380 (ctf_save_metadata_header): Define new type aliases in
5381 metadata.
5382 (ctf_write_header): Define event type "tsv_def" and "tp_def"
5383 in metadata. Start a new faked packet for trace status.
5384 (ctf_write_status): Write trace status to CTF.
5385 (ctf_write_uploaded_tsv): Write TSV to CTF.
5386 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
5387 (ctf_write_definition_end): End the faked packet.
5388
5389 (ctx, ctf_iter, trace_dirname): New.
5390 (start_pos): New variable.
5391 (ctf_destroy, ctf_open_dir, ctf_open): New.
5392 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
5393 macros.
5394 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
5395 (ctf_fetch_registers, ctf_xfer_partial): New.
5396 (ctf_get_trace_state_variable_value): New.
5397 (ctf_get_tpnum_from_frame_event): New.
5398 (ctf_get_traceframe_address): New.
5399 (ctf_trace_find, ctf_has_stack): New.
5400 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
5401 (ctf_get_trace_status, ctf_read_status): New.
5402 (_initialize_ctf): New.
5403 * tracepoint.c (get_tracepoint_number): New
5404 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 5405 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
5406 * tracepoint.h: ... here.
5407 (get_tracepoint_number): Declare it.
5408 (get_uploaded_tsv): Declare it.
5409
5410 * NEWS: Mention new configure option.
5411
5c2b4418
HZ
54122013-04-10 Pedro Alves <palves@redhat.com>
5413 Hui Zhu <hui@codesourcery.com>
5414
5415 * breakpoint.c (dprintf_re_set): New.
5416 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
5417 to dprintf_re_set.
5418
a5c66735
JB
54192013-04-09 Joel Brobecker <brobecker@adacore.com>
5420
5421 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
5422 Remove solib-svr4.o from the list.
5423
9e77999c
JB
54242013-04-09 Joel Brobecker <brobecker@adacore.com>
5425
5426 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
5427 Use gdb_assert_not_reached instead of invalid boolean expression.
5428
1927e618
PA
54292013-04-09 Pedro Alves <palves@redhat.com>
5430
5431 * remote.c (unpush_and_perror): New function.
5432 (readchar, remote_serial_write): Use it.
5433
10782d74
MM
54342013-04-09 Markus Metzger <markus.t.metzger@intel.com>
5435
5436 * NEWS: Mention new btrace RSP packets.
5437
4c8429ef
TT
54382013-04-08 Tom Tromey <tromey@redhat.com>
5439
5440 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
5441 long.
5442
8625fc1b
TT
54432013-04-08 Tom Tromey <tromey@redhat.com>
5444
5445 * maint.c (print_bfd_section_info): Print the section index.
5446 * symmisc.c (dump_msymbols): Print the section index.
5447
e27d198c
TT
54482013-04-08 Tom Tromey <tromey@redhat.com>
5449
5450 PR symtab/8424:
5451 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
5452 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
5453 * breakpoint.c (resolve_sal_pc): Update.
5454 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5455 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
5456 (minsym_lookup_iterator_cb): Use it.
5457 (default_read_var_value): Update.
5458 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
5459 Update.
5460 * infcmd.c (jump_command): Update.
5461 * linespec.c (minsym_found): Update.
5462 * maint.c (maintenance_translate_address): Update.
5463 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
5464 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
5465 * parse.c (write_exp_msymbol): Update.
5466 * printcmd.c (address_info): Update.
5467 * psymtab.c (find_pc_sect_psymbol): Update.
5468 (fixup_psymbol_section): Check SYMBOL_SECTION, not
5469 SYMBOL_OBJ_SECTION.
5470 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
5471 Don't initialize SYMBOL_OBJ_SECTION.
5472 * spu-tdep.c (spu_catch_start): Update.
5473 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
5474 * symmisc.c (dump_msymbols, print_symbol): Update.
5475 * symtab.c (fixup_section): Don't set 'obj_section'. Change
5476 how fallback section is computed.
5477 (fixup_symbol_section): Update.
5478 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
5479 Update.
5480 (allocate_symbol, initialize_symbol, allocate_template_symbol):
5481 Initialize SYMBOL_SECTION.
5482 * symtab.h (struct general_symbol_info) <section>: Update comment.
5483 <obj_section>: Remove.
5484 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
5485 (SYMBOL_OBJFILE): New macro.
5486
e6dc44a8
TT
54872013-04-08 Tom Tromey <tromey@redhat.com>
5488
5489 * coffread.c (record_minimal_symbol): Update.
5490 * dbxread.c (record_minimal_symbol): Update.
5491 * elfread.c (record_minimal_symbol): Update.
5492 * machoread.c (macho_symtab_add_minsym): Update.
5493 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
5494 Update.
5495 * minsyms.c (prim_record_minimal_symbol): Update.
5496 (prim_record_minimal_symbol_full): Remove 'bfd_section'
5497 argument.
5498 (prim_record_minimal_symbol_and_info): Likewise.
5499 * minsyms.h (prim_record_minimal_symbol_full)
5500 (prim_record_minimal_symbol_and_info): Update.
5501 * symtab.c (allocate_symbol, initialize_symbol)
5502 (allocate_template_symbol): Initialize SYMBOL_SECTION.
5503 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
5504 Update.
5505
36192a8d
TT
55062013-04-08 Tom Tromey <tromey@redhat.com>
5507
5508 PR symtab/8423:
5509 * solib-som.c (som_solib_section_offsets): Use BFD section
5510 indices. Set offsets for all sections.
5511 * somread.c (som_symtab_read): Compute BFD section for
5512 symbol. Use prim_record_minimal_symbol_and_info.
5513 (som_symfile_read): Fix comment.
5514 (struct find_section_offset_arg): New.
5515 (find_section_offset, set_section_index): New functions.
5516 (som_symfile_offsets): Use set_section_index to compute
5517 section indices.
5518
65cf3563
TT
55192013-04-08 Tom Tromey <tromey@redhat.com>
5520
5521 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
5522 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
5523 gdb_bfd_section_index.
5524 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
5525 New functions.
5526 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
5527 Declare.
5528 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
5529 Update.
5530 * objfiles.c (add_to_objfile_sections_full): New function.
5531 (add_to_objfile_sections): Use it.
5532 (build_section_table): Rewrite.
5533 (objfile_relocate1): Use gdb_bfd_section_index. Update.
5534 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
5535 (struct objfile) <sections>: Update comment.
5536 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
5537 is NULL.
5538 (ALL_OBJSECTIONS): Use it.
5539 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5540 * solib-frv.c (frv_relocate_main_executable): Update.
5541 * solib-target.c (solib_target_relocate_section_addresses):
5542 Use gdb_bfd_section_index.
5543 * symfile.c (build_section_addr_info_from_section_table):
5544 Use gdb_bfd_section_index.
5545 (build_section_addr_info_from_bfd, place_section): Likewise.
5546 * symtab.c (fixup_section): Update.
5547 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
5548
7cbd4a93
TT
55492013-04-08 Tom Tromey <tromey@redhat.com>
5550
5551 * minsyms.h (struct bound_minimal_symbol): New.
5552 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5553 Remove objfile argument.
5554 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5555 Return bound_minimal_symbol.
5556 * minsyms.c (lookup_minimal_symbol_by_pc_1)
5557 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5558 Return bound_minimal_symbol.
5559 (in_gnu_ifunc_stub): Update.
5560 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5561 Remove 'objfile_p' argument.
5562 (lookup_solib_trampoline_symbol_by_pc): Update.
5563 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
5564 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
5565 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
5566 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
5567 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
5568 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
5569 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
5570 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
5571 stack.c, symtab.c, tui/tui-disasm.c: Update.
5572
f85f34ed
TT
55732013-04-08 Tom Tromey <tromey@redhat.com>
5574
5575 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
5576 Use symbol's obstack, not an objfile.
5577 * coffread.c (process_coff_symbol): Update.
5578 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
5579 * jv-lang.c (add_class_symbol): Update.
5580 * mdebugread.c (new_symbol): Update.
5581 * minsyms.c (prim_record_minimal_symbol_full)
5582 (terminate_minimal_symbol_table): Update.
5583 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
5584 * stabsread.c (define_symbol, read_enum_type): Update.
5585 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
5586 Handle Ada specially.
5587 (symbol_set_language): Add 'obstack' argument.
5588 (symbol_set_names): Update.
5589 (symbol_natural_name, symbol_demangled_name): Always use
5590 ada_decode_symbol.
5591 * symtab.h (struct general_symbol_info)
5592 <language_specific::obstack>: New field.
5593 <ada_mangled>: New field.
5594 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
5595 (symbol_set_language): Update.
5596
ccde22c0
TT
55972013-04-08 Tom Tromey <tromey@redhat.com>
5598
5599 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
5600 Take an obstack, not an objfile.
5601 (symbol_set_names): Update.
5602 * symtab.h (symbol_set_demangled_name): Update.
5603
e623cf5d
TT
56042013-04-08 Tom Tromey <tromey@redhat.com>
5605
5606 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
5607 allocate_symbol.
5608 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
5609 (read_func_scope): Call allocate_template_symbol.
5610 (new_symbol_full): Call allocate_symbol.
5611 * jit.c (finalize_symtab): Call allocate_symbol.
5612 * jv-lang.c (add_class_symbol): Call allocate_symbol.
5613 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
5614 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5615 (common_block_end): Call allocate_symbol.
5616 * symtab.c (allocate_symbol, initialize_symbol)
5617 (allocate_template_symbol): New functions.
5618 * symtab.c (allocate_symbol, initialize_symbol)
5619 (allocate_template_symbol): Declare.
5620 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
5621
f6de8ec2
PA
56222013-04-08 Pedro Alves <palves@redhat.com>
5623 Keith Seitz <keiths@redhat.com>
5624
5625 * breakpoint.c (create_breakpoint): Rename
5626 "parse_condition_and_thread" parameter to "parse_arg". Update
5627 describing comment. If !PARSE_ARG, then error out if ARG is not
5628 the empty string after extracting the location.
5629 * breakpoint.h (create_breakpoint): Rename
5630 "parse_condition_and_thread" parameter to "parse_arg".
5631
f65ce5fb
AR
56322013-04-08 Aleksandar Ristovski <aristovski@qnx.com
5633
5634 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
5635
cc5925ad
YQ
56362013-04-07 Yao Qi <yao@codesourcery.com>
5637
5638 * remote.c (remote_trace_find): Change type of parameters 'addr1'
5639 and 'addr2' to CORE_ADDR.
5640 * target.c (update_current_target): Update.
5641 * target.h (struct target_ops) <to_trace_find>: Change parameter
5642 type to CORE_ADDR.
5643 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
5644 'addr2' to CORE_ADDR.
5645 (tfile_trace_find): Likewise.
5646 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
5647 Change local variable 'addr' to type CORE_ADDR.
5648 * tracepoint.h (tfind_1): Update declaration.
5649
d9ac0664
EZ
56502013-04-06 Eli Zaretskii <eliz@gnu.org>
5651
5652 * windows-nat.c (windows_get_absolute_argv0): Move from here...
5653 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
5654 Include main.h.
5655
5656 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
5657 here...
5658 * main.h (windows_get_absolute_argv0): ...to here.
5659
02142a6c
DE
56602013-04-05 Doug Evans <dje@google.com>
5661
5662 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
5663 (read_cutu_die_from_dwo): Add comments.
5664 (read_structure_type): Update comment.
5665 (read_enumeration_type, read_namespace_type): Update comment.
5666 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
5667
43662968
JK
56682013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5669
5670 Convert man pages to texinfo, new gdbinit.5 texinfo page.
5671 * Makefile.in (gdb.z): Remove.
5672 (install-only): Remove $(man1dir) and gdb.1 installation.
5673 * gdb.1: Remove.
5674
9ead1b84
JK
56752013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5676
5677 Fix compatibility with Linux kernel 3.8.3.
5678 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
5679 to more inner block. Remove parsing of NUMBER from outer block.
5680 Parse NUMBER only if KEYWORD has been identified.
5681
d1794952
JK
56822013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5683
5684 Fix variable name shadowing.
5685 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
5686 filename to mapsfilename and update its uses.
5687
9025569e
EZ
56882013-04-05 Eli Zaretskii <eliz@gnu.org>
5689
5690 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
5691 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
5692 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
5693 details of the problem.
5694
c9a6ce02
PA
56952013-04-04 Pedro Alves <palves@redhat.com>
5696 Hui Zhu <hui@codesourcery.com>
5697
5698 * breakpoint.c (validate_commands_for_breakpoint): If validating a
5699 tracepoint, reset its STEP_COUNT and call validate_actionline.
5700
5ff888ce
DE
57012013-04-03 Doug Evans <dje@google.com>
5702
bf6af496
DE
5703 * dwarf2read.c (read_die_and_siblings_1): Renamed from
5704 read_die_and_siblings.
5705 (read_die_and_siblings): New function.
5706 (read_cutu_die_from_dwo): Dump die if requested.
5707 (read_die_and_children): Call read_full_die_1 and
5708 read_die_and_siblings_1.
5709 (read_full_die): Dump die if requested.
5710
5711 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
5712
0ac5b59e
DE
5713 * dwarf2read.c (struct dwo_file): New member comp_dir.
5714 Rename member name to dwo_name. All uses updated.
5715 (hash_dwo_file): Include comp_dir in computation.
5716 (eq_dwo_file): Ditto.
5717 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
5718 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
5719
5ff888ce
DE
5720 * psymtab.c (read_psymtabs_with_fullname): Don't call
5721 psymtab_to_fullname if the basenames are different.
5722
ec83d211
JK
57232013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5724
5725 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
5726 New entry about "fullname" presence.
5727
4f4352f7
PA
57282013-04-03 Pedro Alves <palves@redhat.com>
5729
5730 * NEWS: Mention x86_64/Cygwin as new native configuration.
5731
3d1d5ea3
DE
57322013-04-02 Doug Evans <dje@google.com>
5733
5734 * dwarf2read.c (read_structure_type): Fix typo in comment.
5735
be9a8770
PA
57362013-04-02 Pedro Alves <palves@redhat.com>
5737
5738 * NEWS: Mention "set/show debug aarch64", "set/show debug
5739 coff-pe-read" and "set/show debug mach-o".
5740
a46c1e42
PA
57412013-04-02 Pedro Alves <palves@redhat.com>
5742
5743 * NEWS: Mention "set/show remote trace-buffer-size-packet".
5744
3ad18b19
EZ
57452013-04-02 Eli Zaretskii <eliz@gnu.org>
5746
5747 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
5748 gdb_string.h is now in common/.
5749
e9f1758d
PA
57502013-04-02 Pedro Alves <palves@redhat.com>
5751
5752 * NEWS: Move "set debug notification" and "set trace-buffer-size"
5753 under "New options".
5754
049dc89b
JK
57552013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5756
5757 Revert this patch:
5758 PR gdb/15275
5759 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5760
c33e31fd
PA
57612013-04-02 Pedro Alves <palves@redhat.com>
5762
5763 PR gdb/15275
5764
5765 * remote.c (send_interrupt_sequence): Use remote_serial_write.
5766 (remote_serial_write): New function.
5767 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
5768
ea5f3910
JW
57692013-04-01 Jiong Wang <jiwang@tilera.com>
5770
5771 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 5772 "New targets" sections.
ea5f3910 5773
5c6fa7ab
DE
57742013-04-01 Doug Evans <dje@google.com>
5775
c0f78cd4
DE
5776 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
5777 (process_enumeration_scope): Simplify.
5778
0186c6a7
DE
5779 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
5780 type_unit_group ...
5781 (struct signatured_type): ... to here.
5782 (sig_type_ptr): New typedef.
5783 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
5784 out of union 't'. All uses updated.
5785 (dw2_get_file_names_reader): Assert not called for a type unit.
5786 (dw2_get_file_names): Assert not called for a type unit or type
5787 unit group.
5788 (build_type_psymtabs_reader): Assert called for a type unit.
5789 (build_type_psymtab_dependencies): Assert called for a type unit group.
5790
5c6fa7ab
DE
5791 * dwarf2read.c (free_dwo_file): Add comment.
5792 (dwarf2_per_objfile_free): Unref dwp bfd.
5793
b3c0ad67 57942013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
5795
5796 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
5797 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
5798 (read_pe_exported_syms): Remove unused 'exportix'.
5799 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
5800 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
5801 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
5802
e2df1547
AR
58032013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5804
5805 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
5806 (print_it_watchpoint): Remove unused 'bl'.
5807 (say_where): Remove unused 'uiout'.
5808 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
5809 (bkpt_breakpoint_hit): Remove unused 'b'.
5810 (internal_bkpt_print_it): Remove unused 'uiout'.
5811 * buildsym.c (augment_type_symtab): Remove unused 'i'.
5812
d81e75c0
TD
58132013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
5814
5815 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
5816 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
5817
5a8b3f62
DE
58182013-03-29 Doug Evans <dje@google.com>
5819
ab5088bf
DE
5820 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
5821 Delete arg is_dwp. All callers updated.
5822 (open_dwp_file): New function.
5823 (open_and_init_dwp_file): Call it.
5824 (get_dwp_file): New function.
5825 (lookup_dwo_cutu): Call it.
5826
a8ad1e57
DE
5827 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
5828 unnecessary, cleanup.
5829
6296d8c1
DE
5830 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
5831
b0c7bfa9
DE
5832 * dwarf2read.c (read_cutu_die_from_dwo): New function.
5833 (lookup_dwo_unit): New function.
5834 (init_cutu_and_read_dies): Move DWO handling to new functions.
5835
c88ee1f0
DE
5836 * dwarf2read.c (struct signatured_type): Tweak comment.
5837 (struct dwo_unit): Tweak comment.
5838 (create_debug_types_hash_table): Tweak comment. Reformat long line.
5839 (create_dwo_debug_info_hash_table): Tweak comment.
5840 (dwarf2_per_cu_offset_and_type): Tweak comment.
5841
5a8b3f62
DE
5842 * dwarf2read.c (lookup_signatured_type): Remove complaint about
5843 missing .debug_types section.
5844
9852c492
YQ
58452013-03-29 Yao Qi <yao@codesourcery.com>
5846
5847 * corelow.c: Include "completer.h".
5848 (_initialize_corelow): Call add_target_with_completer with
5849 argument 'filename_completer'.
5850 * tracepoint.c: Likewise.
5851 * exec.c (_initialize_exec): Likewise.
5852 * target.c (add_target): Rename to ...
5853 (add_target_with_completer): ... this. Call set_cmd_completer
5854 if parameter completer is not NULL.
5855 (add_target): New.
5856 * target.h: Include "command.h".
5857 (add_target_with_completer): Declare it.
5858
af312be7
JB
58592013-03-28 Joel Brobecker <brobecker@adacore.com>
5860
5861 * coffread.c (is_import_fixup_symbol): New function.
5862 (record_minimal_symbol): Use is_import_fixup_symbol to
5863 detect import fixup symbols, and discard them.
5864
8a0459fd
DE
58652013-03-28 Doug Evans <dje@google.com>
5866
0349ea22
DE
5867 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
5868 types hash table until we know we need it.
5869
f652bce2
DE
5870 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
5871 index numbers.
5872
e4a48d9d
DE
5873 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
5874 All callers updated.
5875 (dw2_print_stats): Print #read CUs too.
5876 (dump_die_shallow): Print signatured types better.
5877
8a0459fd
DE
5878 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
5879 info_or_types_section to section. All uses updated.
5880 (struct dwo_unit): Ditto.
5881
bd3eecc3
PA
58822013-03-28 Pedro Alves <palves@redhat.com>
5883
5884 * NEWS (New options): New section.
5885 (New options): Mention set/show remote trace-status-packet.
5886 * remote.c (PACKET_qTStatus): New enumeration value.
5887 (remote_get_trace_status): Skip sending qTStatus if the packet is
5888 disabled. Use packet_ok.
5889 (_initialize_remote): Register a configuration command for
5890 qTStatus packet.
5891
41245087
DE
58922013-03-28 Doug Evans <dje@google.com>
5893
7edbb660
DE
5894 * symfile.c (find_separate_debug_file): Add comment.
5895 (terminate_after_last_dir_separator): Tweak comment.
5896
0018ea6f
DE
5897 * dwarf2read.c (create_partial_symtab): Add forward decl.
5898 (create_partial_symtab): Move to be closer to other psymtab functions.
5899 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
5900
ca69b9e6
DE
5901 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
5902 (compute_symtab_includes): Remove unnecessary forward declaration.
5903 (die_needs_namespace): Add comment marking group of functions for
5904 dwarf2 name computation.
5905
a9375afe
DE
5906 * typeprint.c (_initialize_typeprint): Improve type help text.
5907
41245087
DE
5908 * python/python.c (finish_python_initialization): Provide suggestion
5909 for how to tell gdb to find its python files.
5910
7f7cc265
PA
59112013-03-28 Pedro Alves <palves@redhat.com>
5912
5913 PR gdb/15294
5914
5915 * source.c (_initialize_source): Change back "set listsize" to an
5916 integer command.
5917
ec21308c
JK
59182013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
5919
5920 PR gdb/15275
5921 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5922
840a9a1f
PA
59232013-03-27 Pedro Alves <palves@redhat.com>
5924
5925 * top.c (history_size): Rename to ...
5926 (history_size_setshow_var): ... this. Add comment.
5927 (show_commands): Use readline's 'history_length' instead of
5928 computing the history length by calling history_get in a loop.
5929 (set_history_size_command): Error out for sizes over INT_MAX.
5930 Restore previous history size on invalid size.
5931 (init_history): If HISTSIZE is negative, leave the history size as
5932 zero. Add comments.
5933 (init_main): Adjust.
5934
826ecc4d
PA
59352013-03-27 Pedro Alves <palves@redhat.com>
5936
5937 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
5938 coff_pe_read" command to "set debug coff-pe-read".
5939
0ccfeeae
MM
59402013-03-27 Markus Metzger <markus.t.metzger@intel.com>
5941
5942 * record.c (command_size_to_target_size): Fix size comparison.
5943 Change parameter type from pointer to integer to integer.
5944 Update all users.
5945
40653b35
PM
59462013-03-27 Pierre Muller <muller@sourceware.org>
5947
5948 * windows-nat.c (handle_output_debug_string): Avoid typecast
5949 from integer of different size warning.
5950
c62fa0e2
JB
59512013-03-26 Joel Brobecker <brobecker@adacore.com>
5952
5953 * windows-nat.c (handle_output_debug_string): Add empty line
5954 after local block variable definition.
5955
2c619be2
PA
59562013-03-26 Pedro Alves <palves@redhat.com>
5957
5958 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
5959 (net_open): Make 'polls' local unsigned.
5960
1b493192
PA
59612013-03-26 Pedro Alves <palves@redhat.com>
5962
5963 * remote.c (_initialize_remote): Make "set remoteaddresssize"
5964 a zuinteger command instead of uinteger.
5965
7ee70bf5
PA
59662013-03-26 Pedro Alves <palves@redhat.com>
5967
5968 * record-full.c (record_full_insn_num): Make it unsigned.
5969 (record_full_check_insn_num, record_full_message)
5970 (record_full_registers_change, record_full_xfer_partial): Remove
5971 record_full_insn_max_num check (it's always != 0).
5972 (record_full_info, record_full_restore): Use %u as format string.
5973 (): Use %u as format string.
5974 (set_record_full_insn_max_num): Remove record_full_insn_max_num
5975 check (it's always != 0).
5976
dfd1f9bb
PA
59772013-03-26 Pedro Alves <palves@redhat.com>
5978
5979 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
5980 and "set dcache size" commands zuinteger instead of uinteger.
5981
addb4faf
PA
59822013-03-26 Pedro Alves <palves@redhat.com>
5983
5984 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
5985 command zuinteger instead of uinteger.
5986
b75bf488
PA
59872013-03-26 Pedro Alves <palves@redhat.com>
5988
5989 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
5990 zuinteger instead of uinteger.
5991
42c634cb
PA
59922013-03-26 Pedro Alves <palves@redhat.com>
5993
5994 * record.c (record_insn_history_size_setshow_var)
5995 (record_call_history_size_setshow_var): New globals.
5996 (command_size_to_target_size): New function.
5997 (cmd_record_insn_history, cmd_record_call_history): Use
5998 command_size_to_target_size instead of cast.
5999 (validate_history_size, set_record_insn_history_size)
6000 (set_record_call_history_size): New functions.
6001 (_initialize_record): Install set_record_insn_history_size and
6002 set_record_call_history_size as "set" hooks of "set record
6003 instruction-history-size" and "set record
6004 function-call-history-size".
6005
1fb2e2b5
PA
60062013-03-26 Pedro Alves <palves@redhat.com>
6007
6008 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
6009 use with history_max_entries use. Remove FIXME note.
6010
99c819ee
MM
60112013-03-26 Markus Metzger <markus.t.metzger@intel.com>
6012
6013 * record-btrace.c (record_btrace_close): Call
6014 record_btrace_auto_disable.
6015
9f9e404c
JB
60162013-03-25 Joel Brobecker <brobecker@adacore.com>
6017
6018 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
6019
ebcdfe33
DE
60202013-03-25 Doug Evans <dje@google.com>
6021
6022 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
6023
24955f63
TT
60242013-03-25 Tom Tromey <tromey@redhat.com>
6025
6026 PR symtab/11462:
6027 * c-exp.y (exp): Add new productions for destructors after '.' and
6028 '->'.
6029 (write_destructor_name): New function.
6030
fce632b6
TT
60312013-03-25 Tom Tromey <tromey@redhat.com>
6032
6033 PR c++/9197:
6034 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
6035 value_struct_elt, not lookup_struct_elt_type.
6036 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6037 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
6038 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
6039
a4341769
YQ
60402013-03-25 Yao Qi <yao@codesourcery.com>
6041
6042 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
6043 instead of '_mkdir'.
6044
b5981e5a
EZ
60452013-03-23 Eli Zaretskii <eliz@gnu.org>
6046
6047 * windows-nat.c (windows_get_absolute_argv0): New function.
6048 * windows-nat.h: Add its prototype.
6049
6050 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
6051 Use IS_DIR_SEPARATOR instead of looking for a character inside
6052 SLASH_STRING. Include filenames.h.
6053 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
6054 relocate_gdb_directory works when passed gdb_program_name.
6055 Include windows-nat.h.
6056
598d3636
JK
60572013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6058
6059 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
6060 * remote.c (trace_error): Remove the special handling of '2'.
6061 (readchar) <SERIAL_EOF>
6062 (readchar) <SERIAL_ERROR>
6063 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
6064 (remote_get_trace_status): Call throw_exception if EX is
6065 TARGET_CLOSE_ERROR.
6066 * utils.c (perror_with_name): Rename to ...
6067 (throw_perror_with_name): ... here. New parameter errcode, describe it
6068 in the function comment.
6069 (perror_with_name): New function wrapper.
6070 * utils.h (enum errors): New stub declaration.
6071 (throw_perror_with_name): New declaration.
6072
82b821e9
PA
60732013-03-22 Pedro Alves <palves@redhat.com>
6074 Yao Qi <yao@codesourcery.com>
6075 Mark Kettenis <kettenis@gnu.org>
6076
6077 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
6078 Don't let the user set the value to UINT_MAX directly.
6079 <var_integer>: Don't let the user set the value to INT_MAX
6080 directly.
6081
78a095c3
JK
60822013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6083
6084 * remote.c (remote_unpush_target): New function.
6085 (remote_open_1): Remove two pop_target calls, update one comment, add
6086 comment to target_preopen call. Replace pop_target call by
6087 remote_unpush_target call.
6088 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
6089 pop_target calls by remote_unpush_target calls.
6090
3e74e146
PA
60912013-03-22 Pedro Alves <palves@redhat.com>
6092
6093 * linux-nat.c (linux_child_follow_fork): Don't call
6094 linux_enable_event_reporting.
6095 (linux_handle_extended_wait): Don't call
6096 linux_enable_event_reporting.
6097
a2213dca
PA
60982013-03-22 Pedro Alves <palves@redhat.com>
6099
6100 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
6101 use it to rewrite the trampoline buffers with type gdb_byte[], and
6102 undefine the macro. Remove char* cast.
6103
bd712aed
DE
61042013-03-21 Doug Evans <dje@google.com>
6105
6106 New commands "mt set per-command {space,time,symtab} {on,off}".
6107 * NEWS: Add entry.
6108 * event-top.c: #include "maint.h".
6109 * main.c: #include "maint.h".
6110 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
6111 timeval-utils.h, maint.h, cli/cli-setshow.h.
6112 (per_command_time, per_command_space): New static globals.
6113 (per_command_symtab): New static global.
6114 (per_command_setlist, per_command_showlist): New static globals.
6115 (struct cmd_stats): Move here from utils.c.
6116 (set_per_command_time): Renamed from set_display_time in utils.c
6117 and moved here. All callers updated.
6118 (set_per_command_space): Renamed from set_display_space in utils.c
6119 and moved here. All callers updated.
6120 (count_symtabs_and_blocks): New function.
6121 (report_command_stats): Moved here from utils.c. Add support for
6122 printing symtab stats. Only print data if enabled before command
6123 executed.
6124 (make_command_stats_cleanup): Ditto.
6125 (sert_per_command_cmd, show_per_command_cmd): New functions.
6126 (_initialize_maint_cmds): Add new commands
6127 mt set per-command {space,time,symtab} {on,off}.
6128 * maint.h: New file.
6129 * top.c: #include "maint.h".
6130 * utils.c (reset_prompt_for_continue_wait_time): New function.
6131 (get_prompt_for_continue_wait_time): New function.
6132 * utils.h (reset_prompt_for_continue_wait_time): Declare
6133 (get_prompt_for_continue_wait_time): Declare.
6134 (make_command_stats_cleanup): Moved to maint.h.
6135 (set_display_time, set_display_space): Moved to maint.h and renamed
6136 to set_per_command_time, set_per_command_space.
6137 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
6138 parse_binary_operation and made non-static. Don't call error,
6139 just return an error marker. All callers updated.
6140 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
6141
d76488d8
TT
61422013-03-21 Tom Tromey <tromey@redhat.com>
6143
6144 * symfile.c (alloc_section_addr_info): Update header. Don't set
6145 'num_sections' field.
6146 (build_section_addr_info_from_section_table): Set 'num_sections'.
6147 (build_section_addr_info_from_bfd): Likewise.
6148 (build_section_addr_info_from_objfile): Remove dead loop
6149 condition.
6150 (free_section_addr_info): Unconditionally call xfree.
6151 (relative_addr_info_to_section_offsets, addrs_section_sort)
6152 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
6153 condition.
6154 (syms_from_objfile_1): Remove dead 'if' condition. Check
6155 'num_sections'.
6156 (add_symbol_file_command): Set 'num_sections'.
6157 * symfile-mem.c (symbol_file_add_from_memory): Set
6158 'num_sections'.
6159 * somread.c (som_symfile_offsets): Remove dead loop condition.
6160 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
6161 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
6162
a72e5169 61632013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
6164
6165 * tracepoint.h (decode_agent_options): Add 'trace_string'
6166 argument.
6167 * tracepoint.c (decode_agent_options): Add 'trace_string'
6168 argument.
6169 (validate_actionline): Update.
6170 (collect_symbol): Add 'trace_string' argument.
6171 (struct add_local_symbols_data) <trace_string>: New field.
6172 (do_collect_symbol): Update.
6173 (add_local_symbols): Add 'trace_string' argument.
6174 (encode_actions_1): Update.
6175 (trace_dump_actions): Update.
6176 * dwarf2loc.c (access_memory): Update.
6177 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
6178 * ax-general.c (new_agent_expr): Update.
6179 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
6180 (gen_trace_for_return_address): Add argument.
6181 (trace_kludge, trace_string_kludge): Remove.
6182 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
6183 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
6184 (gen_trace_for_var): Add 'trace_string' argument.
6185 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
6186 (gen_printf, agent_eval_command_one): Update.
6187
b2f83c08
TT
61882013-03-21 Tom Tromey <tromey@redhat.com>
6189
6190 PR exp/15109:
6191 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
6192 Handle FILENAME token.
6193
9507860e
TT
61942013-03-21 Tom Tromey <tromey@redhat.com>
6195
6196 * c-exp.y (YYPRINT): Define.
6197 (c_print_token): New function.
6198
e403aa4b
TT
61992013-03-21 Tom Tromey <tromey@redhat.com>
6200
6201 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
6202
af307d6a
YQ
62032013-03-21 Yao Qi <yao@codesourcery.com>
6204
6205 * ctf.c: Include "gdb_stat.h".
6206 [USE_WIN32API]: New macro 'mkdir'.
6207 (ctf_start): Use permission bits macros if they are defined.
6208
fb81d016
KS
62092013-03-20 Keith Seitz <keiths@redhat.com>
6210
6211 * breakpoint.h (struct breakpoint): Add comment to
6212 extra_string indicating that this member is mallod'd.
6213 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
6214
ef0026f0
PA
62152013-03-20 Pedro Alves <palves@redhat.com>
6216
6217 PR gdb/15289
6218
6219 * cli/cli-setshow.c (do_set_command)
6220 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
6221 the result of parsing the command argument. Throw error if the
6222 value is greater than UINT_MAX. Print the invalid value with
6223 plongest.
6224 <var_integer, var_zinteger>: Use LONGEST for variable holding the
6225 result of parsing the command argument. Throw error if the value
6226 is greater than INT_MAX, not greater or equal. Also throw error
6227 if the value is less than INT_MIN. Print the invalid value with
6228 plongest.
6229 <var_zuinteger_unlimited>: Throw error if the value is greater
6230 than INT_MAX, not greater or equal.
6231 (do_show_command) <var_integer, var_zinteger,
6232 var_zuinteger_unlimited>: Use %d for printing int, not %u.
6233
24d6c2a0
TT
62342013-03-20 Tom Tromey <tromey@redhat.com>
6235
6236 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
6237 if possible.
6238 * dwarf2read.c (read_func_scope): Remove old FIXME.
6239 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
6240 not LOC_COMPUTED.
6241 * findvar.c (symbol_read_needs_frame, default_read_var_value):
6242 Unconditionally call via computed ops, if possible.
6243 * printcmd.c (address_info): Unconditionally call via computed ops,
6244 if possible.
6245 * stack.c (read_frame_arg): Unconditionally call via computed ops,
6246 if possible.
6247 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
6248 * tracepoint.c (scope_info): Unconditionally call via computed ops,
6249 if possible.
6250
f1e6e072
TT
62512013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6252 Tom Tromey <tromey@redhat.com>
6253
6254 PR symtab/8421:
6255 * coffread.c (coff_register_index): New global.
6256 (process_coff_symbol, coff_read_enum_type): Set
6257 SYMBOL_ACLASS_INDEX.
6258 (_initialize_coffread): Initialize new global.
6259 * dwarf2loc.c (locexpr_find_frame_base_location)
6260 (dwarf2_block_frame_base_locexpr_funcs)
6261 (loclist_find_frame_base_location)
6262 (dwarf2_block_frame_base_loclist_funcs): New.
6263 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
6264 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
6265 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
6266 (dwarf2_block_frame_base_loclist_funcs): New.
6267 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
6268 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
6269 globals.
6270 (read_func_scope): Update.
6271 (fixup_go_packaging, mark_common_block_symbol_computed)
6272 (var_decode_location, new_symbol_full, dwarf2_const_value):
6273 Set SYMBOL_ACLASS_INDEX.
6274 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
6275 (_initialize_dwarf2_read): Initialize new globals.
6276 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
6277 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
6278 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
6279 globals.
6280 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
6281 (_initialize_mdebugread): Initialize new globals.
6282 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
6283 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
6284 (stab_register_index, stab_regparm_index): New globals.
6285 (define_symbol, read_enum_type, common_block_end): Set
6286 SYMBOL_ACLASS_INDEX.
6287 (_initialize_stabsread): Initialize new globals.
6288 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
6289 globals.
6290 (MAX_SYMBOL_IMPLS): New define.
6291 (register_symbol_computed_impl, register_symbol_block_impl)
6292 (register_symbol_register_impl)
6293 (initialize_ordinary_address_classes): New functions.
6294 (_initialize_symtab): Call initialize_ordinary_address_classes.
6295 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
6296 (struct symbol_impl): New.
6297 (SYMBOL_ACLASS_BITS): New define.
6298 (struct symbol) <aclass, ops>: Remove fields.
6299 <aclass_index>: New field.
6300 (symbol_impls): Declare.
6301 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
6302 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
6303 (register_symbol_computed_impl, register_symbol_block_impl)
6304 (register_symbol_register_impl): Declare.
6305 (struct symbol_computed_ops): Add location_has_loclist.
6306 (struct symbol_block_ops): New.
6307 (SYMBOL_BLOCK_OPS): New.
6308 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
6309
dbccfd4c
TT
63102013-03-20 Tom Tromey <tromey@redhat.com>
6311
6312 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
6313 (print_partial_symbols, recursively_search_psymtabs): Use
6314 PSYMBOL_CLASS.
6315
e3f1ad4f
PM
63162013-03-20 Pierre Muller <muller@sourceware.org>
6317
6318 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
6319 addtion, subtraction, multiplication and division binary operator.
6320
460014f5
JK
63212013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6322
6323 Code cleanup.
6324 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
6325 * bsd-kvm.c (bsd_kvm_close): Likewise.
6326 * bsd-uthread.c (bsd_uthread_close): Likewise.
6327 * corelow.c (core_close): Likewise.
6328 (core_close_cleanup): Remove parameter quitting from a caller.
6329 * event-top.c (async_disconnect): Likewise.
6330 * exec.c (exec_close_1): Remove parameter quitting.
6331 * go32-nat.c (go32_close): Likewise.
6332 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
6333 parameter quitting from a caller.
6334 * mips-linux-nat.c (super_close): Remove parameter quitting from the
6335 variable.
6336 (mips_linux_close): Remove parameter quitting. Remove parameter
6337 quitting from a caller.
6338 * monitor.c (monitor_close): Remove parameter quitting.
6339 * monitor.h (monitor_close): Likewise.
6340 * record-btrace.c (record_btrace_close): Likewise.
6341 * record-full.c (record_full_close): Likewise.
6342 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
6343 it also from fprintf_unfiltered.
6344 * remote-mips.c (mips_close): Remove parameter quitting.
6345 (mips_detach): Remove parameter quitting from a caller.
6346 * remote-sim.c (gdbsim_close): Remove parameter quitting.
6347 (gdbsim_close): Remove duplicate function comment. Remove parameter
6348 quitting and remove it also from printf_filtered.
6349 * remote.c (remote_close): Remove parameter quitting.
6350 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
6351 * target.c (update_current_target): Remove parameter int from to_close
6352 de_fault.
6353 (push_target, unpush_target, pop_target): Remove parameter quitting from
6354 a caller.
6355 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
6356 Remove parameter quitting from a caller.
6357 (target_preopen): Remove parameter quitting from a caller.
6358 (target_close): Remove parameter quitting. Remove parameter quitting
6359 from a caller two times. Remove parameter quitting also from
6360 fprintf_unfiltered.
6361 * target.h (struct target_ops): Remove parameter quitting and as int
6362 from fields to_xclose and to_close.
6363 (extern struct target_ops current_target):
6364 (target_close, pop_all_targets): Remove parameter quitting. Update the
6365 comment.
6366 (pop_all_targets_above): Remove parameter quitting.
6367 * top.c (quit_target): Remove parameter quitting from a caller.
6368 * tracepoint.c (tfile_close): Remove parameter quitting.
6369 * windows-nat.c (windows_close): Remove parameter quitting.
6370
35a7120b
CV
63712013-03-20 Corinna Vinschen <vinschen@redhat.com>
6372
6373 * windows-nat.c (handle_output_debug_string): Replace call
6374 to string_to_core_addr with call to strtoull.
6375
8249a5a9
YQ
63762013-03-20 Yao Qi <yao@codesourcery.com>
6377
6378 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
6379 and write it to CTF metadata.
6380
2c15ef43
CV
63812013-03-19 Corinna Vinschen <vinschen@redhat.com>
6382
6383 * windows-nat.c (handle_output_debug_string): Change type of n to
6384 SIZE_T to avoid crash on 64 bit systems.
6385
1cdd3232
EZ
63862013-03-17 Eli Zaretskii <eliz@gnu.org>
6387
6388 * python/python-internal.h (HAVE_SNPRINTF)
6389 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
6390 about redefinition of snprintf by pyerrors.h.
6391
3cb2ab1a
SE
63922013-03-15 Steve Ellcey <sellcey@mips.com>
6393
6394 * remote-sim.c (sim_command_completer): Make char arguments const.
6395
9ce98649
TT
63962013-03-15 Tom Tromey <tromey@redhat.com>
6397
6398 PR c++/15116:
6399 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
6400
dccee2de
TT
64012013-03-14 Tom Tromey <tromey@redhat.com>
6402
6403 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
6404 New fields.
6405 (get_file_crc): Move from symfile.c.
6406 (gdb_bfd_crc): New function.
6407 * gdb_bfd.h (gdb_bfd_crc): Declare.
6408 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
6409 * symfile.c (get_file_crc): Move to gdb_bfd.c.
6410 (separate_debug_file_exists): Use gdb_bfd_crc.
6411
cc0ea93c
TT
64122013-03-14 Tom Tromey <tromey@redhat.com>
6413
6414 * symfile.c (get_debug_link_info): Remove.
6415 (find_separate_debug_file_by_debuglink): Use
6416 bfd_get_debug_link_info.
6417
08c23b0d
TT
64182013-03-14 Tom Tromey <tromey@redhat.com>
6419
6420 * symtab.c (error_in_psymtab_expansion): New function.
6421 (lookup_symbol_aux_quick)
6422 (basic_lookup_transparent_type_quick): Remove "last resort"
6423 code. Use error_in_psymtab_expansion.
6424
288e77a7
JK
64252013-03-14 Doug Evans <dje@google.com>
6426 Jan Kratochvil <jan.kratochvil@redhat.com>
6427
6428 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
6429 any successful compare_filenames_for_search or FILENAME_CMP.
6430 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6431 * symtab.c (iterate_over_some_symtabs): Likewise.
6432
8f1b8b82
JK
64332013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6434
6435 * source.c (print_source_lines_base): Make a local copy of
6436 symtab_to_fullname.
6437
23eb71e4
JK
64382013-03-14 Hui Zhu <hui_zhu@mentor.com>
6439 Jan Kratochvil <jan.kratochvil@redhat.com>
6440
6441 * source.c (print_source_lines_base): Suppress "file" for TUI.
6442
bb869963
SDJ
64432013-03-14 Keith Seitz <keiths@redhat.com>
6444 Alan Matsuoka <alanm@redhat.com>
6445
6446 PR c++/15203
6447 PR c++/15210
6448 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
6449 TYPE_CODE_METHOD.
6450 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
6451 symbols.
6452
d6682f9e
YQ
64532013-03-14 Yao Qi <yao@codesourcery.com>
6454
6455 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
6456 status to tfile if trace is stopped by command 'tstop'.
6457
a22fa6e4
YQ
64582013-03-14 Yao Qi <yao@codesourcery.com>
6459
6460 * tracepoint.c (tfile_write_status): Write trace notes and user
6461 name into tfile if they are not NULL.
6462
d0353e76
YQ
64632013-03-14 Hui Zhu <hui@codesourcery.com>
6464 Yao Qi <yao@codesourcery.com>
6465
6466 * Makefile.in (REMOTE_OBS): Add ctf.o.
6467 (SFILES): Add ctf.c.
6468 (HFILES_NO_SRCDIR): Add ctf.h.
6469 * ctf.c, ctf.h: New files.
6470 * tracepoint.c: Include 'ctf.h'.
6471 (collect_pseudocommand): Remove static.
6472 (trace_save_command): Parse option "-ctf".
6473 Produce different trace file writers per option.
6474 Adjust output message.
6475 (trace_save_tfile, trace_save_ctf): New.
6476 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
6477 * mi/mi-main.c: Include 'ctf.h'.
6478 (mi_cmd_trace_save): Handle option '-ctf'. Call either
6479 trace_save_tfile or trace_save_ctf.
6480 * NEWS: Mention these changes.
6481
3f43bc09
YQ
64822013-03-14 Yao Qi <yao@codesourcery.com>
6483
6484 * tracepoint.c (trace_file_writer_xfree): New.
6485 (struct tfile_writer_data): New.
6486 (tfile_dtor, tfile_can_target_save, tfile_start): New.
6487 (tfile_write_header, tfile_write_regblock_type): New.
6488 (tfile_write_status, tfile_write_uploaded_tsv): New.
6489 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
6490 (tfile_write_raw_data, (tfile_end): New.
6491 (tfile_write_ops): New global variable.
6492 (TRACE_WRITE_R_BLOCK): New macro.
6493 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
6494 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
6495 (TRACE_WRITE_V_BLOCK): New macro.
6496 (trace_save): Add extra one parameter WRITER. Make it static.
6497 Use WRITER to writer trace.
6498 (tfile_trace_file_writer_new): New.
6499 (trace_save_command): Caller update.
6500 (trace_save_tfile): Write trace data in TFILE format.
6501 * tracepoint.h (struct trace_frame_write_ops): New.
6502 (struct trace_file_write_ops): New.
6503 (struct trace_file_writer): New.
6504 (trace_save): Remove its declaration.
6505 (trace_save_tfile): Declare it.
6506 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
6507 instead of trace_save.
6508
58665b40
PA
65092013-03-13 Pedro Alves <palves@redhat.com>
6510
6511 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
6512
10217050
PA
65132013-03-13 Pedro Alves <palves@redhat.com>
6514
6515 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
6516 commented out code.
6517 * demangle.c (current_demangling_style_string): Make it const.
6518 (set_demangling_command): Assert the demangling style is known.
6519 Remove all handling of unknown styles. Set
6520 'current_demangling_style_string' to an element of the
6521 demangling_style_names array.
6522 (set_demangling_style): Delete.
6523 (_initialize_demangler): Set current_demangling_style_string to the
6524 element of the demangling_style_names array that corresponds to
6525 the default demangling style. Remove FIXME note. Don't call
6526 set_demangling_style.
6527 * gdb-demangle.h (set_demangling_style): Remove declaration.
6528
6f937416
PA
65292013-03-13 Pedro Alves <palves@redhat.com>
6530
6531 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
6532 fields const.
6533 (ada_make_symbol_completion_list): Make "text0" parameter const.
6534 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
6535 * breakpoint.c (condition_completer): Make "text" and "word"
6536 parameters const. Adjust.
6537 (check_tracepoint_command): Adjust to validate_actionline
6538 prototype change.
6539 (catch_syscall_completer): Make "text" and "word" parameters
6540 const.
6541 * cli/cli-cmds.c (show_user): Make "comname" local const.
6542 (valid_command_p): Make "command" parameter const.
6543 (alias_command): Make "alias_prefix" and "command_prefix" locals
6544 const.
6545 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
6546 (add_alias_cmd): Make "name" and "oldname" parameters const.
6547 Adjust. No longer make copy of OLDNAME.
6548 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
6549 (add_setshow_cmd_full, add_setshow_enum_cmd)
6550 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6551 (add_setshow_filename_cmd, add_setshow_string_cmd)
6552 (add_setshow_string_noescape_cmd)
6553 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6554 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6555 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
6556 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
6557 Make "name" parameter const.
6558 (help_cmd): Rename "command" parameter to "arg". New const local
6559 "command".
6560 (find_cmd): Make "command" parameter const.
6561 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
6562 deprecated_cmd_warning prototype change.
6563 (undef_cmd_error): Make "cmdtype" parameter const.
6564 (lookup_cmd): Make "line" parameter const.
6565 (deprecated_cmd_warning): Change type of "text" parameter to
6566 pointer to const char, from pointer to pointer to char. Adjust.
6567 (lookup_cmd_composition): Make "text" parameter const.
6568 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
6569 parameters const.
6570 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
6571 const.
6572 * cli/cli-script.c (validate_comname): Make "tem" local const.
6573 (define_command): New const local "tem_c". Use it in calls to
6574 lookup_cmd.
6575 (document_command): Make "tem" and "comfull" locals const.
6576 (show_user_1): Make "prefix" and "name" parameters const.
6577 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
6578 const.
6579 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
6580 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
6581 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
6582 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
6583 (complete_on_enum, add_setshow_enum_cmd)
6584 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6585 (add_setshow_filename_cmd, add_setshow_string_cmd)
6586 (add_setshow_string_noescape_cmd)
6587 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6588 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6589 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
6590 Change prototypes, constifying strings.
6591 * completer.c (noop_completer, filename_completer): Make "text"
6592 and "prefix" parameters const.
6593 (location_completer, expression_completer)
6594 (complete_line_internal): Make "text" and "prefix" parameters
6595 const and adjust.
6596 (command_completer, signal_completer): Make "text" and "prefix"
6597 parameters const.
6598 * completer.h (noop_completer, filename_completer)
6599 (expression_completer, location_completer, command_completer)
6600 (signal_completer): Change prototypes.
6601 * corefile.c (complete_set_gnutarget): Make "text" and "word"
6602 parameters const.
6603 * cp-abi.c (cp_abi_completer): Likewise.
6604 * expression.h (parse_expression_for_completion): Change
6605 prototype.
6606 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
6607 parameters const.
6608 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
6609 * infrun.c (handle_completer): Make "text" and "word" parameters
6610 const.
6611 * interps.c (interpreter_completer): Make "text" and "word"
6612 parameters const.
6613 * language.h (struct language_defn)
6614 <la_make_symbol_completion_list>: Make "text" and "word"
6615 parameters const.
6616 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
6617 (parse_exp_in_context): Rename to ...
6618 (parse_exp_in_context_1): ... this.
6619 (parse_exp_in_context): Reimplement, with const hack from
6620 parse_exp_1.
6621 (parse_expression_for_completion): Make "string" parameter const.
6622 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
6623 to pointer to const char. Adjust.
6624 (print_command_1): Make "exp" parameter const.
6625 (output_command): Rename to ...
6626 (output_command_const): ... this. Make "exp" parameter const.
6627 (output_command): Reimplement.
6628 (x_command): Adjust.
6629 (display_command): Rename "exp" parameter to "arg". New "exp"
6630 local, const version of "arg".
6631 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
6632 "cmd_name" local const.
6633 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
6634 call.
6635 (cmdpy_completer): Make "text" and "word" parameters const.
6636 (gdbpy_parse_command_name): Make "prefix_text2" local const.
6637 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
6638 const.
6639 * remote.c (_initialize_remote): Make "cmd_name" local const.
6640 * symtab.c (language_search_unquoted_string): Make "text" and "p"
6641 parameters const. Adjust.
6642 (completion_list_add_fields): Make "sym_text", "text" and "word"
6643 parameters const.
6644 (struct add_name_data) <sym_text, text, word>: Make fields const.
6645 (default_make_symbol_completion_list_break_on): Make "text" and
6646 "word" parameters const. Adjust locals.
6647 (default_make_symbol_completion_list)
6648 (make_symbol_completion_list, make_symbol_completion_type)
6649 (make_symbol_completion_list_fn): Make "text" and "word"
6650 parameters const.
6651 (make_file_symbol_completion_list): Make "text", "word" and
6652 "srcfile" parameters const. Adjust locals.
6653 (add_filename_to_list): Make "text" and "word" parameters const.
6654 (struct add_partial_filename_data) <text, word>: Make fields
6655 const.
6656 (make_source_files_completion_list): Make "text" and "word"
6657 parameters const.
6658 * symtab.h (default_make_symbol_completion_list_break_on)
6659 (default_make_symbol_completion_list, make_symbol_completion_list)
6660 (make_symbol_completion_type enum type_code)
6661 (make_symbol_completion_list_fn make_file_symbol_completion_list)
6662 (make_source_files_completion_list): Change prototype.
6663 * top.c (execute_command): Adjust to pass pointer to pointer to
6664 const char to lookup_cmd, and to deprecated_cmd_warning prototype
6665 change.
6666 (set_verbose): Make "cmdname" local const.
6667 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
6668 and adjust.
6669 (validate_actionline): Make "line" parameter a pointer to const
6670 char, and adjust.
6671 (encode_actions_1): Make "action_exp" local const, and adjust.
6672 (encode_actions): Adjust.
6673 (replace_comma): Delete.
6674 (trace_dump_actions): Make "action_exp" and "next_comma" locals
6675 const, and adjust. Don't frob the action string while splitting
6676 it at commas. Instead, make a copy of each split substring in
6677 turn.
6678 (trace_dump_command): Adjust to validate_actionline prototype
6679 change.
6680 * tracepoint.h (decode_agent_options, decode_agent_options)
6681 (encode_actions, validate_actionline): Change prototypes.
6682 * valprint.h (output_command): Delete declaration.
6683 (output_command_const): Declare.
6684 * value.c (function_destroyer): Cast const away in xfree call.
6685
a0bcdaa7
PA
66862013-03-13 Pedro Alves <palves@redhat.com>
6687
6688 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
6689 rather than casting 'const char * const *' to 'const char **'.
6690 * ada-lex.l (processInt): Make "trailer" local const. Remove
6691 'const char **' cast.
6692 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
6693 locals, and use those as strtol output pointer, instead than doing
6694 invalid casts to from 'const char **' to 'char **'.
6695 (_initialize_demangle): Remove cast.
6696 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
6697 locals, and use those as strtol output pointer, instead than doing
6698 invalid casts to from 'const char **' to 'char **'.
6699 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
6700 casts.
6701 * stap-probe.c (stap_parse_register_operand)
6702 (stap_parse_single_operand): Likewise.
6703
8ddb1965
YQ
67042013-03-13 Yao Qi <yao@codesourcery.com>
6705
6706 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
6707 the last matched 'V' blcok in trace frame.
6708
2d450646
JB
67092013-03-12 Joel Brobecker <brobecker@adacore.com>
6710
6711 * NEWS: Create a new section for the next release branch.
6712 Rename the section of the current branch, now that it has
6713 been cut.
6714
b4b79973 67152013-03-12 Joel Brobecker <brobecker@adacore.com>
6716
6717 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
6718 * version.in: Bump version to 7.6.50.20130312-cvs.
6719
ee047554
KS
67202013-03-12 Keith Seitz <keiths@redhat.com>
6721
6722 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
6723 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
6724 Remove temporary copy of input string.
6725 (mi_execute_command_wrapper): Make "cmd" const.
6726 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
6727 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
6728 Use const strings.
6729 (mi_parse): Make "cmd" const.
6730 Use const strings.
6731 * mi/mi-parse.h (mi_parse): Make "cmd" const.
6732
bbc13ae3
KS
67332013-03-12 Keith Seitz <keiths@redhat.com>
6734
6735 * ada-lang.c (ada_read_renaming_var_value): Pass const
6736 pointer to expression string to parse_exp_1.
6737 (create_excep_cond_exprs): Likewise.
6738 * ax-gdb.c (agent_eval_command_one): Likewise.
6739 (maint_agent_printf_command): Likewise.
6740 Constify much of the string handling/parsing.
6741 * breakpoint.c (set_breakpoint_condition): Pass const
6742 pointer to expression string to parse_exp_1.
6743 (update_watchpoint): Likewise.
6744 (parse_cmd_to_aexpr): Constify string handling.
6745 Pass const pointer to parse_exp_1.
6746 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
6747 (find_condition_and_thread): Likewise.
6748 Make TOK const.
6749 (watch_command_1): Make "arg" const.
6750 Constify string handling.
6751 Copy the expression string instead of changing the input
6752 string.
6753 (update_breakpoint_location): Pass const pointer to
6754 parse_exp_1.
6755 * eval.c (parse_and_eval_address): Make "exp" const.
6756 (parse_to_comma_and_eval): Make "expp" const.
6757 (parse_and_eval): Make "exp" const.
6758 * expression.h (parse_expression): Make argument const.
6759 (parse_exp_1): Make first argument const.
6760 * findcmd.c (parse_find_args): Treat "args" as const.
6761 * linespec.c (parse_linespec): Pass const pointer to
6762 linespec_expression_to_pc.
6763 (linespec_expression_to_pc): Make "exp_ptr" const.
6764 * parse.c (parse_exp_1): Make "stringptr" const.
6765 Make a copy of the expression to pass to parse_exp_in_context until
6766 this whole interface can be constified.
6767 (parse_expression): Make "string" const.
6768 * printcmd.c (ui_printf): Treat "arg" as const.
6769 Handle const strings.
6770 * tracepoint.c (validate_actionline): Pass const pointer to
6771 all calls to parse_exp_1.
6772 (encode_actions_1): Likewise.
6773 * value.h (parse_to_comma_and_eval): Make argument const.
6774 (parse_and_eval_address): Likewise.
6775 (parse_and_eval): Likewise.
6776 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
6777 (varobj_set_value): Likewise.
6778 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
6779 constify string handling.
6780 Pass const pointers to parse_and_eval_address and
6781 parse_to_comman_and_eval.
6782 * cli/cli-utils.c (skip_to_space): Rename to ...
6783 (skip_to_space_const): ... this. Handle const strings.
6784 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
6785 skip_to_space_const.
6786 (skip_to_space_const): Declare.
6787 * common/format.c (parse_format_string): Make "arg" const.
6788 Handle const strings.
6789 * common/format.h (parse_format_string): Make "arg" const.
6790 * gdbserver/ax.c (ax_printf): Make "format" const.
6791 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
6792 of the expression string.
6793
f3cec7e6
HZ
67942013-03-12 Hui Zhu <hui@codesourcery.com>
6795
6796 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
6797
9df7235c
HZ
67982013-03-12 Yao Qi <yao@codesourcery.com>
6799 Hui Zhu <hui@codesourcery.com>
6800
6801 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
6802 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
6803 DW_OP_deref_size.
6804
82d049ab
PH
68052013-03-12 Paul Hilfinger <hilfingr@adacore.com>
6806
5f8e0b8f
MF
6807 * ada-lex.l (rules): Only recognize 'thread' as a
6808 delimiter when followed by numerals, as for c-exp.y.
6809 Use new rewind_to_char function to rewind the input for
6810 expression-delimiting tokens.
6811 (rewind_to_char): New function.
82d049ab 6812
8c1fb155
JK
68132013-03-11 Pedro Alves <palves@redhat.com>
6814 Jan Kratochvil <jan.kratochvil@redhat.com>
6815
6816 * configure: Regenerate.
6817 * configure.ac (check dynamic export flag): Link python test with
6818 $PYTHON_LIBS.
6819
cc81e1c6
DE
68202013-03-11 Doug Evans <dje@google.com>
6821 Keith Seitz <keiths@redhat.com>
6822
6823 * linespec.c (find_linespec_symbols): Call find_function_symbols
6824 first, and then call lookup_prefix_sym/find_method.
6825
39086a0e
PA
68262013-03-11 Pedro Alves <palves@redhat.com>
6827
6828 * charset.c (convert_between_encodings): Don't cast between
6829 different pointer to pointer types. Instead, make the 'inp' local
6830 be of the type iconv expects.
6831 (wchar_iterate): Don't cast between different pointer to pointer
6832 types. Instead, use new pointer local of the type iconv expects.
6833 * target.c (target_read_stralloc, target_fileio_read_stralloc):
6834 Add new local of type char pointer, and use it to get a
6835 char/string view of the byte buffer, instead of casting between
6836 pointer to pointer types.
6837
90585175
HAQ
68382013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6839
6840 * remote.c (remote_set_trace_buffer_size): Move != operator
6841 to the start of next line to fix an ARI warning.
6842
59ea5688
MM
68432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6844
6845 * NEWS: Add record changes.
6846
946287b7
MM
68472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6848
6849 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
6850 the instruction history disassembly.
6851 * disasm.c (dump_insns): Omit the pc prefix, if requested.
6852 * disasm.h (DISASSEMBLY_OMIT_PC): New.
6853
afedecd3
MM
68542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6855
6856 * Makefile.in (SFILES): Add record-btrace.c
6857 (COMMON_OBS): Add record-btrace.o
6858 * record-btrace.c: New.
6859 * objfiles.c: Include btrace.h.
6860 (free_objfile): call btrace_free_objfile.
6861
15984c13
MM
68622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6863
6864 * target.c (target_call_history, target_call_history_from,
6865 target_call_history_range): New.
6866 * target.h (target_ops) <to_call_history, to_call_history_from,
6867 to_call_history_range>: New fields.
6868 (target_call_history, target_call_history_from,
6869 target_call_history_range): New declaration.
6870 * record.c (get_call_history_modifiers, cmd_record_call_history,
6871 record_call_history_size): New.
6872 (_initialize_record): Add the "record function-call-history" command.
6873 Add "set/show record function-call-history-size" commands.
6874 * record.h (record_print_flag): New.
6875
67c86d06
MM
68762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6877
6878 * target.h (target_ops) <to_insn_history, to_insn_history_from,
6879 to_insn_history_range>: New fields.
6880 (target_insn_history): New.
6881 (target_insn_history_from): New.
6882 (target_insn_history_range): New.
6883 * target.c (target_insn_history): New.
6884 (target_insn_history_from): New.
6885 (target_insn_history_range): New.
6886 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
6887 (record_insn_history_size): New.
6888 (get_insn_number): New.
6889 (get_context_size): New.
6890 (no_chunk): New.
6891 (get_insn_history_modifiers): New.
6892 (cmd_record_insn_history): New.
6893 (_initialize_record): Add "set/show record instruction-history-size"
6894 command. Add "record instruction-history" command.
6895
7c1687a9
MM
68962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6897
6898 * record.h (record_disconnect): New.
6899 (record_detach): New.
6900 (record_mourn_inferior): New.
6901 (record_kill): New.
6902 * record-full.c (record_disconnect, record_detach,
6903 record_mourn_inferior, record_kill): Move to...
6904 * record.c: ...here.
6905 (DEBUG): New.
6906 (record_stop): New.
6907 (record_unpush): New.
6908 (cmd_record_stop): Call record_stop. Replace unpush_target
6909 call with record_unpush call.
6910 (record_disconnect, record_detach): Assert that the target
6911 is of record stratum. Call record_unpush, record_stop, and
6912 DEBUG.
6913 (record_mourn_inferior, record_kill): Assert that the target
6914 is of record stratum. Call record_unpush and DEBUG.
6915
25ea693b
MM
69162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6917
6918 * record-full.h, record-full.c (record_memory_query): Rename
6919 to ...
6920 (record_full_memory_query): ...this. Update all users.
6921 (record_arch_list_add_reg): Rename to ...
6922 (record_full_arch_list_add_reg): ...this. Update all users.
6923 (record_arch_list_add_mem): Rename to ...
6924 (record_full_arch_list_add_mem): ...this. Update all users.
6925 (record_arch_list_add_end): Rename to ...
6926 (record_full_arch_list_add_end): ...this. Update all users.
6927 (record_gdb_operation_disable_set): Rename to ...
6928 (record_full_gdb_operation_disable_set): ...this.
6929 Update all users.
6930
88d1aa9d
MM
69312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6932
6933 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
6934 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
6935 (RECORD_IS_REPLAY): Renamed to ...
6936 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
6937 (RECORD_FILE_MAGIC): Renamed to ...
6938 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
6939 (record_mem_entry): Renamed to ...
6940 (record_full_mem_entry): ... this. Updated all users.
6941 (record_reg_entry): Renamed to ...
6942 (record_full_reg_entry): ... this. Updated all users.
6943 (record_end_entry): Renamed to ...
6944 (record_full_end_entry): ... this. Updated all users.
6945 (record_type) <record_end, record_reg, record_mem>: Renamed
6946 to ...
6947 (record_full_type) <record_full_end, record_full_reg,
6948 record_full_mem>: ... this. Updated all users.
6949 (record_entry): Renamed to ...
6950 (record_full_entry): ... this. Updated all users.
6951 (record_core_buf_entry): Renamed to ...
6952 (record_full_core_buf_entry): ... this. Updated all users.
6953 (record_core_regbuf): Renamed to ...
6954 (record_full_core_regbuf): ... this. Updated all users.
6955 (record_core_start): Renamed to ...
6956 (record_full_core_start): ... this. Updated all users.
6957 (record_core_end): Renamed to ...
6958 (record_full_core_end): ... this. Updated all users.
6959 (record_core_buf_list): Renamed to ...
6960 (record_full_core_buf_list): ... this. Updated all users.
6961 (record_first): Renamed to ...
6962 (record_full_first): ... this. Updated all users.
6963 (record_list): Renamed to ...
6964 (record_full_list): ... this. Updated all users.
6965 (record_arch_list_head): Renamed to ...
6966 (record_full_arch_list_head): ... this. Updated all users.
6967 (record_arch_list_tail): Renamed to ...
6968 (record_full_arch_list_tail): ... this. Updated all users.
6969 (record_stop_at_limit): Renamed to ...
6970 (record_full_stop_at_limit): ... this. Updated all users.
6971 (record_insn_max_num): Renamed to ...
6972 (record_full_insn_max_num): ... this. Updated all users.
6973 (record_insn_num): Renamed to ...
6974 (record_full_insn_num): ... this. Updated all users.
6975 (record_insn_count): Renamed to ...
6976 (record_full_insn_count): ... this. Updated all users.
6977 (record_ops): Renamed to ...
6978 (record_full_ops): ... this. Updated all users.
6979 (record_core_ops): Renamed to ...
6980 (record_full_core_ops): ... this. Updated all users.
6981 (set_record_cmdlist): Renamed to ...
6982 (set_record_full_cmdlist): ... this. Updated all users.
6983 (show_record_cmdlist): Renamed to ...
6984 (show_record_full_cmdlist): ... this. Updated all users.
6985 (record_cmdlist): Renamed to ...
6986 (record_full_cmdlist): ... this. Updated all users.
6987 (record_beneath_to_resume_ops): Renamed to ...
6988 (record_full_beneath_to_resume_ops): ... this. Updated all users.
6989 (record_beneath_to_resume): Renamed to ...
6990 (record_full_beneath_to_resume): ... this. Updated all users.
6991 (record_beneath_to_wait_ops): Renamed to ...
6992 (record_full_beneath_to_wait_ops): ... this. Updated all users.
6993 (record_beneath_to_wait): Renamed to ...
6994 (record_full_beneath_to_wait): ... this. Updated all users.
6995 (record_beneath_to_store_registers_ops): Renamed to ...
6996 (record_full_beneath_to_store_registers_ops): ... this.
6997 Updated all users.
6998 (record_beneath_to_store_registers): Renamed to ...
6999 (record_full_beneath_to_store_registers): ... this.
7000 Updated all users.
7001 (record_beneath_to_xfer_partial_ops): Renamed to ...
7002 (record_full_beneath_to_xfer_partial_ops): ... this.
7003 Updated all users.
7004 (record_beneath_to_xfer_partial): Renamed to ...
7005 (record_full_beneath_to_xfer_partial): ... this.
7006 Updated all users.
7007 (record_beneath_to_insert_breakpoint): Renamed to ...
7008 (record_full_beneath_to_insert_breakpoint): ... this.
7009 Updated all users.
7010 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
7011 (record_full_beneath_to_stopped_by_watchpoint): ... this.
7012 Updated all users.
7013 (record_beneath_to_stopped_data_address): Renamed to ...
7014 (record_full_beneath_to_stopped_data_address): ... this.
7015 Updated all users.
7016 (record_beneath_to_async): Renamed to ...
7017 (record_full_beneath_to_async): ... this. Updated all users.
7018 (record_goto_insn): Renamed to ...
7019 (record_full_goto_insn): ... this. Updated all users.
7020 (record_save): Renamed to ...
7021 (record_full_save): ... this. Updated all users.
7022 (record_reg_alloc): Renamed to ...
7023 (record_full_reg_alloc): ... this. Updated all users.
7024 (record_reg_release): Renamed to ...
7025 (record_full_reg_release): ... this. Updated all users.
7026 (record_mem_alloc): Renamed to ...
7027 (record_full_mem_alloc): ... this. Updated all users.
7028 (record_mem_release): Renamed to ...
7029 (record_full_mem_release): ... this. Updated all users.
7030 (record_end_alloc): Renamed to ...
7031 (record_full_end_alloc): ... this. Updated all users.
7032 (record_end_release): Renamed to ...
7033 (record_full_end_release): ... this. Updated all users.
7034 (record_entry_release): Renamed to ...
7035 (record_full_entry_release): ... this. Updated all users.
7036 (record_list_release): Renamed to ...
7037 (record_full_list_release): ... this. Updated all users.
7038 (record_list_release_following): Renamed to ...
7039 (record_full_list_release_following): ... this.
7040 Updated all users.
7041 (record_list_release_first): Renamed to ...
7042 (record_full_list_release_first): ... this. Updated all users.
7043 (record_arch_list_add): Renamed to ...
7044 (record_full_arch_list_add): ... this. Updated all users.
7045 (record_get_loc): Renamed to ...
7046 (record_full_get_loc): ... this. Updated all users.
7047 (record_check_insn_num): Renamed to ...
7048 (record_full_check_insn_num): ... this. Updated all users.
7049 (record_arch_list_cleanups): Renamed to ...
7050 (record_full_arch_list_cleanups): ... this. Updated all users.
7051 (record_message): Renamed to ...
7052 (record_full_message): ... this. Updated all users.
7053 (record_message_wrapper): Renamed to ...
7054 (record_full_message_wrapper): ... this. Updated all users.
7055 (record_message_wrapper_safe): Renamed to ...
7056 (record_full_message_wrapper_safe): ... this. Updated all users.
7057 (record_gdb_operation_disable): Renamed to ...
7058 (record_full_gdb_operation_disable): ... this. Updated all users.
7059 (record_hw_watchpoint): Renamed to ...
7060 (record_full_hw_watchpoint): ... this. Updated all users.
7061 (record_exec_insn): Renamed to ...
7062 (record_full_exec_insn): ... this. Updated all users.
7063 (record_restore): Renamed to ...
7064 (record_full_restore): ... this. Updated all users.
7065 (record_async_inferior_event_token): Renamed to ...
7066 (record_full_async_inferior_event_token): ... this.
7067 Updated all users.
7068 (record_async_inferior_event_handler): Renamed to ...
7069 (record_full_async_inferior_event_handler): ... this.
7070 Updated all users.
7071 (record_core_open_1): Renamed to ...
7072 (record_full_core_open_1): ... this. Updated all users.
7073 (record_open_1): Renamed to ...
7074 (record_full_open_1): ... this. Updated all users.
7075 (record_open): Renamed to ...
7076 (record_full_open): ... this. Updated all users.
7077 (record_close): Renamed to ...
7078 (record_full_close): ... this. Updated all users.
7079 (record_resume_step): Renamed to ...
7080 (record_full_resume_step): ... this. Updated all users.
7081 (record_resumed): Renamed to ...
7082 (record_full_resumed): ... this. Updated all users.
7083 (record_execution_dir): Renamed to ...
7084 (record_full_execution_dir): ... this. Updated all users.
7085 (record_resume): Renamed to ...
7086 (record_full_resume): ... this. Updated all users.
7087 (record_get_sig): Renamed to ...
7088 (record_full_get_sig): ... this. Updated all users.
7089 (record_sig_handler): Renamed to ...
7090 (record_full_sig_handler): ... this. Updated all users.
7091 (record_wait_cleanups): Renamed to ...
7092 (record_full_wait_cleanups): ... this. Updated all users.
7093 (record_wait_1): Renamed to ...
7094 (record_full_wait_1): ... this. Updated all users.
7095 (record_wait): Renamed to ...
7096 (record_full_wait): ... this. Updated all users.
7097 (record_stopped_by_watchpoint): Renamed to ...
7098 (record_full_stopped_by_watchpoint): ... this. Updated all users.
7099 (record_disconnect): Renamed to ...
7100 (record_full_disconnect): ... this. Updated all users.
7101 (record_detach): Renamed to ...
7102 (record_full_detach): ... this. Updated all users.
7103 (record_mourn_inferior): Renamed to ...
7104 (record_full_mourn_inferior): ... this. Updated all users.
7105 (record_kill): Renamed to ...
7106 (record_full_kill): ... this. Updated all users.
7107 (record_stopped_data_address): Renamed to ...
7108 (record_full_stopped_data_address): ... this. Updated all users.
7109 (record_registers_change): Renamed to ...
7110 (record_full_registers_change): ... this. Updated all users.
7111 (record_store_registers): Renamed to ...
7112 (record_full_store_registers): ... this. Updated all users.
7113 (record_xfer_partial): Renamed to ...
7114 (record_full_xfer_partial): ... this. Updated all users.
7115 (record_breakpoint): Renamed to ...
7116 (record_full_breakpoint): ... this. Updated all users.
7117 (record_breakpoint_p): Renamed to ...
7118 (record_full_breakpoint_p): ... this. Updated all users.
7119 (record_breakpoints): Renamed to ...
7120 (record_full_breakpoints): ... this. Updated all users.
7121 (record_sync_record_breakpoints): Renamed to ...
7122 (record_full_sync_record_breakpoints): ... this.
7123 Updated all users.
7124 (record_init_record_breakpoints): Renamed to ...
7125 (record_full_init_record_breakpoints): ... this.
7126 Updated all users.
7127 (record_insert_breakpoint): Renamed to ...
7128 (record_full_insert_breakpoint): ... this. Updated all users.
7129 (record_remove_breakpoint): Renamed to ...
7130 (record_full_remove_breakpoint): ... this. Updated all users.
7131 (record_can_execute_reverse): Renamed to ...
7132 (record_full_can_execute_reverse): ... this. Updated all users.
7133 (record_get_bookmark): Renamed to ...
7134 (record_full_get_bookmark): ... this. Updated all users.
7135 (record_goto_bookmark): Renamed to ...
7136 (record_full_goto_bookmark): ... this. Updated all users.
7137 (record_async): Renamed to ...
7138 (record_full_async): ... this. Updated all users.
7139 (record_can_async_p): Renamed to ...
7140 (record_full_can_async_p): ... this. Updated all users.
7141 (record_is_async_p): Renamed to ...
7142 (record_full_is_async_p): ... this. Updated all users.
7143 (record_execution_direction): Renamed to ...
7144 (record_full_execution_direction): ... this. Updated all users.
7145 (record_info): Renamed to ...
7146 (record_full_info): ... this. Updated all users.
7147 (record_delete): Renamed to ...
7148 (record_full_delete): ... this. Updated all users.
7149 (record_is_replaying): Renamed to ...
7150 (record_full_is_replaying): ... this. Updated all users.
7151 (record_goto_entry): Renamed to ...
7152 (record_full_goto_entry): ... this. Updated all users.
7153 (record_goto_begin): Renamed to ...
7154 (record_full_goto_begin): ... this. Updated all users.
7155 (record_goto_end): Renamed to ...
7156 (record_full_goto_end): ... this. Updated all users.
7157 (record_goto): Renamed to ...
7158 (record_full_goto): ... this. Updated all users.
7159 (init_record_ops): Renamed to ...
7160 (init_record_full_ops): ... this. Updated all users.
7161 (record_core_resume): Renamed to ...
7162 (record_full_core_resume): ... this. Updated all users.
7163 (record_core_kill): Renamed to ...
7164 (record_full_core_kill): ... this. Updated all users.
7165 (record_core_fetch_registers): Renamed to ...
7166 (record_full_core_fetch_registers): ... this. Updated all users.
7167 (record_core_prepare_to_store): Renamed to ...
7168 (record_full_core_prepare_to_store): ... this. Updated all users.
7169 (record_core_store_registers): Renamed to ...
7170 (record_full_core_store_registers): ... this. Updated all users.
7171 (record_core_xfer_partial): Renamed to ...
7172 (record_full_core_xfer_partial): ... this. Updated all users.
7173 (record_core_insert_breakpoint): Renamed to ...
7174 (record_full_core_insert_breakpoint): ... this. Updated all users.
7175 (record_core_remove_breakpoint): Renamed to ...
7176 (record_full_core_remove_breakpoint): ... this. Updated all users.
7177 (record_core_has_execution): Renamed to ...
7178 (record_full_core_has_execution): ... this. Updated all users.
7179 (init_record_core_ops): Renamed to ...
7180 (init_record_full_core_ops): ... this. Updated all users.
7181 (cmd_record_restore): Renamed to ...
7182 (cmd_record_full_restore): ... this. Updated all users.
7183 (record_save_cleanups): Renamed to ...
7184 (record_full_save_cleanups): ... this. Updated all users.
7185 (cmd_record_start): Renamed to ...
7186 (cmd_record_full_start): ... this. Updated all users.
7187 (set_record_insn_max_num): Renamed to ...
7188 (set_record_full_insn_max_num): ... this. Updated all users.
7189 (set_record_command): Renamed to ...
7190 (set_record_full_command): ... this. Updated all users.
7191 (show_record_command): Renamed to ...
7192 (show_record_full_command): ... this. Updated all users.
7193 (_initialize_record): Renamed to ...
7194 (_initialize_record_full): ... this. Updated all users.
7195
d02ed0bb
MM
71962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7197
7198 * record.h: Split into this and ...
7199 * record-full.h: ... this.
7200 * record.c: Split into this and ...
7201 * record-full.c: ... this.
7202 * target.h (target_ops): Add new fields to_info_record,
7203 to_save_record, to_delete_record, to_record_is_replaying,
7204 to_goto_record_begin, to_goto_record_end, to_goto_record.
7205 (target_info_record): New.
7206 (target_save_record): New.
7207 (target_supports_delete_record): New.
7208 (target_delete_record): New.
7209 (target_record_is_replaying): New.
7210 (target_goto_record_begin): New.
7211 (target_goto_record_end): New.
7212 (target_goto_record): New.
7213 * target.c (target_info_record): New.
7214 (target_save_record): New.
7215 (target_supports_delete_record): New.
7216 (target_delete_record): New.
7217 (target_record_is_replaying): New.
7218 (target_goto_record_begin): New.
7219 (target_goto_record_end): New.
7220 (target_goto_record): New.
7221 * record.h: Declare struct cmd_list_element.
7222 (record_cmdlist): New declaration.
7223 (set_record_cmdlist): New declaration.
7224 (show_record_cmdlist): New declaration.
7225 (info_record_cmdlist): New declaration.
7226 (cmd_record_goto): New declaration.
7227 * record.c: Remove unnecessary includes.
7228 Include inferior.h.
7229 (cmd_record_goto): Remove declaration.
7230 (record_cmdlist): Now extern. Initialize.
7231 (set_record_cmdlist): Now extern. Initialize.
7232 (show_record_cmdlist): Now extern. Initialize.
7233 (info_record_cmdlist): Now extern. Initialize.
7234 (find_record_target): New.
7235 (require_record_target): New.
7236 (cmd_record_start): Update.
7237 (cmd_record_delete): Remove target-specific code.
7238 Call target_delete_record.
7239 (cmd_record_stop): Unpush any record target.
7240 (set_record_insn_max_num): Move to record-full.c
7241 (set_record_command): Add comment.
7242 (show_record_command): Add comment.
7243 (info_record_command): Update comment.
7244 Remove target-specific code.
7245 Call the record target's to_info_record.
7246 (cmd_record_start): New.
7247 (cmd_record_goto): Now extern.
7248 Remove target-specific code.
7249 Call target_goto_begin, target_goto_end, or target_goto.
7250 (_initialize_record): Move record target ops initialization to
7251 record-full.c.
7252 Change "record" command help text.
7253 Move "record restore", "record set", and "record show" commands to
7254 record-full.c.
7255 * Makefile.in (SFILES): Add record-full.c.
7256 (HFILES_NO_SRCDIR): Add record-full.h.
7257 (COMMON_OBS): Add record-full.o.
7258 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
7259 * arm-tdep.c: Include record-full.h.
7260 * i386-linux-tdep.c: Include record-full.h instead of record.h.
7261 * i386-tdep.c: Include record-full.h.
7262 * infrun.c: Include record-full.h.
7263 * linux-record.c: Include record-full.h.
7264 * moxie-tdep.c: Include record-full.h.
7265 * record-full.c: Include record-full.h.
7266 Change module comment.
7267 (set_record_full_cmdlist): New.
7268 (show_record_full_cmdlist): New.
7269 (record_full_cmdlist): New.
7270 (record_goto_insn): New declaration.
7271 (record_save): New declaration.
7272 (record_check_insn_num): Change query string.
7273 (record_info): New.
7274 (record_delete): New.
7275 (record_is_replaying): New.
7276 (record_goto_entry): New.
7277 (record_goto_begin): New.
7278 (record_goto_end): New.
7279 (record_goto): New.
7280 (init_record_ops): Update.
7281 (init_record_core_ops): Update.
7282 (cmd_record_save): Rename to record_save. Remove target and arg checks.
7283 (cmd_record_start): New.
7284 (set_record_insn_max_num): Moved from record.c
7285 (set_record_full_command): New.
7286 (show_record_full_command): New.
7287 (_initialize_record_full): New.
7288
b48d48eb
MM
72892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7290
7291 * target.h (add_deprecated_target_alias): New.
7292 * target.c (add_deprecated_target_alias): New.
7293
a950d57c
MM
72942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7295
7296 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
7297 and signal.h.
7298 (linux_supports_btrace): Add kernel and
7299 cpuid check.
7300 (kernel_supports_btrace): New function.
7301 (cpu_supports_btrace): New function.
7302 (intel_supports_btrace): New function.
7303
9accd112
MM
73042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7305
7306 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
7307 * remote.c: Include btrace.h.
7308 (struct btrace_target_info): New struct.
7309 (remote_supports_btrace): New function.
7310 (send_Qbtrace): New function.
7311 (remote_enable_btrace): New function.
7312 (remote_disable_btrace): New function.
7313 (remote_teardown_btrace): New function.
7314 (remote_read_btrace): New function.
7315 (init_remote_ops): Add btrace ops.
7316 (enum <unnamed>): Add btrace packets.
7317 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
7318 (_initialize_remote): Add packet configuration for branch tracing.
7319
c12a2917
MM
73202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7321
7322 * features/btrace.dtd: New file.
7323 * Makefile.in (XMLFILES): Add btrace.dtd.
7324 * btrace.h (parse_xml_btrace): New declaration.
7325 * btrace.c: Include xml-support.h.
7326 (parse_xml_btrace): New function.
7327 (parse_xml_btrace_block): New function.
7328 (block_attributes): New struct.
7329 (btrace_attributes): New struct.
7330 (btrace_children): New struct.
7331 (btrace_elements): New struct.
7332
3e3aea48
MM
73332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7334
7335 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
7336 (amd64_linux_enable_btrace): New.
7337 (amd64_linux_disable_btrace): New.
7338 (amd64_linux_teardown_btrace): New.
7339 (_initialize_amd64_linux_nat): Initialize btrace ops.
7340 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
7341 (i386_linux_enable_btrace): New.
7342 (i386_linux_disable_btrace): New.
7343 (i386_linux_teardown_btrace): New.
7344 (_initialize_i386_linux_nat): Initialize btrace ops.
7345 * config/i386/linux.mh: Add linux-btrace.o.
7346 * config/i386/linux64.mh: Add linux-btrace.o.
7347
7c97f91e
MM
73482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7349
7350 * common/linux_btrace.h: New file.
7351 * common/linux_btrace.c: New file.
7352 * Makefile.in (SFILES): Add btrace.c.
7353 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
7354 (COMMON_OBS): Add btrace.o.
7355 (linux-btrace.o): New rule.
7356
1999790b 73572013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
7358
7359 * target.h: Include btrace.h.
7360 (struct target_ops) <to_supports_btrace, to_enable_btrace,
7361 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
7362 * target.c (target_supports_btrace): New function.
7363 (target_enable_btrace): New function.
7364 (target_disable_btrace): New function.
7365 (target_teardown_btrace): New function.
7366 (target_read_btrace): New function.
7367 * btrace.h: New file.
7368 * btrace.c: New file.
7369 * Makefile.in: Add btrace.c.
7370 * gdbthread.h: Include btrace.h.
7371 (struct thread_info): Add btrace field.
7372 * thread.c: Include btrace.h.
7373 (clear_thread_inferior_resources): Call target_teardown_btrace.
7374 * common/btrace-common.h: New file.
7375
61a31a67
JK
73762013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7377
7378 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
7379 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
7380 kill_status to outer block.
7381
05c56a9d
JK
73822013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7383
7384 Fix entry-values if the callee called a noreturn function.
7385 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7386 get_frame_address_in_block. Add new comment.
7387
9112db09
JK
73882013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7389
7390 Fix entry-values in C++ across CUs.
7391 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
7392 lookup_minimal_symbol. Add a comment.
7393 * dwarf2read.c
7394 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
7395 DW_AT_linkage_name.
7396
9b67fcec
YQ
73972013-03-08 Yao Qi <yao@codesourcery.com>
7398
7399 * tracepoint.c (_initialize_tracepoint): Indent the code.
7400
6221be90
PA
74012013-03-08 Pedro Alves <palves@redhat.com>
7402
7403 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
7404 (parse_find_args, find_command): Change type of pattern buffer
7405 locals to 'gdb_byte *'.
7406
be9a119c 74072013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
7408 Hafiz Abid Qadeer <abidh@codesourcery.com>
7409
7410 * NEWS: Mention set and show trace-buffer-size commands.
7411 Mention new packet.
7412 * target.h (struct target_ops): New method
7413 to_set_trace_buffer_size.
7414 (target_set_trace_buffer_size): New macro.
7415 * target.c (update_current_target): Set up new method.
7416 * tracepoint.c (trace_buffer_size): New global.
7417 (start_tracing): Send it to the target.
7418 (set_trace_buffer_size): New function.
7419 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
7420 * remote.c (remote_set_trace_buffer_size): New function.
7421 (_initialize_remote): Use it.
7422 (QTBuffer:size) New remote command.
7423 (PACKET_QTBuffer_size): New enum.
7424 (remote_protocol_features): Add an entry for
7425 PACKET_QTBuffer_size.
7426
7da3ab79
TT
74272013-03-08 Tom Tromey <tromey@redhat.com>
7428
7429 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
7430 variable.
7431
0c1f71e7
PA
74322013-03-07 Pedro Alves <palves@redhat.com>
7433
7434 * target.c (target_read_stralloc, target_fileio_read_alloc):
7435 *Cast pointer to 'gdb_byte *' in target call.
7436
c8af03a2
PA
74372013-03-07 Pedro Alves <palves@redhat.com>
7438
7439 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
7440 call.
7441
529480d0
KS
74422013-03-07 Keith Seitz <keiths@redhat.com>
7443
7444 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
7445 (trace_pass_command): Likewise.
7446 * cli/cli-cmds.c: Include cli/cli-utils.h.
7447 (source_command): Use skip-spaces.
7448 (disassemble_command): Likewise.
7449 * findcmd.c: Include cli/cli-utils.h.
7450 (parse_find_args): Use skip_spaces.
7451 * go32-nat.c: Include cli/cli-utils.h.
7452 (go32_sldt): Use skip_spaces.
7453 (go32_sgdt): Likewise.
7454 (go32_sidt): Likewise.
7455 (go32_pde): Likewise.
7456 (go32_pte): Likewise.
7457 (go32_pte_for_address): Likewise.
7458 * infcmd.c: Include cli/cli-utils.h.
7459 (registers_info): Use skip_spaces.
7460 * linux-tdep.c (read_mapping): Use skip_spaces_const.
7461 (linux_info_proc): Likewise.
7462 * linux-thread-db.c: Include cli/cli-utils.h.
7463 (info_auto_load_libthread_db): Use skip_spaces_const.
7464 * m32r-rom.c: Include cli/cli-utils.h.
7465 (m32r_upload_command): Use skip_spaces.
7466 * maint.c: Include cli/cli-utils.h.
7467 (maintenance_translate_address): Use skip_spaces.
7468 * mi/mi-parse.c: Include cli/cli-utils.h.
7469 (mi_parse_argv): Use skip_spaces.
7470 (mi_parse): Likewise.
7471 * minsyms.c: Include cli/cli-utils.h.
7472 (msymbol_hash_iw): Use skip_spaces_const.
7473 * objc-lang.c: Include cli/cli-utils.h.
7474 (parse_selector): Use skip_spaces.
7475 (parse_method): Likewise.
7476 * python/python.c: Include cli/cli-utils.h.
7477 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
7478 (python_command)[HAVE_PYTHON]: Likewise.
7479 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
7480 * remote-m32r-sdi.c: Include cli/cli-utils.h.
7481 (m32r_load): Use skip_spaces.
7482 * serial.c: Include cli/cli-utils.h.
7483 (serial_open): Use skip_spaces_const.
7484 * stack.c: Include cli/cli-utils.h.
7485 (parse_frame_specification_1): Use skip_spaces_const.
7486 * symfile.c: Include cli/cli-utils.h.
7487 (set_ext_lang_command): Use skip_spaces.
7488 * symtab.c: Include cli/cli-utils.h.
7489 (rbreak_command): Use skip_spaces.
7490 * thread.c (thread_name_command): Use skip_spaces.
7491 * tracepoint.c (validate_actionline): Use skip_spaces.
7492 (encode_actions_1): Likewise.
7493 (trace_find_range_command): Likewise.
7494 (trace_find_outside_command): Likewise.
7495 (trace_dump_actions): Likewise.
7496
ac91cd70
PA
74972013-03-07 Pedro Alves <palves@redhat.com>
7498
7499 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
7500 * expprint.c (print_subexp_standard): Likewise.
7501 * utils.c (host_char_to_target): Likewise.
7502 * valprint.c (generic_emit_char, generic_printstr): Likewise.
7503 * varobj.c (value_get_print_value): Change type of local to char*.
7504 Cast it gdb_byte * in call to language printer.
7505
2898e560
PA
75062013-03-07 Pedro Alves <palves@redhat.com>
7507
7508 * charset.c (struct wchar_iterator) <input>: Change type to 'const
7509 gdb_byte *'.
7510 (make_wchar_iterator): Remove cast to char*.
7511 (wchar_iterate): Change type of local.
7512
a09b4448
PA
75132013-03-07 Pedro Alves <palves@redhat.com>
7514
7515 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
7516 for 'regcache->register_status'.
7517
20ced3e4
PA
75182013-03-07 Pedro Alves <palves@redhat.com>
7519
c2d6a675 7520 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
7521 int.
7522
fe106009
PA
75232013-03-07 Pedro Alves <palves@redhat.com>
7524
7525 * stap-probe.c (handle_stap_probe): Add cast to char*.
7526
8ac2c12b
PA
75272013-03-07 Pedro Alves <palves@redhat.com>
7528
7529 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
7530 RECORD_MSGRCV>: Pass a signed variable to
7531 regcache_raw_read_signed, instead of an unsigned one.
7532
99f0a309
PA
75332013-03-07 Pedro Alves <palves@redhat.com>
7534
7535 * remote-notif.c (notif_debug): Change type to int.
7536 * remote-notif.h (notif_debug): Likewise.
7537
964b8317
PA
75382013-03-07 Pedro Alves <palves@redhat.com>
7539
7540 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
7541
f0cc8ad4
PA
75422013-03-07 Pedro Alves <palves@redhat.com>
7543
7544 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
7545 * remote.h (hex2bin, bin2hex): ... here.
7546 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
7547
77dec115
EZ
75482013-03-07 Eli Zaretskii <eliz@gnu.org>
7549
7550 * utils.c (initialize_utils): Improve doc strings of "set/show
7551 width", "set/show height", and "set/show pagination".
7552
741d92cf
KS
75532013-03-06 Keith Seitz <keiths@redhat.com>
7554
7555 * ax-gdb.c (gen_printf): Make FORMAT const.
7556 * ax-gdb.h (gen_printf): Likewise.
7557 * ax-general.c (ax_string): Make STR const.
7558 * ax.h (ax_string): Likewise.
7559
7b6c814e
DE
75602013-03-06 Doug Evans <dje@google.com>
7561
7562 * elfread.c (elf_symfile_read): Move debugging printf to more
7563 logical location.
7564
634334ab
PA
75652013-03-06 Pedro Alves <palves@redhat.com>
7566
7567 * python/py-utils.c (target_string_to_unicode): Delete function.
7568 * python/python-internal.h (target_string_to_unicode): Delete
7569 declaration.
7570
e482a1a7
PM
75712013-03-06 Pierre Muller <muller@sourceware.org>
7572
7573 * linespec.c (get_current_search_block): ARI fix, use (void)
7574 for empty parameter list.
7575
4eeaa230
DE
75762013-03-05 Doug Evans <dje@google.com>
7577
7578 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
7579 of old ada_lookup_symbol_list. In !full_search case, don't
7580 search superblocks.
7581 (ada_lookup_symbol_list): Delete arg full_search, all callers
7582 updated. Call ada_lookup_symbol_list_worker.
7583 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
7584 * ada-lang.h (ada_lookup_symbol_list): Update.
7585 * language.h (language_defn): Update comment for
7586 la_iterate_over_symbols.
7587 * linespec.c (iterate_over_file_blocks): New function.
7588 (iterate_over_all_matching_symtabs): Call it.
7589 (lookup_prefix_sym): Ditto.
7590 (get_current_search_block): New function.
7591 (get_search_block): Delete.
7592 (find_label_symbols): Call get_current_search_block.
7593 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
7594 * symtab.c (iterate_over_symbols): Don't search superblocks.
7595
b69b1fb1
YQ
75962013-03-05 Yao Qi <yao@codesourcery.com>
7597
7598 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
7599 parameter VAR's type from "unsigned int" to "int".
7600 * command.h (var_zuinteger_unlimited): Update its comments.
7601 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
7602
3c095f49
CV
76032013-03-05 Corinna Vinschen <vinschen@redhat.de>
7604
7605 * NEWS: Mention new target x86_64-*-cygwin*.
7606
b5b0b0af
CV
76072013-03-05 Corinna Vinschen <vinschen@redhat.de>
7608
7609 * configure.host: Add x86_64-*-cygwin* as host.
7610 * configure.tgt: Add x86_64-*-cygwin* as target.
7611 * config/i386/cygwin64.mh: New file.
7612
f6f99966
JK
76132013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7614
7615 * linespec.c (decode_line_2): Fix duplicate request off by two message.
7616
33f448b1
JK
76172013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7618
7619 * linespec.c (struct linespec_canonical_name): New.
7620 (struct linespec_state): Change canonical_names type to it.
7621 (add_sal_to_sals): Change variable canonical_name to canonical. Change
7622 xrealloc element size. Initialize the different CANONICAL fields.
7623 (canonical_to_fullform): New.
7624 (filter_results): Use it. Add variables canonical, fullform and
7625 cleanup.
7626 (struct decode_line_2_item, decode_line_2_compare_items): New.
7627 (decode_line_2): Remove variables iter and item_names, add variables
7628 items and items_count. Modify the code for these new variables.
7629
feb14725
CV
76302013-03-04 Corinna Vinschen <vinschen@redhat.com>
7631
7632 * coff-pe-read.c (read_pe_exported_syms): Don't return without
7633 calling do_cleanup.
7634
e83b17ba
HZ
76352013-03-04 Luis Machado <lgustavo@codesourcery.com>
7636
7637 * tracepoint.c (build_traceframe_info): Add code for byte order.
7638
a2d13a0d
KB
76392013-03-02 Kevin Buettner <kevinb@redhat.com>
7640
8dddcae8
KB
7641 * v850-tdep.c: (v850e2_register_name): Revise system register
7642 names to match current V850E2M architecture specifications.
7643 Update register number enum comments too.
f5aee5ee 7644
d79e58d8
JW
76452013-03-01 Jiong Wang <jiwang@tilera.com>
7646 Pedro Alves <palves@redhat.com>
7647
7648 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
7649 to END_ADDR.
7650 (tilegx_skip_prologue): Limit prologue analysis to section end.
7651
c4be5165
JK
76522013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7653
7654 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
7655 use it.
7656
e362b510
PA
76572013-03-01 Pedro Alves <palves@redhat.com>
7658
7659 Use gdb_byte for bytes from the program being debugged.
7660
7661 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
7662 Change type of local 'buf' to gdb_byte.
7663 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
7664 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
7665 * cris-tdep.c (cris_sigcontext_addr)
7666 (cris_sigtramp_frame_unwind_cache): Likewise.
7667 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
7668 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
7669 Likewise.
7670 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
7671 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
7672 (hppa32_hpux_search_dummy_call_sequence)
7673 (hppa_hpux_supply_save_state): Likewise.
7674 * hppa-linux-tdep.c (insns_match_pattern)
7675 (hppa_linux_find_global_pointer): Likewise.
7676 * hppa-tdep.c (hppa_in_function_epilogue_p)
7677 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
7678 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
7679 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
7680 (i386fbsd_collect_uthread): Likewise.
7681 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
7682 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
7683 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
7684 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
7685 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
7686 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
7687 (ia64_libunwind_frame_prev_register)
7688 (ia64_libunwind_sigtramp_frame_this_id)
7689 (ia64_find_global_pointer_from_dynamic_section)
7690 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
7691 (ia64_unwind_pc): Likewise.
7692 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
7693 * m68hc11-tdep.c (m68hc11_push_dummy_call)
7694 (m68hc11_extract_return_value): Likewise.
7695 * m68klinux-nat.c (fetch_register, store_register): Likewise.
7696 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
7697 (mep_get_insn, mep_push_dummy_call): Likewise.
7698 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
7699 (mips_linux_in_dynsym_stub): Likewise.
7700 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
7701 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
7702 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
7703 to gdb_byte.
7704 * remote-mips.c (mips_set_register): Likewise.
7705 * remote-sim.c (gdbsim_fetch_register): Likewise.
7706 * score-tdep.c (score7_fetch_inst): Change type of parameter
7707 'memblock' and local 'buf' to gdb_byte.
7708 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
7709 Change type of local 'buf' to gdb_byte. Adjust.
7710 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
7711 to gdb_byte**.
7712 (score7_analyze_prologue): Change type of 'memblock' and
7713 'memblock_ptr' locals to gdb_byte*.
7714 * sh64-tdep.c (sh64_extract_return_value)
7715 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
7716 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
7717 * solib-pa64.c (pa64_solib_create_inferior_hook)
7718 (pa64_open_symbol_file_object): Remove local 'buf'.
7719 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
7720 (som_open_symbol_file_object): Likewise.
7721 * solib-spu.c (spu_current_sos): Likewise.
7722 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7723 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
7724 (spu_store_registers): Likewise.
7725 * target.c (debug_print_register): Likewise.
7726 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
7727 * xstormy16-tdep.c (xstormy16_store_return_value)
7728 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
7729 (xstormy16_find_jmp_table_entry): Likewise.
7730
75cc61ca 77312013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
7732
7733 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
7734 (tilegx_gdbarch_init): Install it.
7735
ddb08e9c
TT
77362013-02-28 Tom Tromey <tromey@redhat.com>
7737
7738 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
7739 PyLong_Check.
7740
62d7fb51
DE
77412013-02-28 Doug Evans <dje@google.com>
7742
7743 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
7744 * python/python.c (gdbpy_find_pc_line): Ditto.
7745
c4a9e8b4
TT
77462013-02-28 Tom Tromey <tromey@redhat.com>
7747
7748 * contrib/excheck.py: New file.
7749 * contrib/exsummary.py: New file.
7750 * contrib/gcc-with-excheck: New file.
7751
7f6a5dde
TT
77522013-02-28 Tom Tromey <tromey@redhat.com>
7753
7754 * python/python.c (gdbpy_print_stack): Call begin_line and
7755 fprintf_filtered inside TRY_CATCH.
7756
9e974e55
TT
77572013-02-28 Tom Tromey <tromey@redhat.com>
7758
7759 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
7760 inside TRY_CATCH.
7761
dd5fa3e7
TT
77622013-02-28 Tom Tromey <tromey@redhat.com>
7763
7764 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
7765 frame_object_to_frame_info inside TRY_CATCH.
7766
86a3263f
TT
77672013-02-28 Tom Tromey <tromey@redhat.com>
7768
7769 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
7770 TRY_CATCH.
7771
81b52a3a
TT
77722013-02-28 Tom Tromey <tromey@redhat.com>
7773
7774 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
7775
d50a0ce2
CV
77762013-02-27 Corinna Vinschen <vinschen@redhat.com>
7777
7778 * windows-nat.c: Throughout, fix format strings and casts of
7779 printf-like functions to avoid type related warnings on all
7780 platforms.
7781 (handle_output_debug_string): Fetch context information address
7782 from debug string using string_to_core_addr.
7783
e1f58301
JW
77842013-02-27 Jiong Wang <jiwang@tilera.com>
7785
7786 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
7787 * regformats/reg-tilegx32.dat: New.
7788
4fcd89fc
JW
77892013-02-27 Jiong Wang <jiwang@tilera.com>
7790
7791 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
7792
748d24e6
JW
77932013-02-27 Jiong Wang <jiwang@tilera.com>
7794
7795 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
7796
6c8e944d
YQ
77972013-02-27 Yao Qi <yao@codesourcery.com>
7798 Pedro Alves <palves@redhat.com>
7799
7800 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
7801 pc/tp/range/outside, look for the next trace frame instead of
7802 always starting from frame 0.
6c8e944d 7803
acd7db30
AG
78042013-02-26 Anthony Green <green@moxielogic.com>
7805
7806 * configure.tgt: Add support for moxie-*-rtems* target.
7807
025e6dce
PA
78082013-02-25 Pedro Alves <palves@redhat.com>
7809
7810 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
7811 warning text.
7812
ca9c94ef
MR
78132013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7814
7815 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
7816 if $fp is used as the virtual frame pointer.
7817
24c274a1
AM
78182013-02-23 Alan Modra <amodra@gmail.com>
7819
7820 * elfread.c (elf_symtab_read): Do not use udata.p here to find
7821 symbol size.
7822 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
7823 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
7824 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
7825 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
7826
bfada189
JK
78272013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7828
7829 Code cleanup.
7830 * elfread.c (build_id_bfd_get): Make the return type const.
7831 (build_id_verify): Make the check parameter const.
7832 (build_id_to_debug_filename): Make the build_id parameter and variable
7833 data const.
7834 (find_separate_debug_file_by_buildid): Make the variable build_id const.
7835
c0355132
AM
78362013-02-21 Alan Modra <amodra@gmail.com>
7837
7838 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
7839
9f44fbc0
SCR
78402013-02-20 Siva Chandra Reddy <sivachandra@google.com>
7841
7842 Add a new method 'disassemble' to gdb.Architecture class.
7843 * python/py-arch.c (archpy_disassmble): Implementation of the
7844 new method gdb.Architecture.disassemble.
7845 (arch_object_methods): Add entry for the new method.
7846
b74ea3eb
JW
78472013-02-20 Jiong Wang <jiwang@tilera.com>
7848
7849 * MAINTAINERS (Write After Approval): Add myself to the list.
7850
61a672f1
PA
78512013-02-19 Pedro Alves <palves@redhat.com>
7852
7853 Garbage collect 'struct monitor_ops'::load_routine.
7854
7855 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
7856 * monitor.c (monitor_load): No longer call
7857 current_monitor->load_routine.
7858 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
7859 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
7860 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
7861
40e397df
PA
78622013-02-19 Pedro Alves <palves@redhat.com>
7863
7864 PR gdb/15161
7865
7866 Harmonize with generic_load.
7867
7868 * monitor.c: Include "readline/readline.h".
7869 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
7870 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
7871 long/strtol for the 'load_offset' local. Error out if no argument
7872 is given or if too many arguments are given. Tilde expand the
7873 passed in file name.
7874
f698ca8e
KT
78752013-02-19 Kai Tietz <ktietz@redhat.com>
7876
7877 PR gdb/15161
7878 * symfile.c (load_section_data): Change type of load_offset
7879 to CORE_ADDR.
7880 (generic_load): User strtoulst instead of strtoul for conversion
7881 of load_offset.
7882
3361b059
WL
78832013-02-19 Jiong Wang <jiwang@tilera.com>
7884
7885 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
7886 for return address, "lr" register, saved on stack.
7887 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
7888 after we invoke tilegx_analyze_prologue.
7889
3e9d5130
WL
78902013-02-19 Jiong Wang <jiwang@tilera.com>
7891
bb1bcd86
WL
7892 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
7893
3361b059 78942013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 7895
b74ea3eb 7896 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 7897
4aaf2503
WL
78982013-02-19 Jiong Wang <jiwang@tilera.com>
7899
b74ea3eb 7900 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
7901 (tilegx_write_pc): New function.
7902 (tilegx_cannot_reference_register): Return zero if REGNO
7903 is TILEGX_FAULTNUM_REGNUM.
7904 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
7905 (tilegx_register_name): Add handling of "faultnum" register.
7906 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
7907 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
7908 handling of TILEGX_FAULTNUM_REGNUM.
7909 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
7910
bc23a956
WL
79112013-02-19 Jiong Wang <jiwang@tilera.com>
7912
7913 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 7914 should be aligned to 64bit.
bc23a956 7915
42f45f1a
KT
79162013-02-19 Kai Tietz <ktietz@redhat.com>
7917
7918 * windows-nat.c (windows_xfer_memory): Fix debug-output
7919 for LLP64.
7920
6ce4c112
LL
79212013-02-19 Lei Liu <lei.liu2@windriver.com>
7922
7923 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
7924 Don't check DSP register number if HAVE_DSP is not set.
7925
30e8ee25
AM
79262013-02-19 Alan Modra <amodra@gmail.com>
7927
7928 * elfread.c (struct build_id): Delete. Use struct elf_build_id
7929 throughout file instead.
7930 (build_id_bfd_get): Update to use new elf_tdata build_id field.
7931 Don't xmalloc return value.
7932 (build_id_verify): Similarly. Don't xfree.
7933 (build_id_to_debug_filename): Update.
7934 (find_separate_debug_file_by_buildid): Update, don't xfree.
7935
4c9ad8c2
TT
79362013-02-18 Tom Tromey <tromey@redhat.com>
7937
7938 PR gdb/15102:
7939 * dwarf2read.c (read_subrange_type): Use result of
7940 'check_typedef'.
7941
983dc440
YQ
79422013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
7943
7944 * frame.c: Remove one extra white space after #include
7945 directive.
7946
7fb2b84a
JK
79472013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7948
7949 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
7950
edceb2a9
JK
79512013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7952
7953 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
7954 and dir commands into an if block.
7955
e81b7af8
TT
79562013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
7957
7958 * python/py-breakpoint (struct pybp_code): Use int instead of
7959 enum type_code.
7960
f5911ea1
HAQ
79612013-02-15 Pedro Alves <pedro@codesourcery.com>
7962 Hafiz Abid Qadeer <abidh@codesourcery.com>
7963
7964 * NEWS: Mention new field "trace-file".
7965 * tracepoint.c (trace_status_mi): Output "trace-file" field.
7966 (tfile_open): Record the trace file's filename in the trace
7967 status.
7968 (tfile_files_info): Mention the name of the trace file.
7969 Check the "filename" field explicitely.
7970 (trace_status_command): Explicitely check "filename" field.
7971 (trace_find_command): Ditto.
7972 (trace_find_pc_command): Ditto.
7973 (trace_find_tracepoint_command): Ditto.
7974 (trace_find_line_command): Ditto.
7975 (trace_find_range_command): Ditto.
7976 (trace_find_outside_command): Ditto.
7977 * tracepoint.h (struct trace_status) <from_file>: Rename it
7978 to "filename" and make it hold the trace file's filename
7979 instead of a boolean.
7980 * remote.c (remote_get_trace_status): Initialize "filename"
7981 field with NULL instead of 0.
7982
796cb314
YQ
79832013-02-15 Yao Qi <yao@codesourcery.com>
7984
7985 * remote.c: Fix a typo.
7986
42e79b1d
PM
79872013-02-14 Pierre Muller <muller@sourceware.org>
7988
7989 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
7990
baea0dae
PA
79912013-02-14 Pedro Alves <palves@redhat.com>
7992
7993 * utils.c (savestring): Don't #undef it. Move function to
7994 common/common-utils.c.
7995 * common/common-utils.c: Include gdb_string.h.
7996 (savestring): Move here from utils.c.
7997 * common/common-utils.h (savestring): Declare.
7998
57c3b6ed
PA
79992013-02-14 Pedro Alves <palves@redhat.com>
8000
8001 * utils.c (savestring): Rename parameter 'size' to 'len'.
8002
d6c44983
YZ
80032013-02-14 Pedro Alves <palves@redhat.com>
8004 Yufeng Zhang <yufeng.zhang@arm.com>
8005
8006 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
8007 (aarch64_inferior_data, struct aarch64_inferior_data):
8008 Delete.
8009 (struct aarch64_process_info): New.
8010 (aarch64_process_list): New global.
8011 (aarch64_find_process_pid, aarch64_add_process)
8012 (aarch64_process_info_get): New functions.
8013 (aarch64_inferior_data_get): Delete.
8014 (aarch64_process_info_get): New function.
8015 (aarch64_forget_process): New function.
8016 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
8017 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
8018 aarch64_get_debug_reg_state.
8019 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
8020 instead of linux_nat_iterate_watchpoint_lwps.
8021 (aarch64_linux_new_fork): New function.
8022 (aarch64_linux_child_post_startup_inferior): Use
8023 aarch64_forget_process instead of aarch64_init_debug_reg_state.
8024 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
8025 (aarch64_linux_remove_hw_breakpoint)
8026 (aarch64_handle_aligned_watchpoint)
8027 (aarch64_handle_unaligned_watchpoint)
8028 (aarch64_linux_insert_watchpoint)
8029 (aarch64_linux_remove_watchpoint)
8030 (aarch64_linux_stopped_data_address): Adjust to pass the current
8031 process id to aarch64_debug_reg_state.
8032 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
8033 linux_nat_new_fork hook, and aarch64_forget_process as
8034 linux_nat_forget_process hook; remove the call to
8035 register_inferior_data_with_cleanup.
8036
4819b3f8
PA
80372013-02-14 Pedro Alves <palves@redhat.com>
8038
8039 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
8040 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
8041 lval_memory.
8042
1773c82c
HAQ
80432013-02-14 Pedro Alves <pedro@codesourcery.com>
8044 Hafiz Abid Qadeer <abidh@codesourcery.com>
8045
8046 * tracepoint.h (validate_trace_state_variable_name): Declare.
8047 * tracepoint.c (validate_trace_state_variable_name): New.
8048 (trace_variable_command): Parse the trace state variable's name
8049 without using parse_expression. Do several validations.
8050 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
8051 trace state variable's name with parse_expression. Validate it.
8052
53778a97
YQ
80532013-02-14 Yao Qi <yao@codesourcery.com>
8054
8055 * infcmd.c (breakpoint_proceeded): Remove it.
8056
7b3ae3a6
YQ
80572013-02-14 Yao Qi <yao@codesourcery.com>
8058
8059 * tracepoint.c (end_actions_pseudocommand): Make it static.
8060 (while_stepping_pseudocommand): Likewise.
8061 * tracepoint.h (end_actions_pseudocommand): Remove the
8062 declaration.
8063 (while_stepping_pseudocommand): Likewise.
8064
64580925
YQ
80652013-02-14 Yao Qi <yao@codesourcery.com>
8066
8067 * cli/cli-decode.c (help_cmd): Remove the declaration of
8068 "cmdlist".
8069 (help_all): Likewise.
8070
26cb8b7c
PA
80712013-02-13 Pedro Alves <palves@redhat.com>
8072
8073 * amd64-linux-nat.c (update_debug_registers_callback):
8074 Update comment.
8075 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8076 iterate_over_lwps.
8077 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
8078 i386_debug_reg_state.
8079 (amd64_linux_new_fork): New function.
8080 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
8081 linux_nat_new_fork hook, and i386_forget_process as
8082 linux_nat_forget_process hook.
8083 * i386-linux-nat.c (update_debug_registers_callback):
8084 Update comment.
a8256ea1 8085 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
8086 iterate_over_lwps.
8087 (i386_linux_prepare_to_resume): Pass the lwp's pid to
8088 i386_debug_reg_state.
8089 (i386_linux_new_fork): New function.
8090 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
8091 linux_nat_new_fork hook, and i386_forget_process as
8092 linux_nat_forget_process hook.
8093 * i386-nat.c (i386_init_dregs): Delete.
8094 (i386_inferior_data, struct i386_inferior_data):
8095 Delete.
8096 (struct i386_process_info): New.
8097 (i386_process_list): New global.
8098 (i386_find_process_pid, i386_add_process, i386_process_info_get):
8099 New functions.
8100 (i386_inferior_data_get): Delete.
8101 (i386_process_info_get): New function.
8102 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
8103 (i386_forget_process): New function.
8104 (i386_cleanup_dregs): Rewrite.
8105 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
8106 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
8107 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8108 (i386_remove_hw_breakpoint): Adjust to pass the current process id
8109 to i386_debug_reg_state.
8110 (i386_use_watchpoints): Don't register inferior data.
8111 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
8112 adjust comment.
8113 (i386_forget_process): Declare.
8114 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
8115 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
8116 New static globals.
8117 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
8118 (add_initial_lwp): New, factored out from ...
8119 (add_lwp): ... this. Don't check the number of lwps before
8120 calling linux_nat_new_thread.
8121 (linux_nat_iterate_watchpoint_lwps): Delete.
8122 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
8123 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
8124 forks and vforks.
8125 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
8126 initial lwp.
8127 (linux_nat_kill, linux_nat_mourn_inferior): Call
8128 linux_nat_forget_process.
8129 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8130 (linux_nat_forget_process): New functions.
8131 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
8132 type.
8133 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
8134 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
8135 types.
8136 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8137 (linux_nat_forget_process): New declarations.
8138
8139 * amd64fbsd-nat.c (super_mourn_inferior): New global.
8140 (amd64fbsd_mourn_inferior): New function.
8141 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
8142 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
8143
5befea72
MS
81442013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8145
55015247
YQ
8146 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
8147 Adding _().
5befea72 8148
1d3ffd6b
MS
81492013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8150
8151 * aarch64-linux-nat.c (debug_reg_change_callback)
8152 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
8153 %s and phex().
8154
6eb04473
MS
81552013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8156
8157 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
8158 with LONGEST.
8159
a016fc87
HAQ
81602013-02-13 Pedro Alves <palves@redhat.com>
8161 Hafiz Abid Qadeer <abidh@codesourcery.com>
8162
8163 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
8164
e234dfaf
TT
81652013-02-12 Tom Tromey <tromey@redhat.com>
8166
8167 PR symtab/11464:
8168 * c-exp.y (lex_one_token): Initialize other fields of yylval on
8169 NAME return.
8170 (classify_inner_name): Remove 'first_name' argument, add
8171 'context'. Remove unused variable.
8172 (yylex): Explicitly maintain the context type. Exit loop earlier
8173 if NAME result is seen.
8174
0b1afbb3
PA
81752013-02-12 Pedro Alves <palves@redhat.com>
8176
8177 * amd64-darwin-tdep.c: Add (C) after Copyright.
8178 * cli/cli-cmds.h: Ditto.
8179 * cli/cli-decode.c: Ditto.
8180 * cli/cli-decode.h: Ditto.
8181 * cli/cli-dump.c: Ditto.
8182 * cli/cli-dump.h: Ditto.
8183 * cli/cli-interp.c: Ditto.
8184 * cli/cli-logging.c: Ditto.
8185 * cli/cli-script.c: Ditto.
8186 * cli/cli-script.h: Ditto.
8187 * cli/cli-setshow.c: Ditto.
8188 * cli/cli-setshow.h: Ditto.
8189 * cli/cli-utils.c: Ditto.
8190 * cli/cli-utils.h: Ditto.
8191 * config/alpha/nm-osf3.h: Ditto.
8192 * config/djgpp/djconfig.sh: Ditto.
8193 * config/i386/nm-fbsd.h: Ditto.
8194 * config/i386/nm-i386gnu.h: Ditto.
8195 * config/nm-linux.h: Ditto.
8196 * config/nm-nto.h: Ditto.
8197 * config/rs6000/nm-rs6000.h: Ditto.
8198 * config/sparc/nm-sol2.h: Ditto.
8199 * darwin-nat-info.c: Ditto.
8200 * dfp.c: Ditto.
8201 * dfp.h: Ditto.
8202 * gdb-demangle.h: Ditto.
8203 * i386-darwin-nat.c: Ditto.
8204 * i386-darwin-tdep.c: Ditto.
8205 * linux-fork.h: Ditto.
8206 * m32c-tdep.c: Ditto.
8207 * microblaze-linux-tdep.c: Ditto.
8208 * microblaze-rom.c: Ditto.
8209 * microblaze-tdep.c: Ditto.
8210 * microblaze-tdep.h: Ditto.
8211 * mips-linux-tdep.h: Ditto.
8212 * ppc-ravenscar-thread.c: Ditto.
8213 * ppc-ravenscar-thread.h: Ditto.
8214 * prologue-value.c: Ditto.
8215 * prologue-value.h: Ditto.
8216 * ravenscar-thread.c: Ditto.
8217 * ravenscar-thread.h: Ditto.
8218 * sparc-ravenscar-thread.c: Ditto.
8219 * sparc-ravenscar-thread.h: Ditto.
8220 * tilegx-linux-tdep.c: Ditto.
8221 * unwind_stop_reasons.def: Ditto.
8222 * windows-nat.h: Ditto.
8223 * xtensa-linux-tdep.c: Ditto.
8224 * xtensa-xtregs.c: Ditto.
8225 * regformats/regdat.sh: Ditto.
8226 * regformats/regdef.h: Ditto.
8227
6c01dd94
PA
82282013-02-12 Pedro Alves <palves@redhat.com>
8229
8230 * break-catch-sig.c: Update copyright years.
8231
b65a2bd9
SCR
82322013-02-11 Siva Chandra Reddy <sivachandra@google.com>
8233
8234 Add support for a destructor for ui_out data and use it to
8235 provide a ui_out destructor.
8236 * ui-out.h: Declare the new ui_out destructor.
8237 (ui_out_impl): Add a field for data destructor in ui_out_impl.
8238 * ui-out.c (default_data_destroy): Add a default data destructor
8239 which does nothing.
8240 (default_ui_out_impl): Set the new data_destroy field to
8241 default_data_destroy
8242 (uo_data_destroy): Local function which invokes the data
8243 destructor if present.
8244 (clear_table): Local function which clears the table data of a
8245 ui_out object.
8246 (ui_out_destroy): Public function which frees a ui_out object.
8247 (ui_out_table_end): Use the new clear_table function.
8248 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
8249 NULL.
8250 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
8251 to NULL.
8252
c2792f5a
DE
82532013-02-11 Doug Evans <dje@google.com>
8254
8255 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
8256 (printf_decfloat): New function. Broken out from ui_printf.
8257 Remove unnecessary code to shift the entire format string down.
8258 (printf_pointer): New function.
8259 (ui_printf): Code to print C strings, wide C strings, decfloats,
8260 and pointers moved to separate functions.
8261
d9e98382
SDJ
82622013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
8263
8264 * valops.c (value_assign): Handling bitfield offset in
8265 `lval_internalvar_component' case.
8266
4ff3ce77
DE
82672013-02-08 Doug Evans <dje@google.com>
8268
8269 * common/format.c (parse_format_string): Fix whitespace.
8270
901900c4
MGD
82712013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8272
8273 * stack.c (return_command): Work around uninitialized variable
8274 warning.
8275
b5dbc8d4
YZ
82762013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
8277
8278 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
8279 number of the registers from 36 to 34.
8280
51d66578
MS
82812013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8282
8283 * NEWS: Mention new AArch64 native and target support.
8284
176b1c95
MS
82852013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8286
8287 * MAINTAINERS (Write After Approval): Add myself.
8288
9d19df75
MS
82892013-02-08 Jim MacArthur <jim.macarthur@arm.com>
8290 Marcus Shawcroft <marcus.shawcroft@arm.com>
8291 Nigel Stephens <nigel.stephens@arm.com>
8292 Yufeng Zhang <yufeng.zhang@arm.com>
8293
8294 * aarch64-linux-nat.c: New file.
8295 * config/aarch64/linux.mh: New file.
8296 * configure.host: Add AArch64.
8297 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
8298
7e1e0340
DE
82992013-02-07 Doug Evans <dje@google.com>
8300
8301 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
8302 disassemble command.
8303
45e25a36
MS
83042013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
8305
8306 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
8307 set_gdbarch_fetch_tls_load_module_address.
8308
bbfdfe1c
DM
83092013-02-06 David S. Miller <davem@davemloft.net>
8310
8311 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
8312 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8313 * value.c (struct_return_convention): New function.
8314 (using_struct_return): Implement in terms of struct_return_convention.
8315 * value.h (struct_return_convention): Declare.
8316 * stack.c (return_command): Allow successful overriding of the return
8317 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8318
bc9abe4a
TT
83192013-02-06 Tom Tromey <tromey@redhat.com>
8320
8321 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
8322 outside of TRY_CATCH.
8323
134a2066
YQ
83242013-02-06 Yao Qi <yao@codesourcery.com>
8325
8326 * mi/mi-interp.c: Include "tracepoint.h".
8327 (mi_tsv_modified): Declare.
8328 (mi_tsv_created, mi_tsv_deleted): Update declaration.
8329 (mi_interpreter_init): Call observer_attach_tsv_modified.
8330 (mi_tsv_modified): New.
8331 (mi_tsv_created, mi_tsv_deleted): Update.
8332 * tracepoint.c (trace_variable_command): Call
8333 observer_notify_tsv_modified if the initial value of tsv is
8334 changed.
8335 (delete_trace_state_variable): Call
8336 observer_notify_tsv_deleted earlier.
8337 (trace_variable_command): Caller update.
8338 (create_tsv_from_upload): Likewise.
8339 * observer.sh: Declare "struct trace_state_variable".
8340
8341 * NEWS: Mention the new MI notification "=tsv-modified".
8342
59be2b6a
DE
83432013-02-05 Doug Evans <dje@google.com>
8344
8345 * completer.c (location_completer): Fix typo in comment.
8346
d30113d4
JK
83472013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8348
8349 * breakpoint.c (add_location_to_breakpoint): Insert the location with
8350 ADDRESS sorted.
8351
14ac654f
MS
83522013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8353
8354 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
8355 Refactor if statement to avoid trailing || operator.
8356
543bf33d
AT
83572013-02-05 Andreas Tobler <andreast@fgznet.ch>
8358
8359 * NEWS: Add PowerPC FreeBSD as a new native configuration.
8360
dc18f110
AT
83612013-02-04 Andreas Tobler <andreast@fgznet.ch>
8362
8363 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
8364 * configure.host: Add powerpc*-*-freebsd* target.
8365 * configure.tgt: Add target info for powerpc*-*-freebsd*.
8366 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
8367 * config/powerpc/fbsd.mh: New file.
8368
b3ac9c77
SDJ
83692013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
8370 Denys Vlasenko <dvlasenk@redhat.com>
8371 Pedro Alves <palves@redhat.com>
8372
8373 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
8374 (struct elf_internal_linux_prpsinfo): Forward declare.
8375 * gdbarch.h, gdbarch.c: Regenerate.
8376 * linux-tdep.c: Include `cli/cli-utils.h'.
8377 (linux_fill_prpsinfo): New function.
8378 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
8379 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
8380 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
8381 depending on gdbarch pointer bitness.
8382 * ppc-linux-tdep.c: Include elf-bfd.h.
8383 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
8384 on 32-bit.
8385
176eb98c
MS
83862013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8387 Marcus Shawcroft <marcus.shawcroft@arm.com>
8388 Nigel Stephens <nigel.stephens@arm.com>
8389 Yufeng Zhang <yufeng.zhang@arm.com>
8390
8391 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
8392
cf0dbd6f
MS
83932013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8394 Marcus Shawcroft <marcus.shawcroft@arm.com>
8395 Nigel Stephens <nigel.stephens@arm.com>
8396 Yufeng Zhang <yufeng.zhang@arm.com>
8397
8398 * aarch64-newlib-tdep.c: New file.
8399 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
8400 aarch64*-*-elf.
8401 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
8402 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
8403 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
8404 * osabi.c (gdb_osabi_names): Add "Newlib".
8405
1ae3db19
MS
84062013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8407 Marcus Shawcroft <marcus.shawcroft@arm.com>
8408 Nigel Stephens <nigel.stephens@arm.com>
8409 Yufeng Zhang <yufeng.zhang@arm.com>
8410
8411 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
8412 (ALLDEPFILES): Add aarch64-linux-tdep.c.
8413 * aarch64-linux-tdep.c: New file.
8414 * aarch64-linux-tdep.h: New file.
8415 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
8416 * configure.tgt: Add aarch64-none-linux-gnu.
8417
07b287a0
MS
84182013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8419 Marcus Shawcroft <marcus.shawcroft@arm.com>
8420 Nigel Stephens <nigel.stephens@arm.com>
8421 Yufeng Zhang <yufeng.zhang@arm.com>
8422
8423 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
8424 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
8425 (ALLDEPFILES): Add aarch64-tdep.c.
8426 * aarch64-tdep.c: New file.
8427 * aarch64-tdep.h: New file.
8428 * configure.tgt: Add AArch64.
8429 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
8430 (aarch64-expedite): New definition.
8431 * features/aarch64-core.xml: New file.
8432 * features/aarch64-fpu.xml: New file.
8433 * features/aarch64-without-fpu.c: New file (generated).
8434 * features/aarch64-without-fpu.xml: New file.
8435 * features/aarch64.c: New file (generated).
8436 * features/aarch64.xml: New file.
8437 * regformats/aarch64-without-fpu.dat: New file (generated).
8438 * regformats/aarch64.dat: New file (generated).
8439
0f1b18ab
JK
84402013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8441
8442 * contrib/expect-read1.c: New file.
8443 * contrib/expect-read1.sh: New file.
8444
233d95b5
JK
84452013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8446
8447 * dwarf2read.c (file_file_name): New function with code from
8448 file_full_name.
8449 (file_full_name): Move most of the code to file_file_name.
8450 (macro_start_file): Rename variable full_name to file_name and use
8451 file_file_name for it. Add comp_dir parameter to new_macro_table.
8452 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
8453 macro_source_file->filename access by macro_source_fullname call.
8454 * macroscope.c (_initialize_macroscope): Update the new_macro_table
8455 caller.
8456 * macrotab.c (struct macro_table): New field comp_dir.
8457 (macro_include): New variables link_fullname and source_fullname.
8458 Replace any macro_source_file->filename access by macro_source_fullname
8459 call.
8460 (macro_lookup_inclusion): Remove the partial filenames checking code.
8461 (check_for_redefinition): New variables source_fullname and
8462 found_key_fullname. Replace any macro_source_file->filename access by
8463 macro_source_fullname call.
8464 (macro_undef): New variables source_fullname and key_fullname. Replace
8465 any macro_source_file->filename access by macro_source_fullname call.
8466 (macro_lookup_definition): New variables retval and source_fullname.
8467 Replace any macro_source_file->filename access by macro_source_fullname
8468 call.
8469 (foreach_macro): New variable key_fullname. Replace any
8470 macro_source_file->filename access by macro_source_fullname call.
8471 (foreach_macro_in_scope): New variable datum_fullname. Replace any
8472 macro_source_file->filename access by macro_source_fullname call.
8473 (new_macro_table): Add parameter comp_dir. Initialize T with it.
8474 (macro_source_fullname): New function.
8475 * macrotab.h (struct macro_source_file): Extent the filename field
8476 comment.
8477 (new_macro_table): New parameter comp_dir, add a comment for it.
8478 (macro_source_fullname): new declaration.
8479
da235a7c
JK
84802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8481
8482 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
8483 this_real_name to outer block. Use it also for
8484 compare_filenames_for_search.
8485 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
8486 with dw2_get_real_path for file_matcher, considering also
8487 BASENAMES_MAY_DIFFER.
8488 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
8489
fbd9ab74
JK
84902013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8491
8492 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
8493 to the file_matcher parameter. Pass 0 to it.
8494 (dwarf2_create_include_psymtab): Copy also DIRNAME.
8495 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
8496 NULL psymtab_to_fullname result.
8497 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
8498 an expected filename instead.
8499 (expand_symtabs_matching_via_partial): Add basenames parameter to the
8500 file_matcher parameter. Call also psymtab_to_fullname, after newly
8501 considering BASENAMES_MAY_DIFFER.
8502 * source.c (rewrite_source_path): Remove static.
8503 * source.h (rewrite_source_path): New declaration.
8504 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
8505 the expand_symtabs_matching field. Comment it.
8506 * symtab.c (file_matches): New function comment. Add parameter
8507 basenames, implement it.
8508 (search_symbols_file_matches): Add basenames parameter. Update the
8509 file_matches caller.
8510 (search_symbols): Match FILES also against symtab_to_fullname.
8511 Optimize it for BASENAMES_MAY_DIFFER.
8512
56d397a3
JK
85132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8514
8515 * source.c (print_source_lines_base): Print for TUI also "fullname".
8516 * tui/tui-data.c (init_content_element): Change tui_locator_element
8517 field to full_name.
8518 * tui/tui-data.h (struct tui_locator_element): Likewise.
8519 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
8520 tui_update_locator_filename calls to tui_update_locator_fullname.
8521 Replace symtab->filename refererence by symtab_to_fullname call.
8522 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
8523 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
8524 field to full_name. Replace symtab->filename refererence by
8525 symtab_to_fullname call.
8526 (tui_show_symtab_source): Rename parameter to fullname. Change
8527 tui_locator_element field to full_name.
8528 * tui/tui-stack.c: Include source.h.
8529 (tui_set_locator_filename): Rename the declaration to ...
8530 (tui_set_locator_fullname): ... here. Rename its parameter to
8531 fullname, updates its comment.
8532 (tui_set_locator_info): Rename its parameter to fullname.
8533 (tui_set_locator_filename): Rename the definition to ...
8534 (tui_set_locator_fullname): ... here. Rename its parameter to
8535 fullname, updates its comment. Change tui_locator_element field to
8536 full_name.
8537 (tui_set_locator_info): Rename its parameter to fullname.
8538 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
8539 (tui_update_locator_filename): Rename to ...
8540 (tui_update_locator_fullname): ... here. Rename callee to
8541 tui_set_locator_fullname.
8542 (tui_show_frame_info): Replace symtab->filename refererence by
8543 symtab_to_fullname call.
8544 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
8545 (tui_update_locator_fullname): ... here.
8546 * tui/tui-winsource.c (tui_display_main): Rename the callee to
8547 tui_update_locator_fullname. Replace symtab->filename refererence by
8548 symtab_to_fullname call.
8549 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
8550 Rename the callee to tui_update_locator_fullname.
8551 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
8552
05cba821
JK
85532013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8554
8555 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
8556 by symtab_to_filename_for_display calls.
8557 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
8558 (clear_command): New variable sal_fullname, initialize it. Replace
8559 compare_filenames_for_search by filename_cmp with sal_fullname.
8560 (say_where, update_static_tracepoint): Replace symtab->filename
8561 refererences by symtab_to_filename_for_display calls.
8562 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
8563 Likewise.
8564 * dwarf2read.c: Include source.h.
8565 (fixup_go_packaging): Replace symtab->filename refererences by
8566 symtab_to_filename_for_display calls.
8567 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
8568 Replace symtab->filename refererences by symtab_to_filename_for_display
8569 calls.
8570 (create_sals_line_offset, convert_linespec_to_sals): New variable
8571 fullname, initialize it, replace symtab->filename reference by the
8572 variable.
8573 * linux-fork.c: Include source.h.
8574 (info_checkpoints_command): Replace symtab->filename refererences by
8575 symtab_to_filename_for_display calls.
8576 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
8577 by symtab_to_filename_for_display calls.
8578 * mdebugread.c: Include source.h.
8579 (psymtab_to_symtab_1): Replace symtab->filename refererences by
8580 symtab_to_filename_for_display calls.
8581 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8582 (mi_cmd_file_list_exec_source_files): Likewise.
8583 * printcmd.c: Include source.h.
8584 (build_address_symbolic): Replace symtab->filename refererences by
8585 symtab_to_filename_for_display calls.
8586 * psymtab.c (partial_map_symtabs_matching_filename)
8587 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
8588 with psymtab_to_fullname.
8589 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
8590 by symtab_to_filename_for_display calls.
8591 (stpy_get_filename): New variable filename, initialize it, use instead
8592 of symtab->filename refererences.
8593 (salpy_str): Make variable filename const char *. Replace
8594 symtab->filename refererences by symtab_to_filename_for_display calls.
8595 * skip.c: Include source.h and filenames.h.
8596 (skip_file_command): Remove const from the symtab variable. Replace
8597 symtab->filename refererences by symtab_to_fullname call.
8598 (function_name_is_marked_for_skip): New variables searched_for_fullname
8599 and fullname. Use them to search also with symtab's fullname.
8600 * source.c (find_source_lines): Replace symtab->filename refererences
8601 by symtab_to_filename_for_display calls.
8602 (print_source_lines_base): New variable filename, use it instead of
8603 symtab->filename. Replace symtab->filename refererences by
8604 symtab_to_filename_for_display calls.
8605 (line_info, forward_search_command): Replace symtab->filename
8606 refererences by symtab_to_filename_for_display calls.
8607 (reverse_search_command): Replace symtab->filename refererences by
8608 symtab_to_filename_for_display calls. New variable filename for it.
8609 * stack.c (frame_info): Likewise.
8610 * symmisc.c: Include source.h.
8611 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
8612 (maintenance_info_symtabs): Replace symtab->filename refererences by
8613 symtab_to_filename_for_display calls.
8614 * symtab.c (iterate_over_some_symtabs): Call
8615 compare_filenames_for_search also with symtab_to_fullname.
8616 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
8617 symtab->filename refererences by symtab_to_filename_for_display calls.
8618 (find_line_symtab): Replace symtab->filename refererences by
8619 symtab_to_filename_for_display calls.
8620 (file_matches): Replace filename_cmp by compare_filenames_for_search.
8621 (print_symbol_info): Make the last parameter const char *. New
8622 variable s_filename. Use it in the function.
8623 (symtab_symbol_info): Make the last_filename variable const char *.
8624 Replace symtab->filename refererences by symtab_to_filename_for_display
8625 calls.
8626 (rbreak_command): New variable fullname. Use it. Replace
8627 symtab->filename refererence by symtab_to_filename_for_display call.
8628 * tracepoint.c (set_traceframe_context, trace_find_line_command)
8629 (print_one_static_tracepoint_marker): Replace symtab->filename
8630 refererences by symtab_to_filename_for_display calls.
8631 * tui/tui-source.c (tui_set_source_content): New variables filename and
8632 s_filename. Replace symtab->filename refererences by this variable.
8633 Replace other symtab->filename refererences by
8634 symtab_to_filename_for_display calls.
8635
1b56eb55
JK
86362013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
8637 Jan Kratochvil <jan.kratochvil@redhat.com>
8638
8639 Add a new variable that controls a way in which filenames are
8640 displayed.
8641 * NEWS (set filename-display): New entry.
8642 * source.c (filename_display_basename, filename_display_relative)
8643 (filename_display_absolute, filename_display_kind_names)
8644 (filename_display_string, show_filename_display_string)
8645 (symtab_to_filename_for_display): New.
8646 (_initialize_source): Added initialization of 'filename-display'
8647 variable.
8648 * source.h (symtab_to_filename_for_display): Added declaration.
8649 * stack.c (print_frame): Added new variable and calling of a new
8650 function and condition with this variable. Changed third argument of
8651 calling of a function.
8652
aa079c93
JK
86532013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8654
8655 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
8656 Rename field reference filename to fullname.
8657 * tui/tui-data.h (struct tui_source_info): Rename field filename to
8658 fullname. New comment for it.
8659 * tui/tui-source.c (tui_set_source_content): Rename field reference
8660 filename to fullname. Initialize field by symtab_to_fullname now.
8661 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
8662 reference filename to fullname. Use symtab_to_fullname during
8663 comparison.
8664
652a8996
JK
86652013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8666
8667 Code cleanup.
8668 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
8669 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
8670 filename to fullname. Rename variable this_name to this_fullname.
8671 Lowercase FILENAME_CMP call.
8672 (dw2_find_symbol_file): New comment for the returned string.
8673 (dwarf2_gdb_index_functions): Rename the function to
8674 dw2_expand_symtabs_with_fullname.
8675 * psymtab.c (read_psymtabs_with_filename): Rename to ...
8676 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
8677 fullname.
8678 (psym_functions): Rename the function to read_psymtabs_with_fullname.
8679 * symfile.h (struct quick_symbol_functions): Rename field
8680 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
8681 parameter filename to fullname. Document returned string meaning for
8682 find_symbol_file.
8683 * symtab.c (find_line_symtab): Rename the called function to
8684 expand_symtabs_with_fullname.
8685
af529f8f
JK
86862013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8687
8688 Code cleanup.
8689 * breakpoint.c (clear_command): Remove variable is_abs, unify the
8690 call of filename_cmp with compare_filenames_for_search.
8691 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
8692 is_abs, unify the call of FILENAME_CMP with
8693 compare_filenames_for_search. New gdb_asserts for real_path and name.
8694 Unify the call of compare_filenames_for_search with FILENAME_CMP.
8695 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8696 * symfile.h (struct quick_symbol_functions): Extend the comment for
8697 map_symtabs_matching_filename.
8698 * symtab.c (compare_filenames_for_search): Remove the function comment
8699 relative path requirement. Handle absolute filenames, with a comment.
8700 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
8701 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
8702 real_path and name. Unify the call of compare_filenames_for_search
8703 with FILENAME_CMP.
8704 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
8705
2f202fde
JK
87062013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8707
8708 Code cleanup.
8709 * breakpoint.c (print_breakpoint_location): Replace bp_location field
8710 source_file references by symtab field references. Remove variables
8711 sal and fullname.
8712 (momentary_breakpoint_from_master, add_location_to_breakpoint):
8713 (clear_command, say_where): Replace bp_location field source_file
8714 references by symtab field references.
8715 (bp_location_dtor): Remove the source_file reference.
8716 (update_static_tracepoint): Replace bp_location field source_file
8717 references by symtab field references.
8718 (breakpoint_free_objfile): New function.
8719 * breakpoint.h (struct bp_location): Extend the comment for line_number.
8720 Replace the field source_file by field symtab, extend its comment.
8721 (breakpoint_free_objfile): New declaration.
8722 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
8723 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
8724 field source_file references by symtab field references.
8725
f5b95b50
JK
87262013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8727
8728 Replace xfullpath calls by gdb_realpath calls.
8729 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
8730 function comment.
8731 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
8732 Remove it from the iterate_over_some_symtabs call.
8733 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
8734 Remove it from the dw2_map_expand_apply calls, remove a block handling
8735 it.
8736 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
8737 Remove it from the iterate_over_some_symtabs call.
8738 (partial_map_symtabs_matching_filename): Remove parameter full_path.
8739 Remove it from the partial_map_expand_apply calls, remove a block
8740 handling it. Drop gdb_realpath call and cleanups from the real_path
8741 handling.
8742 * source.c (openp): Drop the comment part about xfullpath. Replace
8743 xfullpath calls by gdb_realpath calls.
8744 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
8745 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
8746 from method map_symtabs_matching_filename and its comment.
8747 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
8748 gdb_realpath call.
8749 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
8750 remove it also from the function comment, remove a block handling it.
8751 Drop gdb_realpath call and cleanups from the real_path handling.
8752 (iterate_over_symtabs): Drop variable full_path and its use.
8753 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
8754 * utils.c (xfullpath): Remove.
8755 * utils.h (xfullpath): Remove.
8756
d78489bf
AT
87572013-02-01 Andreas Tobler <andreast@fgznet.ch>
8758
8759 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
8760 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
8761 (ALLDEPFILES): Add ppc64-tdep.c.
8762 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
8763 ppc64-tdep.o to gdb_target_obs.
8764 * ppc64-tdep.h: New file.
8765 * ppc64-tdep.c: New file.
8766 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
8767 ppc-linux-tdep.c to here.
8768 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
8769 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
8770 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
8771 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
8772 from ppc-linux-tdep.c to here.
8773 (ppc64_convert_from_func_ptr_addr): Rename from
8774 ppc64_linux_convert_from_func_ptr_addr to
8775 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
8776 here.
8777 * rs6000-tdep.c:
8778 (read_insn): Move from ppc-linux-tdep.c to here.
8779 (insns_match_pattern, insn_d_field, insn_ds_field): Move
8780 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
8781 * ppc-linux-tdep.c: Include ppc64-tdep.h.
8782 Removed above functions.
8783 (ppc_linux_init_abi): Adjust.
8784
8db60374
AR
87852013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
8786
8787 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
8788
f2e5f4ce
AR
87892013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
8790
8791 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
8792
c1f7d745
PA
87932013-02-01 Pedro Alves <palves@redhat.com>
8794
8795 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
8796 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
8797
8a92335b
JK
87982013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8799
8800 * elfread.c (elf_symfile_read): Limit separate debug info additions to
8801 files with no separate debug info.
8802 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
8803 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
8804 only for files with no separate debug info.
8805
8eacb197
TT
88062013-01-31 Tom Tromey <tromey@redhat.com>
8807
8808 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
8809 change type.
8810 (struct jit_program_space_data): Rename from jit_inferior_data.
8811 Update comments.
8812 (get_jit_program_space_data): Rename from get_jit_inferior_data.
8813 Change return type. Attach data to program space.
8814 (jit_program_space_data_cleanup): Rename from
8815 jit_inferior_data_cleanup; change argument type.
8816 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
8817 change type.
8818 (jit_register_code): Update.
8819 (jit_update_inferior_cache): Remove.
8820 (jit_breakpoint_deleted): Get jit data from the location's program
8821 space.
8822 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
8823 'ps_data', change type.
8824 (jit_inferior_init, jit_breakpoint_re_set_internal)
8825 (jit_event_handler): Update.
8826 (free_objfile_data): Get data from objfile's program space.
8827 (_initialize_jit): Update.
8828
f25c0135
TT
88292013-01-31 Tom Tromey <tromey@redhat.com>
8830
8831 PR gdb/13987:
8832 * jit.c (struct jit_inferior_data) <cached_code_address,
8833 jit_breakpoint>: New fields.
8834 (jit_breakpoint_re_set_internal): Fix logging. Only create
8835 breakpoint if cached address has changed.
8836 (jit_update_inferior_cache, jit_breakpoint_deleted): New
8837 functions.
8838 (_initialize_jit): Register breakpoint deleted observer.
8839
974a734b
AR
88402013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8841
8842 * infrun.c (handle_syscall_event): Remove unused gdbarch.
8843 (save_infcall_suspend_state): Ifdef out unused inf.
8844 (restore_infcall_suspend_state): Ifdef out unused inf.
8845 * jit.c (jit_register_code): Remove unused i, b, inf_data.
8846 (jit_frame_sniffer): Remove unused inf_data.
8847
df54f8eb
AR
88482013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8849
8850 * c-exp.y (classify_inner_name): Remove unused type.
8851 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
8852 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
8853 need_escape.
8854 (c_get_string): Remove unused kind.
8855 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
8856
5799c0b9
AR
88572013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8858
8859 * charset.c (intermediate_encoding): Remove unused i.
8860 * completer.c (signal_completer): Remove unused i.
8861 * continuations.c (discard_my_continuations_1): Remove unused
8862 continuation_ptr.
8863 * corelow.c (core_close): Remove unuseD name.
8864 (get_core_siginfo): Remove unused pid.
8865 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
8866 i, cps.
8867 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
8868 (loclist_describe_location): Remove unused first.
8869 * event-top.c (command_line_handler): Remove unused got_eof.
8870 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
8871 (resize_section_table): Remove unused old_value.
8872 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
8873 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
8874 * i386-tdep.c (i386_process_record): Remove unused rex.
8875 * infcmd.c (get_return_value): Remove unused uiout.
8876 * jv-lang.c (type_from_class): Remove unused is_array.
8877 * jv-valprint.c (java_val_print): Remove unused i.
8878 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
8879 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
8880 * m2-typeprint.c (m2_print_type): Remove unused code.
8881 * macroexp.c (get_character_constant): Remove unused body_start.
8882 (macro_stringify): Remove unused result.
8883 * objc-lang.c (find_methods): Remove unused gdbarch.
8884 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
8885 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
8886 * stack.c (print_frame_args): Remove unused summary.
8887 * thread.c (thread_apply_command): Remove unused p.
8888 * valarith.c (value_x_unop): Remove unused mangle_ptr.
8889 * valops.c (search_struct_method): Remove unused skip.
8890 * valprint.c (generic_val_print): Remove unused byte_order.
8891 * varobj.c (varobj_update): Remove unused changed.
8892 * cli/cli-cmds.c (complete_command): Remove unused next_item.
8893 (alias_command): Remove unused c.
8894 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
8895 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
8896 format.
8897 (mi_cmd_data_write_memory): Remove unused word_format.
8898 (mi_cmd_data_write_memory_bytes): Remove unused r.
8899 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
8900 p_start, p_end.
8901 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
8902 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
8903 line_width.
8904
c656bca5
AR
89052013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8906
8907 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
8908 * symtab.c (iterate_over_symtabs): Remove unused s.
8909 (find_pc_sect_symtab): Remove unused pspAce.
8910 (find_pc_sect_line): Remove unused alt_symtab.
8911 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
8912 (completion_list_add_name): Remove unused newsize.
8913
7078baeb
TT
89142013-01-31 Tom Tromey <tromey@redhat.com>
8915
8916 PR c++/14998:
8917 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
8918 TYPE_CODE_FUNC.
8919
c2e8b827
AR
89202013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8921
8922 * target.c (target_read_string): Remove unused origlen.
8923
0e43993a
AR
89242013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8925
8926 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
8927 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
8928 * ax-general.c (ax_print): Remove unused is_float.
8929 * blockframe.c (block_innermost_frame): Remove unused start, end.
8930 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
8931
765a97ab
AR
89322013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8933
8934 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
8935 (svr4_read_so_list): Remove unused lmo.
8936 * solib-target.c (solib_target_relocate_section_addresses): Remove
8937 unused flags.
8938
a99dad3d
TT
89392013-01-30 Tom Tromey <tromey@redhat.com>
8940
8941 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
8942
3bff1ecd
TT
89432013-01-30 Tom Tromey <tromey@redhat.com>
8944
8945 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
8946 * utils.c (gnu_debuglink_crc32): Remove.
8947 * utils.h (gnu_debuglink_crc32): Don't declare.
8948
7d455152
TT
89492013-01-30 Tom Tromey <tromey@redhat.com>
8950
8951 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
8952 (read_structure_type, read_enumeration_type): Remove cast.
8953
abee88f2
TT
89542013-01-30 Tom Tromey <tromey@redhat.com>
8955
8956 * dwarf2read.c (read_namespace_type): Remove cast.
8957 (read_typedef): Likewise.
8958
8d9878a4
TT
89592013-01-29 Tom Tromey <tromey@redhat.com>
8960
8961 * dwarf2read.c (free_dwo_file): Remove assert.
8962
a543d2a9
TT
89632013-01-29 Tom Tromey <tromey@redhat.com>
8964
8965 * value.c (deprecated_set_value_modifiable): Remove.
8966 * value.h (deprecated_set_value_modifiable): Remove.
8967
bed911e5
DE
89682013-01-28 Doug Evans <dje@google.com>
8969
8970 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
8971 to addresses from dwo files.
8972
28c64fc2
SCR
89732013-01-25 Siva Chandra Reddy <sivachandra@google.com>
8974
8975 * valops.c (find_overload_match): Remove unused argument 'lax'.
8976 * value.h: Remove unused argument 'lax' from the declaration of
8977 find_overload_match.
8978 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
8979 to find_overload_match.
8980 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
8981 argument to find_overload_match.
8982
4d4ec4e5
TT
89832013-01-25 Tom Tromey <tromey@redhat.com>
8984
8985 * dwarf2read.c (processing_has_namespace_info): Remove.
8986 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
8987 (process_die, read_func_scope, dwarf2_start_symtab)
8988 (new_symbol_full): Update.
8989
195a3f6c
TT
89902013-01-25 Tom Tromey <tromey@redhat.com>
8991
8992 * cp-namespace.c (cp_set_block_scope): Remove.
8993 * cp-support.h (cp_set_block_scope): Remove.
8994 * dbxread.c: Include block.h.
8995 (cp_set_block_scope): New function.
8996 (process_one_symbol): Update.
8997 * dwarf2read.c (read_func_scope): Use block_set_scope.
8998
8ba0730a
PA
89992013-01-25 Pedro Alves <palves@redhat.com>
9000
9001 * remote.c (add_current_inferior_and_thread): Tweak comment.
9002
12aaed36
TT
90032013-01-25 Tom Tromey <tromey@redhat.com>
9004
9005 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
9006 (cp_add_using_directive): Add 'copy_names' argument.
9007 * cp-support.h (cp_add_using_directive): Update.
9008 (struct using_direct) <import_src, import_dest, alias,
9009 declaration>: Now const.
9010 * dwarf2read.c (read_import_statement): Use obconcat.
9011 Don't copy names passed to cp_add_using_directive.
9012
7fc75ca7
TT
90132013-01-25 Tom Tromey <tromey@redhat.com>
9014
9015 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
9016
3405876a
PA
90172013-01-25 Pedro Alves <palves@redhat.com>
9018
9019 * remote.c (stop_reply_extract_thread): New.
9020 (add_current_inferior_and_thread): New parameter 'wait_status'.
9021 Handle it.
9022 (remote_start_remote): Pass wait status to
9023 add_current_inferior_and_thread.
9024 (extended_remote_run): Update comment.
9025 (extended_remote_create_inferior_1): Pass wait status to
9026 add_current_inferior_and_thread.
9027
8954db33
AB
90282013-01-25 Andrew Burgess <aburgess@broadcom.com>
9029 Ulrich Weigand <uweigand@de.ibm.com>
9030
9031 * valarith.c (value_vector_widen): New function for replicating a
9032 scalar into a vector.
9033 (value_binop): Use value_vector_widen to widen scalar to vector
9034 rather than casting, this better matches gcc C behaviour.
9035 * valops.c (value_casst): Update logic for casting between vector
9036 types, and for casting from scalar to vector, try to match gcc C
9037 behaviour.
9038 * value.h (value_vector_widen): Declare.
9039 * opencl-lang.c (opencl_value_cast): New opencl specific casting
9040 function, handle special case for casting scalar to vector.
9041 (opencl_relop): Use opencl_value_cast.
9042 (evaluate_subexp_opencl): Use opencl_value_cast instead of
9043 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
9044 in order to use opencl_value_cast.
9045
843b20dc
YQ
90462013-01-25 Yao Qi <yao@codesourcery.com>
9047
9048 * event-loop.c: Include "queue.h".
9049 (gdb_event_p): New typedef.
9050 (DECLARE_QUEUE_P): Use.
9051 (DEFINE_QUEUE_P): Use.
9052 (async_queue_event): Remove.
9053 (gdb_event_xfree): New.
9054 (initialize_event_loop): New.
9055 (process_event): Use QUEUE macros.
9056 (event_queue): Remove.
9057 (gdb_wait_for_event): Caller update.
9058 (check_async_event_handlers): Likewise.
9059 (poll_timers): Likewise.
9060 * event-loop.h (initialize_event_loop): Declare.
9061 * event-loop.c (gdb_event_xfree): New.
9062 * top.c (gdb_init): Call initialize_event_loop.
9063
20ad8856
YQ
90642013-01-25 Yao Qi <yao@codesourcery.com>
9065
9066 * event-loop.c (async_queue_event): Remove one parameter
9067 'position'. Remove code handling 'position' == TAIL.
9068 (gdb_wait_for_event): Caller update.
9069 (check_async_event_handlers): Caller update.
9070 (poll_timers): Caller update.
9071 * event-loop.h (enum queue_position): Remove.
9072
3bbbe775
MK
90732013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
9074
9075 * MAINTAINERS: Update my email.
9076
a87d9ac4
YQ
90772013-01-25 Yao Qi <yao@codesourcery.com>
9078
9079 * main.c (print_gdb_help): Remove "--epoch" from the help
9080 message.
9081
2077afdd
TD
90822013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
9083
9084 * symtab.c (skip_prologue_using_sal): Consider a file
9085 change the same as an increased line number
9086
63da4037
TD
90872013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
9088
30e8ee25 9089 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 9090
45e6c716
TT
90912013-01-24 Tom Tromey <tromey@redhat.com>
9092
9093 * ada-lang.h (ada_decode_symbol): Make return type const.
9094 * ada-lang.c (ada_decode_symbol): Likewise.
9095
b1ae631a
DE
90962013-01-23 Doug Evans <dje@google.com>
9097
9098 * linespec.c (find_linespec_symbols): Make static.
9099
55a78401
SDJ
91002013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9101
9102 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
9103 type on float conversion for complex type.
9104
bea883fd
SCR
91052013-01-23 Siva Chandra Reddy <sivachandra@google.com>
9106
9107 Add a new class gdb.Architecture which exposes GDB's
9108 internal representation of architecture via GDB Python API.
9109 * Makefile.in: Add entries corresponding to the new file
9110 python/py-arch.c.
9111 * NEWS (Python Scripting): Add entries for the new class
9112 gdb.Architecture and the new method gdb.Frame.architecture.
9113 * python/py-arch.c: Implement gdb.Architecture class.
9114 * python/py-frame.c (frapy_arch): Implement the method
9115 gdb.Frame.architecture().
9116 (frame_object_methods): Add 'architecture' to the method table.
9117 * python/python-internal.h: Add declarations of new utility
9118 functions.
9119 * python/python.c (_initialize_python): Initialize
9120 gdb.Architecture class.
9121
796a7ff8
DE
91222013-01-23 Doug Evans <dje@google.com>
9123
9124 Work around binutils/15021.
9125 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
9126 type_unit_group out of union s. All uses updated.
9127 (read_index_from_section): Watch for index version 8.
9128 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
9129 an imported symtab.
9130 (write_psymtabs_to_index): Increment version number to 8.
9131
0928e93d
PA
91322013-01-22 Pedro Alves <palves@redhat.com>
9133
9134 * annotate.c (breakpoint_changed): Skip if breakpoint is not
9135 user-visible.
9136
9c97429f
PA
91372013-01-22 Pedro Alves <palves@redhat.com>
9138
9139 * annotate.c (annotate_breakpoints_changed): Rename to ...
9140 (annotate_breakpoints_invalid): ... this. Make static.
9141 (breakpoint_changed): Adjust.
9142 (_initialize_annotate): Always install the observers. Install a
9143 "breakpoint_created" observer.
9144 * annotate.h (annotate_breakpoints_changed): Delete declaration.
9145 * breakpoint.c (set_breakpoint_condition)
9146 (breakpoint_set_commands, do_map_commands_command)
9147 (init_raw_breakpoint, clear_command, set_ignore_count)
9148 (enable_breakpoint_disp): No longer call
9149 annotate_breakpoints_changed.
9150
bd00c694
PA
91512013-01-22 Pedro Alves <palves@redhat.com>
9152
9153 * annotate.c: Include "inferior.h".
9154 (frames_invalid_emitted)
9155 (breakpoints_invalid_emitted): New globals.
9156 (async_background_execution_p): New function.
9157 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
9158 emitting the annotation if it has already been emitted.
9159 (annotate_display_prompt): New function.
9160 * annotate.h (annotate_display_prompt): New declaration.
9161 * event-top.c: Include annotate.h.
9162 (display_gdb_prompt): Call annotate_display_prompt.
9163
187d10dd
PA
91642013-01-22 Pedro Alves <palves@redhat.com>
9165
9166 * annotate.c (ignore_count_changed): Delete.
9167 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
9168 (annotate_ignore_count_change): Delete.
9169 (annotate_stopped): Don't emit a delayed breakpoints-changed
9170 annotation.
9171 * annotate.h (annotate_ignore_count_change): Delete.
9172 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
9173 annotate_ignore_count_change.
9174
d84cf7eb
TT
91752013-01-22 Tom Tromey <tromey@redhat.com>
9176
9177 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
9178 require_rvalue for a register location.
9179
8f1d5693
MK
91802013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
9181
9182 * breakpoint.c (print_one_breakpoint_location): Add MI
9183 field 'thread-groups' when printing a breakpoint.
9184 (output_thread_groups): New function.
9185
aa6199c6
SCR
91862013-01-21 Siva Chandra Reddy <sivachandra@google.com>
9187
9188 * python/lib/gdb/commands/explore.py
9189 (CompoundExplorer.explore_expr): Correct the name of a method
9190 being invoked.
9191 (ExploreTypeCommand.invoke): Add a missing 'return'.
9192
d2afef13
TT
91932013-01-21 Tom Tromey <tromey@redhat.com>
9194
9195 * gdb_obstack.h (obconcat): Move declaration here, from...
9196 * symfile.h (obconcat): ... here.
9197 * gdb_obstack.c: New file.
9198 (obconcat): Move from...
9199 * symfile.c (obconcat): ... here.
9200 * Makefile.in (SFILES): Add gdb_obstack.c.
9201 (COMMON_OBS): Add gdb_obstack.o.
9202
10f0c4bb
TT
92032013-01-21 Tom Tromey <tromey@redhat.com>
9204
9205 * symfile.h (obsavestring): Don't declare.
9206 * symfile.c (obsavestring): Remove.
9207 * ada-exp.y: Use obstack_copy0, not obsavestring.
9208 * ada-lang.c: Use obstack_copy0, not obsavestring.
9209 * coffread.c: Use obstack_copy0, not obsavestring.
9210 * cp-namespace.c: Use obstack_copy0, not obsavestring.
9211 * dbxread.c: Use obstack_copy0, not obsavestring.
9212 * dwarf2read.c: Use obstack_copy0, not obsavestring.
9213 * jit.c: Use obstack_copy0, not obsavestring.
9214 * mdebugread.c: Use obstack_copy0, not obsavestring.
9215 * psymtab.c: Use obstack_copy0, not obsavestring.
9216 * stabsread.c: Use obstack_copy0, not obsavestring.
9217 * xcoffread.c: Use obstack_copy0, not obsavestring.
9218
86f62fd7
TT
92192013-01-21 Tom Tromey <tromey@redhat.com>
9220
9221 * dwarf2read.c (fixup_go_packaging): Save package name
9222 on objfile obstack.
9223 * gdbtypes.c (init_type): Don't copy name.
9224
15d034d0
TT
92252013-01-21 Tom Tromey <tromey@redhat.com>
9226
9227 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
9228 const.
9229 (struct attribute) <u.str>: Now const.
9230 (struct fnfieldlist) <name>: Now const.
9231 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
9232 (partial_die_parent_scope): Make return type const.
9233 (partial_die_full_name, add_partial_symbol): Update.
9234 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
9235 'name' const.
9236 (find_file_and_directory): Make 'name' and 'comp_dir' const.
9237 (read_file_scope, read_func_scope, dwarf2_add_field)
9238 (dwarf2_add_member_fn, read_structure_type)
9239 (process_enumeration_scope, read_array_type, read_module_type)
9240 (read_base_type, read_subrange_type): Update.
9241 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
9242 (new_symbol_full, guess_full_die_structure_name): Update.
9243 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
9244 (dwarf2_name): Return const type.
9245 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
9246 const.
9247
748e18ae
TT
92482013-01-21 Tom Tromey <tromey@redhat.com>
9249
9250 * gdbtypes.c (init_type): Make 'name' const.
9251 * gdbtypes.h (init_type): Update.
9252
46212e0b
TT
92532013-01-21 Tom Tromey <tromey@redhat.com>
9254
9255 * buildsym.c (patch_subfile_names): Use set_last_source_file.
9256 (start_symtab): Make 'name' and 'dirname' const. Use
9257 set_last_source_file.
9258 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
9259 (last_source_file): Define. Now static.
9260 (set_last_source_file, get_last_source_file): New functions.
9261 * buildsym.h (last_source_file): Don't declare.
9262 (start_symtab): Update.
9263 (set_last_source_file, get_last_source_file): Declare.
9264 * coffread.c (complete_symtab): Use set_last_source_file.
9265 (coff_end_symtab): Likewise.
9266 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
9267 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
9268 set_last_source_file.
9269 (process_one_symbol): Use get_last_source_file.
9270 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
9271 (psymtab_to_symtab_1): Use get_last_source_file.
9272 * xcoffread.c (process_linenos): Use get_last_source_file.
9273 (complete_symtab): Use set_last_source_file.
9274 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
9275 (scan_xcoff_symtab): Use set_last_source_file.
9276
9d2ceabe
TT
92772013-01-21 Tom Tromey <tromey@redhat.com>
9278
9279 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
9280 (symbol_set_names): Remove casts. Handle field const-ness.
9281
cfc594ee
TT
92822013-01-21 Tom Tromey <tromey@redhat.com>
9283
9284 * dwarf2read.c (new_symbol_full): Remove cast.
9285 * symtab.c (symbol_set_demangled_name): Make 'name' const.
9286 * symtab.h (symbol_set_demangled_name): Update.
9287
5484b13a
TT
92882013-01-21 Tom Tromey <tromey@redhat.com>
9289
9290 * main.c (captured_main): Call bfd_init.
9291
1605ef26
TT
92922013-01-21 Tom Tromey <tromey@redhat.com>
9293
9294 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
9295 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
9296 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
9297 * NEWS: Update.
9298
3b74cdc3
JK
92992013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9300
9301 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
9302
5a352474
JK
93032013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9304
9305 Fix gdb.fortran/common-block.exp crash in PIE mode.
9306 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
9307 LOC_COMMON_BLOCK.
9308 * f-valprint.c (info_common_command_for_block): Expect
9309 LOC_COMMON_BLOCK in gdb_assert.
9310 * symtab.h (struct general_symbol_info): Update comment for the
9311 common_block member.
9312 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
9313 (enum address_class): New member LOC_COMMON_BLOCK.
9314
c60797fd
DB
93152013-01-18 David Blaikie <dblaikie@gmail.com>
9316
9317 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 9318
46f35228
TT
93192013-01-18 Tom Tromey <tromey@redhat.com>
9320
9321 PR c++/14999:
9322 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
9323 Call require_rvalue.
9324
257e7a09
YQ
93252013-01-18 Yao Qi <yao@codesourcery.com>
9326
9327 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
9328 (dbx_read_symtab): New declaration.
9329 (dbx_psymtab_to_symtab): Delete.
9330 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
9331 Rename parameter PST to SELF. Exchanged two parameters.
9332 (start_psymtab): Caller update.
9333 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
9334 (dwarf2_read_symtab): New declaration.
9335 (dwarf2_psymtab_to_symtab): Delete.
9336 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
9337 Rename parameter PST to SELF. Exchanged two parameters.
9338 (create_partial_symtab): Caller update.
9339 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
9340 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
9341 Rename parameter PST to SELF. Exchanged two parameters.
9342 (parse_partial_symbols, new_psymtab): Caller update.
9343 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
9344 two parameters.
9345 * psymtab.c (psymtab_to_symtab): Caller update.
9346 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
9347 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
9348 Rename parameter PST to SELF. Exchanged two parameters.
9349 (xcoff_start_psymtab): Caller update.
9350
0de5618e
YQ
93512013-01-18 Yao Qi <yao@codesourcery.com>
9352
9353 * infrun.c (proceed): Rename local variable 'oneproc' to
9354 'force_step'.
9355
5c04624b
DE
93562013-01-17 Doug Evans <dje@google.com>
9357
848e3e78
DE
9358 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
9359 (dw2_build_type_unit_groups): Delete. All uses updated.
9360
5c04624b
DE
9361 * symtab.h (struct symbol_search): Add comment.
9362
d84fca2c
JK
93632013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9364
9365 * symtab.c (compare_filenames_for_search): New comment for
9366 HAS_DRIVE_SPEC.
9367
6108433d
TT
93682013-01-17 Tom Tromey <tromey@redhat.com>
9369
9370 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
9371
c89ffd86
JK
93722013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9373
9374 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
9375 initialize it by existing make_cleanup. Call new do_cleanups.
9376
db2b2972
TT
93772013-01-17 Tom Tromey <tromey@redhat.com>
9378
9379 * cp-abi.c (cp_abi_completer): New function.
9380 (_initialize_cp_abi): Set completer for "set cp-abi".
9381
be7d37a2
TT
93822013-01-17 Tom Tromey <tromey@redhat.com>
9383
9384 * mem-break.c: Remove obsolete comment.
9385 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
9386
c9fb1240
SD
93872012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9388
9389 * jit.c (jit_reader_load_command): Interpret the jit reader name
9390 as an absolute path if it begins with a forward slash.
9391
db334a01
SD
93922012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9393
9394 PR gdb/14550
9395
9396 * jit.c (finalize_symtab): Ensure that only the global block has a
9397 NULL superblock.
9398
7d928dac
PA
93992013-01-17 Pedro Alves <palves@redhat.com>
9400
9401 * acinclude.m4: Include ../config/plugins.m4,
9402 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
9403 * Makefile.in (aclocal_m4_deps): Update.
9404 * aclocal.m4: Renegerate.
9405
fb8cf7c5
DE
94062013-01-16 Doug Evans <dje@google.com>
9407
9408 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
9409
ab04a2af
TT
94102013-01-16 Pedro Alves <palves@redhat.com>
9411 Tom Tromey <tromey@redhat.com>
9412
9413 PR cli/7221:
9414 * NEWS: Add "catch signal".
9415 * breakpoint.c (base_breakpoint_ops): No longer static.
9416 (bpstat_explains_signal): New function.
9417 (init_catchpoint): No longer static.
9418 (base_breakpoint_explains_signal): New function.
9419 (base_breakpoint_ops): Initialize new field.
9420 * breakpoint.h (enum bpstat_signal_value): New.
9421 (struct breakpoint_ops) <explains_signal>: New field.
9422 (bpstat_explains_signal): Remove macro, declare as function.
9423 (base_breakpoint_ops, init_catchpoint): Declare.
9424 * break-catch-sig.c: New file.
9425 * inferior.h (signal_catch_update): Declare.
9426 * infrun.c (signal_catch): New global.
9427 (handle_syscall_event): Update for change to
9428 bpstat_explains_signal.
9429 (handle_inferior_event): Likewise. Always handle random signals
9430 via bpstats.
9431 (signal_cache_update): Check signal_catch.
9432 (signal_catch_update): New function.
9433 (_initialize_infrun): Initialize signal_catch.
9434 * Makefile.in (SFILES): Add break-catch-sig.c.
9435 (COMMON_OBS): Add break-catch-sig.o.
9436
8ac3646f
TT
94372013-01-16 Tom Tromey <tromey@redhat.com>
9438
9439 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
9440 (print_one_catch_solib, print_one_catch_syscall)
9441 (print_one_catch_exec, print_one_exception_catchpoint): Emit
9442 "catch-type".
9443
5a18e302
YQ
94442013-01-16 Yao Qi <yao@codesourcery.com>
9445
9446 * printcmd.c (current_display_number): Make it static.
9447
3f01d0d0
YQ
94482013-01-16 Yao Qi <yao@codesourcery.com>
9449
9450 * infcmd.c (step_once): Don't check '!single_inst' as it was
9451 checked before.
9452
1ed59174
JK
94532013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9454
9455 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
9456
44478ab3
TT
94572013-01-14 Tom Tromey <tromey@redhat.com>
9458
9459 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
9460 set command.
9461 * command.h (add_setshow_string_noescape_cmd): Update.
9462 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
9463 (complete_set_gnutarget): New function.
9464 (_initialize_core): Set the "set gnutarget" completer.
9465
06d66ee9
TT
94662013-01-14 Tom Tromey <tromey@redhat.com>
9467
9468 PR symtab/14442:
9469 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
9470 (c_type_print_modifier): Likewise.
9471 * dwarf2read.c (read_tag_restrict_type): New function.
9472 (read_type_die_1): Handle DW_TAG_restrict_type.
9473 * gdbtypes.c (make_restrict_type): New function.
9474 (recursive_dump_type): Handle TYPE_RESTRICT.
9475 * gdbtypes.h (enum type_flag_values): Renumber.
9476 (enum type_instance_flag_value): Add
9477 TYPE_INSTANCE_FLAG_RESTRICT.
9478 (TYPE_RESTRICT): New macro.
9479 (make_restrict_type): Declare.
9480
c9bf0622
TT
94812013-01-14 Tom Tromey <tromey@redhat.com>
9482
9483 PR symtab/14931:
9484 * psymtab.c (struct psymtab_state): New.
9485 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
9486 functions.
9487 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
9488 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
9489
44d594fd
PA
94902013-01-14 Richard Sharman <richard_sharman@mitel.com>
9491 Pedro Alves <palves@redhat.com>
9492
9493 PR remote/14786
9494
9495 * remote.c (remote_threads_info): Make a copy of the reply from
9496 qfThreadInfo and use that instead of rs->buf.
9497
442e4d9c
YQ
94982013-01-14 Yao Qi <yao@codesourcery.com>
9499
9500 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
9501 (dbx_psymtab_to_symtab): Likewise.
9502 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
9503 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
9504 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
9505
5b12a61c
JK
95062013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9507
9508 * parse.c (parse_exp_in_context): New variable inner_chain. Call
9509 make_cleanup_restore_current_language. Call set_language. Move
9510 OLD_CHAIN and INNER_CHAIN cleanups.
9511 * utils.c (do_restore_current_language)
9512 (make_cleanup_restore_current_language): New functions.
9513 * utils.h (make_cleanup_restore_current_language): New declaration.
9514
f0a4b570
JK
95152013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9516
9517 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
9518 non-existing files.
9519
57b3c00c
JK
9520 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
9521 non-existing files if FILENAME is already absolute.
9522
daefa854
JK
95232013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9524
9525 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
9526 fputs_filtered. Append trailing newline.
9527
ca9c6ee2
YQ
95282013-01-11 Yao Qi <yao@codesourcery.com>
9529 Stan Shebs <stan@codesourcery.com>
9530
9531 * psymtab.c (init_psymbol_list): Clarify the comment.
9532
f28045c2
YQ
95332013-01-11 Yao Qi <yao@codesourcery.com>
9534
9535 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
9536 (update_dprintf_command_list): Assert that 'printf_line' is
9537 non-null. Remove condition check.
9538
da5132d3
JK
95392013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9540
9541 Code cleanup.
9542 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
9543 type const char *.
9544 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
9545 const char *.
9546 * tui/tui-source.h (tui_source_is_displayed): Likewise.
9547
843e694d
AG
95482013-01-09 Anthony Green <green@moxielogic.com>
9549
9550 * cp-abi.c (cplus_print_vtable): Don't return value from void
9551 function.
9552 * ada-lang.c (re_set_catch_assert): Ditto.
9553
da51c347
DE
95542013-01-09 Doug Evans <dje@google.com>
9555
9556 * symfile.h (quick_symbol_functions): Delete member
9557 pre_expand_symtabs_matching. All uses removed.
9558 * dwarf2read.c (dw2_lookup_symbol): Implement.
9559 (dw2_do_expand_symtabs_matching): Delete.
9560 (dw2_pre_expand_symtabs_matching): Delete.
9561 (struct dw2_symtab_iterator): New type.
9562 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
9563 (dw2_expand_symtabs_for_function): Rewrite.
9564 (dwarf2_gdb_index_functions): Update.
9565 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
9566 (psym_functions): Update.
9567
b2259038
TT
95682013-01-09 Tom Tromey <tromey@redhat.com>
9569
9570 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
9571 * configure: Rebuild.
9572 * configure.ac: Add somread.o to the build if BFD has SOM
9573 support.
9574 * somread.c: Include som/aout.h, not syms.h.
9575 (som_symtab_read): Use som_external_symbol_dictionary_record.
9576 Unpack records manually.
9577 (_initialize_somread): Declare.
9578
bdad4180
MF
95792012-01-08 Mike Frysinger <vapier@gentoo.org>
9580
9581 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
9582 Cast return_address to 64bits.
9583
03cdf680
HZ
95842013-01-08 Hui Zhu <hui_zhu@mentor.com>
9585
9586 * printcmd.c: Remove define of function output_command.
9587 * tracepoint.c: Remove extern of function output_command.
9588 * valprint.h: (output_command): New extern.
9589
8a808554
TT
95902013-01-07 Tom Tromey <tromey@redhat.com>
9591
9592 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
9593 Remove.
9594 (objc_language_defn): Use c_printchar, c_printstr,
9595 c_emit_char.
9596
e93a8774
TT
95972013-01-07 Tom Tromey <tromey@redhat.com>
9598
9599 PR cli/7719:
9600 * NEWS: Update.
9601 * ada-valprint.c (printstr, print_field_values): Remove
9602 "inspect_it" code.
9603 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
9604 code.
9605 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
9606 code.
9607 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
9608 * main.c (captured_main): Remove "epoch" argument.
9609 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
9610 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
9611 * p-valprint.c (pascal_object_print_value_fields): Remove
9612 "inspect_it" code.
9613 * printcmd.c (print_command_1): Remove 'inspect' argument.
9614 (print_command, call_command): Update.
9615 (inspect_command): Remove.
9616 (_initialize_printcmd): Make "inspect" an alias for "print".
9617 * top.c (epoch_interface): Remove.
9618 * top.h (epoch_interface): Remove.
9619 * valprint.c (user_print_options): Update.
9620 (print_converted_chars_to_obstack): Remove "inspect_it" code.
9621 * valprint.h (struct value_print_options) <inspect_it>: Remove
9622 field.
9623
96242013-01-04 Tom Tromey <tromey@redhat.com>
9625
9626 * valprint.h (read_string): Add 'extern'.
9627
b967eb24
JB
96282013-01-07 Joel Brobecker <brobecker@adacore.com>
9629
9630 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
9631 used to decide whether to define darwin_read_dyld_info or not.
9632
78a8b30e
PM
96332013-01-03 Pierre Muller <muller@sourceware.org>
9634
9635 * main.c (relocate_gdb_directory): Avoid calling stat function
9636 if DIR is empty.
9637
50da2f25
YQ
96382013-01-03 Yao Qi <yao@codesourcery.com>
9639
9640 * psymtab.c (fixup_psymbol_section): Update declaration.
9641 (fixup_psymbol_section): Remove code returning value.
9642
e7e8980f
YQ
96432013-01-03 Yao Qi <yao@codesourcery.com>
9644
9645 * symtab.h: Remove some out of date comments.
9646 (enum exception_event_kind): Move it ...
9647 * breakpoint.c: ... here.
9648
569283d4
MF
96492013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
9650
9f9d9a96 9651 PR gdb/14405
569283d4
MF
9652 * darwin-nat.c (darwin_read_dyld_info): Only build if
9653 TASK_DYLD_INFO_COUNT is defined.
9654 (darwin_xfer_partial): Call darwin_read_dyld_info only if
9655 TASK_DYLD_INFO_COUNT is defined.
9656
2e36fbea
TT
96572013-01-02 Tom Tromey <tromey@redhat.com>
9658
9659 * symfile.h (struct ecoff_debug_hack): Remove.
9660 * objfiles.c: Don't include mdebugread.h.
9661
4f05add4
TT
96622013-01-02 Tom Tromey <tromey@redhat.com>
9663
9664 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
9665 * configure.ac: Check for Mach-O support in BFD. Update
9666 CONFIG_OBS.
9667 * configure: Rebuild.
9668
def63ff0
TT
96692013-01-02 Tom Tromey <tromey@redhat.com>
9670
9671 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
9672 * configure.ac: Use GDB_AC_CHECK_BFD.
9673 * configure: Rebuild.
9674
60c5dd93
MK
96752013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
9676
9677 * MAINTAINERS: Update my email.
9678
6e58437e
JB
96792013-01-01 Joel Brobecker <brobecker@adacore.com>
9680
9681 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
9682
627fe805
JB
96832013-01-01 Joel Brobecker <brobecker@adacore.com>
9684
9685 * rs6000-nat.c (bss_data_overlap): New function.
9686 (vmap_symtab): Use it to adjust the .bss section's offset.
9687
28e7fd62
JB
96882013-01-01 Joel Brobecker <brobecker@adacore.com>
9689
9690 Update year range in copyright notice of all files.
9691
e93a8774 96922013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
9693
9694 * top.c (print_gdb_version): Update copyright year.
9695
72b20e9c 9696For older changes see ChangeLog-2012.
c906108c
SS
9697\f
9698Local Variables:
9699mode: change-log
9700left-margin: 8
9701fill-column: 74
9702version-control: never
57da7796 9703coding: utf-8
c906108c 9704End:
This page took 1.940814 seconds and 4 git commands to generate.