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