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