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