move sparc-sol-thread.c back into sol-thread.c.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c1357578
JB
12013-05-10 Joel Brobecker <brobecker@adacore.com>
2
3 PR tdep/15420:
4 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5 New functions, directly copied from sparc-sol-thread.c.
6 * sparc-sol-thread.c: Delete.
7 * configure.ac: Remove code handling sparc-solaris-thread.c.
8 * configure: Regenerate.
9
1e611234
PM
102013-05-10 Phil Muldoon <pmuldoon@redhat.com>
11
12 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
13 filter logic.
14 (backtrace_command): Add "no-filters" option parsing.
15 (_initialize_stack): Alter help to reflect "no-filters" option.
16 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
17 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
18 (py-frame.o): Add target
19 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
20 filter files.
21 * python/python.h: Add new frame filter constants, and flag enum.
22 (apply_frame_filter): Add definition.
23 * python/python.c (apply_frame_filter): New non-Python
24 enabled function.
25 * python/py-utils.c (py_xdecref): New function.
26 (make_cleanup_py_xdecref): Ditto.
27 * python/py-objfile.c: Declare frame_filters dictionary.
28 (objfpy_dealloc): Add frame_filters dealloc.
29 (objfpy_new): Initialize frame_filters attribute.
30 (objfile_to_objfile_object): Ditto.
31 (objfpy_get_frame_filters): New function.
32 (objfpy_set_frame_filters): New function.
33 * python/py-progspace.c: Declare frame_filters dictionary.
34 (pspy_dealloc): Add frame_filters dealloc.
35 (pspy_new): Initialize frame_filters attribute.
36 (pspacee_to_pspace_object): Ditto.
37 (pspy_get_frame_filters): New function.
38 (pspy_set_frame_filters): New function.
39 * python/py-framefilter.c: New file.
40 * python/lib/gdb/command/frame_filters.py: New file.
41 * python/lib/gdb/frames.py: New file.
42 * python/lib/gdb/__init__.py: Initialize global frame_filters
43 dictionary
44 * python/lib/gdb/FrameDecorator.py: New file.
45 * python/lib/gdb/FrameIterator.py: New file.
46 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
47 * mi/mi-cmds.h: Declare.
48 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
49 --no-frame-filter logic, and Python frame filter logic.
50 (stack_enable_frame_filters): New function.
51 (parse_no_frame_option): Ditto.
52 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
53 filter logic.
54 (mi_cmd_stack_list_locals): Ditto.
55 (mi_cmd_stack_list_args): Ditto.
56 (mi_cmd_stack_list_variables): Ditto.
57 * NEWS: Add frame filter note.
58
2cb9c859
DE
592013-05-09 Doug Evans <dje@google.com>
60
6bf667bb
DE
61 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
62 All callers updated.
63 (syms_from_objfile): Ditto. Make static.
64 (symbol_file_add_with_addrs): Renamed from
65 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
66 num_offsets. All callers updated.
67 * symfile.h (syms_from_objfile): Delete.
68
2cb9c859
DE
69 * symfile.c (decrement_reading_symtab): Add assert.
70 (increment_reading_symtab): Ditto.
71
40aea477
JB
722013-05-09 Joel Brobecker <brobecker@adacore.com>
73
74 * source.c (forward_search_command): Replace call to getc
75 by call to fgetc.
76 (reverse_search_command): Likewise.
77
680d1742
DE
782013-05-08 Doug Evans <dje@google.com>
79
80 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
81 matching test.
82
17e760ae
JB
832013-05-08 Joel Brobecker <brobecker@adacore.com>
84
85 * sol-thread.c (info_cb): Factorize the code a little.
86
c0f5f490
JB
872013-05-08 Joel Brobecker <brobecker@adacore.com>
88
89 * sol-thread.c (info_cb): Rework the output of the "maintenance
90 info sol-threads" command a bit.
91
5d74e061
JB
922013-05-08 Joel Brobecker <brobecker@adacore.com>
93
94 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
95 Replace ti.ti_startfunc by ti.ti_pc.
96
814a3ff7
JB
972013-05-08 Joel Brobecker <brobecker@adacore.com>
98
99 * solib-aix.c (solib_aix_free_library_list): New function
100 for the case where HAVE_LIBEXPAT is not defined.
101
58ce7251
SDJ
1022013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
103
104 PR breakpoints/15413:
105 * breakpoint.c (condition_completer): Simplify the code to
106 disconsider multiple locations of breakpoints when completing the
107 "condition" command.
108
be8b1ea6
PM
1092013-05-07 Pierre Muller <muller@sourceware.org>
110
111 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
112 instead of <sys/wait.h>.
113
1e52bda6
PM
1142013-05-07 Pierre Muller <muller@sourceware.org>
115
116 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
117 trailing new line from warning message.
118
27fd0c6b
PM
1192013-05-07 Pierre Muller <muller@sourceware.org>
120
121 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
122 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
123
e228ac87
JB
1242013-05-07 Joel Brobecker <brobecker@adacore.com>
125
126 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
127 error message (ARI fix).
128
1292013-05-07 Joel Brobecker <brobecker@adacore.com>
130
131 * features/library-list-aix.dtd: Replace library-list by
132 library-list-aix.
133 * rs6000-nat.c: Replace library-list by library-list-aix
134 throughout.
135 * solib-aix.c: Likewise.
136
1372013-05-07 Joel Brobecker <brobecker@adacore.com>
138
139 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
140 Renames TARGET_OBJECT_AIX_LIBRARIES.
141 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
142 TARGET_OBJECT_LIBRARIES_AIX throughout.
143 * solib-aix.c: Likwise.
144
26a4dda9
YQ
1452013-05-07 Yao Qi <yao@codesourcery.com>
146
147 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
148 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
149
3582629f
YQ
1502013-05-07 Yao Qi <yao@codesourcery.com>
151
152 * solib-dsbt.c (enable_break): Declare.
153 (dsbt_current_sos): Remove call to enable_break2.
154 (enable_break2): Rename to enable_break. Set solib breakpoint
155 on '_dl_debug_state'.
156 (enable_break): Remove.
157
aacbb8a5
LM
1582013-05-07 Luis Machado <lgustavo@codesourcery.com>
159
160 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
161 debug state prior to replicating existing hardware watchpoints or
162 breakpoints.
163
0c013353
JK
1642013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
165
166 * gcore.c (gcore_create_callback): Ignore sections with
167 separate_debug_objfile_backlink != NULL.
168
a1217d97
SL
1692013-05-06 Sandra Loosemore <sandra@codesourcery.com>
170 Andrew Jenner <andrew@codesourcery.com>
171 Chung-Lin Tang <cltang@codesourcery.com>
172 Julian Brown <julian@codesourcery.com>
173
174 Based on the nios2-elf port from Altera Corporation.
175
176 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
177 nios2-linux-tdep.o.
178 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
179 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
180 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
181 * nios2-tdep.h: New.
182 * nios2-tdep.c: New.
183 * nios2-linux-tdep.c: New.
184 * features/Makefile (WHICH): Add nios2-linux.
185 (nios2-linux-expedite): Set.
186 * features/nios2-cpu.xml: New.
187 * features/nios2.xml: New.
188 * features/nios2-linux.xml: New.
189 * features/nios2.c: New (autogenerated).
190 * features/nios2-linux.c: New (autogenerated).
191 * regformats/nios2-linux.dat: New (autogenerated).
192 * NEWS (Changes since GDB 7.6): Add new Nios II targets
193 and commands.
194
0892cb63
DE
1952013-05-06 Doug Evans <dje@google.com>
196
3b7bacac
DE
197 * symfile.c: Whitespace cleanup.
198
0892cb63
DE
199 * solist.h (struct target_so_ops): New member clear_so.
200 * solib-svr4.c (svr4_clear_so): New function.
201 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
202 * solib.c (clear_so): Renamed from free_so_symbols.
203 All callers updated. Call target clear_so if it exists.
204
40501e00
TT
2052013-05-06 Tom Tromey <tromey@redhat.com>
206
207 * ada-lang.c (ada_value_primitive_packed_val): Don't
208 call value_incref.
209 * value.c (set_value_parent): Incref the new parent and decref
210 the old parent.
211 (value_copy, value_primitive_field): Use set_value_parent.
212
b6807d98
TT
2132013-05-06 Tom Tromey <tromey@redhat.com>
214
215 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
216 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
217 if needed.
218 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
219 * dwarf2read.c (write_constant_as_bytes)
220 (dwarf2_fetch_constant_bytes): New functions.
221
3aef2284
TT
2222013-05-06 Tom Tromey <tromey@redhat.com>
223
224 * dwarf2read.c (dwarf2_const_value_data): Remove unused
225 parameters.
226 (dwarf2_const_value_attr): Update.
227
66f65e2b
TT
2282013-05-06 Tom Tromey <tromey@redhat.com>
229
230 * somread.c (som_symfile_offsets): Add 'const' to addrs.
231 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
232 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
233 Remove declaration.
234
7919a973
TT
2352013-05-06 Tom Tromey <tromey@redhat.com>
236
237 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
238 objfile's obstack.
239
a7bfba49
DE
2402013-05-06 Doug Evans <dje@google.com>
241
3189cb12
DE
242 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
243 * stabsread.h (process_one_symbol): Update declaration.
244 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
245 * elfread.c (elf_symfile_relocate_probe): Ditto.
246 * psymtab.c (relocate_psymtabs): Ditto.
247 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
248 (objfile_relocate): Ditto.
249 * objfiles.h (objfile_relocate): Update declaration.
250 * symfile.c (relative_addr_info_to_section_offsets): Constify
251 addrs parameter.
252 (default_symfile_offsets): Ditto.
253 (syms_from_objfile_1): Constify offsets parameter.
254 (syms_from_objfile): Ditto.
255 (symbol_file_add_with_addrs_or_offsets): Ditto.
256 (symfile_map_offsets_to_segments): Constify data parameter.
257 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
258 delta parameters of member relocate.
259 (struct sym_probe_fns): Constify new_offsets,
260 delta parameters of member sym_relocate_probe.
261 (struct sym_fns): Constify section_addr_info parameter of member
262 sym_offsets.
263 (relative_addr_info_to_section_offsets): Update declaration.
264 (default_symfile_offsets): Ditto.
265 (syms_from_objfile): Ditto.
266 (symfile_map_offsets_to_segments): Ditto.
267
a7bfba49
DE
268 * symfile.c (syms_from_objfile_1): Use correct section count when
269 objfile->sf == NULL.
270
5f8e0b8f
MF
2712013-05-06 Mike Frysinger <vapier@gentoo.org>
272
273 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
274
ea52d893
DE
2752013-05-06 Doug Evans <dje@google.com>
276
277 * psympriv.h (struct partial_symtab): Augment comment for member
278 section_offsets.
279
4d1eb6b4
JB
2802013-05-06 Joel Brobecker <brobecker@adacore.com>
281
282 Reimplement shared library support on ppc-aix...
283 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
284 * features/library-list-aix.dtd: New file.
285 * solib-aix.h, solib-aix.c: New file.
286 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
287 (rs6000_find_toc_address_hook): Delete.
288 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
289 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
290 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
291 "xml-utils.h".
292 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
293 (vmap_symtab, fixup_breakpoints): Delete.
294 (rs6000_xfer_shared_libraries): New function.
295 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
296 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
297 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
298 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
299 (rs6000_xfer_shared_library): New function.
300 (find_toc_address): Delete.
301 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
302 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
303 * xcoffread.c (record_minimal_symbol): Reloate symbol address
304 before creating minimal symbol. Adjust function description
305 accordingly.
306 (scan_xcoff_symtab): Replace call to
307 prim_record_minimal_symbol_and_info by call to
308 record_minimal_symbol.
309 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
310 around default_symfile_offsets.
311 * configure.tgt: Add solib-aix.o to gdb_target_obs for
312 powerpc-aix targets.
313 * config/rs6000/nm-rs6000.h: Delete.
314 * config/powerpc/aix.mh (NAT_FILE): Delete.
315 (NATDEPFILES): Remove xcoffsolib.o.
316 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
317 (ALL_TARGET_OBS): Add solib-aix.o.
318 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
319 config/rs6000/nm-rs6000.h. Add solib-aix.h.
320 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
321 * xcoffsolib.h, xcoffsolib.c: Delete.
322
323 * solib.c (reload_shared_libraries): Remove reference to
324 SOLIB_CREATE_INFERIOR_HOOK.
325 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
326 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
327 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
328 comment.
329 * corelow.c (deprecated_core_resize_section_table): Delete.
330 * exec.c: Remove include of xcoffsolib.h".
331 (map_vmap, vmap): Delete.
332 (exec_close_1): Remove references to vmap.
333 (exec_file_attach): Remove vmap handling code, and reference
334 to DEPRECATED_IBM6000_TARGET.
335 (bfdsec_to_vmap): Delete.
336 (exec_files_info): Remove block of code handling VMAP.
337 * infcmd.c (post_create_inferior): Remove reference to
338 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
339 * infrun.c (follow_exec): Remove reference to
340 SOLIB_CREATE_INFERIOR_HOOK.
341 * stack.c (print_frame): Remove reference to PC_SOLIB.
342 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
343 (dsbt_relocate_main_executable): Likewise.
344 * solib-frv.c (frv_current_sos): Likewise.
345
0c4f667c
JB
3462013-05-06 Joel Brobecker <brobecker@adacore.com>
347
348 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
349 to target_write_memory and target_read_memory.
350
726ce67c
JB
3512013-05-06 Joel Brobecker <brobecker@adacore.com>
352
353 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
354 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
355
c8c9911f
JB
3562013-05-06 Joel Brobecker <brobecker@adacore.com>
357
358 * darwin-nat.c: Replace all "%x" instances in format strings
359 into "0x%x" throughout.
360
fda184b6
JB
3612013-05-06 Joel Brobecker <brobecker@adacore.com>
362
363 * darwin-nat.c (darwin_mourn_inferior): Replace call to
364 gdb_assert by call to MACH_CHECK_ERROR.
365 (darwin_attach_pid): Raise an error rather than a failed
366 assertion when various system calls failed. Report a warning
367 instead of raising a failed assertion when PREV_NOT is not NULL
368 after call to mach_port_request_notification.
369 (darwin_ptrace_me): Raise an error rather than a failed
370 assertion when read returns nonzero.
371
d1d69afb
JB
3722013-05-06 Joel Brobecker <brobecker@adacore.com>
373
374 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
375
dc90b24d
JK
3762013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
377
378 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
379
faab9922
JK
3802013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
381
382 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
383 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
384 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
385 a stale cleanup. Fix double free of NAME.
386
e0ea48a0
EZ
3872013-05-04 Eli Zaretskii <eliz@gnu.org>
388
389 * windows-nat.c (windows_delete_thread): Accept an additional
390 argument, the thread's exit code, and announce thread death when
391 print_thread_events is non-zero and we are deleting a thread that
392 is not the main thread.
393 (get_windows_debug_event): Pass thread exit code to
394 windows_delete_thread.
395
83b2706a
KB
3962013-05-03 Kevin Buettner <kevinb@redhat.com>
397
398 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
399 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
400 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
401 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
402 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
403 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
404 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
405 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
406 (gdbarch_tdep): New struct.
407 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
408 E_NUM_REGS.
409 (v850e3v5_register_name): New function.
410 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
411 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
412 code handling the struct return conventions for the RH850 ABI.
413 Update all callers.
414 (v850_eight_byte_align_p): New function.
415 (v850_push_call_dummy): Push structs by value, not by reference
416 for the RH850 ABI. Add support for eight byte alignment.
417 (v850_dbtrap_breakpoint_from_pc): New function.
418 (v850_gdbarch_init): Add ABI detection code. Register
419 v850e3v5_register_name for the v850e3v5 architecture. Set the
420 number of registers for v850e3v5. Register
421 v850_dbtrap_breakpoint_from_pc as appropriate.
422 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
423
d445b2f6
DE
4242013-05-03 Doug Evans <dje@google.com>
425
426 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
427 of bfd_count_sections.
428 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
429 * symfile.c (default_symfile_offsets): Ditto.
430 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
431 one entry, not bfd_count_sections entries.
432
b3ce41ea
KB
4332013-05-03 Kevin Buettner <kevinb@redhat.com>
434
435 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
436 `save' and `restore' register groups. Don't include SPL
437 or SPH in these groups.
438 (rl78_dwarf_reg_to_regnum): Adjust mapping for
439 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
440 RL78_ES_REGNUM, and RL78_CS_REGNUM.
441 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
442 dwarf2_append_unwinders().
443
96f7d3f1
PW
4442013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
445
446 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
447 ignore SIGINT and SIGTRAP in case these internal signals are
448 caught explicitely.
449
b9dd1947
JB
4502013-05-01 Joel Brobecker <brobecker@adacore.com>
451
452 * darwin-nat.c (darwin_read_write_inferior): Change types
453 of parameters rdaddr and wraddr to "gdb_byte *". Change type
454 of copy_count to "mach_msg_type_number_t".
455 (darwin_read_dyld_info): Change type of parameter
456 rdaddr to "gdb_byte *".
457
4ca18a63
JB
4582013-05-01 Joel Brobecker <brobecker@adacore.com>
459
460 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
461 of &info->load_map from "char *" to "gdb_byte *".
462
2b692d32
JB
4632013-05-01 Joel Brobecker <brobecker@adacore.com>
464
465 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
466 from "char *" to "gdb_byte *".
467 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
468
a98c29a0
DE
4692013-04-30 Doug Evans <dje@google.com>
470
6a506a2d
DE
471 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
472 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
473 DWO stub. If DWO isn't found, just use stub.
474 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
475
a98c29a0
DE
476 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
477 calling init_cutu_and_read_dies.
478
f92b06da
WT
4792013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
480
481 * target-descriptions.c (maint_print_c_tdesc_cmd):
482 Add case to parse structures as register types and
483 bitfields.
484
95eebdcc
WT
4852013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
486
487 * MAINTAINERS (Write After Approval): Add myself to the list.
488
019c1128
JB
4892013-04-30 Joel Brobecker <brobecker@adacore.com>
490
491 * sol-thread.c (rw_common): Change type of parameter "buf"
492 to "gdb_byte *".
493 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
494 rw_common to "gdb_byte *" instead of "char *".
495
5812197c
JB
4962013-04-30 Joel Brobecker <brobecker@adacore.com>
497
498 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
499 of local variable msym to const struct bound_minimal_symbol.
500 Adjust use accordingly.
501 [ti.ti_state == TD_THR_SLEEP]: Likewise.
502
ecccb813
TS
5032013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
504
505 * i386gnu-nat.c (CREG_OFFSET): New macro.
506 (creg_offset): New array.
507 (CREG_ADDR): Use creg_offset instead of reg_offset.
508
f1d02dd4 5092013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
510
511 * mep-tdep.c (mep_write_pc): Delete.
512 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
513 Add call to set_gdbarch_pc_regnum.
514
f1d02dd4 5152013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
516
517 * common/filestuff.c: Replace #include <dirent.h> by
518 #include "gdb_dirent.h".
519
f1d02dd4 5202013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
521
522 * common/filestuff.c: Replace #include <sys/stat.h> by
523 #include "gdb_stat.h".
524
b385a60d
PM
5252013-04-29 Pierre Muller <muller@sourceware.org>
526
527 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
528 editCase function rule.
529 (get_DW_AT_signature_type): Likewise.
530
d27b54ad
JB
5312013-04-29 Joel Brobecker <brobecker@adacore.com>
532
533 * m32r-tdep.c (m32r_write_pc): Delete.
534 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
535 Add call to set_gdbarch_pc_regnum.
536
47d21dc5
PM
5372013-04-29 Pierre Muller <muller@sourceware.org>
538
539 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
540
9056882e
JB
5412013-04-29 Joel Brobecker <brobecker@adacore.com>
542
543 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
544
7ee4732a
YQ
5452013-04-28 Yao Qi <yao@codesourcery.com>
546
547 * solib-dsbt.c (fetch_loadmap): Re-indent.
548 (displacement_from_map, enable_break2): Likewise.
549 (dsbt_relocate_section_addresses): Likewise.
550
2260af53 5512013-04-26 Joel Brobecker <brobecker@adacore.com>
552
553 GDB 7.6 released.
554
ff546935
TT
5552013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
556
557 PR corefiles/14983:
558 * dwarf2read.c (process_full_comp_unit): Always create a static
559 block.
560
40fb6c5e
HZ
5612013-04-25 Hui Zhu <hui@codesourcery.com>
562
563 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
564 to loc->cmd_bytecode.
565
74e04d1c
DE
5662013-04-24 Doug Evans <dje@google.com>
567
568 * dwarf2read.c (setup_type_unit_groups): Fix comment.
569
3cf62c1d
KS
5702013-04-22 Keith Seitz <keiths@redhat.com>
571
572 * tracepoint.c (trace_save): Call the writer's start method.
573
bf9e4d0c
MB
5742013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
575
576 PR gdb/10462
577 * cli/cli-decode.c (lookup_command): Show an error if there is no space
578 before argument.
579
5d71132c
TT
5802013-04-23 Tom Tromey <tromey@redhat.com>
581
582 * common/filestuff.c: Check USE_WIN32API before including
583 sys/socket.h.
584 (HAVE_F_GETFD): New define.
585 (mark_cloexec): Check HAVE_F_GETFD.
586 (gdb_open_cloexec): Change 'mode' to unsigned long.
587 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
588 (gdb_pipe_cloexec): Check HAVE_PIPE.
589 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
590 long.
591
a11cfd87
HZ
5922013-04-23 Hui Zhu <hui@codesourcery.com>
593
594 PR gdb/15293
a11cfd87
HZ
595 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
596
2d9442cc
HZ
5972013-04-23 Hui Zhu <hui@codesourcery.com>
598
599 PR gdb/15165
2d9442cc
HZ
600 * breakpoint.c (dprintf_print_recreate): New.
601 (save_breakpoints): Let it not save dprintf commands.
602 (initialize_breakpoint_ops): Set dprintf_print_recreate.
603
614c279d
TT
6042013-04-22 Tom Tromey <tromey@redhat.com>
605
606 PR gdb/7912:
607 * Makefile.in (SFILES): Add filestuff.c
608 (COMMON_OBS): Add filestuff.o.
609 (filestuff.o): New target.
610 * auto-load.c (auto_load_objfile_script_1): Use
611 gdb_fopen_cloexec.
612 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
613 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
614 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
615 * common/agent.c (gdb_connect_sync_socket): Use
616 gdb_socket_cloexec.
617 * common/filestuff.c: New file.
618 * common/filestuff.h: New file.
619 * common/linux-osdata.c (linux_common_core_of_thread)
620 (command_from_pid, commandline_from_pid, print_source_lines)
621 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
622 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
623 gdb_fopen_cloexec.
624 * common/linux-procfs.c (linux_proc_get_int)
625 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
626 * config.in, configure: Rebuild.
627 * configure.ac: Don't check for sys/socket.h. Check for
628 fdwalk, pipe2.
629 * corelow.c (core_open): Use gdb_open_cloexec.
630 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
631 * fork-child.c (fork_inferior): Call close_most_fds.
632 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
633 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
634 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
635 Use gdb_fopen_cloexec.
636 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
637 gdb_open_cloexec.
638 (linux_async_pipe): Use gdb_pipe_cloexec.
639 * remote-fileio.c (remote_fileio_func_open): Use
640 gdb_open_cloexec.
641 * remote.c (remote_file_put, remote_file_get): Use
642 gdb_fopen_cloexec.
643 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
644 close_most_fds.
645 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
646 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
647 * solib.c (solib_find): Use gdb_open_cloexec.
648 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
649 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
650 (tfile_open): Use gdb_open_cloexec.
651 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
652 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
653 * xml-support.c (xml_fetch_content_from_file): Use
654 gdb_fopen_cloexec.
655 * main.c (captured_main): Call notice_open_fds.
656
5fda2332
EBM
6572013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
658
659 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
660 'char *' to 'gdb_byte *'.
661 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
662 'gdb_byte'.
663
eb6c553b
YQ
6642013-04-22 Yao Qi <yao@codesourcery.com>
665
666 * infrun.c: Fix typo in comment.
667
9991b207
SDJ
6682013-04-22 Andrew Haley <aph@redhat.com>
669
670 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
671 instead of "long".
672
8b4833e3
YQ
6732013-04-20 Yao Qi <yao@codesourcery.com>
674
675 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
676 'char *' to 'gdb_byte *'. Cast the return value of
677 'bt_ctf_get_char_array' to 'gdb_byte *'.
678
bd3f3b55
PA
6792013-04-19 Pedro Alves <palves@redhat.com>
680
681 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
682 -Wpointer-sign.
683 * configure: Regenerate.
684
c49e7f76
PA
6852013-04-19 Pedro Alves <palves@redhat.com>
686
687 * ser-tcp.c (net_read_prim): Cast second argument to recv to
688 'void *'.
689
12ff8552
PA
6902013-04-19 Pedro Alves <palves@redhat.com>
691
692 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
693 Change type of 'myaddr' parameter to gdb_byte pointer.
694 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
695 to 'long long' pointer instead of to 'unsigned long long'.
696 (monitor_write_memory_block, monitor_read_memory_single)
697 (monitor_read_memory): Change type of 'myaddr' parameter to
698 gdb_byte pointer.
699
9c37696b
PA
7002013-04-19 Pedro Alves <palves@redhat.com>
701
702 * record.c (validate_history_size): Make parameter 'setting'
703 unsigned.
704
a398505b
PA
7052013-04-19 Pedro Alves <palves@redhat.com>
706
707 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
708 to 'gdb_byte *'.
709
9f8afa72
PA
7102013-04-19 Pedro Alves <palves@redhat.com>
711
712 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
713 local to int.
714
c714b426
PA
7152013-04-19 Pedro Alves <palves@redhat.com>
716
717 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
718 * ada-tasks.c (read_fat_string_value): Likewise.
719
507a579c
PA
7202013-04-19 Pedro Alves <palves@redhat.com>
721
722 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
723 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
724 'offset', and adjust.
725
f9d83a0b
PA
7262013-04-19 Pedro Alves <palves@redhat.com>
727
728 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
729 (read_index_from_section): Add cast to 'char *'.
730
745eb4fd
PA
7312013-04-19 Pedro Alves <palves@redhat.com>
732
733 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
734
db5be46f
PA
7352013-04-19 Pedro Alves <palves@redhat.com>
736
737 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
738
0f928d68
PA
7392013-04-19 Pedro Alves <palves@redhat.com>
740
741 * record-full.c (record_full_get_bookmark): Change local 'ret'
742 type to char * and add cast to gdb_byte *.
743 (record_full_goto_bookmark): Handle 'bookmark' argument as a
744 string.
745 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
746
89f6d837
PA
7472013-04-19 Pedro Alves <palves@redhat.com>
748
749 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
750 * python/py-prettyprint.c (print_string_repr): Change type of
751 'output' local to char *. Add cast to gdb_byte * in
752 LA_PRINT_STRING call.
753 (print_children): Change type of 'output' local to char *.
754 * python/py-value.c (valpy_string): Add cast to const char * in
755 PyUnicode_Decode call.
756
ce6ec7d8
PA
7572013-04-19 Pedro Alves <palves@redhat.com>
758
759 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
760 and change its type to 'const char *'. Adjust.
761 (mips_send_packet): Add cast to 'char *', and remove cast to
762 'unsigned char *'.
763 (mips_receive_packet): Remove cast to 'unsigned char *'.
764 (mips_load_srec): Use bfd_byte.
765 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
766 (pmon_checkset): Make 'value' parameter unsigned.
767
fda0389f
PA
7682013-04-19 Pedro Alves <palves@redhat.com>
769
770 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
771
bc20a4af
PA
7722013-04-19 Pedro Alves <palves@redhat.com>
773
774 * remote.c (remote_write_bytes_aux, compare_sections_command)
775 (remote_read_qxfer)
776 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
777 (remote_hostio_readlink, remote_bfd_iovec_pread)
778 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
779 binary buffer, and char when buffer is used as string.
780 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
781 (trace_save, tfile_open, traceframe_walk_blocks)
782 (tfile_fetch_registers): Likewise.
783
c628b528
PA
7842013-04-19 Pedro Alves <palves@redhat.com>
785
786 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
787 buffer and size_t size. Adjust.
788 * ser-base.h (ser_base_write): Adjust.
789 * ser-go32.c (cnts): Change type to size_t.
790 (dos_write): Change prototype -- take 'void *'
791 buffer and size_t size. Adjust.
792 (dos_info): Print elements of 'cnts' as unsigned long.
793 * serial.c (serial_write): Likewise.
794 * serial.h (serial_write): Adjust.
795 (struct serial_ops) <write>: Change prototype -- take 'void *'
796 buffer and size_t size. Adjust.
797
51a5cd90
PA
7982013-04-19 Pedro Alves <palves@redhat.com>
799
800 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
801 gdb_byte *.
802 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
803
a9933661
PA
8042013-04-19 Pedro Alves <palves@redhat.com>
805
806 * alpha-tdep.c (alpha_extract_return_value): Use
807 regcache_cooked_read_unsigned to read 'v0'.
808
19afdd07
PA
8092013-04-19 Pedro Alves <palves@redhat.com>
810
811 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
812 parameters 'at', 'as' and 'offset' to uint32_t.
813
96b32e50
PA
8142013-04-19 Pedro Alves <palves@redhat.com>
815
816 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
817 'is64' to signed 'int'.
818
eb1bd1fb
PA
8192013-04-19 Pedro Alves <palves@redhat.com>
820
821 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
822 parameter to int *.
823
463920bf
PA
8242013-04-19 Pedro Alves <palves@redhat.com>
825
826 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
827 'insnbuf' buffer type to unsigned int[].
828
70242eb1
PA
8292013-04-19 Pedro Alves <palves@redhat.com>
830
831 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
832
9d1dd0e2
PA
8332013-04-19 Pedro Alves <palves@redhat.com>
834
835 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
836 unsigned long *.
837
44096aee
PA
8382013-04-19 Pedro Alves <palves@redhat.com>
839
840 * alpha-tdep.c (heuristic_fence_post): Change type to int.
841 (alpha_heuristic_proc_start): Adjust to check -1 instead of
842 UINT_MAX.
843 * mips-tdep.c (heuristic_fence_post): Change type to int.
844 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
845
e4286e57
PA
8462013-04-19 Pedro Alves <palves@redhat.com>
847
848 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
849 (struct gdbarch_tdep) <cris_version>: Make unsigned.
850 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
851
001f13d8
PA
8522013-04-19 Pedro Alves <palves@redhat.com>
853
854 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
855 it to get a string view of the byte buffer.
856 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
857 type to gdb_byte *. Adjust.
858 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
859 Change local to char *.
860 * solib-darwin.c (find_program_interpreter): Change return type to
861 char *. Adjust.
862 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
863 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
864 * solib-frv.c (enable_break2): Change local 'buf' to char *.
865 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
866 * solib-svr4.c (find_program_interpreter): Change return type to
867 char *. Adjust.
868 (enable_break): Change local 'interp_name' to char *.
869 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
870 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
871 (spu_pseudo_register_write_spu): Use char for string buffer.
872 Adjust.
873 (info_spu_event_command, info_spu_signal_command): Add casts to
874 'char *'.
875
948f8e3d
PA
8762013-04-19 Pedro Alves <palves@redhat.com>
877
878 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
879 gdb_byte[].
880 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
881 * ada-lang.c (ada_value_assign): Use gdb_byte.
882 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
883 (alphanbsd_sigtramp_offset): Use gdb_byte.
884 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
885 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
886 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
887 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
888 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
889 * arm-tdep.c (arm_stub_unwind_sniffer)
890 (arm_displaced_init_closure): Use gdb_byte.
891 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
892 (arm_default_thumb_le_breakpoint)
893 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
894 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
895 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
896 * arm-wince-tdep.c (arm_wince_le_breakpoint)
897 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
898 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
899 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
900 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
901 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
902 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
903 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
904 (cris_store_return_value, cris_extract_return_value): Use
905 gdb_byte.
906 (constraint): Change type of parameter to char * from signed
907 char*. Use gdb_byte.
908 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
909 of local buffer to gdb_byte *.
910 * dwarf2read.c (read_index_from_section): Use gdb_byte.
911 (create_dwp_hash_table): Change type of locals to gdb_byte *.
912 (add_address_entry): Change type of local buffer to gdb_byte[].
913 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
914 (frv_push_dummy_call): Use gdb_byte.
915 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
916 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
917 (hppa_hpux_supply_save_state): Use gdb_byte.
918 * hppa-tdep.c (hppa32_push_dummy_call)
919 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
920 * ia64-tdep.c (extract_bit_field, replace_bit_field)
921 (slotN_contents, replace_slotN_contents): Change type of parameter
922 to gdb_byte *.
923 (fetch_instruction, ia64_pseudo_register_write)
924 (ia64_register_to_value, ia64_value_to_register)
925 (ia64_extract_return_value, ia64_store_return_value)
926 (ia64_push_dummy_call): Use gdb_byte.
927 * m32c-tdep.c (m32c_return_value): Remove cast.
928 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
929 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
930 gdb_byte.
931 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
932 * mn10300-tdep.c (mn10300_store_return_value)
933 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
934 gdb_byte.
935 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
936 (moxie_process_record): Remove casts.
937 * ppc-ravenscar-thread.c (supply_register_at_address)
938 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
939 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
940 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
941 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
942 * remote.c (compare_sections_command): Use gdb_byte.
943 * score-tdep.c (score7_free_memblock): Change type of parameter to
944 gdb_byte *.
945 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
946 gdb_byte *. Use gdb_byte.
947 (sh_push_dummy_call_fpu): Use gdb_byte.
948 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
949 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
950 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
951 Change parameter type to 'gdb_byte *'. Use gdb_byte.
952 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
953 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
954 (sh64_store_return_value, sh64_register_convert_to_virtual):
955 Change parameter type to 'gdb_byte *'. Use gdb_byte.
956 (sh64_pseudo_register_write): Use gdb_byte.
957 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
958 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
959 buffer.
960 (irix_current_sos): Use gdb_byte.
961 * solib-som.c (som_current_sos): Use gdb_byte.
962 * sparc-ravenscar-thread.c (supply_register_at_address)
963 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
964 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
965 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
966 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
967 'gdb_byte *'.
968 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
969 'gdb_byte *'.
970 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
971 * xstormy16-tdep.c (xstormy16_extract_return_value)
972 (xstormy16_store_return_value): Change parameter type to
973 'gdb_byte *'. Adjust.
974 (xstormy16_push_dummy_call): Use gdb_byte.
975 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
976 (call0_analyze_prologue, execute_code): Use gdb_byte.
977
433730c9
PA
9782013-04-19 Vladimir Kargov <kargov@gmail.com>
979 Pedro Alves <palves@redhat.com>
980
981 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
982 value contents.
983
ac9ec31b
DE
9842013-04-17 Doug Evans <dje@google.com>
985
986 * dwarf2read.c (struct signatured_type): New member type.
987 (struct attribute): Replace member signatured_type with signature.
988 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
989 (read_call_site_scope): Call follow_die_ref instead of
990 follow_die_ref_or_sig.
991 (read_structure_type): Rewrite handling of signatured types.
992 (read_enumeration_type): Ditto.
993 (read_attribute_value): Update.
994 (build_error_marker_type): New function.
995 (lookup_die_type): Add assert. Rewrite handling of signatured types.
996 Don't call error for bad types, just build an error marker type.
997 (dump_die_shallow): Update.
998 (follow_die_sig_1): Renamed from follow_die_sig.
999 Don't call error for bad types, instead return NULL.
1000 (follow_die_sig): New function.
1001 (get_signatured_type, get_DW_AT_signature_type): New functions.
1002
e546e8bb
YZ
10032013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
1004
1005 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
1006 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
1007 function.
e546e8bb 1008
ab116149
YQ
10092013-04-17 Yao Qi <yao@codesourcery.com>
1010
1011 * top.c (print_gdb_configuration): Print configure-time
1012 parameter on using libbabeltrace or not.
1013
488a42b8
PA
10142013-04-16 Pedro Alves <palves@redhat.com>
1015
1016 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
1017
f5fb825b
PA
10182013-04-16 Pedro Alves <palves@redhat.com>
1019
85d494ea 1020 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
1021 (git 568035b7874a099087b77f7bba3e36a1173787b0).
1022
e1154999
PA
10232013-04-16 Pedro Alves <palves@redhat.com>
1024
1025 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
1026 * common/glibc_thread_db.h: ... this new file ...
1027 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
1028
e3b50a7f
PA
10292013-04-16 Will Newton <will.newton@gmail.com>
1030 Pedro Alves <palves@redhat.com>
1031
1032 PR build/11881
1033
1034 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
1035 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
1036 HAVE_THREAD_DB_H.
1037
1c2e4450
PA
10382013-04-16 Pedro Alves <palves@redhat.com>
1039 Eli Zaretskii <eliz@gnu.org>
1040
1041 * NEWS: Mention "set foo unlimited".
1042
4031ecc5
DE
10432013-04-15 Doug Evans <dje@google.com>
1044
19c3d4c9
DE
1045 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
1046 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
1047 (create_dwo_cu_reader): Renamed from
1048 create_dwo_debug_info_hash_table_reader.
1049 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
1050 Remove support for multiple CUs in a DWO file.
1051 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
1052
4031ecc5
DE
1053 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
1054 instead of phex.
1055 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
1056 (create_dwo_in_dwp): Ditto.
1057
b340913d
TT
10582013-04-15 Tom Tromey <tromey@redhat.com>
1059
1060 * NEWS: Move recent entries into "since 7.6" section.
1061
cc16e6c9
TT
10622013-04-15 Tom Tromey <tromey@redhat.com>
1063
1064 PR c++/13588:
1065 * NEWS: Update.
1066 * break-catch-throw.c (struct exception_catchpoint)
1067 <exception_rx, pattern>: New fields.
1068 (fetch_probe_arguments, dtor_exception_catchpoint)
1069 (check_status_exception_catchpoint)
1070 (print_one_detail_exception_catchpoint): New functions.
1071 (handle_gnu_v3_exceptions): Add "except_rx" argument.
1072 Compile regular expression if needed.
1073 (extract_exception_regexp): New function.
1074 (catch_exception_command_1): Use extract_exception_regexp.
1075 (compute_exception): Use fetch_probe_arguments.
1076 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
1077 and check_status fields.
1078 * cp-abi.c (cplus_typename_from_type_info): New function.
1079 * cp-abi.h (cplus_typename_from_type_info): Declare.
1080 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
1081 * gdb_regex.h (compile_rx_or_error): Declare.
1082 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
1083 comment.
1084 (init_gnuv3_ops): Set get_type_from_type_info field.
1085 * probe.c (compile_rx_or_error): Move...
1086 * utils.c (compile_rx_or_error): ... here.
1087
72f1fe8a
TT
10882013-04-15 Tom Tromey <tromey@redhat.com>
1089
1090 PR c++/15176:
1091 * NEWS: Update.
1092 * break-catch-throw.c (compute_exception): New function.
1093 (exception_funcs): New global.
1094 (_initialize_break_catch_throw): Create $_exception.
1095 * cp-abi.c (cplus_type_from_type_info): New function.
1096 * cp-abi.h (cplus_type_from_type_info): Declare.
1097 (struct cp_abi_ops) <get_type_from_type_info>: New field.
1098 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
1099 (gnuv3_get_type_from_type_info): New functions.
1100 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
1101
fc4746a2
TT
11022013-04-15 Tom Tromey <tromey@redhat.com>
1103
1104 * break-catch-throw.c (struct exception_names): New.
1105 (exception_functions): Change type.
1106 (re_set_exception_catchpoint): Look for SDT probes.
1107
15a73f56
TT
11082013-04-15 Tom Tromey <tromey@redhat.com>
1109
1110 PR c++/10119:
1111 * break-catch-throw.c (exception_functions): New global.
1112 (gnu_v3_exception_catchpoint_ops): Move earlier.
1113 (struct exception_catchpoint): New.
1114 (classify_exception_breakpoint): Rewrite.
1115 (re_set_exception_catchpoint): New function.
1116 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
1117 Allocate a struct exception_catchpoint.
1118 (catch_exception_command_1): Update.
1119 (initialize_throw_catchpoint_ops): Set 're_set' method.
1120
916703c0
TT
11212013-04-15 Tom Tromey <tromey@redhat.com>
1122
1123 * Makefile.in (SFILES): Add break-catch-throw.c
1124 (COMMON_OBS): Add break-catch-throw.o.
1125 * break-catch-throw.c: New file.
1126 * breakpoint.c: Move exception-catching code to new file.
1127 (ep_parse_optional_if_clause): No longer static.
1128 * breakpoint.h (ep_parse_optional_if_clause): Declare.
1129
6e72ca20
TT
11302013-04-15 Tom Tromey <tromey@redhat.com>
1131
1132 PR c++/9065:
1133 * NEWS: Update.
1134 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
1135 * c-exp.y (TYPEID): New token.
1136 (exp): Add new TYPEID productions.
1137 (ident_tokens): Add "typeid".
1138 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
1139 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
1140 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
1141 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
1142 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
1143 case.
1144 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
1145 (build_std_type_info_type, gnuv3_get_typeid_type)
1146 (gnuv3_get_typeid): New functions.
1147 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
1148 new fields on ABI object.
1149 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
1150 * std-operator.def (OP_TYPEID): New.
1151
715c6909
TT
11522013-04-15 Tom Tromey <tromey@redhat.com>
1153
1154 * elfread.c (elf_symtab_read): Install versioned symbol under
1155 unversioned name as well.
1156
8de20a37
TT
11572013-04-15 Tom Tromey <tromey@redhat.com>
1158
1159 PR c++/11990:
1160 * c-lang.c (cplus_language_defn): Use gdb_demangle.
1161 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
1162 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
1163 (gdb_demangle): New function.
1164 * cp-support.h (gdb_demangle): Declare.
1165 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
1166 (dwarf2_name): Use gdb_demangle.
1167 * gdbtypes.c (check_stub_method): Use gdb_demangle.
1168 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
1169 suffixes from name.
1170 (gnuv3_print_method_ptr): Use gdb_demangle.
1171 * jv-lang.c (java_demangle): Use gdb_demangle.
1172 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
1173 * language.c (unk_lang_demangle): Use gdb_demangle.
1174 * symtab.c (symbol_find_demangled_name)
1175 (demangle_for_lookup): Use gdb_demangle.
1176
591f19e8
TT
11772013-04-15 Tom Tromey <tromey@redhat.com>
1178
1179 PR c++/12824:
1180 * NEWS: Update.
1181 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
1182 New constant.
1183 (classify_exception_breakpoint): New function.
1184 (print_it_exception_catchpoint, print_one_exception_catchpoint)
1185 (print_mention_exception_catchpoint)
1186 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
1187 (catch_exception_command_1): Handle "rethrow" catchpoint.
1188 (catch_rethrow_command): New function.
1189 (_initialize_breakpoint): Add "catch rethrow" command.
1190
4d40cad2
PM
11912013-04-15 Pierre Muller <muller@sourceware.org>
1192
1193 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
1194 set_gdbarch_write_pc as deprecated anymore.
1195
30bcb456
JB
11962013-04-15 Joel Brobecker <brobecker@adacore.com>
1197
1198 * spu-tdep.c (spu_write_pc): Add empty line after local variable
1199 declarations.
1200
da9160e4
YQ
12012013-04-13 Yao Qi <yao@codesourcery.com>
1202
1203 * ctf.c (_initialize_ctf): Include "completer.h".
1204 Call add_target_with_completer instead of add_target.
1205
39ed5604
JK
12062013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1207
1208 Fix GDB regression related to PR binutils/14813.
1209 * jit.c (mem_bfd_iovec_close): Return 0 for success.
1210 * minidebug.c (lzma_close): Add return value comment.
1211 * remote.c (remote_bfd_iovec_close): Return 0 for success.
1212 * solib-spu.c (spu_bfd_iovec_close): Likewise.
1213 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
1214
12152013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
1216
1217 * config.in: Regenerate.
1218
d521ce57
TT
12192013-04-12 Tom Tromey <tromey@redhat.com>
1220
1221 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
1222 const.
1223 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
1224 (struct die_reader_specs) <buffer>: Likewise.
1225 (die_reader_func_ftype): Make 'info_ptr' const.
1226 (struct line_header) <include_dirs, statement_program_start,
1227 statement_program_end>: Now const.
1228 (struct file_entry) <name>: Likewise.
1229 (struct partial_die_info) <sibling>: Likewise.
1230 (struct dwarf_block) <data>: Likewise.
1231 (dwarf2_read_section): Remove cast.
1232 (dwarf2_get_section_info): Make 'bufp' const.
1233 (read_index_from_section): Constify.
1234 (dw2_get_file_names_reader): Make 'info_ptr' const.
1235 (dw2_get_primary_filename_reader): Likewise.
1236 (read_comp_unit_head): Make 'info_ptr' and return type const.
1237 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
1238 Likewise.
1239 (read_abbrev_offset): Constify.
1240 (dwarf2_create_include_psymtab): Make 'name' const.
1241 (create_debug_types_hash_table): Update.
1242 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
1243 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
1244 Constify.
1245 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
1246 (load_partial_comp_unit_reader): Make 'info_ptr' const.
1247 (read_comp_units_from_section): Constify.
1248 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
1249 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
1250 const.
1251 (dwarf2_compute_name, setup_type_unit_groups): Constify.
1252 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
1253 (create_dwp_hash_table, dwarf2_ranges_read)
1254 (dwarf2_record_block_ranges): Constify.
1255 (read_die_and_children, read_die_and_siblings_1)
1256 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
1257 const.
1258 (read_full_die_1, read_full_die): Make 'info_ptr' const.
1259 (abbrev_table_read_table): Constify.
1260 (load_partial_dies): Make 'info_ptr' const.
1261 (read_partial_die, read_attribute_value, read_attribute): Make
1262 'info_ptr' and return type const.
1263 (read_address, read_initial_length)
1264 (read_checked_initial_length_and_offset, read_offset)
1265 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
1266 const.
1267 (read_direct_string): Make 'buf' and return type const.
1268 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
1269 (read_indirect_string): Make return type const.
1270 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
1271 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
1272 'info_ptr' const.
1273 (read_str_index): Make return type const.
1274 (add_include_dir): Make 'include_dir' const.
1275 (add_file_name): Make 'name' const.
1276 (dwarf_decode_line_header): Constify.
1277 (psymtab_include_file_name): Make return type const.
1278 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
1279 (dwarf2_start_subfile): Make 'filename' const.
1280 (dwarf2_const_value_attr): Make 'bytes' const.
1281 (read_signatured_type_reader): Make 'info_ptr' const.
1282 (decode_locdesc): Constify.
1283 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
1284 const.
1285 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
1286 'mac_end', and return type const.
1287 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
1288 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
1289 type const.
1290 (per_cu_header_read_in): Constify.
1291 * symfile.h (dwarf2_get_section_info): Update.
1292
d47a1bc1
TT
12932013-04-12 Tom Tromey <tromey@redhat.com>
1294
1295 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
1296
6eaaf48b
EZ
12972013-04-12 Eli Zaretskii <eliz@gnu.org>
1298
fc4c25bf 1299 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
1300 * top.c (print_gdb_configuration): New function, displays the
1301 details about GDB configure-time parameters.
1302 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
1303 * cli/cli-cmds.c (show_configuration): New function.
1304 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
1305 * main.c (captured_main) <print_configuration>: New static var.
1306 <long_options>: Use it.
1307 If --configuration was given, call print_gdb_configuration.
1308
b292c783
JK
13092013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1310 Pedro Alves <palves@redhat.com>
1311
1312 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
1313 (generated_files): Add gcore.
1314 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
1315 HAVE_NATIVE_GCORE_HOST.
1316 (gcore): New.
1317 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
1318 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
1319 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
1320 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
1321 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
1322 Add HAVE_NATIVE_GCORE_HOST.
1323 * configure: Regenerate.
1324 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
1325 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
1326 AC_CONFIG_FILES for gcore.
1327 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
1328 gdb_have_gcore.
1329 * gdb_gcore.sh: Rename to ...
1330 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
1331 and GCORE_TRANSFORM_NAME substitutions.
1332
c96b3c4f
JK
1333 Fix parsing tabs in ${gdb_target_obs}.
1334 * configure.tgt (gdb_have_gcore): Replace case with for and if.
1335
d6cb50a2
JK
13362013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1337
1338 * remote.c (unpush_and_perror): Add output message final dot.
1339
cf2cb5ec
YQ
13402013-04-11 Yao Qi <yao@codesourcery.com>
1341
1342 * tracepoint.c (tfile_interp_line): Fit parameters line and
1343 utpp in one line.
1344
07293be4
JB
13452013-04-10 Joel Brobecker <brobecker@adacore.com>
1346
1347 * solib.c (solib_map_sections): Remove code overwriting
1348 SO->SO_NAME with the bfd's filename.
1349
f81d1120
PA
13502013-04-10 Pedro Alves <palves@redhat.com>
1351
1352 * cli/cli-decode.c (integer_unlimited_completer): New function.
1353 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
1354 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
1355 completer.
1356 * cli/cli-setshow.c: Include "cli/cli-utils.h".
1357 (is_unlimited_literal): New function.
1358 (do_set_command): Handle literal "unlimited" arguments.
1359 * frame.c (_initialize_frame) <set backtrace limit>: Document
1360 "unlimited".
1361 * printcmd.c (_initialize_printcmd) <set print
1362 max-symbolic-offset>: Add help text.
1363 * record-full.c (_initialize_record_full) <set record full
1364 insn-number-max>: Likewise.
1365 * record.c (_initialize_record) <set record
1366 instruction-history-size, set record function-call-history-size>:
1367 Add help text.
1368 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
1369 help text.
1370 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
1371 Likewise.
1372 * source.c (_initialize_source) <set listsize>: Add help text.
1373 * utils.c (initialize_utils) <set height, set width>: Likewise.
1374 <set pagination>: Mention "set height unlimited".
1375 * valprint.c (_initialize_valprint) <set print elements, set print
1376 repeats>: Document "unlimited".
1377
2f9d54cf
PA
13782013-04-10 Pedro Alves <palves@redhat.com>
1379
1380 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
1381 instead of disconnect_tracing.
1382 * infcmd.c (detach_command, disconnect_command): Call
1383 query_if_trace_running. Adjust.
1384 * top.c: Include "tracepoint.h".
1385 (quit_target): Delete. Contents moved ...
1386 (quit_force): ... here. Wrap each stage of teardown in
1387 TRY_CATCH. Call disconnect_tracing before detaching.
1388
393fd4c3
YQ
13892013-04-10 Hui Zhu <hui@codesourcery.com>
1390 Yao Qi <yao@codesourcery.com>
1391
1392 * configure.ac: Check libbabeltrace is installed.
1393 * config.in: Regenerate.
1394 * configure: Regenerate.
1395 * Makefile.in (LIBBABELTRACE): New.
1396 (CLIBS): Add LIBBABELTRACE.
1397 * ctf.c: Include "exec.h".
1398 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
1399 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
1400 (ctf_save_metadata_header): Define new type aliases in
1401 metadata.
1402 (ctf_write_header): Define event type "tsv_def" and "tp_def"
1403 in metadata. Start a new faked packet for trace status.
1404 (ctf_write_status): Write trace status to CTF.
1405 (ctf_write_uploaded_tsv): Write TSV to CTF.
1406 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
1407 (ctf_write_definition_end): End the faked packet.
1408
1409 (ctx, ctf_iter, trace_dirname): New.
1410 (start_pos): New variable.
1411 (ctf_destroy, ctf_open_dir, ctf_open): New.
1412 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
1413 macros.
1414 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
1415 (ctf_fetch_registers, ctf_xfer_partial): New.
1416 (ctf_get_trace_state_variable_value): New.
1417 (ctf_get_tpnum_from_frame_event): New.
1418 (ctf_get_traceframe_address): New.
1419 (ctf_trace_find, ctf_has_stack): New.
1420 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
1421 (ctf_get_trace_status, ctf_read_status): New.
1422 (_initialize_ctf): New.
1423 * tracepoint.c (get_tracepoint_number): New
1424 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 1425 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
1426 * tracepoint.h: ... here.
1427 (get_tracepoint_number): Declare it.
1428 (get_uploaded_tsv): Declare it.
1429
1430 * NEWS: Mention new configure option.
1431
5c2b4418
HZ
14322013-04-10 Pedro Alves <palves@redhat.com>
1433 Hui Zhu <hui@codesourcery.com>
1434
1435 * breakpoint.c (dprintf_re_set): New.
1436 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
1437 to dprintf_re_set.
1438
a5c66735
JB
14392013-04-09 Joel Brobecker <brobecker@adacore.com>
1440
1441 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
1442 Remove solib-svr4.o from the list.
1443
9e77999c
JB
14442013-04-09 Joel Brobecker <brobecker@adacore.com>
1445
1446 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
1447 Use gdb_assert_not_reached instead of invalid boolean expression.
1448
1927e618
PA
14492013-04-09 Pedro Alves <palves@redhat.com>
1450
1451 * remote.c (unpush_and_perror): New function.
1452 (readchar, remote_serial_write): Use it.
1453
10782d74
MM
14542013-04-09 Markus Metzger <markus.t.metzger@intel.com>
1455
1456 * NEWS: Mention new btrace RSP packets.
1457
4c8429ef
TT
14582013-04-08 Tom Tromey <tromey@redhat.com>
1459
1460 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
1461 long.
1462
8625fc1b
TT
14632013-04-08 Tom Tromey <tromey@redhat.com>
1464
1465 * maint.c (print_bfd_section_info): Print the section index.
1466 * symmisc.c (dump_msymbols): Print the section index.
1467
e27d198c
TT
14682013-04-08 Tom Tromey <tromey@redhat.com>
1469
1470 PR symtab/8424:
1471 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
1472 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
1473 * breakpoint.c (resolve_sal_pc): Update.
1474 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1475 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
1476 (minsym_lookup_iterator_cb): Use it.
1477 (default_read_var_value): Update.
1478 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
1479 Update.
1480 * infcmd.c (jump_command): Update.
1481 * linespec.c (minsym_found): Update.
1482 * maint.c (maintenance_translate_address): Update.
1483 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
1484 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
1485 * parse.c (write_exp_msymbol): Update.
1486 * printcmd.c (address_info): Update.
1487 * psymtab.c (find_pc_sect_psymbol): Update.
1488 (fixup_psymbol_section): Check SYMBOL_SECTION, not
1489 SYMBOL_OBJ_SECTION.
1490 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
1491 Don't initialize SYMBOL_OBJ_SECTION.
1492 * spu-tdep.c (spu_catch_start): Update.
1493 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
1494 * symmisc.c (dump_msymbols, print_symbol): Update.
1495 * symtab.c (fixup_section): Don't set 'obj_section'. Change
1496 how fallback section is computed.
1497 (fixup_symbol_section): Update.
1498 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
1499 Update.
1500 (allocate_symbol, initialize_symbol, allocate_template_symbol):
1501 Initialize SYMBOL_SECTION.
1502 * symtab.h (struct general_symbol_info) <section>: Update comment.
1503 <obj_section>: Remove.
1504 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
1505 (SYMBOL_OBJFILE): New macro.
1506
e6dc44a8
TT
15072013-04-08 Tom Tromey <tromey@redhat.com>
1508
1509 * coffread.c (record_minimal_symbol): Update.
1510 * dbxread.c (record_minimal_symbol): Update.
1511 * elfread.c (record_minimal_symbol): Update.
1512 * machoread.c (macho_symtab_add_minsym): Update.
1513 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
1514 Update.
1515 * minsyms.c (prim_record_minimal_symbol): Update.
1516 (prim_record_minimal_symbol_full): Remove 'bfd_section'
1517 argument.
1518 (prim_record_minimal_symbol_and_info): Likewise.
1519 * minsyms.h (prim_record_minimal_symbol_full)
1520 (prim_record_minimal_symbol_and_info): Update.
1521 * symtab.c (allocate_symbol, initialize_symbol)
1522 (allocate_template_symbol): Initialize SYMBOL_SECTION.
1523 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
1524 Update.
1525
36192a8d
TT
15262013-04-08 Tom Tromey <tromey@redhat.com>
1527
1528 PR symtab/8423:
1529 * solib-som.c (som_solib_section_offsets): Use BFD section
1530 indices. Set offsets for all sections.
1531 * somread.c (som_symtab_read): Compute BFD section for
1532 symbol. Use prim_record_minimal_symbol_and_info.
1533 (som_symfile_read): Fix comment.
1534 (struct find_section_offset_arg): New.
1535 (find_section_offset, set_section_index): New functions.
1536 (som_symfile_offsets): Use set_section_index to compute
1537 section indices.
1538
65cf3563
TT
15392013-04-08 Tom Tromey <tromey@redhat.com>
1540
1541 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
1542 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
1543 gdb_bfd_section_index.
1544 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
1545 New functions.
1546 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
1547 Declare.
1548 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
1549 Update.
1550 * objfiles.c (add_to_objfile_sections_full): New function.
1551 (add_to_objfile_sections): Use it.
1552 (build_section_table): Rewrite.
1553 (objfile_relocate1): Use gdb_bfd_section_index. Update.
1554 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
1555 (struct objfile) <sections>: Update comment.
1556 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
1557 is NULL.
1558 (ALL_OBJSECTIONS): Use it.
1559 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
1560 * solib-frv.c (frv_relocate_main_executable): Update.
1561 * solib-target.c (solib_target_relocate_section_addresses):
1562 Use gdb_bfd_section_index.
1563 * symfile.c (build_section_addr_info_from_section_table):
1564 Use gdb_bfd_section_index.
1565 (build_section_addr_info_from_bfd, place_section): Likewise.
1566 * symtab.c (fixup_section): Update.
1567 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
1568
7cbd4a93
TT
15692013-04-08 Tom Tromey <tromey@redhat.com>
1570
1571 * minsyms.h (struct bound_minimal_symbol): New.
1572 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
1573 Remove objfile argument.
1574 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
1575 Return bound_minimal_symbol.
1576 * minsyms.c (lookup_minimal_symbol_by_pc_1)
1577 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
1578 Return bound_minimal_symbol.
1579 (in_gnu_ifunc_stub): Update.
1580 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
1581 Remove 'objfile_p' argument.
1582 (lookup_solib_trampoline_symbol_by_pc): Update.
1583 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
1584 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
1585 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
1586 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
1587 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
1588 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
1589 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
1590 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
1591 stack.c, symtab.c, tui/tui-disasm.c: Update.
1592
f85f34ed
TT
15932013-04-08 Tom Tromey <tromey@redhat.com>
1594
1595 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
1596 Use symbol's obstack, not an objfile.
1597 * coffread.c (process_coff_symbol): Update.
1598 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
1599 * jv-lang.c (add_class_symbol): Update.
1600 * mdebugread.c (new_symbol): Update.
1601 * minsyms.c (prim_record_minimal_symbol_full)
1602 (terminate_minimal_symbol_table): Update.
1603 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
1604 * stabsread.c (define_symbol, read_enum_type): Update.
1605 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
1606 Handle Ada specially.
1607 (symbol_set_language): Add 'obstack' argument.
1608 (symbol_set_names): Update.
1609 (symbol_natural_name, symbol_demangled_name): Always use
1610 ada_decode_symbol.
1611 * symtab.h (struct general_symbol_info)
1612 <language_specific::obstack>: New field.
1613 <ada_mangled>: New field.
1614 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
1615 (symbol_set_language): Update.
1616
ccde22c0
TT
16172013-04-08 Tom Tromey <tromey@redhat.com>
1618
1619 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
1620 Take an obstack, not an objfile.
1621 (symbol_set_names): Update.
1622 * symtab.h (symbol_set_demangled_name): Update.
1623
e623cf5d
TT
16242013-04-08 Tom Tromey <tromey@redhat.com>
1625
1626 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
1627 allocate_symbol.
1628 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
1629 (read_func_scope): Call allocate_template_symbol.
1630 (new_symbol_full): Call allocate_symbol.
1631 * jit.c (finalize_symtab): Call allocate_symbol.
1632 * jv-lang.c (add_class_symbol): Call allocate_symbol.
1633 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
1634 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
1635 (common_block_end): Call allocate_symbol.
1636 * symtab.c (allocate_symbol, initialize_symbol)
1637 (allocate_template_symbol): New functions.
1638 * symtab.c (allocate_symbol, initialize_symbol)
1639 (allocate_template_symbol): Declare.
1640 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
1641
f6de8ec2
PA
16422013-04-08 Pedro Alves <palves@redhat.com>
1643 Keith Seitz <keiths@redhat.com>
1644
1645 * breakpoint.c (create_breakpoint): Rename
1646 "parse_condition_and_thread" parameter to "parse_arg". Update
1647 describing comment. If !PARSE_ARG, then error out if ARG is not
1648 the empty string after extracting the location.
1649 * breakpoint.h (create_breakpoint): Rename
1650 "parse_condition_and_thread" parameter to "parse_arg".
1651
f65ce5fb
AR
16522013-04-08 Aleksandar Ristovski <aristovski@qnx.com
1653
1654 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
1655
cc5925ad
YQ
16562013-04-07 Yao Qi <yao@codesourcery.com>
1657
1658 * remote.c (remote_trace_find): Change type of parameters 'addr1'
1659 and 'addr2' to CORE_ADDR.
1660 * target.c (update_current_target): Update.
1661 * target.h (struct target_ops) <to_trace_find>: Change parameter
1662 type to CORE_ADDR.
1663 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
1664 'addr2' to CORE_ADDR.
1665 (tfile_trace_find): Likewise.
1666 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
1667 Change local variable 'addr' to type CORE_ADDR.
1668 * tracepoint.h (tfind_1): Update declaration.
1669
d9ac0664
EZ
16702013-04-06 Eli Zaretskii <eliz@gnu.org>
1671
1672 * windows-nat.c (windows_get_absolute_argv0): Move from here...
1673 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
1674 Include main.h.
1675
1676 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
1677 here...
1678 * main.h (windows_get_absolute_argv0): ...to here.
1679
02142a6c
DE
16802013-04-05 Doug Evans <dje@google.com>
1681
1682 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
1683 (read_cutu_die_from_dwo): Add comments.
1684 (read_structure_type): Update comment.
1685 (read_enumeration_type, read_namespace_type): Update comment.
1686 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
1687
43662968
JK
16882013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1689
1690 Convert man pages to texinfo, new gdbinit.5 texinfo page.
1691 * Makefile.in (gdb.z): Remove.
1692 (install-only): Remove $(man1dir) and gdb.1 installation.
1693 * gdb.1: Remove.
1694
9ead1b84
JK
16952013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1696
1697 Fix compatibility with Linux kernel 3.8.3.
1698 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
1699 to more inner block. Remove parsing of NUMBER from outer block.
1700 Parse NUMBER only if KEYWORD has been identified.
1701
d1794952
JK
17022013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1703
1704 Fix variable name shadowing.
1705 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
1706 filename to mapsfilename and update its uses.
1707
9025569e
EZ
17082013-04-05 Eli Zaretskii <eliz@gnu.org>
1709
1710 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
1711 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
1712 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
1713 details of the problem.
1714
c9a6ce02
PA
17152013-04-04 Pedro Alves <palves@redhat.com>
1716 Hui Zhu <hui@codesourcery.com>
1717
1718 * breakpoint.c (validate_commands_for_breakpoint): If validating a
1719 tracepoint, reset its STEP_COUNT and call validate_actionline.
1720
5ff888ce
DE
17212013-04-03 Doug Evans <dje@google.com>
1722
bf6af496
DE
1723 * dwarf2read.c (read_die_and_siblings_1): Renamed from
1724 read_die_and_siblings.
1725 (read_die_and_siblings): New function.
1726 (read_cutu_die_from_dwo): Dump die if requested.
1727 (read_die_and_children): Call read_full_die_1 and
1728 read_die_and_siblings_1.
1729 (read_full_die): Dump die if requested.
1730
1731 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
1732
0ac5b59e
DE
1733 * dwarf2read.c (struct dwo_file): New member comp_dir.
1734 Rename member name to dwo_name. All uses updated.
1735 (hash_dwo_file): Include comp_dir in computation.
1736 (eq_dwo_file): Ditto.
1737 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
1738 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
1739
5ff888ce
DE
1740 * psymtab.c (read_psymtabs_with_fullname): Don't call
1741 psymtab_to_fullname if the basenames are different.
1742
ec83d211
JK
17432013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1744
1745 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
1746 New entry about "fullname" presence.
1747
4f4352f7
PA
17482013-04-03 Pedro Alves <palves@redhat.com>
1749
1750 * NEWS: Mention x86_64/Cygwin as new native configuration.
1751
3d1d5ea3
DE
17522013-04-02 Doug Evans <dje@google.com>
1753
1754 * dwarf2read.c (read_structure_type): Fix typo in comment.
1755
be9a8770
PA
17562013-04-02 Pedro Alves <palves@redhat.com>
1757
1758 * NEWS: Mention "set/show debug aarch64", "set/show debug
1759 coff-pe-read" and "set/show debug mach-o".
1760
a46c1e42
PA
17612013-04-02 Pedro Alves <palves@redhat.com>
1762
1763 * NEWS: Mention "set/show remote trace-buffer-size-packet".
1764
3ad18b19
EZ
17652013-04-02 Eli Zaretskii <eliz@gnu.org>
1766
1767 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
1768 gdb_string.h is now in common/.
1769
e9f1758d
PA
17702013-04-02 Pedro Alves <palves@redhat.com>
1771
1772 * NEWS: Move "set debug notification" and "set trace-buffer-size"
1773 under "New options".
1774
049dc89b
JK
17752013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1776
1777 Revert this patch:
1778 PR gdb/15275
1779 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
1780
c33e31fd
PA
17812013-04-02 Pedro Alves <palves@redhat.com>
1782
1783 PR gdb/15275
1784
1785 * remote.c (send_interrupt_sequence): Use remote_serial_write.
1786 (remote_serial_write): New function.
1787 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
1788
ea5f3910
JW
17892013-04-01 Jiong Wang <jiwang@tilera.com>
1790
1791 * NEWS: Mention TILE-Gx in "New native configurations" and
1792 "New targets" sections.
1793
5c6fa7ab
DE
17942013-04-01 Doug Evans <dje@google.com>
1795
c0f78cd4
DE
1796 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
1797 (process_enumeration_scope): Simplify.
1798
0186c6a7
DE
1799 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
1800 type_unit_group ...
1801 (struct signatured_type): ... to here.
1802 (sig_type_ptr): New typedef.
1803 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
1804 out of union 't'. All uses updated.
1805 (dw2_get_file_names_reader): Assert not called for a type unit.
1806 (dw2_get_file_names): Assert not called for a type unit or type
1807 unit group.
1808 (build_type_psymtabs_reader): Assert called for a type unit.
1809 (build_type_psymtab_dependencies): Assert called for a type unit group.
1810
5c6fa7ab
DE
1811 * dwarf2read.c (free_dwo_file): Add comment.
1812 (dwarf2_per_objfile_free): Unref dwp bfd.
1813
b3c0ad67 18142013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
1815
1816 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
1817 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
1818 (read_pe_exported_syms): Remove unused 'exportix'.
1819 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
1820 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
1821 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
1822
e2df1547
AR
18232013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
1824
1825 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
1826 (print_it_watchpoint): Remove unused 'bl'.
1827 (say_where): Remove unused 'uiout'.
1828 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
1829 (bkpt_breakpoint_hit): Remove unused 'b'.
1830 (internal_bkpt_print_it): Remove unused 'uiout'.
1831 * buildsym.c (augment_type_symtab): Remove unused 'i'.
1832
d81e75c0
TD
18332013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1834
1835 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
1836 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
1837
5a8b3f62
DE
18382013-03-29 Doug Evans <dje@google.com>
1839
ab5088bf
DE
1840 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
1841 Delete arg is_dwp. All callers updated.
1842 (open_dwp_file): New function.
1843 (open_and_init_dwp_file): Call it.
1844 (get_dwp_file): New function.
1845 (lookup_dwo_cutu): Call it.
1846
a8ad1e57
DE
1847 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
1848 unnecessary, cleanup.
1849
6296d8c1
DE
1850 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
1851
b0c7bfa9
DE
1852 * dwarf2read.c (read_cutu_die_from_dwo): New function.
1853 (lookup_dwo_unit): New function.
1854 (init_cutu_and_read_dies): Move DWO handling to new functions.
1855
c88ee1f0
DE
1856 * dwarf2read.c (struct signatured_type): Tweak comment.
1857 (struct dwo_unit): Tweak comment.
1858 (create_debug_types_hash_table): Tweak comment. Reformat long line.
1859 (create_dwo_debug_info_hash_table): Tweak comment.
1860 (dwarf2_per_cu_offset_and_type): Tweak comment.
1861
5a8b3f62
DE
1862 * dwarf2read.c (lookup_signatured_type): Remove complaint about
1863 missing .debug_types section.
1864
9852c492
YQ
18652013-03-29 Yao Qi <yao@codesourcery.com>
1866
1867 * corelow.c: Include "completer.h".
1868 (_initialize_corelow): Call add_target_with_completer with
1869 argument 'filename_completer'.
1870 * tracepoint.c: Likewise.
1871 * exec.c (_initialize_exec): Likewise.
1872 * target.c (add_target): Rename to ...
1873 (add_target_with_completer): ... this. Call set_cmd_completer
1874 if parameter completer is not NULL.
1875 (add_target): New.
1876 * target.h: Include "command.h".
1877 (add_target_with_completer): Declare it.
1878
af312be7
JB
18792013-03-28 Joel Brobecker <brobecker@adacore.com>
1880
1881 * coffread.c (is_import_fixup_symbol): New function.
1882 (record_minimal_symbol): Use is_import_fixup_symbol to
1883 detect import fixup symbols, and discard them.
1884
8a0459fd
DE
18852013-03-28 Doug Evans <dje@google.com>
1886
0349ea22
DE
1887 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
1888 types hash table until we know we need it.
1889
f652bce2
DE
1890 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
1891 index numbers.
1892
e4a48d9d
DE
1893 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
1894 All callers updated.
1895 (dw2_print_stats): Print #read CUs too.
1896 (dump_die_shallow): Print signatured types better.
1897
8a0459fd
DE
1898 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
1899 info_or_types_section to section. All uses updated.
1900 (struct dwo_unit): Ditto.
1901
bd3eecc3
PA
19022013-03-28 Pedro Alves <palves@redhat.com>
1903
1904 * NEWS (New options): New section.
1905 (New options): Mention set/show remote trace-status-packet.
1906 * remote.c (PACKET_qTStatus): New enumeration value.
1907 (remote_get_trace_status): Skip sending qTStatus if the packet is
1908 disabled. Use packet_ok.
1909 (_initialize_remote): Register a configuration command for
1910 qTStatus packet.
1911
41245087
DE
19122013-03-28 Doug Evans <dje@google.com>
1913
7edbb660
DE
1914 * symfile.c (find_separate_debug_file): Add comment.
1915 (terminate_after_last_dir_separator): Tweak comment.
1916
0018ea6f
DE
1917 * dwarf2read.c (create_partial_symtab): Add forward decl.
1918 (create_partial_symtab): Move to be closer to other psymtab functions.
1919 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
1920
ca69b9e6
DE
1921 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
1922 (compute_symtab_includes): Remove unnecessary forward declaration.
1923 (die_needs_namespace): Add comment marking group of functions for
1924 dwarf2 name computation.
1925
a9375afe
DE
1926 * typeprint.c (_initialize_typeprint): Improve type help text.
1927
41245087
DE
1928 * python/python.c (finish_python_initialization): Provide suggestion
1929 for how to tell gdb to find its python files.
1930
7f7cc265
PA
19312013-03-28 Pedro Alves <palves@redhat.com>
1932
1933 PR gdb/15294
1934
1935 * source.c (_initialize_source): Change back "set listsize" to an
1936 integer command.
1937
ec21308c
JK
19382013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
1939
1940 PR gdb/15275
1941 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
1942
840a9a1f
PA
19432013-03-27 Pedro Alves <palves@redhat.com>
1944
1945 * top.c (history_size): Rename to ...
1946 (history_size_setshow_var): ... this. Add comment.
1947 (show_commands): Use readline's 'history_length' instead of
1948 computing the history length by calling history_get in a loop.
1949 (set_history_size_command): Error out for sizes over INT_MAX.
1950 Restore previous history size on invalid size.
1951 (init_history): If HISTSIZE is negative, leave the history size as
1952 zero. Add comments.
1953 (init_main): Adjust.
1954
826ecc4d
PA
19552013-03-27 Pedro Alves <palves@redhat.com>
1956
1957 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
1958 coff_pe_read" command to "set debug coff-pe-read".
1959
0ccfeeae
MM
19602013-03-27 Markus Metzger <markus.t.metzger@intel.com>
1961
1962 * record.c (command_size_to_target_size): Fix size comparison.
1963 Change parameter type from pointer to integer to integer.
1964 Update all users.
1965
40653b35
PM
19662013-03-27 Pierre Muller <muller@sourceware.org>
1967
1968 * windows-nat.c (handle_output_debug_string): Avoid typecast
1969 from integer of different size warning.
1970
c62fa0e2
JB
19712013-03-26 Joel Brobecker <brobecker@adacore.com>
1972
1973 * windows-nat.c (handle_output_debug_string): Add empty line
1974 after local block variable definition.
1975
2c619be2
PA
19762013-03-26 Pedro Alves <palves@redhat.com>
1977
1978 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
1979 (net_open): Make 'polls' local unsigned.
1980
1b493192
PA
19812013-03-26 Pedro Alves <palves@redhat.com>
1982
1983 * remote.c (_initialize_remote): Make "set remoteaddresssize"
1984 a zuinteger command instead of uinteger.
1985
7ee70bf5
PA
19862013-03-26 Pedro Alves <palves@redhat.com>
1987
1988 * record-full.c (record_full_insn_num): Make it unsigned.
1989 (record_full_check_insn_num, record_full_message)
1990 (record_full_registers_change, record_full_xfer_partial): Remove
1991 record_full_insn_max_num check (it's always != 0).
1992 (record_full_info, record_full_restore): Use %u as format string.
1993 (): Use %u as format string.
1994 (set_record_full_insn_max_num): Remove record_full_insn_max_num
1995 check (it's always != 0).
1996
dfd1f9bb
PA
19972013-03-26 Pedro Alves <palves@redhat.com>
1998
1999 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
2000 and "set dcache size" commands zuinteger instead of uinteger.
2001
addb4faf
PA
20022013-03-26 Pedro Alves <palves@redhat.com>
2003
2004 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
2005 command zuinteger instead of uinteger.
2006
b75bf488
PA
20072013-03-26 Pedro Alves <palves@redhat.com>
2008
2009 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
2010 zuinteger instead of uinteger.
2011
42c634cb
PA
20122013-03-26 Pedro Alves <palves@redhat.com>
2013
2014 * record.c (record_insn_history_size_setshow_var)
2015 (record_call_history_size_setshow_var): New globals.
2016 (command_size_to_target_size): New function.
2017 (cmd_record_insn_history, cmd_record_call_history): Use
2018 command_size_to_target_size instead of cast.
2019 (validate_history_size, set_record_insn_history_size)
2020 (set_record_call_history_size): New functions.
2021 (_initialize_record): Install set_record_insn_history_size and
2022 set_record_call_history_size as "set" hooks of "set record
2023 instruction-history-size" and "set record
2024 function-call-history-size".
2025
1fb2e2b5
PA
20262013-03-26 Pedro Alves <palves@redhat.com>
2027
2028 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
2029 use with history_max_entries use. Remove FIXME note.
2030
99c819ee
MM
20312013-03-26 Markus Metzger <markus.t.metzger@intel.com>
2032
2033 * record-btrace.c (record_btrace_close): Call
2034 record_btrace_auto_disable.
2035
9f9e404c
JB
20362013-03-25 Joel Brobecker <brobecker@adacore.com>
2037
2038 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
2039
ebcdfe33
DE
20402013-03-25 Doug Evans <dje@google.com>
2041
2042 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
2043
24955f63
TT
20442013-03-25 Tom Tromey <tromey@redhat.com>
2045
2046 PR symtab/11462:
2047 * c-exp.y (exp): Add new productions for destructors after '.' and
2048 '->'.
2049 (write_destructor_name): New function.
2050
fce632b6
TT
20512013-03-25 Tom Tromey <tromey@redhat.com>
2052
2053 PR c++/9197:
2054 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
2055 value_struct_elt, not lookup_struct_elt_type.
2056 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
2057 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
2058 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
2059
a4341769
YQ
20602013-03-25 Yao Qi <yao@codesourcery.com>
2061
2062 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
2063 instead of '_mkdir'.
2064
b5981e5a
EZ
20652013-03-23 Eli Zaretskii <eliz@gnu.org>
2066
2067 * windows-nat.c (windows_get_absolute_argv0): New function.
2068 * windows-nat.h: Add its prototype.
2069
2070 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
2071 Use IS_DIR_SEPARATOR instead of looking for a character inside
2072 SLASH_STRING. Include filenames.h.
2073 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
2074 relocate_gdb_directory works when passed gdb_program_name.
2075 Include windows-nat.h.
2076
598d3636
JK
20772013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2078
2079 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
2080 * remote.c (trace_error): Remove the special handling of '2'.
2081 (readchar) <SERIAL_EOF>
2082 (readchar) <SERIAL_ERROR>
2083 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
2084 (remote_get_trace_status): Call throw_exception if EX is
2085 TARGET_CLOSE_ERROR.
2086 * utils.c (perror_with_name): Rename to ...
2087 (throw_perror_with_name): ... here. New parameter errcode, describe it
2088 in the function comment.
2089 (perror_with_name): New function wrapper.
2090 * utils.h (enum errors): New stub declaration.
2091 (throw_perror_with_name): New declaration.
2092
82b821e9
PA
20932013-03-22 Pedro Alves <palves@redhat.com>
2094 Yao Qi <yao@codesourcery.com>
2095 Mark Kettenis <kettenis@gnu.org>
2096
2097 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
2098 Don't let the user set the value to UINT_MAX directly.
2099 <var_integer>: Don't let the user set the value to INT_MAX
2100 directly.
2101
78a095c3
JK
21022013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2103
2104 * remote.c (remote_unpush_target): New function.
2105 (remote_open_1): Remove two pop_target calls, update one comment, add
2106 comment to target_preopen call. Replace pop_target call by
2107 remote_unpush_target call.
2108 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
2109 pop_target calls by remote_unpush_target calls.
2110
3e74e146
PA
21112013-03-22 Pedro Alves <palves@redhat.com>
2112
2113 * linux-nat.c (linux_child_follow_fork): Don't call
2114 linux_enable_event_reporting.
2115 (linux_handle_extended_wait): Don't call
2116 linux_enable_event_reporting.
2117
a2213dca
PA
21182013-03-22 Pedro Alves <palves@redhat.com>
2119
2120 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
2121 use it to rewrite the trampoline buffers with type gdb_byte[], and
2122 undefine the macro. Remove char* cast.
2123
bd712aed
DE
21242013-03-21 Doug Evans <dje@google.com>
2125
2126 New commands "mt set per-command {space,time,symtab} {on,off}".
2127 * NEWS: Add entry.
2128 * event-top.c: #include "maint.h".
2129 * main.c: #include "maint.h".
2130 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
2131 timeval-utils.h, maint.h, cli/cli-setshow.h.
2132 (per_command_time, per_command_space): New static globals.
2133 (per_command_symtab): New static global.
2134 (per_command_setlist, per_command_showlist): New static globals.
2135 (struct cmd_stats): Move here from utils.c.
2136 (set_per_command_time): Renamed from set_display_time in utils.c
2137 and moved here. All callers updated.
2138 (set_per_command_space): Renamed from set_display_space in utils.c
2139 and moved here. All callers updated.
2140 (count_symtabs_and_blocks): New function.
2141 (report_command_stats): Moved here from utils.c. Add support for
2142 printing symtab stats. Only print data if enabled before command
2143 executed.
2144 (make_command_stats_cleanup): Ditto.
2145 (sert_per_command_cmd, show_per_command_cmd): New functions.
2146 (_initialize_maint_cmds): Add new commands
2147 mt set per-command {space,time,symtab} {on,off}.
2148 * maint.h: New file.
2149 * top.c: #include "maint.h".
2150 * utils.c (reset_prompt_for_continue_wait_time): New function.
2151 (get_prompt_for_continue_wait_time): New function.
2152 * utils.h (reset_prompt_for_continue_wait_time): Declare
2153 (get_prompt_for_continue_wait_time): Declare.
2154 (make_command_stats_cleanup): Moved to maint.h.
2155 (set_display_time, set_display_space): Moved to maint.h and renamed
2156 to set_per_command_time, set_per_command_space.
2157 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
2158 parse_binary_operation and made non-static. Don't call error,
2159 just return an error marker. All callers updated.
2160 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
2161
d76488d8
TT
21622013-03-21 Tom Tromey <tromey@redhat.com>
2163
2164 * symfile.c (alloc_section_addr_info): Update header. Don't set
2165 'num_sections' field.
2166 (build_section_addr_info_from_section_table): Set 'num_sections'.
2167 (build_section_addr_info_from_bfd): Likewise.
2168 (build_section_addr_info_from_objfile): Remove dead loop
2169 condition.
2170 (free_section_addr_info): Unconditionally call xfree.
2171 (relative_addr_info_to_section_offsets, addrs_section_sort)
2172 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
2173 condition.
2174 (syms_from_objfile_1): Remove dead 'if' condition. Check
2175 'num_sections'.
2176 (add_symbol_file_command): Set 'num_sections'.
2177 * symfile-mem.c (symbol_file_add_from_memory): Set
2178 'num_sections'.
2179 * somread.c (som_symfile_offsets): Remove dead loop condition.
2180 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
2181 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
2182
a72e5169 21832013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
2184
2185 * tracepoint.h (decode_agent_options): Add 'trace_string'
2186 argument.
2187 * tracepoint.c (decode_agent_options): Add 'trace_string'
2188 argument.
2189 (validate_actionline): Update.
2190 (collect_symbol): Add 'trace_string' argument.
2191 (struct add_local_symbols_data) <trace_string>: New field.
2192 (do_collect_symbol): Update.
2193 (add_local_symbols): Add 'trace_string' argument.
2194 (encode_actions_1): Update.
2195 (trace_dump_actions): Update.
2196 * dwarf2loc.c (access_memory): Update.
2197 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
2198 * ax-general.c (new_agent_expr): Update.
2199 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
2200 (gen_trace_for_return_address): Add argument.
2201 (trace_kludge, trace_string_kludge): Remove.
2202 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
2203 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
2204 (gen_trace_for_var): Add 'trace_string' argument.
2205 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
2206 (gen_printf, agent_eval_command_one): Update.
2207
b2f83c08
TT
22082013-03-21 Tom Tromey <tromey@redhat.com>
2209
2210 PR exp/15109:
2211 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
2212 Handle FILENAME token.
2213
9507860e
TT
22142013-03-21 Tom Tromey <tromey@redhat.com>
2215
2216 * c-exp.y (YYPRINT): Define.
2217 (c_print_token): New function.
2218
e403aa4b
TT
22192013-03-21 Tom Tromey <tromey@redhat.com>
2220
2221 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
2222
af307d6a
YQ
22232013-03-21 Yao Qi <yao@codesourcery.com>
2224
2225 * ctf.c: Include "gdb_stat.h".
2226 [USE_WIN32API]: New macro 'mkdir'.
2227 (ctf_start): Use permission bits macros if they are defined.
2228
fb81d016
KS
22292013-03-20 Keith Seitz <keiths@redhat.com>
2230
2231 * breakpoint.h (struct breakpoint): Add comment to
2232 extra_string indicating that this member is mallod'd.
2233 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
2234
ef0026f0
PA
22352013-03-20 Pedro Alves <palves@redhat.com>
2236
2237 PR gdb/15289
2238
2239 * cli/cli-setshow.c (do_set_command)
2240 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
2241 the result of parsing the command argument. Throw error if the
2242 value is greater than UINT_MAX. Print the invalid value with
2243 plongest.
2244 <var_integer, var_zinteger>: Use LONGEST for variable holding the
2245 result of parsing the command argument. Throw error if the value
2246 is greater than INT_MAX, not greater or equal. Also throw error
2247 if the value is less than INT_MIN. Print the invalid value with
2248 plongest.
2249 <var_zuinteger_unlimited>: Throw error if the value is greater
2250 than INT_MAX, not greater or equal.
2251 (do_show_command) <var_integer, var_zinteger,
2252 var_zuinteger_unlimited>: Use %d for printing int, not %u.
2253
24d6c2a0
TT
22542013-03-20 Tom Tromey <tromey@redhat.com>
2255
2256 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
2257 if possible.
2258 * dwarf2read.c (read_func_scope): Remove old FIXME.
2259 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
2260 not LOC_COMPUTED.
2261 * findvar.c (symbol_read_needs_frame, default_read_var_value):
2262 Unconditionally call via computed ops, if possible.
2263 * printcmd.c (address_info): Unconditionally call via computed ops,
2264 if possible.
2265 * stack.c (read_frame_arg): Unconditionally call via computed ops,
2266 if possible.
2267 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
2268 * tracepoint.c (scope_info): Unconditionally call via computed ops,
2269 if possible.
2270
f1e6e072
TT
22712013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2272 Tom Tromey <tromey@redhat.com>
2273
2274 PR symtab/8421:
2275 * coffread.c (coff_register_index): New global.
2276 (process_coff_symbol, coff_read_enum_type): Set
2277 SYMBOL_ACLASS_INDEX.
2278 (_initialize_coffread): Initialize new global.
2279 * dwarf2loc.c (locexpr_find_frame_base_location)
2280 (dwarf2_block_frame_base_locexpr_funcs)
2281 (loclist_find_frame_base_location)
2282 (dwarf2_block_frame_base_loclist_funcs): New.
2283 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
2284 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
2285 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
2286 (dwarf2_block_frame_base_loclist_funcs): New.
2287 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
2288 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
2289 globals.
2290 (read_func_scope): Update.
2291 (fixup_go_packaging, mark_common_block_symbol_computed)
2292 (var_decode_location, new_symbol_full, dwarf2_const_value):
2293 Set SYMBOL_ACLASS_INDEX.
2294 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
2295 (_initialize_dwarf2_read): Initialize new globals.
2296 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
2297 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
2298 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
2299 globals.
2300 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
2301 (_initialize_mdebugread): Initialize new globals.
2302 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
2303 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
2304 (stab_register_index, stab_regparm_index): New globals.
2305 (define_symbol, read_enum_type, common_block_end): Set
2306 SYMBOL_ACLASS_INDEX.
2307 (_initialize_stabsread): Initialize new globals.
2308 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
2309 globals.
2310 (MAX_SYMBOL_IMPLS): New define.
2311 (register_symbol_computed_impl, register_symbol_block_impl)
2312 (register_symbol_register_impl)
2313 (initialize_ordinary_address_classes): New functions.
2314 (_initialize_symtab): Call initialize_ordinary_address_classes.
2315 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
2316 (struct symbol_impl): New.
2317 (SYMBOL_ACLASS_BITS): New define.
2318 (struct symbol) <aclass, ops>: Remove fields.
2319 <aclass_index>: New field.
2320 (symbol_impls): Declare.
2321 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
2322 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
2323 (register_symbol_computed_impl, register_symbol_block_impl)
2324 (register_symbol_register_impl): Declare.
2325 (struct symbol_computed_ops): Add location_has_loclist.
2326 (struct symbol_block_ops): New.
2327 (SYMBOL_BLOCK_OPS): New.
2328 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
2329
dbccfd4c
TT
23302013-03-20 Tom Tromey <tromey@redhat.com>
2331
2332 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
2333 (print_partial_symbols, recursively_search_psymtabs): Use
2334 PSYMBOL_CLASS.
2335
e3f1ad4f
PM
23362013-03-20 Pierre Muller <muller@sourceware.org>
2337
2338 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
2339 addtion, subtraction, multiplication and division binary operator.
2340
460014f5
JK
23412013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2342
2343 Code cleanup.
2344 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
2345 * bsd-kvm.c (bsd_kvm_close): Likewise.
2346 * bsd-uthread.c (bsd_uthread_close): Likewise.
2347 * corelow.c (core_close): Likewise.
2348 (core_close_cleanup): Remove parameter quitting from a caller.
2349 * event-top.c (async_disconnect): Likewise.
2350 * exec.c (exec_close_1): Remove parameter quitting.
2351 * go32-nat.c (go32_close): Likewise.
2352 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
2353 parameter quitting from a caller.
2354 * mips-linux-nat.c (super_close): Remove parameter quitting from the
2355 variable.
2356 (mips_linux_close): Remove parameter quitting. Remove parameter
2357 quitting from a caller.
2358 * monitor.c (monitor_close): Remove parameter quitting.
2359 * monitor.h (monitor_close): Likewise.
2360 * record-btrace.c (record_btrace_close): Likewise.
2361 * record-full.c (record_full_close): Likewise.
2362 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
2363 it also from fprintf_unfiltered.
2364 * remote-mips.c (mips_close): Remove parameter quitting.
2365 (mips_detach): Remove parameter quitting from a caller.
2366 * remote-sim.c (gdbsim_close): Remove parameter quitting.
2367 (gdbsim_close): Remove duplicate function comment. Remove parameter
2368 quitting and remove it also from printf_filtered.
2369 * remote.c (remote_close): Remove parameter quitting.
2370 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
2371 * target.c (update_current_target): Remove parameter int from to_close
2372 de_fault.
2373 (push_target, unpush_target, pop_target): Remove parameter quitting from
2374 a caller.
2375 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
2376 Remove parameter quitting from a caller.
2377 (target_preopen): Remove parameter quitting from a caller.
2378 (target_close): Remove parameter quitting. Remove parameter quitting
2379 from a caller two times. Remove parameter quitting also from
2380 fprintf_unfiltered.
2381 * target.h (struct target_ops): Remove parameter quitting and as int
2382 from fields to_xclose and to_close.
2383 (extern struct target_ops current_target):
2384 (target_close, pop_all_targets): Remove parameter quitting. Update the
2385 comment.
2386 (pop_all_targets_above): Remove parameter quitting.
2387 * top.c (quit_target): Remove parameter quitting from a caller.
2388 * tracepoint.c (tfile_close): Remove parameter quitting.
2389 * windows-nat.c (windows_close): Remove parameter quitting.
2390
35a7120b
CV
23912013-03-20 Corinna Vinschen <vinschen@redhat.com>
2392
2393 * windows-nat.c (handle_output_debug_string): Replace call
2394 to string_to_core_addr with call to strtoull.
2395
8249a5a9
YQ
23962013-03-20 Yao Qi <yao@codesourcery.com>
2397
2398 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
2399 and write it to CTF metadata.
2400
2c15ef43
CV
24012013-03-19 Corinna Vinschen <vinschen@redhat.com>
2402
2403 * windows-nat.c (handle_output_debug_string): Change type of n to
2404 SIZE_T to avoid crash on 64 bit systems.
2405
1cdd3232
EZ
24062013-03-17 Eli Zaretskii <eliz@gnu.org>
2407
2408 * python/python-internal.h (HAVE_SNPRINTF)
2409 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
2410 about redefinition of snprintf by pyerrors.h.
2411
3cb2ab1a
SE
24122013-03-15 Steve Ellcey <sellcey@mips.com>
2413
2414 * remote-sim.c (sim_command_completer): Make char arguments const.
2415
9ce98649
TT
24162013-03-15 Tom Tromey <tromey@redhat.com>
2417
2418 PR c++/15116:
2419 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
2420
dccee2de
TT
24212013-03-14 Tom Tromey <tromey@redhat.com>
2422
2423 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
2424 New fields.
2425 (get_file_crc): Move from symfile.c.
2426 (gdb_bfd_crc): New function.
2427 * gdb_bfd.h (gdb_bfd_crc): Declare.
2428 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
2429 * symfile.c (get_file_crc): Move to gdb_bfd.c.
2430 (separate_debug_file_exists): Use gdb_bfd_crc.
2431
cc0ea93c
TT
24322013-03-14 Tom Tromey <tromey@redhat.com>
2433
2434 * symfile.c (get_debug_link_info): Remove.
2435 (find_separate_debug_file_by_debuglink): Use
2436 bfd_get_debug_link_info.
2437
08c23b0d
TT
24382013-03-14 Tom Tromey <tromey@redhat.com>
2439
2440 * symtab.c (error_in_psymtab_expansion): New function.
2441 (lookup_symbol_aux_quick)
2442 (basic_lookup_transparent_type_quick): Remove "last resort"
2443 code. Use error_in_psymtab_expansion.
2444
288e77a7
JK
24452013-03-14 Doug Evans <dje@google.com>
2446 Jan Kratochvil <jan.kratochvil@redhat.com>
2447
2448 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
2449 any successful compare_filenames_for_search or FILENAME_CMP.
2450 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
2451 * symtab.c (iterate_over_some_symtabs): Likewise.
2452
8f1b8b82
JK
24532013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2454
2455 * source.c (print_source_lines_base): Make a local copy of
2456 symtab_to_fullname.
2457
23eb71e4
JK
24582013-03-14 Hui Zhu <hui_zhu@mentor.com>
2459 Jan Kratochvil <jan.kratochvil@redhat.com>
2460
2461 * source.c (print_source_lines_base): Suppress "file" for TUI.
2462
bb869963
SDJ
24632013-03-14 Keith Seitz <keiths@redhat.com>
2464 Alan Matsuoka <alanm@redhat.com>
2465
2466 PR c++/15203
2467 PR c++/15210
2468 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
2469 TYPE_CODE_METHOD.
2470 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
2471 symbols.
2472
d6682f9e
YQ
24732013-03-14 Yao Qi <yao@codesourcery.com>
2474
2475 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
2476 status to tfile if trace is stopped by command 'tstop'.
2477
a22fa6e4
YQ
24782013-03-14 Yao Qi <yao@codesourcery.com>
2479
2480 * tracepoint.c (tfile_write_status): Write trace notes and user
2481 name into tfile if they are not NULL.
2482
d0353e76
YQ
24832013-03-14 Hui Zhu <hui@codesourcery.com>
2484 Yao Qi <yao@codesourcery.com>
2485
2486 * Makefile.in (REMOTE_OBS): Add ctf.o.
2487 (SFILES): Add ctf.c.
2488 (HFILES_NO_SRCDIR): Add ctf.h.
2489 * ctf.c, ctf.h: New files.
2490 * tracepoint.c: Include 'ctf.h'.
2491 (collect_pseudocommand): Remove static.
2492 (trace_save_command): Parse option "-ctf".
2493 Produce different trace file writers per option.
2494 Adjust output message.
2495 (trace_save_tfile, trace_save_ctf): New.
2496 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
2497 * mi/mi-main.c: Include 'ctf.h'.
2498 (mi_cmd_trace_save): Handle option '-ctf'. Call either
2499 trace_save_tfile or trace_save_ctf.
2500 * NEWS: Mention these changes.
2501
3f43bc09
YQ
25022013-03-14 Yao Qi <yao@codesourcery.com>
2503
2504 * tracepoint.c (trace_file_writer_xfree): New.
2505 (struct tfile_writer_data): New.
2506 (tfile_dtor, tfile_can_target_save, tfile_start): New.
2507 (tfile_write_header, tfile_write_regblock_type): New.
2508 (tfile_write_status, tfile_write_uploaded_tsv): New.
2509 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
2510 (tfile_write_raw_data, (tfile_end): New.
2511 (tfile_write_ops): New global variable.
2512 (TRACE_WRITE_R_BLOCK): New macro.
2513 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
2514 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
2515 (TRACE_WRITE_V_BLOCK): New macro.
2516 (trace_save): Add extra one parameter WRITER. Make it static.
2517 Use WRITER to writer trace.
2518 (tfile_trace_file_writer_new): New.
2519 (trace_save_command): Caller update.
2520 (trace_save_tfile): Write trace data in TFILE format.
2521 * tracepoint.h (struct trace_frame_write_ops): New.
2522 (struct trace_file_write_ops): New.
2523 (struct trace_file_writer): New.
2524 (trace_save): Remove its declaration.
2525 (trace_save_tfile): Declare it.
2526 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
2527 instead of trace_save.
2528
58665b40
PA
25292013-03-13 Pedro Alves <palves@redhat.com>
2530
2531 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
2532
10217050
PA
25332013-03-13 Pedro Alves <palves@redhat.com>
2534
2535 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
2536 commented out code.
2537 * demangle.c (current_demangling_style_string): Make it const.
2538 (set_demangling_command): Assert the demangling style is known.
2539 Remove all handling of unknown styles. Set
2540 'current_demangling_style_string' to an element of the
2541 demangling_style_names array.
2542 (set_demangling_style): Delete.
2543 (_initialize_demangler): Set current_demangling_style_string to the
2544 element of the demangling_style_names array that corresponds to
2545 the default demangling style. Remove FIXME note. Don't call
2546 set_demangling_style.
2547 * gdb-demangle.h (set_demangling_style): Remove declaration.
2548
6f937416
PA
25492013-03-13 Pedro Alves <palves@redhat.com>
2550
2551 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
2552 fields const.
2553 (ada_make_symbol_completion_list): Make "text0" parameter const.
2554 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
2555 * breakpoint.c (condition_completer): Make "text" and "word"
2556 parameters const. Adjust.
2557 (check_tracepoint_command): Adjust to validate_actionline
2558 prototype change.
2559 (catch_syscall_completer): Make "text" and "word" parameters
2560 const.
2561 * cli/cli-cmds.c (show_user): Make "comname" local const.
2562 (valid_command_p): Make "command" parameter const.
2563 (alias_command): Make "alias_prefix" and "command_prefix" locals
2564 const.
2565 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
2566 (add_alias_cmd): Make "name" and "oldname" parameters const.
2567 Adjust. No longer make copy of OLDNAME.
2568 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
2569 (add_setshow_cmd_full, add_setshow_enum_cmd)
2570 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2571 (add_setshow_filename_cmd, add_setshow_string_cmd)
2572 (add_setshow_string_noescape_cmd)
2573 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2574 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2575 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
2576 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
2577 Make "name" parameter const.
2578 (help_cmd): Rename "command" parameter to "arg". New const local
2579 "command".
2580 (find_cmd): Make "command" parameter const.
2581 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
2582 deprecated_cmd_warning prototype change.
2583 (undef_cmd_error): Make "cmdtype" parameter const.
2584 (lookup_cmd): Make "line" parameter const.
2585 (deprecated_cmd_warning): Change type of "text" parameter to
2586 pointer to const char, from pointer to pointer to char. Adjust.
2587 (lookup_cmd_composition): Make "text" parameter const.
2588 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
2589 parameters const.
2590 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
2591 const.
2592 * cli/cli-script.c (validate_comname): Make "tem" local const.
2593 (define_command): New const local "tem_c". Use it in calls to
2594 lookup_cmd.
2595 (document_command): Make "tem" and "comfull" locals const.
2596 (show_user_1): Make "prefix" and "name" parameters const.
2597 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
2598 const.
2599 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
2600 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
2601 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
2602 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
2603 (complete_on_enum, add_setshow_enum_cmd)
2604 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2605 (add_setshow_filename_cmd, add_setshow_string_cmd)
2606 (add_setshow_string_noescape_cmd)
2607 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2608 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2609 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2610 Change prototypes, constifying strings.
2611 * completer.c (noop_completer, filename_completer): Make "text"
2612 and "prefix" parameters const.
2613 (location_completer, expression_completer)
2614 (complete_line_internal): Make "text" and "prefix" parameters
2615 const and adjust.
2616 (command_completer, signal_completer): Make "text" and "prefix"
2617 parameters const.
2618 * completer.h (noop_completer, filename_completer)
2619 (expression_completer, location_completer, command_completer)
2620 (signal_completer): Change prototypes.
2621 * corefile.c (complete_set_gnutarget): Make "text" and "word"
2622 parameters const.
2623 * cp-abi.c (cp_abi_completer): Likewise.
2624 * expression.h (parse_expression_for_completion): Change
2625 prototype.
2626 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
2627 parameters const.
2628 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
2629 * infrun.c (handle_completer): Make "text" and "word" parameters
2630 const.
2631 * interps.c (interpreter_completer): Make "text" and "word"
2632 parameters const.
2633 * language.h (struct language_defn)
2634 <la_make_symbol_completion_list>: Make "text" and "word"
2635 parameters const.
2636 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
2637 (parse_exp_in_context): Rename to ...
2638 (parse_exp_in_context_1): ... this.
2639 (parse_exp_in_context): Reimplement, with const hack from
2640 parse_exp_1.
2641 (parse_expression_for_completion): Make "string" parameter const.
2642 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
2643 to pointer to const char. Adjust.
2644 (print_command_1): Make "exp" parameter const.
2645 (output_command): Rename to ...
2646 (output_command_const): ... this. Make "exp" parameter const.
2647 (output_command): Reimplement.
2648 (x_command): Adjust.
2649 (display_command): Rename "exp" parameter to "arg". New "exp"
2650 local, const version of "arg".
2651 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
2652 "cmd_name" local const.
2653 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
2654 call.
2655 (cmdpy_completer): Make "text" and "word" parameters const.
2656 (gdbpy_parse_command_name): Make "prefix_text2" local const.
2657 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
2658 const.
2659 * remote.c (_initialize_remote): Make "cmd_name" local const.
2660 * symtab.c (language_search_unquoted_string): Make "text" and "p"
2661 parameters const. Adjust.
2662 (completion_list_add_fields): Make "sym_text", "text" and "word"
2663 parameters const.
2664 (struct add_name_data) <sym_text, text, word>: Make fields const.
2665 (default_make_symbol_completion_list_break_on): Make "text" and
2666 "word" parameters const. Adjust locals.
2667 (default_make_symbol_completion_list)
2668 (make_symbol_completion_list, make_symbol_completion_type)
2669 (make_symbol_completion_list_fn): Make "text" and "word"
2670 parameters const.
2671 (make_file_symbol_completion_list): Make "text", "word" and
2672 "srcfile" parameters const. Adjust locals.
2673 (add_filename_to_list): Make "text" and "word" parameters const.
2674 (struct add_partial_filename_data) <text, word>: Make fields
2675 const.
2676 (make_source_files_completion_list): Make "text" and "word"
2677 parameters const.
2678 * symtab.h (default_make_symbol_completion_list_break_on)
2679 (default_make_symbol_completion_list, make_symbol_completion_list)
2680 (make_symbol_completion_type enum type_code)
2681 (make_symbol_completion_list_fn make_file_symbol_completion_list)
2682 (make_source_files_completion_list): Change prototype.
2683 * top.c (execute_command): Adjust to pass pointer to pointer to
2684 const char to lookup_cmd, and to deprecated_cmd_warning prototype
2685 change.
2686 (set_verbose): Make "cmdname" local const.
2687 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
2688 and adjust.
2689 (validate_actionline): Make "line" parameter a pointer to const
2690 char, and adjust.
2691 (encode_actions_1): Make "action_exp" local const, and adjust.
2692 (encode_actions): Adjust.
2693 (replace_comma): Delete.
2694 (trace_dump_actions): Make "action_exp" and "next_comma" locals
2695 const, and adjust. Don't frob the action string while splitting
2696 it at commas. Instead, make a copy of each split substring in
2697 turn.
2698 (trace_dump_command): Adjust to validate_actionline prototype
2699 change.
2700 * tracepoint.h (decode_agent_options, decode_agent_options)
2701 (encode_actions, validate_actionline): Change prototypes.
2702 * valprint.h (output_command): Delete declaration.
2703 (output_command_const): Declare.
2704 * value.c (function_destroyer): Cast const away in xfree call.
2705
a0bcdaa7
PA
27062013-03-13 Pedro Alves <palves@redhat.com>
2707
2708 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
2709 rather than casting 'const char * const *' to 'const char **'.
2710 * ada-lex.l (processInt): Make "trailer" local const. Remove
2711 'const char **' cast.
2712 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
2713 locals, and use those as strtol output pointer, instead than doing
2714 invalid casts to from 'const char **' to 'char **'.
2715 (_initialize_demangle): Remove cast.
2716 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
2717 locals, and use those as strtol output pointer, instead than doing
2718 invalid casts to from 'const char **' to 'char **'.
2719 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
2720 casts.
2721 * stap-probe.c (stap_parse_register_operand)
2722 (stap_parse_single_operand): Likewise.
2723
8ddb1965
YQ
27242013-03-13 Yao Qi <yao@codesourcery.com>
2725
2726 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
2727 the last matched 'V' blcok in trace frame.
2728
2d450646
JB
27292013-03-12 Joel Brobecker <brobecker@adacore.com>
2730
2731 * NEWS: Create a new section for the next release branch.
2732 Rename the section of the current branch, now that it has
2733 been cut.
2734
b4b79973 27352013-03-12 Joel Brobecker <brobecker@adacore.com>
2736
2737 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
2738 * version.in: Bump version to 7.6.50.20130312-cvs.
2739
ee047554
KS
27402013-03-12 Keith Seitz <keiths@redhat.com>
2741
2742 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
2743 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
2744 Remove temporary copy of input string.
2745 (mi_execute_command_wrapper): Make "cmd" const.
2746 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
2747 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
2748 Use const strings.
2749 (mi_parse): Make "cmd" const.
2750 Use const strings.
2751 * mi/mi-parse.h (mi_parse): Make "cmd" const.
2752
bbc13ae3
KS
27532013-03-12 Keith Seitz <keiths@redhat.com>
2754
2755 * ada-lang.c (ada_read_renaming_var_value): Pass const
2756 pointer to expression string to parse_exp_1.
2757 (create_excep_cond_exprs): Likewise.
2758 * ax-gdb.c (agent_eval_command_one): Likewise.
2759 (maint_agent_printf_command): Likewise.
2760 Constify much of the string handling/parsing.
2761 * breakpoint.c (set_breakpoint_condition): Pass const
2762 pointer to expression string to parse_exp_1.
2763 (update_watchpoint): Likewise.
2764 (parse_cmd_to_aexpr): Constify string handling.
2765 Pass const pointer to parse_exp_1.
2766 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
2767 (find_condition_and_thread): Likewise.
2768 Make TOK const.
2769 (watch_command_1): Make "arg" const.
2770 Constify string handling.
2771 Copy the expression string instead of changing the input
2772 string.
2773 (update_breakpoint_location): Pass const pointer to
2774 parse_exp_1.
2775 * eval.c (parse_and_eval_address): Make "exp" const.
2776 (parse_to_comma_and_eval): Make "expp" const.
2777 (parse_and_eval): Make "exp" const.
2778 * expression.h (parse_expression): Make argument const.
2779 (parse_exp_1): Make first argument const.
2780 * findcmd.c (parse_find_args): Treat "args" as const.
2781 * linespec.c (parse_linespec): Pass const pointer to
2782 linespec_expression_to_pc.
2783 (linespec_expression_to_pc): Make "exp_ptr" const.
2784 * parse.c (parse_exp_1): Make "stringptr" const.
2785 Make a copy of the expression to pass to parse_exp_in_context until
2786 this whole interface can be constified.
2787 (parse_expression): Make "string" const.
2788 * printcmd.c (ui_printf): Treat "arg" as const.
2789 Handle const strings.
2790 * tracepoint.c (validate_actionline): Pass const pointer to
2791 all calls to parse_exp_1.
2792 (encode_actions_1): Likewise.
2793 * value.h (parse_to_comma_and_eval): Make argument const.
2794 (parse_and_eval_address): Likewise.
2795 (parse_and_eval): Likewise.
2796 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
2797 (varobj_set_value): Likewise.
2798 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
2799 constify string handling.
2800 Pass const pointers to parse_and_eval_address and
2801 parse_to_comman_and_eval.
2802 * cli/cli-utils.c (skip_to_space): Rename to ...
2803 (skip_to_space_const): ... this. Handle const strings.
2804 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
2805 skip_to_space_const.
2806 (skip_to_space_const): Declare.
2807 * common/format.c (parse_format_string): Make "arg" const.
2808 Handle const strings.
2809 * common/format.h (parse_format_string): Make "arg" const.
2810 * gdbserver/ax.c (ax_printf): Make "format" const.
2811 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
2812 of the expression string.
2813
f3cec7e6
HZ
28142013-03-12 Hui Zhu <hui@codesourcery.com>
2815
2816 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
2817
9df7235c
HZ
28182013-03-12 Yao Qi <yao@codesourcery.com>
2819 Hui Zhu <hui@codesourcery.com>
2820
2821 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
2822 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
2823 DW_OP_deref_size.
2824
82d049ab
PH
28252013-03-12 Paul Hilfinger <hilfingr@adacore.com>
2826
5f8e0b8f
MF
2827 * ada-lex.l (rules): Only recognize 'thread' as a
2828 delimiter when followed by numerals, as for c-exp.y.
2829 Use new rewind_to_char function to rewind the input for
2830 expression-delimiting tokens.
2831 (rewind_to_char): New function.
82d049ab 2832
8c1fb155
JK
28332013-03-11 Pedro Alves <palves@redhat.com>
2834 Jan Kratochvil <jan.kratochvil@redhat.com>
2835
2836 * configure: Regenerate.
2837 * configure.ac (check dynamic export flag): Link python test with
2838 $PYTHON_LIBS.
2839
cc81e1c6
DE
28402013-03-11 Doug Evans <dje@google.com>
2841 Keith Seitz <keiths@redhat.com>
2842
2843 * linespec.c (find_linespec_symbols): Call find_function_symbols
2844 first, and then call lookup_prefix_sym/find_method.
2845
39086a0e
PA
28462013-03-11 Pedro Alves <palves@redhat.com>
2847
2848 * charset.c (convert_between_encodings): Don't cast between
2849 different pointer to pointer types. Instead, make the 'inp' local
2850 be of the type iconv expects.
2851 (wchar_iterate): Don't cast between different pointer to pointer
2852 types. Instead, use new pointer local of the type iconv expects.
2853 * target.c (target_read_stralloc, target_fileio_read_stralloc):
2854 Add new local of type char pointer, and use it to get a
2855 char/string view of the byte buffer, instead of casting between
2856 pointer to pointer types.
2857
90585175
HAQ
28582013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
2859
2860 * remote.c (remote_set_trace_buffer_size): Move != operator
2861 to the start of next line to fix an ARI warning.
2862
59ea5688
MM
28632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2864
2865 * NEWS: Add record changes.
2866
946287b7
MM
28672013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2868
2869 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
2870 the instruction history disassembly.
2871 * disasm.c (dump_insns): Omit the pc prefix, if requested.
2872 * disasm.h (DISASSEMBLY_OMIT_PC): New.
2873
afedecd3
MM
28742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2875
2876 * Makefile.in (SFILES): Add record-btrace.c
2877 (COMMON_OBS): Add record-btrace.o
2878 * record-btrace.c: New.
2879 * objfiles.c: Include btrace.h.
2880 (free_objfile): call btrace_free_objfile.
2881
15984c13
MM
28822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2883
2884 * target.c (target_call_history, target_call_history_from,
2885 target_call_history_range): New.
2886 * target.h (target_ops) <to_call_history, to_call_history_from,
2887 to_call_history_range>: New fields.
2888 (target_call_history, target_call_history_from,
2889 target_call_history_range): New declaration.
2890 * record.c (get_call_history_modifiers, cmd_record_call_history,
2891 record_call_history_size): New.
2892 (_initialize_record): Add the "record function-call-history" command.
2893 Add "set/show record function-call-history-size" commands.
2894 * record.h (record_print_flag): New.
2895
67c86d06
MM
28962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2897
2898 * target.h (target_ops) <to_insn_history, to_insn_history_from,
2899 to_insn_history_range>: New fields.
2900 (target_insn_history): New.
2901 (target_insn_history_from): New.
2902 (target_insn_history_range): New.
2903 * target.c (target_insn_history): New.
2904 (target_insn_history_from): New.
2905 (target_insn_history_range): New.
2906 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
2907 (record_insn_history_size): New.
2908 (get_insn_number): New.
2909 (get_context_size): New.
2910 (no_chunk): New.
2911 (get_insn_history_modifiers): New.
2912 (cmd_record_insn_history): New.
2913 (_initialize_record): Add "set/show record instruction-history-size"
2914 command. Add "record instruction-history" command.
2915
7c1687a9
MM
29162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2917
2918 * record.h (record_disconnect): New.
2919 (record_detach): New.
2920 (record_mourn_inferior): New.
2921 (record_kill): New.
2922 * record-full.c (record_disconnect, record_detach,
2923 record_mourn_inferior, record_kill): Move to...
2924 * record.c: ...here.
2925 (DEBUG): New.
2926 (record_stop): New.
2927 (record_unpush): New.
2928 (cmd_record_stop): Call record_stop. Replace unpush_target
2929 call with record_unpush call.
2930 (record_disconnect, record_detach): Assert that the target
2931 is of record stratum. Call record_unpush, record_stop, and
2932 DEBUG.
2933 (record_mourn_inferior, record_kill): Assert that the target
2934 is of record stratum. Call record_unpush and DEBUG.
2935
25ea693b
MM
29362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2937
2938 * record-full.h, record-full.c (record_memory_query): Rename
2939 to ...
2940 (record_full_memory_query): ...this. Update all users.
2941 (record_arch_list_add_reg): Rename to ...
2942 (record_full_arch_list_add_reg): ...this. Update all users.
2943 (record_arch_list_add_mem): Rename to ...
2944 (record_full_arch_list_add_mem): ...this. Update all users.
2945 (record_arch_list_add_end): Rename to ...
2946 (record_full_arch_list_add_end): ...this. Update all users.
2947 (record_gdb_operation_disable_set): Rename to ...
2948 (record_full_gdb_operation_disable_set): ...this.
2949 Update all users.
2950
88d1aa9d
MM
29512013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2952
2953 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
2954 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
2955 (RECORD_IS_REPLAY): Renamed to ...
2956 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
2957 (RECORD_FILE_MAGIC): Renamed to ...
2958 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
2959 (record_mem_entry): Renamed to ...
2960 (record_full_mem_entry): ... this. Updated all users.
2961 (record_reg_entry): Renamed to ...
2962 (record_full_reg_entry): ... this. Updated all users.
2963 (record_end_entry): Renamed to ...
2964 (record_full_end_entry): ... this. Updated all users.
2965 (record_type) <record_end, record_reg, record_mem>: Renamed
2966 to ...
2967 (record_full_type) <record_full_end, record_full_reg,
2968 record_full_mem>: ... this. Updated all users.
2969 (record_entry): Renamed to ...
2970 (record_full_entry): ... this. Updated all users.
2971 (record_core_buf_entry): Renamed to ...
2972 (record_full_core_buf_entry): ... this. Updated all users.
2973 (record_core_regbuf): Renamed to ...
2974 (record_full_core_regbuf): ... this. Updated all users.
2975 (record_core_start): Renamed to ...
2976 (record_full_core_start): ... this. Updated all users.
2977 (record_core_end): Renamed to ...
2978 (record_full_core_end): ... this. Updated all users.
2979 (record_core_buf_list): Renamed to ...
2980 (record_full_core_buf_list): ... this. Updated all users.
2981 (record_first): Renamed to ...
2982 (record_full_first): ... this. Updated all users.
2983 (record_list): Renamed to ...
2984 (record_full_list): ... this. Updated all users.
2985 (record_arch_list_head): Renamed to ...
2986 (record_full_arch_list_head): ... this. Updated all users.
2987 (record_arch_list_tail): Renamed to ...
2988 (record_full_arch_list_tail): ... this. Updated all users.
2989 (record_stop_at_limit): Renamed to ...
2990 (record_full_stop_at_limit): ... this. Updated all users.
2991 (record_insn_max_num): Renamed to ...
2992 (record_full_insn_max_num): ... this. Updated all users.
2993 (record_insn_num): Renamed to ...
2994 (record_full_insn_num): ... this. Updated all users.
2995 (record_insn_count): Renamed to ...
2996 (record_full_insn_count): ... this. Updated all users.
2997 (record_ops): Renamed to ...
2998 (record_full_ops): ... this. Updated all users.
2999 (record_core_ops): Renamed to ...
3000 (record_full_core_ops): ... this. Updated all users.
3001 (set_record_cmdlist): Renamed to ...
3002 (set_record_full_cmdlist): ... this. Updated all users.
3003 (show_record_cmdlist): Renamed to ...
3004 (show_record_full_cmdlist): ... this. Updated all users.
3005 (record_cmdlist): Renamed to ...
3006 (record_full_cmdlist): ... this. Updated all users.
3007 (record_beneath_to_resume_ops): Renamed to ...
3008 (record_full_beneath_to_resume_ops): ... this. Updated all users.
3009 (record_beneath_to_resume): Renamed to ...
3010 (record_full_beneath_to_resume): ... this. Updated all users.
3011 (record_beneath_to_wait_ops): Renamed to ...
3012 (record_full_beneath_to_wait_ops): ... this. Updated all users.
3013 (record_beneath_to_wait): Renamed to ...
3014 (record_full_beneath_to_wait): ... this. Updated all users.
3015 (record_beneath_to_store_registers_ops): Renamed to ...
3016 (record_full_beneath_to_store_registers_ops): ... this.
3017 Updated all users.
3018 (record_beneath_to_store_registers): Renamed to ...
3019 (record_full_beneath_to_store_registers): ... this.
3020 Updated all users.
3021 (record_beneath_to_xfer_partial_ops): Renamed to ...
3022 (record_full_beneath_to_xfer_partial_ops): ... this.
3023 Updated all users.
3024 (record_beneath_to_xfer_partial): Renamed to ...
3025 (record_full_beneath_to_xfer_partial): ... this.
3026 Updated all users.
3027 (record_beneath_to_insert_breakpoint): Renamed to ...
3028 (record_full_beneath_to_insert_breakpoint): ... this.
3029 Updated all users.
3030 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
3031 (record_full_beneath_to_stopped_by_watchpoint): ... this.
3032 Updated all users.
3033 (record_beneath_to_stopped_data_address): Renamed to ...
3034 (record_full_beneath_to_stopped_data_address): ... this.
3035 Updated all users.
3036 (record_beneath_to_async): Renamed to ...
3037 (record_full_beneath_to_async): ... this. Updated all users.
3038 (record_goto_insn): Renamed to ...
3039 (record_full_goto_insn): ... this. Updated all users.
3040 (record_save): Renamed to ...
3041 (record_full_save): ... this. Updated all users.
3042 (record_reg_alloc): Renamed to ...
3043 (record_full_reg_alloc): ... this. Updated all users.
3044 (record_reg_release): Renamed to ...
3045 (record_full_reg_release): ... this. Updated all users.
3046 (record_mem_alloc): Renamed to ...
3047 (record_full_mem_alloc): ... this. Updated all users.
3048 (record_mem_release): Renamed to ...
3049 (record_full_mem_release): ... this. Updated all users.
3050 (record_end_alloc): Renamed to ...
3051 (record_full_end_alloc): ... this. Updated all users.
3052 (record_end_release): Renamed to ...
3053 (record_full_end_release): ... this. Updated all users.
3054 (record_entry_release): Renamed to ...
3055 (record_full_entry_release): ... this. Updated all users.
3056 (record_list_release): Renamed to ...
3057 (record_full_list_release): ... this. Updated all users.
3058 (record_list_release_following): Renamed to ...
3059 (record_full_list_release_following): ... this.
3060 Updated all users.
3061 (record_list_release_first): Renamed to ...
3062 (record_full_list_release_first): ... this. Updated all users.
3063 (record_arch_list_add): Renamed to ...
3064 (record_full_arch_list_add): ... this. Updated all users.
3065 (record_get_loc): Renamed to ...
3066 (record_full_get_loc): ... this. Updated all users.
3067 (record_check_insn_num): Renamed to ...
3068 (record_full_check_insn_num): ... this. Updated all users.
3069 (record_arch_list_cleanups): Renamed to ...
3070 (record_full_arch_list_cleanups): ... this. Updated all users.
3071 (record_message): Renamed to ...
3072 (record_full_message): ... this. Updated all users.
3073 (record_message_wrapper): Renamed to ...
3074 (record_full_message_wrapper): ... this. Updated all users.
3075 (record_message_wrapper_safe): Renamed to ...
3076 (record_full_message_wrapper_safe): ... this. Updated all users.
3077 (record_gdb_operation_disable): Renamed to ...
3078 (record_full_gdb_operation_disable): ... this. Updated all users.
3079 (record_hw_watchpoint): Renamed to ...
3080 (record_full_hw_watchpoint): ... this. Updated all users.
3081 (record_exec_insn): Renamed to ...
3082 (record_full_exec_insn): ... this. Updated all users.
3083 (record_restore): Renamed to ...
3084 (record_full_restore): ... this. Updated all users.
3085 (record_async_inferior_event_token): Renamed to ...
3086 (record_full_async_inferior_event_token): ... this.
3087 Updated all users.
3088 (record_async_inferior_event_handler): Renamed to ...
3089 (record_full_async_inferior_event_handler): ... this.
3090 Updated all users.
3091 (record_core_open_1): Renamed to ...
3092 (record_full_core_open_1): ... this. Updated all users.
3093 (record_open_1): Renamed to ...
3094 (record_full_open_1): ... this. Updated all users.
3095 (record_open): Renamed to ...
3096 (record_full_open): ... this. Updated all users.
3097 (record_close): Renamed to ...
3098 (record_full_close): ... this. Updated all users.
3099 (record_resume_step): Renamed to ...
3100 (record_full_resume_step): ... this. Updated all users.
3101 (record_resumed): Renamed to ...
3102 (record_full_resumed): ... this. Updated all users.
3103 (record_execution_dir): Renamed to ...
3104 (record_full_execution_dir): ... this. Updated all users.
3105 (record_resume): Renamed to ...
3106 (record_full_resume): ... this. Updated all users.
3107 (record_get_sig): Renamed to ...
3108 (record_full_get_sig): ... this. Updated all users.
3109 (record_sig_handler): Renamed to ...
3110 (record_full_sig_handler): ... this. Updated all users.
3111 (record_wait_cleanups): Renamed to ...
3112 (record_full_wait_cleanups): ... this. Updated all users.
3113 (record_wait_1): Renamed to ...
3114 (record_full_wait_1): ... this. Updated all users.
3115 (record_wait): Renamed to ...
3116 (record_full_wait): ... this. Updated all users.
3117 (record_stopped_by_watchpoint): Renamed to ...
3118 (record_full_stopped_by_watchpoint): ... this. Updated all users.
3119 (record_disconnect): Renamed to ...
3120 (record_full_disconnect): ... this. Updated all users.
3121 (record_detach): Renamed to ...
3122 (record_full_detach): ... this. Updated all users.
3123 (record_mourn_inferior): Renamed to ...
3124 (record_full_mourn_inferior): ... this. Updated all users.
3125 (record_kill): Renamed to ...
3126 (record_full_kill): ... this. Updated all users.
3127 (record_stopped_data_address): Renamed to ...
3128 (record_full_stopped_data_address): ... this. Updated all users.
3129 (record_registers_change): Renamed to ...
3130 (record_full_registers_change): ... this. Updated all users.
3131 (record_store_registers): Renamed to ...
3132 (record_full_store_registers): ... this. Updated all users.
3133 (record_xfer_partial): Renamed to ...
3134 (record_full_xfer_partial): ... this. Updated all users.
3135 (record_breakpoint): Renamed to ...
3136 (record_full_breakpoint): ... this. Updated all users.
3137 (record_breakpoint_p): Renamed to ...
3138 (record_full_breakpoint_p): ... this. Updated all users.
3139 (record_breakpoints): Renamed to ...
3140 (record_full_breakpoints): ... this. Updated all users.
3141 (record_sync_record_breakpoints): Renamed to ...
3142 (record_full_sync_record_breakpoints): ... this.
3143 Updated all users.
3144 (record_init_record_breakpoints): Renamed to ...
3145 (record_full_init_record_breakpoints): ... this.
3146 Updated all users.
3147 (record_insert_breakpoint): Renamed to ...
3148 (record_full_insert_breakpoint): ... this. Updated all users.
3149 (record_remove_breakpoint): Renamed to ...
3150 (record_full_remove_breakpoint): ... this. Updated all users.
3151 (record_can_execute_reverse): Renamed to ...
3152 (record_full_can_execute_reverse): ... this. Updated all users.
3153 (record_get_bookmark): Renamed to ...
3154 (record_full_get_bookmark): ... this. Updated all users.
3155 (record_goto_bookmark): Renamed to ...
3156 (record_full_goto_bookmark): ... this. Updated all users.
3157 (record_async): Renamed to ...
3158 (record_full_async): ... this. Updated all users.
3159 (record_can_async_p): Renamed to ...
3160 (record_full_can_async_p): ... this. Updated all users.
3161 (record_is_async_p): Renamed to ...
3162 (record_full_is_async_p): ... this. Updated all users.
3163 (record_execution_direction): Renamed to ...
3164 (record_full_execution_direction): ... this. Updated all users.
3165 (record_info): Renamed to ...
3166 (record_full_info): ... this. Updated all users.
3167 (record_delete): Renamed to ...
3168 (record_full_delete): ... this. Updated all users.
3169 (record_is_replaying): Renamed to ...
3170 (record_full_is_replaying): ... this. Updated all users.
3171 (record_goto_entry): Renamed to ...
3172 (record_full_goto_entry): ... this. Updated all users.
3173 (record_goto_begin): Renamed to ...
3174 (record_full_goto_begin): ... this. Updated all users.
3175 (record_goto_end): Renamed to ...
3176 (record_full_goto_end): ... this. Updated all users.
3177 (record_goto): Renamed to ...
3178 (record_full_goto): ... this. Updated all users.
3179 (init_record_ops): Renamed to ...
3180 (init_record_full_ops): ... this. Updated all users.
3181 (record_core_resume): Renamed to ...
3182 (record_full_core_resume): ... this. Updated all users.
3183 (record_core_kill): Renamed to ...
3184 (record_full_core_kill): ... this. Updated all users.
3185 (record_core_fetch_registers): Renamed to ...
3186 (record_full_core_fetch_registers): ... this. Updated all users.
3187 (record_core_prepare_to_store): Renamed to ...
3188 (record_full_core_prepare_to_store): ... this. Updated all users.
3189 (record_core_store_registers): Renamed to ...
3190 (record_full_core_store_registers): ... this. Updated all users.
3191 (record_core_xfer_partial): Renamed to ...
3192 (record_full_core_xfer_partial): ... this. Updated all users.
3193 (record_core_insert_breakpoint): Renamed to ...
3194 (record_full_core_insert_breakpoint): ... this. Updated all users.
3195 (record_core_remove_breakpoint): Renamed to ...
3196 (record_full_core_remove_breakpoint): ... this. Updated all users.
3197 (record_core_has_execution): Renamed to ...
3198 (record_full_core_has_execution): ... this. Updated all users.
3199 (init_record_core_ops): Renamed to ...
3200 (init_record_full_core_ops): ... this. Updated all users.
3201 (cmd_record_restore): Renamed to ...
3202 (cmd_record_full_restore): ... this. Updated all users.
3203 (record_save_cleanups): Renamed to ...
3204 (record_full_save_cleanups): ... this. Updated all users.
3205 (cmd_record_start): Renamed to ...
3206 (cmd_record_full_start): ... this. Updated all users.
3207 (set_record_insn_max_num): Renamed to ...
3208 (set_record_full_insn_max_num): ... this. Updated all users.
3209 (set_record_command): Renamed to ...
3210 (set_record_full_command): ... this. Updated all users.
3211 (show_record_command): Renamed to ...
3212 (show_record_full_command): ... this. Updated all users.
3213 (_initialize_record): Renamed to ...
3214 (_initialize_record_full): ... this. Updated all users.
3215
d02ed0bb
MM
32162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3217
3218 * record.h: Split into this and ...
3219 * record-full.h: ... this.
3220 * record.c: Split into this and ...
3221 * record-full.c: ... this.
3222 * target.h (target_ops): Add new fields to_info_record,
3223 to_save_record, to_delete_record, to_record_is_replaying,
3224 to_goto_record_begin, to_goto_record_end, to_goto_record.
3225 (target_info_record): New.
3226 (target_save_record): New.
3227 (target_supports_delete_record): New.
3228 (target_delete_record): New.
3229 (target_record_is_replaying): New.
3230 (target_goto_record_begin): New.
3231 (target_goto_record_end): New.
3232 (target_goto_record): New.
3233 * target.c (target_info_record): New.
3234 (target_save_record): New.
3235 (target_supports_delete_record): New.
3236 (target_delete_record): New.
3237 (target_record_is_replaying): New.
3238 (target_goto_record_begin): New.
3239 (target_goto_record_end): New.
3240 (target_goto_record): New.
3241 * record.h: Declare struct cmd_list_element.
3242 (record_cmdlist): New declaration.
3243 (set_record_cmdlist): New declaration.
3244 (show_record_cmdlist): New declaration.
3245 (info_record_cmdlist): New declaration.
3246 (cmd_record_goto): New declaration.
3247 * record.c: Remove unnecessary includes.
3248 Include inferior.h.
3249 (cmd_record_goto): Remove declaration.
3250 (record_cmdlist): Now extern. Initialize.
3251 (set_record_cmdlist): Now extern. Initialize.
3252 (show_record_cmdlist): Now extern. Initialize.
3253 (info_record_cmdlist): Now extern. Initialize.
3254 (find_record_target): New.
3255 (require_record_target): New.
3256 (cmd_record_start): Update.
3257 (cmd_record_delete): Remove target-specific code.
3258 Call target_delete_record.
3259 (cmd_record_stop): Unpush any record target.
3260 (set_record_insn_max_num): Move to record-full.c
3261 (set_record_command): Add comment.
3262 (show_record_command): Add comment.
3263 (info_record_command): Update comment.
3264 Remove target-specific code.
3265 Call the record target's to_info_record.
3266 (cmd_record_start): New.
3267 (cmd_record_goto): Now extern.
3268 Remove target-specific code.
3269 Call target_goto_begin, target_goto_end, or target_goto.
3270 (_initialize_record): Move record target ops initialization to
3271 record-full.c.
3272 Change "record" command help text.
3273 Move "record restore", "record set", and "record show" commands to
3274 record-full.c.
3275 * Makefile.in (SFILES): Add record-full.c.
3276 (HFILES_NO_SRCDIR): Add record-full.h.
3277 (COMMON_OBS): Add record-full.o.
3278 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
3279 * arm-tdep.c: Include record-full.h.
3280 * i386-linux-tdep.c: Include record-full.h instead of record.h.
3281 * i386-tdep.c: Include record-full.h.
3282 * infrun.c: Include record-full.h.
3283 * linux-record.c: Include record-full.h.
3284 * moxie-tdep.c: Include record-full.h.
3285 * record-full.c: Include record-full.h.
3286 Change module comment.
3287 (set_record_full_cmdlist): New.
3288 (show_record_full_cmdlist): New.
3289 (record_full_cmdlist): New.
3290 (record_goto_insn): New declaration.
3291 (record_save): New declaration.
3292 (record_check_insn_num): Change query string.
3293 (record_info): New.
3294 (record_delete): New.
3295 (record_is_replaying): New.
3296 (record_goto_entry): New.
3297 (record_goto_begin): New.
3298 (record_goto_end): New.
3299 (record_goto): New.
3300 (init_record_ops): Update.
3301 (init_record_core_ops): Update.
3302 (cmd_record_save): Rename to record_save. Remove target and arg checks.
3303 (cmd_record_start): New.
3304 (set_record_insn_max_num): Moved from record.c
3305 (set_record_full_command): New.
3306 (show_record_full_command): New.
3307 (_initialize_record_full): New.
3308
b48d48eb
MM
33092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3310
3311 * target.h (add_deprecated_target_alias): New.
3312 * target.c (add_deprecated_target_alias): New.
3313
a950d57c
MM
33142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3315
3316 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
3317 and signal.h.
3318 (linux_supports_btrace): Add kernel and
3319 cpuid check.
3320 (kernel_supports_btrace): New function.
3321 (cpu_supports_btrace): New function.
3322 (intel_supports_btrace): New function.
3323
9accd112
MM
33242013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3325
3326 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
3327 * remote.c: Include btrace.h.
3328 (struct btrace_target_info): New struct.
3329 (remote_supports_btrace): New function.
3330 (send_Qbtrace): New function.
3331 (remote_enable_btrace): New function.
3332 (remote_disable_btrace): New function.
3333 (remote_teardown_btrace): New function.
3334 (remote_read_btrace): New function.
3335 (init_remote_ops): Add btrace ops.
3336 (enum <unnamed>): Add btrace packets.
3337 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
3338 (_initialize_remote): Add packet configuration for branch tracing.
3339
c12a2917
MM
33402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3341
3342 * features/btrace.dtd: New file.
3343 * Makefile.in (XMLFILES): Add btrace.dtd.
3344 * btrace.h (parse_xml_btrace): New declaration.
3345 * btrace.c: Include xml-support.h.
3346 (parse_xml_btrace): New function.
3347 (parse_xml_btrace_block): New function.
3348 (block_attributes): New struct.
3349 (btrace_attributes): New struct.
3350 (btrace_children): New struct.
3351 (btrace_elements): New struct.
3352
3e3aea48
MM
33532013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3354
3355 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
3356 (amd64_linux_enable_btrace): New.
3357 (amd64_linux_disable_btrace): New.
3358 (amd64_linux_teardown_btrace): New.
3359 (_initialize_amd64_linux_nat): Initialize btrace ops.
3360 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
3361 (i386_linux_enable_btrace): New.
3362 (i386_linux_disable_btrace): New.
3363 (i386_linux_teardown_btrace): New.
3364 (_initialize_i386_linux_nat): Initialize btrace ops.
3365 * config/i386/linux.mh: Add linux-btrace.o.
3366 * config/i386/linux64.mh: Add linux-btrace.o.
3367
7c97f91e
MM
33682013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3369
3370 * common/linux_btrace.h: New file.
3371 * common/linux_btrace.c: New file.
3372 * Makefile.in (SFILES): Add btrace.c.
3373 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
3374 (COMMON_OBS): Add btrace.o.
3375 (linux-btrace.o): New rule.
3376
1999790b 33772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
3378
3379 * target.h: Include btrace.h.
3380 (struct target_ops) <to_supports_btrace, to_enable_btrace,
3381 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
3382 * target.c (target_supports_btrace): New function.
3383 (target_enable_btrace): New function.
3384 (target_disable_btrace): New function.
3385 (target_teardown_btrace): New function.
3386 (target_read_btrace): New function.
3387 * btrace.h: New file.
3388 * btrace.c: New file.
3389 * Makefile.in: Add btrace.c.
3390 * gdbthread.h: Include btrace.h.
3391 (struct thread_info): Add btrace field.
3392 * thread.c: Include btrace.h.
3393 (clear_thread_inferior_resources): Call target_teardown_btrace.
3394 * common/btrace-common.h: New file.
3395
61a31a67
JK
33962013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3397
3398 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
3399 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
3400 kill_status to outer block.
3401
05c56a9d
JK
34022013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3403
3404 Fix entry-values if the callee called a noreturn function.
3405 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
3406 get_frame_address_in_block. Add new comment.
3407
9112db09
JK
34082013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3409
3410 Fix entry-values in C++ across CUs.
3411 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
3412 lookup_minimal_symbol. Add a comment.
3413 * dwarf2read.c
3414 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
3415 DW_AT_linkage_name.
3416
9b67fcec
YQ
34172013-03-08 Yao Qi <yao@codesourcery.com>
3418
3419 * tracepoint.c (_initialize_tracepoint): Indent the code.
3420
6221be90
PA
34212013-03-08 Pedro Alves <palves@redhat.com>
3422
3423 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
3424 (parse_find_args, find_command): Change type of pattern buffer
3425 locals to 'gdb_byte *'.
3426
be9a119c 34272013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
3428 Hafiz Abid Qadeer <abidh@codesourcery.com>
3429
3430 * NEWS: Mention set and show trace-buffer-size commands.
3431 Mention new packet.
3432 * target.h (struct target_ops): New method
3433 to_set_trace_buffer_size.
3434 (target_set_trace_buffer_size): New macro.
3435 * target.c (update_current_target): Set up new method.
3436 * tracepoint.c (trace_buffer_size): New global.
3437 (start_tracing): Send it to the target.
3438 (set_trace_buffer_size): New function.
3439 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
3440 * remote.c (remote_set_trace_buffer_size): New function.
3441 (_initialize_remote): Use it.
3442 (QTBuffer:size) New remote command.
3443 (PACKET_QTBuffer_size): New enum.
3444 (remote_protocol_features): Add an entry for
3445 PACKET_QTBuffer_size.
3446
7da3ab79
TT
34472013-03-08 Tom Tromey <tromey@redhat.com>
3448
3449 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
3450 variable.
3451
0c1f71e7
PA
34522013-03-07 Pedro Alves <palves@redhat.com>
3453
3454 * target.c (target_read_stralloc, target_fileio_read_alloc):
3455 *Cast pointer to 'gdb_byte *' in target call.
3456
c8af03a2
PA
34572013-03-07 Pedro Alves <palves@redhat.com>
3458
3459 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
3460 call.
3461
529480d0
KS
34622013-03-07 Keith Seitz <keiths@redhat.com>
3463
3464 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
3465 (trace_pass_command): Likewise.
3466 * cli/cli-cmds.c: Include cli/cli-utils.h.
3467 (source_command): Use skip-spaces.
3468 (disassemble_command): Likewise.
3469 * findcmd.c: Include cli/cli-utils.h.
3470 (parse_find_args): Use skip_spaces.
3471 * go32-nat.c: Include cli/cli-utils.h.
3472 (go32_sldt): Use skip_spaces.
3473 (go32_sgdt): Likewise.
3474 (go32_sidt): Likewise.
3475 (go32_pde): Likewise.
3476 (go32_pte): Likewise.
3477 (go32_pte_for_address): Likewise.
3478 * infcmd.c: Include cli/cli-utils.h.
3479 (registers_info): Use skip_spaces.
3480 * linux-tdep.c (read_mapping): Use skip_spaces_const.
3481 (linux_info_proc): Likewise.
3482 * linux-thread-db.c: Include cli/cli-utils.h.
3483 (info_auto_load_libthread_db): Use skip_spaces_const.
3484 * m32r-rom.c: Include cli/cli-utils.h.
3485 (m32r_upload_command): Use skip_spaces.
3486 * maint.c: Include cli/cli-utils.h.
3487 (maintenance_translate_address): Use skip_spaces.
3488 * mi/mi-parse.c: Include cli/cli-utils.h.
3489 (mi_parse_argv): Use skip_spaces.
3490 (mi_parse): Likewise.
3491 * minsyms.c: Include cli/cli-utils.h.
3492 (msymbol_hash_iw): Use skip_spaces_const.
3493 * objc-lang.c: Include cli/cli-utils.h.
3494 (parse_selector): Use skip_spaces.
3495 (parse_method): Likewise.
3496 * python/python.c: Include cli/cli-utils.h.
3497 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
3498 (python_command)[HAVE_PYTHON]: Likewise.
3499 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
3500 * remote-m32r-sdi.c: Include cli/cli-utils.h.
3501 (m32r_load): Use skip_spaces.
3502 * serial.c: Include cli/cli-utils.h.
3503 (serial_open): Use skip_spaces_const.
3504 * stack.c: Include cli/cli-utils.h.
3505 (parse_frame_specification_1): Use skip_spaces_const.
3506 * symfile.c: Include cli/cli-utils.h.
3507 (set_ext_lang_command): Use skip_spaces.
3508 * symtab.c: Include cli/cli-utils.h.
3509 (rbreak_command): Use skip_spaces.
3510 * thread.c (thread_name_command): Use skip_spaces.
3511 * tracepoint.c (validate_actionline): Use skip_spaces.
3512 (encode_actions_1): Likewise.
3513 (trace_find_range_command): Likewise.
3514 (trace_find_outside_command): Likewise.
3515 (trace_dump_actions): Likewise.
3516
ac91cd70
PA
35172013-03-07 Pedro Alves <palves@redhat.com>
3518
3519 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
3520 * expprint.c (print_subexp_standard): Likewise.
3521 * utils.c (host_char_to_target): Likewise.
3522 * valprint.c (generic_emit_char, generic_printstr): Likewise.
3523 * varobj.c (value_get_print_value): Change type of local to char*.
3524 Cast it gdb_byte * in call to language printer.
3525
2898e560
PA
35262013-03-07 Pedro Alves <palves@redhat.com>
3527
3528 * charset.c (struct wchar_iterator) <input>: Change type to 'const
3529 gdb_byte *'.
3530 (make_wchar_iterator): Remove cast to char*.
3531 (wchar_iterate): Change type of local.
3532
a09b4448
PA
35332013-03-07 Pedro Alves <palves@redhat.com>
3534
3535 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
3536 for 'regcache->register_status'.
3537
20ced3e4
PA
35382013-03-07 Pedro Alves <palves@redhat.com>
3539
c2d6a675 3540 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
3541 int.
3542
fe106009
PA
35432013-03-07 Pedro Alves <palves@redhat.com>
3544
3545 * stap-probe.c (handle_stap_probe): Add cast to char*.
3546
8ac2c12b
PA
35472013-03-07 Pedro Alves <palves@redhat.com>
3548
3549 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
3550 RECORD_MSGRCV>: Pass a signed variable to
3551 regcache_raw_read_signed, instead of an unsigned one.
3552
99f0a309
PA
35532013-03-07 Pedro Alves <palves@redhat.com>
3554
3555 * remote-notif.c (notif_debug): Change type to int.
3556 * remote-notif.h (notif_debug): Likewise.
3557
964b8317
PA
35582013-03-07 Pedro Alves <palves@redhat.com>
3559
3560 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
3561
f0cc8ad4
PA
35622013-03-07 Pedro Alves <palves@redhat.com>
3563
3564 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
3565 * remote.h (hex2bin, bin2hex): ... here.
3566 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
3567
77dec115
EZ
35682013-03-07 Eli Zaretskii <eliz@gnu.org>
3569
3570 * utils.c (initialize_utils): Improve doc strings of "set/show
3571 width", "set/show height", and "set/show pagination".
3572
741d92cf
KS
35732013-03-06 Keith Seitz <keiths@redhat.com>
3574
3575 * ax-gdb.c (gen_printf): Make FORMAT const.
3576 * ax-gdb.h (gen_printf): Likewise.
3577 * ax-general.c (ax_string): Make STR const.
3578 * ax.h (ax_string): Likewise.
3579
7b6c814e
DE
35802013-03-06 Doug Evans <dje@google.com>
3581
3582 * elfread.c (elf_symfile_read): Move debugging printf to more
3583 logical location.
3584
634334ab
PA
35852013-03-06 Pedro Alves <palves@redhat.com>
3586
3587 * python/py-utils.c (target_string_to_unicode): Delete function.
3588 * python/python-internal.h (target_string_to_unicode): Delete
3589 declaration.
3590
e482a1a7
PM
35912013-03-06 Pierre Muller <muller@sourceware.org>
3592
3593 * linespec.c (get_current_search_block): ARI fix, use (void)
3594 for empty parameter list.
3595
4eeaa230
DE
35962013-03-05 Doug Evans <dje@google.com>
3597
3598 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
3599 of old ada_lookup_symbol_list. In !full_search case, don't
3600 search superblocks.
3601 (ada_lookup_symbol_list): Delete arg full_search, all callers
3602 updated. Call ada_lookup_symbol_list_worker.
3603 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
3604 * ada-lang.h (ada_lookup_symbol_list): Update.
3605 * language.h (language_defn): Update comment for
3606 la_iterate_over_symbols.
3607 * linespec.c (iterate_over_file_blocks): New function.
3608 (iterate_over_all_matching_symtabs): Call it.
3609 (lookup_prefix_sym): Ditto.
3610 (get_current_search_block): New function.
3611 (get_search_block): Delete.
3612 (find_label_symbols): Call get_current_search_block.
3613 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
3614 * symtab.c (iterate_over_symbols): Don't search superblocks.
3615
b69b1fb1
YQ
36162013-03-05 Yao Qi <yao@codesourcery.com>
3617
3618 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
3619 parameter VAR's type from "unsigned int" to "int".
3620 * command.h (var_zuinteger_unlimited): Update its comments.
3621 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
3622
3c095f49
CV
36232013-03-05 Corinna Vinschen <vinschen@redhat.de>
3624
3625 * NEWS: Mention new target x86_64-*-cygwin*.
3626
b5b0b0af
CV
36272013-03-05 Corinna Vinschen <vinschen@redhat.de>
3628
3629 * configure.host: Add x86_64-*-cygwin* as host.
3630 * configure.tgt: Add x86_64-*-cygwin* as target.
3631 * config/i386/cygwin64.mh: New file.
3632
f6f99966
JK
36332013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3634
3635 * linespec.c (decode_line_2): Fix duplicate request off by two message.
3636
33f448b1
JK
36372013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3638
3639 * linespec.c (struct linespec_canonical_name): New.
3640 (struct linespec_state): Change canonical_names type to it.
3641 (add_sal_to_sals): Change variable canonical_name to canonical. Change
3642 xrealloc element size. Initialize the different CANONICAL fields.
3643 (canonical_to_fullform): New.
3644 (filter_results): Use it. Add variables canonical, fullform and
3645 cleanup.
3646 (struct decode_line_2_item, decode_line_2_compare_items): New.
3647 (decode_line_2): Remove variables iter and item_names, add variables
3648 items and items_count. Modify the code for these new variables.
3649
feb14725
CV
36502013-03-04 Corinna Vinschen <vinschen@redhat.com>
3651
3652 * coff-pe-read.c (read_pe_exported_syms): Don't return without
3653 calling do_cleanup.
3654
e83b17ba
HZ
36552013-03-04 Luis Machado <lgustavo@codesourcery.com>
3656
3657 * tracepoint.c (build_traceframe_info): Add code for byte order.
3658
a2d13a0d
KB
36592013-03-02 Kevin Buettner <kevinb@redhat.com>
3660
8dddcae8
KB
3661 * v850-tdep.c: (v850e2_register_name): Revise system register
3662 names to match current V850E2M architecture specifications.
3663 Update register number enum comments too.
a2d13a0d 3664
d79e58d8
JW
36652013-03-01 Jiong Wang <jiwang@tilera.com>
3666 Pedro Alves <palves@redhat.com>
3667
3668 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
3669 to END_ADDR.
3670 (tilegx_skip_prologue): Limit prologue analysis to section end.
3671
c4be5165
JK
36722013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3673
3674 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
3675 use it.
3676
e362b510
PA
36772013-03-01 Pedro Alves <palves@redhat.com>
3678
3679 Use gdb_byte for bytes from the program being debugged.
3680
3681 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
3682 Change type of local 'buf' to gdb_byte.
3683 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
3684 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
3685 * cris-tdep.c (cris_sigcontext_addr)
3686 (cris_sigtramp_frame_unwind_cache): Likewise.
3687 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
3688 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
3689 Likewise.
3690 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
3691 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
3692 (hppa32_hpux_search_dummy_call_sequence)
3693 (hppa_hpux_supply_save_state): Likewise.
3694 * hppa-linux-tdep.c (insns_match_pattern)
3695 (hppa_linux_find_global_pointer): Likewise.
3696 * hppa-tdep.c (hppa_in_function_epilogue_p)
3697 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3698 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
3699 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
3700 (i386fbsd_collect_uthread): Likewise.
3701 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
3702 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
3703 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
3704 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
3705 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
3706 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
3707 (ia64_libunwind_frame_prev_register)
3708 (ia64_libunwind_sigtramp_frame_this_id)
3709 (ia64_find_global_pointer_from_dynamic_section)
3710 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
3711 (ia64_unwind_pc): Likewise.
3712 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
3713 * m68hc11-tdep.c (m68hc11_push_dummy_call)
3714 (m68hc11_extract_return_value): Likewise.
3715 * m68klinux-nat.c (fetch_register, store_register): Likewise.
3716 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
3717 (mep_get_insn, mep_push_dummy_call): Likewise.
3718 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3719 (mips_linux_in_dynsym_stub): Likewise.
3720 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
3721 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3722 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
3723 to gdb_byte.
3724 * remote-mips.c (mips_set_register): Likewise.
3725 * remote-sim.c (gdbsim_fetch_register): Likewise.
3726 * score-tdep.c (score7_fetch_inst): Change type of parameter
3727 'memblock' and local 'buf' to gdb_byte.
3728 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
3729 Change type of local 'buf' to gdb_byte. Adjust.
3730 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
3731 to gdb_byte**.
3732 (score7_analyze_prologue): Change type of 'memblock' and
3733 'memblock_ptr' locals to gdb_byte*.
3734 * sh64-tdep.c (sh64_extract_return_value)
3735 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
3736 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
3737 * solib-pa64.c (pa64_solib_create_inferior_hook)
3738 (pa64_open_symbol_file_object): Remove local 'buf'.
3739 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
3740 (som_open_symbol_file_object): Likewise.
3741 * solib-spu.c (spu_current_sos): Likewise.
3742 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3743 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
3744 (spu_store_registers): Likewise.
3745 * target.c (debug_print_register): Likewise.
3746 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
3747 * xstormy16-tdep.c (xstormy16_store_return_value)
3748 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
3749 (xstormy16_find_jmp_table_entry): Likewise.
3750
75cc61ca 37512013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
3752
3753 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
3754 (tilegx_gdbarch_init): Install it.
3755
ddb08e9c
TT
37562013-02-28 Tom Tromey <tromey@redhat.com>
3757
3758 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
3759 PyLong_Check.
3760
62d7fb51
DE
37612013-02-28 Doug Evans <dje@google.com>
3762
3763 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
3764 * python/python.c (gdbpy_find_pc_line): Ditto.
3765
c4a9e8b4
TT
37662013-02-28 Tom Tromey <tromey@redhat.com>
3767
3768 * contrib/excheck.py: New file.
3769 * contrib/exsummary.py: New file.
3770 * contrib/gcc-with-excheck: New file.
3771
7f6a5dde
TT
37722013-02-28 Tom Tromey <tromey@redhat.com>
3773
3774 * python/python.c (gdbpy_print_stack): Call begin_line and
3775 fprintf_filtered inside TRY_CATCH.
3776
9e974e55
TT
37772013-02-28 Tom Tromey <tromey@redhat.com>
3778
3779 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
3780 inside TRY_CATCH.
3781
dd5fa3e7
TT
37822013-02-28 Tom Tromey <tromey@redhat.com>
3783
3784 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
3785 frame_object_to_frame_info inside TRY_CATCH.
3786
86a3263f
TT
37872013-02-28 Tom Tromey <tromey@redhat.com>
3788
3789 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
3790 TRY_CATCH.
3791
81b52a3a
TT
37922013-02-28 Tom Tromey <tromey@redhat.com>
3793
3794 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
3795
d50a0ce2
CV
37962013-02-27 Corinna Vinschen <vinschen@redhat.com>
3797
3798 * windows-nat.c: Throughout, fix format strings and casts of
3799 printf-like functions to avoid type related warnings on all
3800 platforms.
3801 (handle_output_debug_string): Fetch context information address
3802 from debug string using string_to_core_addr.
3803
e1f58301
JW
38042013-02-27 Jiong Wang <jiwang@tilera.com>
3805
3806 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
3807 * regformats/reg-tilegx32.dat: New.
3808
4fcd89fc
JW
38092013-02-27 Jiong Wang <jiwang@tilera.com>
3810
3811 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
3812
748d24e6
JW
38132013-02-27 Jiong Wang <jiwang@tilera.com>
3814
3815 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
3816
6c8e944d
YQ
38172013-02-27 Yao Qi <yao@codesourcery.com>
3818 Pedro Alves <palves@redhat.com>
3819
3820 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
3821 pc/tp/range/outside, look for the next trace frame instead of
3822 always starting from frame 0.
6c8e944d 3823
acd7db30
AG
38242013-02-26 Anthony Green <green@moxielogic.com>
3825
3826 * configure.tgt: Add support for moxie-*-rtems* target.
3827
025e6dce
PA
38282013-02-25 Pedro Alves <palves@redhat.com>
3829
3830 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
3831 warning text.
3832
ca9c94ef
MR
38332013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3834
3835 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
3836 if $fp is used as the virtual frame pointer.
3837
24c274a1
AM
38382013-02-23 Alan Modra <amodra@gmail.com>
3839
3840 * elfread.c (elf_symtab_read): Do not use udata.p here to find
3841 symbol size.
3842 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
3843 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
3844 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
3845 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
3846
bfada189
JK
38472013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3848
3849 Code cleanup.
3850 * elfread.c (build_id_bfd_get): Make the return type const.
3851 (build_id_verify): Make the check parameter const.
3852 (build_id_to_debug_filename): Make the build_id parameter and variable
3853 data const.
3854 (find_separate_debug_file_by_buildid): Make the variable build_id const.
3855
c0355132
AM
38562013-02-21 Alan Modra <amodra@gmail.com>
3857
3858 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
3859
9f44fbc0
SCR
38602013-02-20 Siva Chandra Reddy <sivachandra@google.com>
3861
3862 Add a new method 'disassemble' to gdb.Architecture class.
3863 * python/py-arch.c (archpy_disassmble): Implementation of the
3864 new method gdb.Architecture.disassemble.
3865 (arch_object_methods): Add entry for the new method.
3866
b74ea3eb
JW
38672013-02-20 Jiong Wang <jiwang@tilera.com>
3868
3869 * MAINTAINERS (Write After Approval): Add myself to the list.
3870
61a672f1
PA
38712013-02-19 Pedro Alves <palves@redhat.com>
3872
3873 Garbage collect 'struct monitor_ops'::load_routine.
3874
3875 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
3876 * monitor.c (monitor_load): No longer call
3877 current_monitor->load_routine.
3878 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
3879 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
3880 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
3881
40e397df
PA
38822013-02-19 Pedro Alves <palves@redhat.com>
3883
3884 PR gdb/15161
3885
3886 Harmonize with generic_load.
3887
3888 * monitor.c: Include "readline/readline.h".
3889 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
3890 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
3891 long/strtol for the 'load_offset' local. Error out if no argument
3892 is given or if too many arguments are given. Tilde expand the
3893 passed in file name.
3894
f698ca8e
KT
38952013-02-19 Kai Tietz <ktietz@redhat.com>
3896
3897 PR gdb/15161
3898 * symfile.c (load_section_data): Change type of load_offset
3899 to CORE_ADDR.
3900 (generic_load): User strtoulst instead of strtoul for conversion
3901 of load_offset.
3902
3361b059
WL
39032013-02-19 Jiong Wang <jiwang@tilera.com>
3904
3905 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
3906 for return address, "lr" register, saved on stack.
3907 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
3908 after we invoke tilegx_analyze_prologue.
3909
3e9d5130
WL
39102013-02-19 Jiong Wang <jiwang@tilera.com>
3911
bb1bcd86
WL
3912 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
3913
3361b059 39142013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 3915
b74ea3eb 3916 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 3917
4aaf2503
WL
39182013-02-19 Jiong Wang <jiwang@tilera.com>
3919
b74ea3eb 3920 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
3921 (tilegx_write_pc): New function.
3922 (tilegx_cannot_reference_register): Return zero if REGNO
3923 is TILEGX_FAULTNUM_REGNUM.
3924 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
3925 (tilegx_register_name): Add handling of "faultnum" register.
3926 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
3927 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
3928 handling of TILEGX_FAULTNUM_REGNUM.
3929 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
3930
bc23a956
WL
39312013-02-19 Jiong Wang <jiwang@tilera.com>
3932
3933 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 3934 should be aligned to 64bit.
bc23a956 3935
42f45f1a
KT
39362013-02-19 Kai Tietz <ktietz@redhat.com>
3937
3938 * windows-nat.c (windows_xfer_memory): Fix debug-output
3939 for LLP64.
3940
6ce4c112
LL
39412013-02-19 Lei Liu <lei.liu2@windriver.com>
3942
3943 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
3944 Don't check DSP register number if HAVE_DSP is not set.
3945
30e8ee25
AM
39462013-02-19 Alan Modra <amodra@gmail.com>
3947
3948 * elfread.c (struct build_id): Delete. Use struct elf_build_id
3949 throughout file instead.
3950 (build_id_bfd_get): Update to use new elf_tdata build_id field.
3951 Don't xmalloc return value.
3952 (build_id_verify): Similarly. Don't xfree.
3953 (build_id_to_debug_filename): Update.
3954 (find_separate_debug_file_by_buildid): Update, don't xfree.
3955
4c9ad8c2
TT
39562013-02-18 Tom Tromey <tromey@redhat.com>
3957
3958 PR gdb/15102:
3959 * dwarf2read.c (read_subrange_type): Use result of
3960 'check_typedef'.
3961
983dc440
YQ
39622013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
3963
3964 * frame.c: Remove one extra white space after #include
3965 directive.
3966
7fb2b84a
JK
39672013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3968
3969 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
3970
edceb2a9
JK
39712013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3972
3973 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
3974 and dir commands into an if block.
3975
e81b7af8
TT
39762013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
3977
3978 * python/py-breakpoint (struct pybp_code): Use int instead of
3979 enum type_code.
3980
f5911ea1
HAQ
39812013-02-15 Pedro Alves <pedro@codesourcery.com>
3982 Hafiz Abid Qadeer <abidh@codesourcery.com>
3983
3984 * NEWS: Mention new field "trace-file".
3985 * tracepoint.c (trace_status_mi): Output "trace-file" field.
3986 (tfile_open): Record the trace file's filename in the trace
3987 status.
3988 (tfile_files_info): Mention the name of the trace file.
3989 Check the "filename" field explicitely.
3990 (trace_status_command): Explicitely check "filename" field.
3991 (trace_find_command): Ditto.
3992 (trace_find_pc_command): Ditto.
3993 (trace_find_tracepoint_command): Ditto.
3994 (trace_find_line_command): Ditto.
3995 (trace_find_range_command): Ditto.
3996 (trace_find_outside_command): Ditto.
3997 * tracepoint.h (struct trace_status) <from_file>: Rename it
3998 to "filename" and make it hold the trace file's filename
3999 instead of a boolean.
4000 * remote.c (remote_get_trace_status): Initialize "filename"
4001 field with NULL instead of 0.
4002
796cb314
YQ
40032013-02-15 Yao Qi <yao@codesourcery.com>
4004
4005 * remote.c: Fix a typo.
4006
42e79b1d
PM
40072013-02-14 Pierre Muller <muller@sourceware.org>
4008
4009 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
4010
baea0dae
PA
40112013-02-14 Pedro Alves <palves@redhat.com>
4012
4013 * utils.c (savestring): Don't #undef it. Move function to
4014 common/common-utils.c.
4015 * common/common-utils.c: Include gdb_string.h.
4016 (savestring): Move here from utils.c.
4017 * common/common-utils.h (savestring): Declare.
4018
57c3b6ed
PA
40192013-02-14 Pedro Alves <palves@redhat.com>
4020
4021 * utils.c (savestring): Rename parameter 'size' to 'len'.
4022
d6c44983
YZ
40232013-02-14 Pedro Alves <palves@redhat.com>
4024 Yufeng Zhang <yufeng.zhang@arm.com>
4025
4026 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
4027 (aarch64_inferior_data, struct aarch64_inferior_data):
4028 Delete.
4029 (struct aarch64_process_info): New.
4030 (aarch64_process_list): New global.
4031 (aarch64_find_process_pid, aarch64_add_process)
4032 (aarch64_process_info_get): New functions.
4033 (aarch64_inferior_data_get): Delete.
4034 (aarch64_process_info_get): New function.
4035 (aarch64_forget_process): New function.
4036 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
4037 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
4038 aarch64_get_debug_reg_state.
4039 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
4040 instead of linux_nat_iterate_watchpoint_lwps.
4041 (aarch64_linux_new_fork): New function.
4042 (aarch64_linux_child_post_startup_inferior): Use
4043 aarch64_forget_process instead of aarch64_init_debug_reg_state.
4044 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
4045 (aarch64_linux_remove_hw_breakpoint)
4046 (aarch64_handle_aligned_watchpoint)
4047 (aarch64_handle_unaligned_watchpoint)
4048 (aarch64_linux_insert_watchpoint)
4049 (aarch64_linux_remove_watchpoint)
4050 (aarch64_linux_stopped_data_address): Adjust to pass the current
4051 process id to aarch64_debug_reg_state.
4052 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
4053 linux_nat_new_fork hook, and aarch64_forget_process as
4054 linux_nat_forget_process hook; remove the call to
4055 register_inferior_data_with_cleanup.
4056
4819b3f8
PA
40572013-02-14 Pedro Alves <palves@redhat.com>
4058
4059 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
4060 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
4061 lval_memory.
4062
1773c82c
HAQ
40632013-02-14 Pedro Alves <pedro@codesourcery.com>
4064 Hafiz Abid Qadeer <abidh@codesourcery.com>
4065
4066 * tracepoint.h (validate_trace_state_variable_name): Declare.
4067 * tracepoint.c (validate_trace_state_variable_name): New.
4068 (trace_variable_command): Parse the trace state variable's name
4069 without using parse_expression. Do several validations.
4070 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
4071 trace state variable's name with parse_expression. Validate it.
4072
53778a97
YQ
40732013-02-14 Yao Qi <yao@codesourcery.com>
4074
4075 * infcmd.c (breakpoint_proceeded): Remove it.
4076
7b3ae3a6
YQ
40772013-02-14 Yao Qi <yao@codesourcery.com>
4078
4079 * tracepoint.c (end_actions_pseudocommand): Make it static.
4080 (while_stepping_pseudocommand): Likewise.
4081 * tracepoint.h (end_actions_pseudocommand): Remove the
4082 declaration.
4083 (while_stepping_pseudocommand): Likewise.
4084
64580925
YQ
40852013-02-14 Yao Qi <yao@codesourcery.com>
4086
4087 * cli/cli-decode.c (help_cmd): Remove the declaration of
4088 "cmdlist".
4089 (help_all): Likewise.
4090
26cb8b7c
PA
40912013-02-13 Pedro Alves <palves@redhat.com>
4092
4093 * amd64-linux-nat.c (update_debug_registers_callback):
4094 Update comment.
4095 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4096 iterate_over_lwps.
4097 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
4098 i386_debug_reg_state.
4099 (amd64_linux_new_fork): New function.
4100 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
4101 linux_nat_new_fork hook, and i386_forget_process as
4102 linux_nat_forget_process hook.
4103 * i386-linux-nat.c (update_debug_registers_callback):
4104 Update comment.
a8256ea1 4105 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
4106 iterate_over_lwps.
4107 (i386_linux_prepare_to_resume): Pass the lwp's pid to
4108 i386_debug_reg_state.
4109 (i386_linux_new_fork): New function.
4110 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
4111 linux_nat_new_fork hook, and i386_forget_process as
4112 linux_nat_forget_process hook.
4113 * i386-nat.c (i386_init_dregs): Delete.
4114 (i386_inferior_data, struct i386_inferior_data):
4115 Delete.
4116 (struct i386_process_info): New.
4117 (i386_process_list): New global.
4118 (i386_find_process_pid, i386_add_process, i386_process_info_get):
4119 New functions.
4120 (i386_inferior_data_get): Delete.
4121 (i386_process_info_get): New function.
4122 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
4123 (i386_forget_process): New function.
4124 (i386_cleanup_dregs): Rewrite.
4125 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
4126 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
4127 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4128 (i386_remove_hw_breakpoint): Adjust to pass the current process id
4129 to i386_debug_reg_state.
4130 (i386_use_watchpoints): Don't register inferior data.
4131 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
4132 adjust comment.
4133 (i386_forget_process): Declare.
4134 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
4135 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
4136 New static globals.
4137 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
4138 (add_initial_lwp): New, factored out from ...
4139 (add_lwp): ... this. Don't check the number of lwps before
4140 calling linux_nat_new_thread.
4141 (linux_nat_iterate_watchpoint_lwps): Delete.
4142 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
4143 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
4144 forks and vforks.
4145 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
4146 initial lwp.
4147 (linux_nat_kill, linux_nat_mourn_inferior): Call
4148 linux_nat_forget_process.
4149 (linux_nat_set_new_fork, linux_nat_set_forget_process)
4150 (linux_nat_forget_process): New functions.
4151 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
4152 type.
4153 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
4154 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
4155 types.
4156 (linux_nat_set_new_fork, linux_nat_set_forget_process)
4157 (linux_nat_forget_process): New declarations.
4158
4159 * amd64fbsd-nat.c (super_mourn_inferior): New global.
4160 (amd64fbsd_mourn_inferior): New function.
4161 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
4162 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
4163
5befea72
MS
41642013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
4165
55015247
YQ
4166 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
4167 Adding _().
5befea72 4168
1d3ffd6b
MS
41692013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
4170
4171 * aarch64-linux-nat.c (debug_reg_change_callback)
4172 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
4173 %s and phex().
4174
6eb04473
MS
41752013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
4176
4177 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
4178 with LONGEST.
4179
a016fc87
HAQ
41802013-02-13 Pedro Alves <palves@redhat.com>
4181 Hafiz Abid Qadeer <abidh@codesourcery.com>
4182
4183 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
4184
e234dfaf
TT
41852013-02-12 Tom Tromey <tromey@redhat.com>
4186
4187 PR symtab/11464:
4188 * c-exp.y (lex_one_token): Initialize other fields of yylval on
4189 NAME return.
4190 (classify_inner_name): Remove 'first_name' argument, add
4191 'context'. Remove unused variable.
4192 (yylex): Explicitly maintain the context type. Exit loop earlier
4193 if NAME result is seen.
4194
0b1afbb3
PA
41952013-02-12 Pedro Alves <palves@redhat.com>
4196
4197 * amd64-darwin-tdep.c: Add (C) after Copyright.
4198 * cli/cli-cmds.h: Ditto.
4199 * cli/cli-decode.c: Ditto.
4200 * cli/cli-decode.h: Ditto.
4201 * cli/cli-dump.c: Ditto.
4202 * cli/cli-dump.h: Ditto.
4203 * cli/cli-interp.c: Ditto.
4204 * cli/cli-logging.c: Ditto.
4205 * cli/cli-script.c: Ditto.
4206 * cli/cli-script.h: Ditto.
4207 * cli/cli-setshow.c: Ditto.
4208 * cli/cli-setshow.h: Ditto.
4209 * cli/cli-utils.c: Ditto.
4210 * cli/cli-utils.h: Ditto.
4211 * config/alpha/nm-osf3.h: Ditto.
4212 * config/djgpp/djconfig.sh: Ditto.
4213 * config/i386/nm-fbsd.h: Ditto.
4214 * config/i386/nm-i386gnu.h: Ditto.
4215 * config/nm-linux.h: Ditto.
4216 * config/nm-nto.h: Ditto.
4217 * config/rs6000/nm-rs6000.h: Ditto.
4218 * config/sparc/nm-sol2.h: Ditto.
4219 * darwin-nat-info.c: Ditto.
4220 * dfp.c: Ditto.
4221 * dfp.h: Ditto.
4222 * gdb-demangle.h: Ditto.
4223 * i386-darwin-nat.c: Ditto.
4224 * i386-darwin-tdep.c: Ditto.
4225 * linux-fork.h: Ditto.
4226 * m32c-tdep.c: Ditto.
4227 * microblaze-linux-tdep.c: Ditto.
4228 * microblaze-rom.c: Ditto.
4229 * microblaze-tdep.c: Ditto.
4230 * microblaze-tdep.h: Ditto.
4231 * mips-linux-tdep.h: Ditto.
4232 * ppc-ravenscar-thread.c: Ditto.
4233 * ppc-ravenscar-thread.h: Ditto.
4234 * prologue-value.c: Ditto.
4235 * prologue-value.h: Ditto.
4236 * ravenscar-thread.c: Ditto.
4237 * ravenscar-thread.h: Ditto.
4238 * sparc-ravenscar-thread.c: Ditto.
4239 * sparc-ravenscar-thread.h: Ditto.
4240 * tilegx-linux-tdep.c: Ditto.
4241 * unwind_stop_reasons.def: Ditto.
4242 * windows-nat.h: Ditto.
4243 * xtensa-linux-tdep.c: Ditto.
4244 * xtensa-xtregs.c: Ditto.
4245 * regformats/regdat.sh: Ditto.
4246 * regformats/regdef.h: Ditto.
4247
6c01dd94
PA
42482013-02-12 Pedro Alves <palves@redhat.com>
4249
4250 * break-catch-sig.c: Update copyright years.
4251
b65a2bd9
SCR
42522013-02-11 Siva Chandra Reddy <sivachandra@google.com>
4253
4254 Add support for a destructor for ui_out data and use it to
4255 provide a ui_out destructor.
4256 * ui-out.h: Declare the new ui_out destructor.
4257 (ui_out_impl): Add a field for data destructor in ui_out_impl.
4258 * ui-out.c (default_data_destroy): Add a default data destructor
4259 which does nothing.
4260 (default_ui_out_impl): Set the new data_destroy field to
4261 default_data_destroy
4262 (uo_data_destroy): Local function which invokes the data
4263 destructor if present.
4264 (clear_table): Local function which clears the table data of a
4265 ui_out object.
4266 (ui_out_destroy): Public function which frees a ui_out object.
4267 (ui_out_table_end): Use the new clear_table function.
4268 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
4269 NULL.
4270 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
4271 to NULL.
4272
c2792f5a
DE
42732013-02-11 Doug Evans <dje@google.com>
4274
4275 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
4276 (printf_decfloat): New function. Broken out from ui_printf.
4277 Remove unnecessary code to shift the entire format string down.
4278 (printf_pointer): New function.
4279 (ui_printf): Code to print C strings, wide C strings, decfloats,
4280 and pointers moved to separate functions.
4281
d9e98382
SDJ
42822013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
4283
4284 * valops.c (value_assign): Handling bitfield offset in
4285 `lval_internalvar_component' case.
4286
4ff3ce77
DE
42872013-02-08 Doug Evans <dje@google.com>
4288
4289 * common/format.c (parse_format_string): Fix whitespace.
4290
901900c4
MGD
42912013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
4292
4293 * stack.c (return_command): Work around uninitialized variable
4294 warning.
4295
b5dbc8d4
YZ
42962013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
4297
4298 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
4299 number of the registers from 36 to 34.
4300
51d66578
MS
43012013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
4302
4303 * NEWS: Mention new AArch64 native and target support.
4304
176b1c95
MS
43052013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
4306
4307 * MAINTAINERS (Write After Approval): Add myself.
4308
9d19df75
MS
43092013-02-08 Jim MacArthur <jim.macarthur@arm.com>
4310 Marcus Shawcroft <marcus.shawcroft@arm.com>
4311 Nigel Stephens <nigel.stephens@arm.com>
4312 Yufeng Zhang <yufeng.zhang@arm.com>
4313
4314 * aarch64-linux-nat.c: New file.
4315 * config/aarch64/linux.mh: New file.
4316 * configure.host: Add AArch64.
4317 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
4318
7e1e0340
DE
43192013-02-07 Doug Evans <dje@google.com>
4320
4321 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
4322 disassemble command.
4323
45e25a36
MS
43242013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
4325
4326 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
4327 set_gdbarch_fetch_tls_load_module_address.
4328
bbfdfe1c
DM
43292013-02-06 David S. Miller <davem@davemloft.net>
4330
4331 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
4332 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4333 * value.c (struct_return_convention): New function.
4334 (using_struct_return): Implement in terms of struct_return_convention.
4335 * value.h (struct_return_convention): Declare.
4336 * stack.c (return_command): Allow successful overriding of the return
4337 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4338
bc9abe4a
TT
43392013-02-06 Tom Tromey <tromey@redhat.com>
4340
4341 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
4342 outside of TRY_CATCH.
4343
134a2066
YQ
43442013-02-06 Yao Qi <yao@codesourcery.com>
4345
4346 * mi/mi-interp.c: Include "tracepoint.h".
4347 (mi_tsv_modified): Declare.
4348 (mi_tsv_created, mi_tsv_deleted): Update declaration.
4349 (mi_interpreter_init): Call observer_attach_tsv_modified.
4350 (mi_tsv_modified): New.
4351 (mi_tsv_created, mi_tsv_deleted): Update.
4352 * tracepoint.c (trace_variable_command): Call
4353 observer_notify_tsv_modified if the initial value of tsv is
4354 changed.
4355 (delete_trace_state_variable): Call
4356 observer_notify_tsv_deleted earlier.
4357 (trace_variable_command): Caller update.
4358 (create_tsv_from_upload): Likewise.
4359 * observer.sh: Declare "struct trace_state_variable".
4360
4361 * NEWS: Mention the new MI notification "=tsv-modified".
4362
59be2b6a
DE
43632013-02-05 Doug Evans <dje@google.com>
4364
4365 * completer.c (location_completer): Fix typo in comment.
4366
d30113d4
JK
43672013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4368
4369 * breakpoint.c (add_location_to_breakpoint): Insert the location with
4370 ADDRESS sorted.
4371
14ac654f
MS
43722013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
4373
4374 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
4375 Refactor if statement to avoid trailing || operator.
4376
543bf33d
AT
43772013-02-05 Andreas Tobler <andreast@fgznet.ch>
4378
4379 * NEWS: Add PowerPC FreeBSD as a new native configuration.
4380
dc18f110
AT
43812013-02-04 Andreas Tobler <andreast@fgznet.ch>
4382
4383 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
4384 * configure.host: Add powerpc*-*-freebsd* target.
4385 * configure.tgt: Add target info for powerpc*-*-freebsd*.
4386 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
4387 * config/powerpc/fbsd.mh: New file.
4388
b3ac9c77
SDJ
43892013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
4390 Denys Vlasenko <dvlasenk@redhat.com>
4391 Pedro Alves <palves@redhat.com>
4392
4393 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
4394 (struct elf_internal_linux_prpsinfo): Forward declare.
4395 * gdbarch.h, gdbarch.c: Regenerate.
4396 * linux-tdep.c: Include `cli/cli-utils.h'.
4397 (linux_fill_prpsinfo): New function.
4398 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
4399 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
4400 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
4401 depending on gdbarch pointer bitness.
4402 * ppc-linux-tdep.c: Include elf-bfd.h.
4403 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
4404 on 32-bit.
4405
176eb98c
MS
44062013-02-04 Jim MacArthur <jim.macarthur@arm.com>
4407 Marcus Shawcroft <marcus.shawcroft@arm.com>
4408 Nigel Stephens <nigel.stephens@arm.com>
4409 Yufeng Zhang <yufeng.zhang@arm.com>
4410
4411 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
4412
cf0dbd6f
MS
44132013-02-04 Jim MacArthur <jim.macarthur@arm.com>
4414 Marcus Shawcroft <marcus.shawcroft@arm.com>
4415 Nigel Stephens <nigel.stephens@arm.com>
4416 Yufeng Zhang <yufeng.zhang@arm.com>
4417
4418 * aarch64-newlib-tdep.c: New file.
4419 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
4420 aarch64*-*-elf.
4421 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
4422 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
4423 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
4424 * osabi.c (gdb_osabi_names): Add "Newlib".
4425
1ae3db19
MS
44262013-02-04 Jim MacArthur <jim.macarthur@arm.com>
4427 Marcus Shawcroft <marcus.shawcroft@arm.com>
4428 Nigel Stephens <nigel.stephens@arm.com>
4429 Yufeng Zhang <yufeng.zhang@arm.com>
4430
4431 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
4432 (ALLDEPFILES): Add aarch64-linux-tdep.c.
4433 * aarch64-linux-tdep.c: New file.
4434 * aarch64-linux-tdep.h: New file.
4435 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
4436 * configure.tgt: Add aarch64-none-linux-gnu.
4437
07b287a0
MS
44382013-02-04 Jim MacArthur <jim.macarthur@arm.com>
4439 Marcus Shawcroft <marcus.shawcroft@arm.com>
4440 Nigel Stephens <nigel.stephens@arm.com>
4441 Yufeng Zhang <yufeng.zhang@arm.com>
4442
4443 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
4444 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
4445 (ALLDEPFILES): Add aarch64-tdep.c.
4446 * aarch64-tdep.c: New file.
4447 * aarch64-tdep.h: New file.
4448 * configure.tgt: Add AArch64.
4449 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
4450 (aarch64-expedite): New definition.
4451 * features/aarch64-core.xml: New file.
4452 * features/aarch64-fpu.xml: New file.
4453 * features/aarch64-without-fpu.c: New file (generated).
4454 * features/aarch64-without-fpu.xml: New file.
4455 * features/aarch64.c: New file (generated).
4456 * features/aarch64.xml: New file.
4457 * regformats/aarch64-without-fpu.dat: New file (generated).
4458 * regformats/aarch64.dat: New file (generated).
4459
0f1b18ab
JK
44602013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4461
4462 * contrib/expect-read1.c: New file.
4463 * contrib/expect-read1.sh: New file.
4464
233d95b5
JK
44652013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4466
4467 * dwarf2read.c (file_file_name): New function with code from
4468 file_full_name.
4469 (file_full_name): Move most of the code to file_file_name.
4470 (macro_start_file): Rename variable full_name to file_name and use
4471 file_file_name for it. Add comp_dir parameter to new_macro_table.
4472 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
4473 macro_source_file->filename access by macro_source_fullname call.
4474 * macroscope.c (_initialize_macroscope): Update the new_macro_table
4475 caller.
4476 * macrotab.c (struct macro_table): New field comp_dir.
4477 (macro_include): New variables link_fullname and source_fullname.
4478 Replace any macro_source_file->filename access by macro_source_fullname
4479 call.
4480 (macro_lookup_inclusion): Remove the partial filenames checking code.
4481 (check_for_redefinition): New variables source_fullname and
4482 found_key_fullname. Replace any macro_source_file->filename access by
4483 macro_source_fullname call.
4484 (macro_undef): New variables source_fullname and key_fullname. Replace
4485 any macro_source_file->filename access by macro_source_fullname call.
4486 (macro_lookup_definition): New variables retval and source_fullname.
4487 Replace any macro_source_file->filename access by macro_source_fullname
4488 call.
4489 (foreach_macro): New variable key_fullname. Replace any
4490 macro_source_file->filename access by macro_source_fullname call.
4491 (foreach_macro_in_scope): New variable datum_fullname. Replace any
4492 macro_source_file->filename access by macro_source_fullname call.
4493 (new_macro_table): Add parameter comp_dir. Initialize T with it.
4494 (macro_source_fullname): New function.
4495 * macrotab.h (struct macro_source_file): Extent the filename field
4496 comment.
4497 (new_macro_table): New parameter comp_dir, add a comment for it.
4498 (macro_source_fullname): new declaration.
4499
da235a7c
JK
45002013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4501
4502 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
4503 this_real_name to outer block. Use it also for
4504 compare_filenames_for_search.
4505 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
4506 with dw2_get_real_path for file_matcher, considering also
4507 BASENAMES_MAY_DIFFER.
4508 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
4509
fbd9ab74
JK
45102013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4511
4512 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
4513 to the file_matcher parameter. Pass 0 to it.
4514 (dwarf2_create_include_psymtab): Copy also DIRNAME.
4515 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
4516 NULL psymtab_to_fullname result.
4517 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
4518 an expected filename instead.
4519 (expand_symtabs_matching_via_partial): Add basenames parameter to the
4520 file_matcher parameter. Call also psymtab_to_fullname, after newly
4521 considering BASENAMES_MAY_DIFFER.
4522 * source.c (rewrite_source_path): Remove static.
4523 * source.h (rewrite_source_path): New declaration.
4524 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
4525 the expand_symtabs_matching field. Comment it.
4526 * symtab.c (file_matches): New function comment. Add parameter
4527 basenames, implement it.
4528 (search_symbols_file_matches): Add basenames parameter. Update the
4529 file_matches caller.
4530 (search_symbols): Match FILES also against symtab_to_fullname.
4531 Optimize it for BASENAMES_MAY_DIFFER.
4532
56d397a3
JK
45332013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4534
4535 * source.c (print_source_lines_base): Print for TUI also "fullname".
4536 * tui/tui-data.c (init_content_element): Change tui_locator_element
4537 field to full_name.
4538 * tui/tui-data.h (struct tui_locator_element): Likewise.
4539 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
4540 tui_update_locator_filename calls to tui_update_locator_fullname.
4541 Replace symtab->filename refererence by symtab_to_fullname call.
4542 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
4543 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
4544 field to full_name. Replace symtab->filename refererence by
4545 symtab_to_fullname call.
4546 (tui_show_symtab_source): Rename parameter to fullname. Change
4547 tui_locator_element field to full_name.
4548 * tui/tui-stack.c: Include source.h.
4549 (tui_set_locator_filename): Rename the declaration to ...
4550 (tui_set_locator_fullname): ... here. Rename its parameter to
4551 fullname, updates its comment.
4552 (tui_set_locator_info): Rename its parameter to fullname.
4553 (tui_set_locator_filename): Rename the definition to ...
4554 (tui_set_locator_fullname): ... here. Rename its parameter to
4555 fullname, updates its comment. Change tui_locator_element field to
4556 full_name.
4557 (tui_set_locator_info): Rename its parameter to fullname.
4558 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
4559 (tui_update_locator_filename): Rename to ...
4560 (tui_update_locator_fullname): ... here. Rename callee to
4561 tui_set_locator_fullname.
4562 (tui_show_frame_info): Replace symtab->filename refererence by
4563 symtab_to_fullname call.
4564 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
4565 (tui_update_locator_fullname): ... here.
4566 * tui/tui-winsource.c (tui_display_main): Rename the callee to
4567 tui_update_locator_fullname. Replace symtab->filename refererence by
4568 symtab_to_fullname call.
4569 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
4570 Rename the callee to tui_update_locator_fullname.
4571 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
4572
05cba821
JK
45732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4574
4575 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
4576 by symtab_to_filename_for_display calls.
4577 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
4578 (clear_command): New variable sal_fullname, initialize it. Replace
4579 compare_filenames_for_search by filename_cmp with sal_fullname.
4580 (say_where, update_static_tracepoint): Replace symtab->filename
4581 refererences by symtab_to_filename_for_display calls.
4582 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
4583 Likewise.
4584 * dwarf2read.c: Include source.h.
4585 (fixup_go_packaging): Replace symtab->filename refererences by
4586 symtab_to_filename_for_display calls.
4587 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
4588 Replace symtab->filename refererences by symtab_to_filename_for_display
4589 calls.
4590 (create_sals_line_offset, convert_linespec_to_sals): New variable
4591 fullname, initialize it, replace symtab->filename reference by the
4592 variable.
4593 * linux-fork.c: Include source.h.
4594 (info_checkpoints_command): Replace symtab->filename refererences by
4595 symtab_to_filename_for_display calls.
4596 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
4597 by symtab_to_filename_for_display calls.
4598 * mdebugread.c: Include source.h.
4599 (psymtab_to_symtab_1): Replace symtab->filename refererences by
4600 symtab_to_filename_for_display calls.
4601 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4602 (mi_cmd_file_list_exec_source_files): Likewise.
4603 * printcmd.c: Include source.h.
4604 (build_address_symbolic): Replace symtab->filename refererences by
4605 symtab_to_filename_for_display calls.
4606 * psymtab.c (partial_map_symtabs_matching_filename)
4607 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
4608 with psymtab_to_fullname.
4609 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
4610 by symtab_to_filename_for_display calls.
4611 (stpy_get_filename): New variable filename, initialize it, use instead
4612 of symtab->filename refererences.
4613 (salpy_str): Make variable filename const char *. Replace
4614 symtab->filename refererences by symtab_to_filename_for_display calls.
4615 * skip.c: Include source.h and filenames.h.
4616 (skip_file_command): Remove const from the symtab variable. Replace
4617 symtab->filename refererences by symtab_to_fullname call.
4618 (function_name_is_marked_for_skip): New variables searched_for_fullname
4619 and fullname. Use them to search also with symtab's fullname.
4620 * source.c (find_source_lines): Replace symtab->filename refererences
4621 by symtab_to_filename_for_display calls.
4622 (print_source_lines_base): New variable filename, use it instead of
4623 symtab->filename. Replace symtab->filename refererences by
4624 symtab_to_filename_for_display calls.
4625 (line_info, forward_search_command): Replace symtab->filename
4626 refererences by symtab_to_filename_for_display calls.
4627 (reverse_search_command): Replace symtab->filename refererences by
4628 symtab_to_filename_for_display calls. New variable filename for it.
4629 * stack.c (frame_info): Likewise.
4630 * symmisc.c: Include source.h.
4631 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
4632 (maintenance_info_symtabs): Replace symtab->filename refererences by
4633 symtab_to_filename_for_display calls.
4634 * symtab.c (iterate_over_some_symtabs): Call
4635 compare_filenames_for_search also with symtab_to_fullname.
4636 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
4637 symtab->filename refererences by symtab_to_filename_for_display calls.
4638 (find_line_symtab): Replace symtab->filename refererences by
4639 symtab_to_filename_for_display calls.
4640 (file_matches): Replace filename_cmp by compare_filenames_for_search.
4641 (print_symbol_info): Make the last parameter const char *. New
4642 variable s_filename. Use it in the function.
4643 (symtab_symbol_info): Make the last_filename variable const char *.
4644 Replace symtab->filename refererences by symtab_to_filename_for_display
4645 calls.
4646 (rbreak_command): New variable fullname. Use it. Replace
4647 symtab->filename refererence by symtab_to_filename_for_display call.
4648 * tracepoint.c (set_traceframe_context, trace_find_line_command)
4649 (print_one_static_tracepoint_marker): Replace symtab->filename
4650 refererences by symtab_to_filename_for_display calls.
4651 * tui/tui-source.c (tui_set_source_content): New variables filename and
4652 s_filename. Replace symtab->filename refererences by this variable.
4653 Replace other symtab->filename refererences by
4654 symtab_to_filename_for_display calls.
4655
1b56eb55
JK
46562013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
4657 Jan Kratochvil <jan.kratochvil@redhat.com>
4658
4659 Add a new variable that controls a way in which filenames are
4660 displayed.
4661 * NEWS (set filename-display): New entry.
4662 * source.c (filename_display_basename, filename_display_relative)
4663 (filename_display_absolute, filename_display_kind_names)
4664 (filename_display_string, show_filename_display_string)
4665 (symtab_to_filename_for_display): New.
4666 (_initialize_source): Added initialization of 'filename-display'
4667 variable.
4668 * source.h (symtab_to_filename_for_display): Added declaration.
4669 * stack.c (print_frame): Added new variable and calling of a new
4670 function and condition with this variable. Changed third argument of
4671 calling of a function.
4672
aa079c93
JK
46732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4674
4675 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
4676 Rename field reference filename to fullname.
4677 * tui/tui-data.h (struct tui_source_info): Rename field filename to
4678 fullname. New comment for it.
4679 * tui/tui-source.c (tui_set_source_content): Rename field reference
4680 filename to fullname. Initialize field by symtab_to_fullname now.
4681 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
4682 reference filename to fullname. Use symtab_to_fullname during
4683 comparison.
4684
652a8996
JK
46852013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4686
4687 Code cleanup.
4688 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
4689 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
4690 filename to fullname. Rename variable this_name to this_fullname.
4691 Lowercase FILENAME_CMP call.
4692 (dw2_find_symbol_file): New comment for the returned string.
4693 (dwarf2_gdb_index_functions): Rename the function to
4694 dw2_expand_symtabs_with_fullname.
4695 * psymtab.c (read_psymtabs_with_filename): Rename to ...
4696 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
4697 fullname.
4698 (psym_functions): Rename the function to read_psymtabs_with_fullname.
4699 * symfile.h (struct quick_symbol_functions): Rename field
4700 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
4701 parameter filename to fullname. Document returned string meaning for
4702 find_symbol_file.
4703 * symtab.c (find_line_symtab): Rename the called function to
4704 expand_symtabs_with_fullname.
4705
af529f8f
JK
47062013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4707
4708 Code cleanup.
4709 * breakpoint.c (clear_command): Remove variable is_abs, unify the
4710 call of filename_cmp with compare_filenames_for_search.
4711 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
4712 is_abs, unify the call of FILENAME_CMP with
4713 compare_filenames_for_search. New gdb_asserts for real_path and name.
4714 Unify the call of compare_filenames_for_search with FILENAME_CMP.
4715 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
4716 * symfile.h (struct quick_symbol_functions): Extend the comment for
4717 map_symtabs_matching_filename.
4718 * symtab.c (compare_filenames_for_search): Remove the function comment
4719 relative path requirement. Handle absolute filenames, with a comment.
4720 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
4721 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
4722 real_path and name. Unify the call of compare_filenames_for_search
4723 with FILENAME_CMP.
4724 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
4725
2f202fde
JK
47262013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4727
4728 Code cleanup.
4729 * breakpoint.c (print_breakpoint_location): Replace bp_location field
4730 source_file references by symtab field references. Remove variables
4731 sal and fullname.
4732 (momentary_breakpoint_from_master, add_location_to_breakpoint):
4733 (clear_command, say_where): Replace bp_location field source_file
4734 references by symtab field references.
4735 (bp_location_dtor): Remove the source_file reference.
4736 (update_static_tracepoint): Replace bp_location field source_file
4737 references by symtab field references.
4738 (breakpoint_free_objfile): New function.
4739 * breakpoint.h (struct bp_location): Extend the comment for line_number.
4740 Replace the field source_file by field symtab, extend its comment.
4741 (breakpoint_free_objfile): New declaration.
4742 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
4743 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
4744 field source_file references by symtab field references.
4745
f5b95b50
JK
47462013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4747
4748 Replace xfullpath calls by gdb_realpath calls.
4749 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
4750 function comment.
4751 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
4752 Remove it from the iterate_over_some_symtabs call.
4753 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
4754 Remove it from the dw2_map_expand_apply calls, remove a block handling
4755 it.
4756 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
4757 Remove it from the iterate_over_some_symtabs call.
4758 (partial_map_symtabs_matching_filename): Remove parameter full_path.
4759 Remove it from the partial_map_expand_apply calls, remove a block
4760 handling it. Drop gdb_realpath call and cleanups from the real_path
4761 handling.
4762 * source.c (openp): Drop the comment part about xfullpath. Replace
4763 xfullpath calls by gdb_realpath calls.
4764 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
4765 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
4766 from method map_symtabs_matching_filename and its comment.
4767 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
4768 gdb_realpath call.
4769 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
4770 remove it also from the function comment, remove a block handling it.
4771 Drop gdb_realpath call and cleanups from the real_path handling.
4772 (iterate_over_symtabs): Drop variable full_path and its use.
4773 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
4774 * utils.c (xfullpath): Remove.
4775 * utils.h (xfullpath): Remove.
4776
d78489bf
AT
47772013-02-01 Andreas Tobler <andreast@fgznet.ch>
4778
4779 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
4780 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
4781 (ALLDEPFILES): Add ppc64-tdep.c.
4782 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
4783 ppc64-tdep.o to gdb_target_obs.
4784 * ppc64-tdep.h: New file.
4785 * ppc64-tdep.c: New file.
4786 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
4787 ppc-linux-tdep.c to here.
4788 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
4789 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
4790 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
4791 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
4792 from ppc-linux-tdep.c to here.
4793 (ppc64_convert_from_func_ptr_addr): Rename from
4794 ppc64_linux_convert_from_func_ptr_addr to
4795 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
4796 here.
4797 * rs6000-tdep.c:
4798 (read_insn): Move from ppc-linux-tdep.c to here.
4799 (insns_match_pattern, insn_d_field, insn_ds_field): Move
4800 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
4801 * ppc-linux-tdep.c: Include ppc64-tdep.h.
4802 Removed above functions.
4803 (ppc_linux_init_abi): Adjust.
4804
8db60374
AR
48052013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
4806
4807 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
4808
f2e5f4ce
AR
48092013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
4810
4811 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
4812
c1f7d745
PA
48132013-02-01 Pedro Alves <palves@redhat.com>
4814
4815 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
4816 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
4817
8a92335b
JK
48182013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4819
4820 * elfread.c (elf_symfile_read): Limit separate debug info additions to
4821 files with no separate debug info.
4822 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
4823 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
4824 only for files with no separate debug info.
4825
8eacb197
TT
48262013-01-31 Tom Tromey <tromey@redhat.com>
4827
4828 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
4829 change type.
4830 (struct jit_program_space_data): Rename from jit_inferior_data.
4831 Update comments.
4832 (get_jit_program_space_data): Rename from get_jit_inferior_data.
4833 Change return type. Attach data to program space.
4834 (jit_program_space_data_cleanup): Rename from
4835 jit_inferior_data_cleanup; change argument type.
4836 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
4837 change type.
4838 (jit_register_code): Update.
4839 (jit_update_inferior_cache): Remove.
4840 (jit_breakpoint_deleted): Get jit data from the location's program
4841 space.
4842 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
4843 'ps_data', change type.
4844 (jit_inferior_init, jit_breakpoint_re_set_internal)
4845 (jit_event_handler): Update.
4846 (free_objfile_data): Get data from objfile's program space.
4847 (_initialize_jit): Update.
4848
f25c0135
TT
48492013-01-31 Tom Tromey <tromey@redhat.com>
4850
4851 PR gdb/13987:
4852 * jit.c (struct jit_inferior_data) <cached_code_address,
4853 jit_breakpoint>: New fields.
4854 (jit_breakpoint_re_set_internal): Fix logging. Only create
4855 breakpoint if cached address has changed.
4856 (jit_update_inferior_cache, jit_breakpoint_deleted): New
4857 functions.
4858 (_initialize_jit): Register breakpoint deleted observer.
4859
974a734b
AR
48602013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4861
4862 * infrun.c (handle_syscall_event): Remove unused gdbarch.
4863 (save_infcall_suspend_state): Ifdef out unused inf.
4864 (restore_infcall_suspend_state): Ifdef out unused inf.
4865 * jit.c (jit_register_code): Remove unused i, b, inf_data.
4866 (jit_frame_sniffer): Remove unused inf_data.
4867
df54f8eb
AR
48682013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4869
4870 * c-exp.y (classify_inner_name): Remove unused type.
4871 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
4872 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
4873 need_escape.
4874 (c_get_string): Remove unused kind.
4875 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
4876
5799c0b9
AR
48772013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4878
4879 * charset.c (intermediate_encoding): Remove unused i.
4880 * completer.c (signal_completer): Remove unused i.
4881 * continuations.c (discard_my_continuations_1): Remove unused
4882 continuation_ptr.
4883 * corelow.c (core_close): Remove unuseD name.
4884 (get_core_siginfo): Remove unused pid.
4885 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
4886 i, cps.
4887 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
4888 (loclist_describe_location): Remove unused first.
4889 * event-top.c (command_line_handler): Remove unused got_eof.
4890 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
4891 (resize_section_table): Remove unused old_value.
4892 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
4893 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
4894 * i386-tdep.c (i386_process_record): Remove unused rex.
4895 * infcmd.c (get_return_value): Remove unused uiout.
4896 * jv-lang.c (type_from_class): Remove unused is_array.
4897 * jv-valprint.c (java_val_print): Remove unused i.
4898 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
4899 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
4900 * m2-typeprint.c (m2_print_type): Remove unused code.
4901 * macroexp.c (get_character_constant): Remove unused body_start.
4902 (macro_stringify): Remove unused result.
4903 * objc-lang.c (find_methods): Remove unused gdbarch.
4904 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
4905 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
4906 * stack.c (print_frame_args): Remove unused summary.
4907 * thread.c (thread_apply_command): Remove unused p.
4908 * valarith.c (value_x_unop): Remove unused mangle_ptr.
4909 * valops.c (search_struct_method): Remove unused skip.
4910 * valprint.c (generic_val_print): Remove unused byte_order.
4911 * varobj.c (varobj_update): Remove unused changed.
4912 * cli/cli-cmds.c (complete_command): Remove unused next_item.
4913 (alias_command): Remove unused c.
4914 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
4915 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
4916 format.
4917 (mi_cmd_data_write_memory): Remove unused word_format.
4918 (mi_cmd_data_write_memory_bytes): Remove unused r.
4919 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
4920 p_start, p_end.
4921 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
4922 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
4923 line_width.
4924
c656bca5
AR
49252013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4926
4927 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
4928 * symtab.c (iterate_over_symtabs): Remove unused s.
4929 (find_pc_sect_symtab): Remove unused pspAce.
4930 (find_pc_sect_line): Remove unused alt_symtab.
4931 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
4932 (completion_list_add_name): Remove unused newsize.
4933
7078baeb
TT
49342013-01-31 Tom Tromey <tromey@redhat.com>
4935
4936 PR c++/14998:
4937 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
4938 TYPE_CODE_FUNC.
4939
c2e8b827
AR
49402013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4941
4942 * target.c (target_read_string): Remove unused origlen.
4943
0e43993a
AR
49442013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4945
4946 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
4947 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
4948 * ax-general.c (ax_print): Remove unused is_float.
4949 * blockframe.c (block_innermost_frame): Remove unused start, end.
4950 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
4951
765a97ab
AR
49522013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4953
4954 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
4955 (svr4_read_so_list): Remove unused lmo.
4956 * solib-target.c (solib_target_relocate_section_addresses): Remove
4957 unused flags.
4958
a99dad3d
TT
49592013-01-30 Tom Tromey <tromey@redhat.com>
4960
4961 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
4962
3bff1ecd
TT
49632013-01-30 Tom Tromey <tromey@redhat.com>
4964
4965 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
4966 * utils.c (gnu_debuglink_crc32): Remove.
4967 * utils.h (gnu_debuglink_crc32): Don't declare.
4968
7d455152
TT
49692013-01-30 Tom Tromey <tromey@redhat.com>
4970
4971 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
4972 (read_structure_type, read_enumeration_type): Remove cast.
4973
abee88f2
TT
49742013-01-30 Tom Tromey <tromey@redhat.com>
4975
4976 * dwarf2read.c (read_namespace_type): Remove cast.
4977 (read_typedef): Likewise.
4978
8d9878a4
TT
49792013-01-29 Tom Tromey <tromey@redhat.com>
4980
4981 * dwarf2read.c (free_dwo_file): Remove assert.
4982
a543d2a9
TT
49832013-01-29 Tom Tromey <tromey@redhat.com>
4984
4985 * value.c (deprecated_set_value_modifiable): Remove.
4986 * value.h (deprecated_set_value_modifiable): Remove.
4987
bed911e5
DE
49882013-01-28 Doug Evans <dje@google.com>
4989
4990 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
4991 to addresses from dwo files.
4992
28c64fc2
SCR
49932013-01-25 Siva Chandra Reddy <sivachandra@google.com>
4994
4995 * valops.c (find_overload_match): Remove unused argument 'lax'.
4996 * value.h: Remove unused argument 'lax' from the declaration of
4997 find_overload_match.
4998 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
4999 to find_overload_match.
5000 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
5001 argument to find_overload_match.
5002
4d4ec4e5
TT
50032013-01-25 Tom Tromey <tromey@redhat.com>
5004
5005 * dwarf2read.c (processing_has_namespace_info): Remove.
5006 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
5007 (process_die, read_func_scope, dwarf2_start_symtab)
5008 (new_symbol_full): Update.
5009
195a3f6c
TT
50102013-01-25 Tom Tromey <tromey@redhat.com>
5011
5012 * cp-namespace.c (cp_set_block_scope): Remove.
5013 * cp-support.h (cp_set_block_scope): Remove.
5014 * dbxread.c: Include block.h.
5015 (cp_set_block_scope): New function.
5016 (process_one_symbol): Update.
5017 * dwarf2read.c (read_func_scope): Use block_set_scope.
5018
8ba0730a
PA
50192013-01-25 Pedro Alves <palves@redhat.com>
5020
5021 * remote.c (add_current_inferior_and_thread): Tweak comment.
5022
12aaed36
TT
50232013-01-25 Tom Tromey <tromey@redhat.com>
5024
5025 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5026 (cp_add_using_directive): Add 'copy_names' argument.
5027 * cp-support.h (cp_add_using_directive): Update.
5028 (struct using_direct) <import_src, import_dest, alias,
5029 declaration>: Now const.
5030 * dwarf2read.c (read_import_statement): Use obconcat.
5031 Don't copy names passed to cp_add_using_directive.
5032
7fc75ca7
TT
50332013-01-25 Tom Tromey <tromey@redhat.com>
5034
5035 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
5036
3405876a
PA
50372013-01-25 Pedro Alves <palves@redhat.com>
5038
5039 * remote.c (stop_reply_extract_thread): New.
5040 (add_current_inferior_and_thread): New parameter 'wait_status'.
5041 Handle it.
5042 (remote_start_remote): Pass wait status to
5043 add_current_inferior_and_thread.
5044 (extended_remote_run): Update comment.
5045 (extended_remote_create_inferior_1): Pass wait status to
5046 add_current_inferior_and_thread.
5047
8954db33
AB
50482013-01-25 Andrew Burgess <aburgess@broadcom.com>
5049 Ulrich Weigand <uweigand@de.ibm.com>
5050
5051 * valarith.c (value_vector_widen): New function for replicating a
5052 scalar into a vector.
5053 (value_binop): Use value_vector_widen to widen scalar to vector
5054 rather than casting, this better matches gcc C behaviour.
5055 * valops.c (value_casst): Update logic for casting between vector
5056 types, and for casting from scalar to vector, try to match gcc C
5057 behaviour.
5058 * value.h (value_vector_widen): Declare.
5059 * opencl-lang.c (opencl_value_cast): New opencl specific casting
5060 function, handle special case for casting scalar to vector.
5061 (opencl_relop): Use opencl_value_cast.
5062 (evaluate_subexp_opencl): Use opencl_value_cast instead of
5063 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
5064 in order to use opencl_value_cast.
5065
843b20dc
YQ
50662013-01-25 Yao Qi <yao@codesourcery.com>
5067
5068 * event-loop.c: Include "queue.h".
5069 (gdb_event_p): New typedef.
5070 (DECLARE_QUEUE_P): Use.
5071 (DEFINE_QUEUE_P): Use.
5072 (async_queue_event): Remove.
5073 (gdb_event_xfree): New.
5074 (initialize_event_loop): New.
5075 (process_event): Use QUEUE macros.
5076 (event_queue): Remove.
5077 (gdb_wait_for_event): Caller update.
5078 (check_async_event_handlers): Likewise.
5079 (poll_timers): Likewise.
5080 * event-loop.h (initialize_event_loop): Declare.
5081 * event-loop.c (gdb_event_xfree): New.
5082 * top.c (gdb_init): Call initialize_event_loop.
5083
20ad8856
YQ
50842013-01-25 Yao Qi <yao@codesourcery.com>
5085
5086 * event-loop.c (async_queue_event): Remove one parameter
5087 'position'. Remove code handling 'position' == TAIL.
5088 (gdb_wait_for_event): Caller update.
5089 (check_async_event_handlers): Caller update.
5090 (poll_timers): Caller update.
5091 * event-loop.h (enum queue_position): Remove.
5092
3bbbe775
MK
50932013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
5094
5095 * MAINTAINERS: Update my email.
5096
a87d9ac4
YQ
50972013-01-25 Yao Qi <yao@codesourcery.com>
5098
5099 * main.c (print_gdb_help): Remove "--epoch" from the help
5100 message.
5101
2077afdd
TD
51022013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
5103
5104 * symtab.c (skip_prologue_using_sal): Consider a file
5105 change the same as an increased line number
5106
63da4037
TD
51072013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
5108
30e8ee25 5109 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 5110
45e6c716
TT
51112013-01-24 Tom Tromey <tromey@redhat.com>
5112
5113 * ada-lang.h (ada_decode_symbol): Make return type const.
5114 * ada-lang.c (ada_decode_symbol): Likewise.
5115
b1ae631a
DE
51162013-01-23 Doug Evans <dje@google.com>
5117
5118 * linespec.c (find_linespec_symbols): Make static.
5119
55a78401
SDJ
51202013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
5121
5122 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
5123 type on float conversion for complex type.
5124
bea883fd
SCR
51252013-01-23 Siva Chandra Reddy <sivachandra@google.com>
5126
5127 Add a new class gdb.Architecture which exposes GDB's
5128 internal representation of architecture via GDB Python API.
5129 * Makefile.in: Add entries corresponding to the new file
5130 python/py-arch.c.
5131 * NEWS (Python Scripting): Add entries for the new class
5132 gdb.Architecture and the new method gdb.Frame.architecture.
5133 * python/py-arch.c: Implement gdb.Architecture class.
5134 * python/py-frame.c (frapy_arch): Implement the method
5135 gdb.Frame.architecture().
5136 (frame_object_methods): Add 'architecture' to the method table.
5137 * python/python-internal.h: Add declarations of new utility
5138 functions.
5139 * python/python.c (_initialize_python): Initialize
5140 gdb.Architecture class.
5141
796a7ff8
DE
51422013-01-23 Doug Evans <dje@google.com>
5143
5144 Work around binutils/15021.
5145 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
5146 type_unit_group out of union s. All uses updated.
5147 (read_index_from_section): Watch for index version 8.
5148 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
5149 an imported symtab.
5150 (write_psymtabs_to_index): Increment version number to 8.
5151
0928e93d
PA
51522013-01-22 Pedro Alves <palves@redhat.com>
5153
5154 * annotate.c (breakpoint_changed): Skip if breakpoint is not
5155 user-visible.
5156
9c97429f
PA
51572013-01-22 Pedro Alves <palves@redhat.com>
5158
5159 * annotate.c (annotate_breakpoints_changed): Rename to ...
5160 (annotate_breakpoints_invalid): ... this. Make static.
5161 (breakpoint_changed): Adjust.
5162 (_initialize_annotate): Always install the observers. Install a
5163 "breakpoint_created" observer.
5164 * annotate.h (annotate_breakpoints_changed): Delete declaration.
5165 * breakpoint.c (set_breakpoint_condition)
5166 (breakpoint_set_commands, do_map_commands_command)
5167 (init_raw_breakpoint, clear_command, set_ignore_count)
5168 (enable_breakpoint_disp): No longer call
5169 annotate_breakpoints_changed.
5170
bd00c694
PA
51712013-01-22 Pedro Alves <palves@redhat.com>
5172
5173 * annotate.c: Include "inferior.h".
5174 (frames_invalid_emitted)
5175 (breakpoints_invalid_emitted): New globals.
5176 (async_background_execution_p): New function.
5177 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
5178 emitting the annotation if it has already been emitted.
5179 (annotate_display_prompt): New function.
5180 * annotate.h (annotate_display_prompt): New declaration.
5181 * event-top.c: Include annotate.h.
5182 (display_gdb_prompt): Call annotate_display_prompt.
5183
187d10dd
PA
51842013-01-22 Pedro Alves <palves@redhat.com>
5185
5186 * annotate.c (ignore_count_changed): Delete.
5187 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
5188 (annotate_ignore_count_change): Delete.
5189 (annotate_stopped): Don't emit a delayed breakpoints-changed
5190 annotation.
5191 * annotate.h (annotate_ignore_count_change): Delete.
5192 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
5193 annotate_ignore_count_change.
5194
d84cf7eb
TT
51952013-01-22 Tom Tromey <tromey@redhat.com>
5196
5197 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
5198 require_rvalue for a register location.
5199
8f1d5693
MK
52002013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
5201
5202 * breakpoint.c (print_one_breakpoint_location): Add MI
5203 field 'thread-groups' when printing a breakpoint.
5204 (output_thread_groups): New function.
5205
aa6199c6
SCR
52062013-01-21 Siva Chandra Reddy <sivachandra@google.com>
5207
5208 * python/lib/gdb/commands/explore.py
5209 (CompoundExplorer.explore_expr): Correct the name of a method
5210 being invoked.
5211 (ExploreTypeCommand.invoke): Add a missing 'return'.
5212
d2afef13
TT
52132013-01-21 Tom Tromey <tromey@redhat.com>
5214
5215 * gdb_obstack.h (obconcat): Move declaration here, from...
5216 * symfile.h (obconcat): ... here.
5217 * gdb_obstack.c: New file.
5218 (obconcat): Move from...
5219 * symfile.c (obconcat): ... here.
5220 * Makefile.in (SFILES): Add gdb_obstack.c.
5221 (COMMON_OBS): Add gdb_obstack.o.
5222
10f0c4bb
TT
52232013-01-21 Tom Tromey <tromey@redhat.com>
5224
5225 * symfile.h (obsavestring): Don't declare.
5226 * symfile.c (obsavestring): Remove.
5227 * ada-exp.y: Use obstack_copy0, not obsavestring.
5228 * ada-lang.c: Use obstack_copy0, not obsavestring.
5229 * coffread.c: Use obstack_copy0, not obsavestring.
5230 * cp-namespace.c: Use obstack_copy0, not obsavestring.
5231 * dbxread.c: Use obstack_copy0, not obsavestring.
5232 * dwarf2read.c: Use obstack_copy0, not obsavestring.
5233 * jit.c: Use obstack_copy0, not obsavestring.
5234 * mdebugread.c: Use obstack_copy0, not obsavestring.
5235 * psymtab.c: Use obstack_copy0, not obsavestring.
5236 * stabsread.c: Use obstack_copy0, not obsavestring.
5237 * xcoffread.c: Use obstack_copy0, not obsavestring.
5238
86f62fd7
TT
52392013-01-21 Tom Tromey <tromey@redhat.com>
5240
5241 * dwarf2read.c (fixup_go_packaging): Save package name
5242 on objfile obstack.
5243 * gdbtypes.c (init_type): Don't copy name.
5244
15d034d0
TT
52452013-01-21 Tom Tromey <tromey@redhat.com>
5246
5247 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
5248 const.
5249 (struct attribute) <u.str>: Now const.
5250 (struct fnfieldlist) <name>: Now const.
5251 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
5252 (partial_die_parent_scope): Make return type const.
5253 (partial_die_full_name, add_partial_symbol): Update.
5254 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
5255 'name' const.
5256 (find_file_and_directory): Make 'name' and 'comp_dir' const.
5257 (read_file_scope, read_func_scope, dwarf2_add_field)
5258 (dwarf2_add_member_fn, read_structure_type)
5259 (process_enumeration_scope, read_array_type, read_module_type)
5260 (read_base_type, read_subrange_type): Update.
5261 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
5262 (new_symbol_full, guess_full_die_structure_name): Update.
5263 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
5264 (dwarf2_name): Return const type.
5265 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
5266 const.
5267
748e18ae
TT
52682013-01-21 Tom Tromey <tromey@redhat.com>
5269
5270 * gdbtypes.c (init_type): Make 'name' const.
5271 * gdbtypes.h (init_type): Update.
5272
46212e0b
TT
52732013-01-21 Tom Tromey <tromey@redhat.com>
5274
5275 * buildsym.c (patch_subfile_names): Use set_last_source_file.
5276 (start_symtab): Make 'name' and 'dirname' const. Use
5277 set_last_source_file.
5278 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
5279 (last_source_file): Define. Now static.
5280 (set_last_source_file, get_last_source_file): New functions.
5281 * buildsym.h (last_source_file): Don't declare.
5282 (start_symtab): Update.
5283 (set_last_source_file, get_last_source_file): Declare.
5284 * coffread.c (complete_symtab): Use set_last_source_file.
5285 (coff_end_symtab): Likewise.
5286 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
5287 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
5288 set_last_source_file.
5289 (process_one_symbol): Use get_last_source_file.
5290 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
5291 (psymtab_to_symtab_1): Use get_last_source_file.
5292 * xcoffread.c (process_linenos): Use get_last_source_file.
5293 (complete_symtab): Use set_last_source_file.
5294 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
5295 (scan_xcoff_symtab): Use set_last_source_file.
5296
9d2ceabe
TT
52972013-01-21 Tom Tromey <tromey@redhat.com>
5298
5299 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
5300 (symbol_set_names): Remove casts. Handle field const-ness.
5301
cfc594ee
TT
53022013-01-21 Tom Tromey <tromey@redhat.com>
5303
5304 * dwarf2read.c (new_symbol_full): Remove cast.
5305 * symtab.c (symbol_set_demangled_name): Make 'name' const.
5306 * symtab.h (symbol_set_demangled_name): Update.
5307
5484b13a
TT
53082013-01-21 Tom Tromey <tromey@redhat.com>
5309
5310 * main.c (captured_main): Call bfd_init.
5311
1605ef26
TT
53122013-01-21 Tom Tromey <tromey@redhat.com>
5313
5314 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
5315 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
5316 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
5317 * NEWS: Update.
5318
3b74cdc3
JK
53192013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5320
5321 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
5322
5a352474
JK
53232013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5324
5325 Fix gdb.fortran/common-block.exp crash in PIE mode.
5326 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
5327 LOC_COMMON_BLOCK.
5328 * f-valprint.c (info_common_command_for_block): Expect
5329 LOC_COMMON_BLOCK in gdb_assert.
5330 * symtab.h (struct general_symbol_info): Update comment for the
5331 common_block member.
5332 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
5333 (enum address_class): New member LOC_COMMON_BLOCK.
5334
c60797fd
DB
53352013-01-18 David Blaikie <dblaikie@gmail.com>
5336
5337 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 5338
46f35228
TT
53392013-01-18 Tom Tromey <tromey@redhat.com>
5340
5341 PR c++/14999:
5342 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
5343 Call require_rvalue.
5344
257e7a09
YQ
53452013-01-18 Yao Qi <yao@codesourcery.com>
5346
5347 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
5348 (dbx_read_symtab): New declaration.
5349 (dbx_psymtab_to_symtab): Delete.
5350 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
5351 Rename parameter PST to SELF. Exchanged two parameters.
5352 (start_psymtab): Caller update.
5353 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
5354 (dwarf2_read_symtab): New declaration.
5355 (dwarf2_psymtab_to_symtab): Delete.
5356 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
5357 Rename parameter PST to SELF. Exchanged two parameters.
5358 (create_partial_symtab): Caller update.
5359 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
5360 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
5361 Rename parameter PST to SELF. Exchanged two parameters.
5362 (parse_partial_symbols, new_psymtab): Caller update.
5363 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
5364 two parameters.
5365 * psymtab.c (psymtab_to_symtab): Caller update.
5366 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
5367 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
5368 Rename parameter PST to SELF. Exchanged two parameters.
5369 (xcoff_start_psymtab): Caller update.
5370
0de5618e
YQ
53712013-01-18 Yao Qi <yao@codesourcery.com>
5372
5373 * infrun.c (proceed): Rename local variable 'oneproc' to
5374 'force_step'.
5375
5c04624b
DE
53762013-01-17 Doug Evans <dje@google.com>
5377
848e3e78
DE
5378 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
5379 (dw2_build_type_unit_groups): Delete. All uses updated.
5380
5c04624b
DE
5381 * symtab.h (struct symbol_search): Add comment.
5382
d84fca2c
JK
53832013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5384
5385 * symtab.c (compare_filenames_for_search): New comment for
5386 HAS_DRIVE_SPEC.
5387
6108433d
TT
53882013-01-17 Tom Tromey <tromey@redhat.com>
5389
5390 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
5391
c89ffd86
JK
53922013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5393
5394 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
5395 initialize it by existing make_cleanup. Call new do_cleanups.
5396
db2b2972
TT
53972013-01-17 Tom Tromey <tromey@redhat.com>
5398
5399 * cp-abi.c (cp_abi_completer): New function.
5400 (_initialize_cp_abi): Set completer for "set cp-abi".
5401
be7d37a2
TT
54022013-01-17 Tom Tromey <tromey@redhat.com>
5403
5404 * mem-break.c: Remove obsolete comment.
5405 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
5406
c9fb1240
SD
54072012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
5408
5409 * jit.c (jit_reader_load_command): Interpret the jit reader name
5410 as an absolute path if it begins with a forward slash.
5411
db334a01
SD
54122012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
5413
5414 PR gdb/14550
5415
5416 * jit.c (finalize_symtab): Ensure that only the global block has a
5417 NULL superblock.
5418
7d928dac
PA
54192013-01-17 Pedro Alves <palves@redhat.com>
5420
5421 * acinclude.m4: Include ../config/plugins.m4,
5422 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
5423 * Makefile.in (aclocal_m4_deps): Update.
5424 * aclocal.m4: Renegerate.
5425
fb8cf7c5
DE
54262013-01-16 Doug Evans <dje@google.com>
5427
5428 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
5429
ab04a2af
TT
54302013-01-16 Pedro Alves <palves@redhat.com>
5431 Tom Tromey <tromey@redhat.com>
5432
5433 PR cli/7221:
5434 * NEWS: Add "catch signal".
5435 * breakpoint.c (base_breakpoint_ops): No longer static.
5436 (bpstat_explains_signal): New function.
5437 (init_catchpoint): No longer static.
5438 (base_breakpoint_explains_signal): New function.
5439 (base_breakpoint_ops): Initialize new field.
5440 * breakpoint.h (enum bpstat_signal_value): New.
5441 (struct breakpoint_ops) <explains_signal>: New field.
5442 (bpstat_explains_signal): Remove macro, declare as function.
5443 (base_breakpoint_ops, init_catchpoint): Declare.
5444 * break-catch-sig.c: New file.
5445 * inferior.h (signal_catch_update): Declare.
5446 * infrun.c (signal_catch): New global.
5447 (handle_syscall_event): Update for change to
5448 bpstat_explains_signal.
5449 (handle_inferior_event): Likewise. Always handle random signals
5450 via bpstats.
5451 (signal_cache_update): Check signal_catch.
5452 (signal_catch_update): New function.
5453 (_initialize_infrun): Initialize signal_catch.
5454 * Makefile.in (SFILES): Add break-catch-sig.c.
5455 (COMMON_OBS): Add break-catch-sig.o.
5456
8ac3646f
TT
54572013-01-16 Tom Tromey <tromey@redhat.com>
5458
5459 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
5460 (print_one_catch_solib, print_one_catch_syscall)
5461 (print_one_catch_exec, print_one_exception_catchpoint): Emit
5462 "catch-type".
5463
5a18e302
YQ
54642013-01-16 Yao Qi <yao@codesourcery.com>
5465
5466 * printcmd.c (current_display_number): Make it static.
5467
3f01d0d0
YQ
54682013-01-16 Yao Qi <yao@codesourcery.com>
5469
5470 * infcmd.c (step_once): Don't check '!single_inst' as it was
5471 checked before.
5472
1ed59174
JK
54732013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5474
5475 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
5476
44478ab3
TT
54772013-01-14 Tom Tromey <tromey@redhat.com>
5478
5479 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
5480 set command.
5481 * command.h (add_setshow_string_noescape_cmd): Update.
5482 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
5483 (complete_set_gnutarget): New function.
5484 (_initialize_core): Set the "set gnutarget" completer.
5485
06d66ee9
TT
54862013-01-14 Tom Tromey <tromey@redhat.com>
5487
5488 PR symtab/14442:
5489 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
5490 (c_type_print_modifier): Likewise.
5491 * dwarf2read.c (read_tag_restrict_type): New function.
5492 (read_type_die_1): Handle DW_TAG_restrict_type.
5493 * gdbtypes.c (make_restrict_type): New function.
5494 (recursive_dump_type): Handle TYPE_RESTRICT.
5495 * gdbtypes.h (enum type_flag_values): Renumber.
5496 (enum type_instance_flag_value): Add
5497 TYPE_INSTANCE_FLAG_RESTRICT.
5498 (TYPE_RESTRICT): New macro.
5499 (make_restrict_type): Declare.
5500
c9bf0622
TT
55012013-01-14 Tom Tromey <tromey@redhat.com>
5502
5503 PR symtab/14931:
5504 * psymtab.c (struct psymtab_state): New.
5505 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
5506 functions.
5507 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
5508 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
5509
44d594fd
PA
55102013-01-14 Richard Sharman <richard_sharman@mitel.com>
5511 Pedro Alves <palves@redhat.com>
5512
5513 PR remote/14786
5514
5515 * remote.c (remote_threads_info): Make a copy of the reply from
5516 qfThreadInfo and use that instead of rs->buf.
5517
442e4d9c
YQ
55182013-01-14 Yao Qi <yao@codesourcery.com>
5519
5520 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
5521 (dbx_psymtab_to_symtab): Likewise.
5522 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
5523 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
5524 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
5525
5b12a61c
JK
55262013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5527
5528 * parse.c (parse_exp_in_context): New variable inner_chain. Call
5529 make_cleanup_restore_current_language. Call set_language. Move
5530 OLD_CHAIN and INNER_CHAIN cleanups.
5531 * utils.c (do_restore_current_language)
5532 (make_cleanup_restore_current_language): New functions.
5533 * utils.h (make_cleanup_restore_current_language): New declaration.
5534
f0a4b570
JK
55352013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5536
5537 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
5538 non-existing files.
5539
57b3c00c
JK
5540 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
5541 non-existing files if FILENAME is already absolute.
5542
daefa854
JK
55432013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5544
5545 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
5546 fputs_filtered. Append trailing newline.
5547
ca9c6ee2
YQ
55482013-01-11 Yao Qi <yao@codesourcery.com>
5549 Stan Shebs <stan@codesourcery.com>
5550
5551 * psymtab.c (init_psymbol_list): Clarify the comment.
5552
f28045c2
YQ
55532013-01-11 Yao Qi <yao@codesourcery.com>
5554
5555 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
5556 (update_dprintf_command_list): Assert that 'printf_line' is
5557 non-null. Remove condition check.
5558
da5132d3
JK
55592013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5560
5561 Code cleanup.
5562 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
5563 type const char *.
5564 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
5565 const char *.
5566 * tui/tui-source.h (tui_source_is_displayed): Likewise.
5567
843e694d
AG
55682013-01-09 Anthony Green <green@moxielogic.com>
5569
5570 * cp-abi.c (cplus_print_vtable): Don't return value from void
5571 function.
5572 * ada-lang.c (re_set_catch_assert): Ditto.
5573
da51c347
DE
55742013-01-09 Doug Evans <dje@google.com>
5575
5576 * symfile.h (quick_symbol_functions): Delete member
5577 pre_expand_symtabs_matching. All uses removed.
5578 * dwarf2read.c (dw2_lookup_symbol): Implement.
5579 (dw2_do_expand_symtabs_matching): Delete.
5580 (dw2_pre_expand_symtabs_matching): Delete.
5581 (struct dw2_symtab_iterator): New type.
5582 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
5583 (dw2_expand_symtabs_for_function): Rewrite.
5584 (dwarf2_gdb_index_functions): Update.
5585 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
5586 (psym_functions): Update.
5587
b2259038
TT
55882013-01-09 Tom Tromey <tromey@redhat.com>
5589
5590 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
5591 * configure: Rebuild.
5592 * configure.ac: Add somread.o to the build if BFD has SOM
5593 support.
5594 * somread.c: Include som/aout.h, not syms.h.
5595 (som_symtab_read): Use som_external_symbol_dictionary_record.
5596 Unpack records manually.
5597 (_initialize_somread): Declare.
5598
bdad4180
MF
55992012-01-08 Mike Frysinger <vapier@gentoo.org>
5600
5601 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
5602 Cast return_address to 64bits.
5603
03cdf680
HZ
56042013-01-08 Hui Zhu <hui_zhu@mentor.com>
5605
5606 * printcmd.c: Remove define of function output_command.
5607 * tracepoint.c: Remove extern of function output_command.
5608 * valprint.h: (output_command): New extern.
5609
8a808554
TT
56102013-01-07 Tom Tromey <tromey@redhat.com>
5611
5612 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
5613 Remove.
5614 (objc_language_defn): Use c_printchar, c_printstr,
5615 c_emit_char.
5616
e93a8774
TT
56172013-01-07 Tom Tromey <tromey@redhat.com>
5618
5619 PR cli/7719:
5620 * NEWS: Update.
5621 * ada-valprint.c (printstr, print_field_values): Remove
5622 "inspect_it" code.
5623 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
5624 code.
5625 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
5626 code.
5627 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
5628 * main.c (captured_main): Remove "epoch" argument.
5629 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
5630 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
5631 * p-valprint.c (pascal_object_print_value_fields): Remove
5632 "inspect_it" code.
5633 * printcmd.c (print_command_1): Remove 'inspect' argument.
5634 (print_command, call_command): Update.
5635 (inspect_command): Remove.
5636 (_initialize_printcmd): Make "inspect" an alias for "print".
5637 * top.c (epoch_interface): Remove.
5638 * top.h (epoch_interface): Remove.
5639 * valprint.c (user_print_options): Update.
5640 (print_converted_chars_to_obstack): Remove "inspect_it" code.
5641 * valprint.h (struct value_print_options) <inspect_it>: Remove
5642 field.
5643
56442013-01-04 Tom Tromey <tromey@redhat.com>
5645
5646 * valprint.h (read_string): Add 'extern'.
5647
b967eb24
JB
56482013-01-07 Joel Brobecker <brobecker@adacore.com>
5649
5650 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
5651 used to decide whether to define darwin_read_dyld_info or not.
5652
78a8b30e
PM
56532013-01-03 Pierre Muller <muller@sourceware.org>
5654
5655 * main.c (relocate_gdb_directory): Avoid calling stat function
5656 if DIR is empty.
5657
50da2f25
YQ
56582013-01-03 Yao Qi <yao@codesourcery.com>
5659
5660 * psymtab.c (fixup_psymbol_section): Update declaration.
5661 (fixup_psymbol_section): Remove code returning value.
5662
e7e8980f
YQ
56632013-01-03 Yao Qi <yao@codesourcery.com>
5664
5665 * symtab.h: Remove some out of date comments.
5666 (enum exception_event_kind): Move it ...
5667 * breakpoint.c: ... here.
5668
569283d4
MF
56692013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
5670
9f9d9a96 5671 PR gdb/14405
569283d4
MF
5672 * darwin-nat.c (darwin_read_dyld_info): Only build if
5673 TASK_DYLD_INFO_COUNT is defined.
5674 (darwin_xfer_partial): Call darwin_read_dyld_info only if
5675 TASK_DYLD_INFO_COUNT is defined.
5676
2e36fbea
TT
56772013-01-02 Tom Tromey <tromey@redhat.com>
5678
5679 * symfile.h (struct ecoff_debug_hack): Remove.
5680 * objfiles.c: Don't include mdebugread.h.
5681
4f05add4
TT
56822013-01-02 Tom Tromey <tromey@redhat.com>
5683
5684 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
5685 * configure.ac: Check for Mach-O support in BFD. Update
5686 CONFIG_OBS.
5687 * configure: Rebuild.
5688
def63ff0
TT
56892013-01-02 Tom Tromey <tromey@redhat.com>
5690
5691 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
5692 * configure.ac: Use GDB_AC_CHECK_BFD.
5693 * configure: Rebuild.
5694
60c5dd93
MK
56952013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
5696
5697 * MAINTAINERS: Update my email.
5698
6e58437e
JB
56992013-01-01 Joel Brobecker <brobecker@adacore.com>
5700
5701 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
5702
627fe805
JB
57032013-01-01 Joel Brobecker <brobecker@adacore.com>
5704
5705 * rs6000-nat.c (bss_data_overlap): New function.
5706 (vmap_symtab): Use it to adjust the .bss section's offset.
5707
28e7fd62
JB
57082013-01-01 Joel Brobecker <brobecker@adacore.com>
5709
5710 Update year range in copyright notice of all files.
5711
e93a8774 57122013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
5713
5714 * top.c (print_gdb_version): Update copyright year.
5715
72b20e9c 5716For older changes see ChangeLog-2012.
c906108c
SS
5717\f
5718Local Variables:
5719mode: change-log
5720left-margin: 8
5721fill-column: 74
5722version-control: never
57da7796 5723coding: utf-8
c906108c 5724End:
This page took 2.428179 seconds and 4 git commands to generate.