Add new target_read_raw_memory function, and consolidate comments.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
aee4bf85
PA
12013-12-02 Pedro Alves <palves@redhat.com>
2
3 * dcache.c (dcache_read_line): Use target_read_raw_memory.
4 * target.c (target_read_raw_memory): New function.
5 (target_read_stack, target_write_memory, target_write_raw_memory):
6 Update comment.
7 (target_read_code): Add comment.
8 * target.h (target_read_raw_memory): Declare.
9
840207d8
PA
102013-12-02 Pedro Alves <palves@redhat.com>
11
12 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
13 unconditionally.
14
0fdf84ca
PA
152013-12-02 Pedro Alves <pedro@codesourcery.com>
16 Maciej W. Rozycki <macro@codesourcery.com>
17
18 * remote.c (putpkt_for_catch_errors): Remove function.
19 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
20 gracefully.
21
62972e0b
YQ
222013-12-02 Pedro Alves <palves@redhat.com>
23
24 PR remote/15974
25 * remote-notif.c (handle_notification): Return early if no
26 notification is found.
27
f9b0da3d
JB
282013-12-02 Joel Brobecker <brobecker@adacore.com>
29
30 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
31 preprocessor check.
32
2dd4d422
JB
332013-12-02 Joel Brobecker <brobecker@adacore.com>
34
35 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
36
e72eff80
JB
372013-12-02 Joel Brobecker <brobecker@adacore.com>
38
39 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
40 * ctf.c (ctf_start): Remove obsolete comment.
41
844ad005
JB
422013-12-02 Joel Brobecker <brobecker@adacore.com>
43
44 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
45
5b2bf947
DE
462013-11-30 Doug Evans <xdje42@gmail.com>
47
48 * auto-load.h (script_language): New members name, auto_load_enabled.
49 Add missing comments on struct members.
50 (auto_load_objfile_script): Delete.
51 * auto-load.c: #include "cli/cli-cmds.h".
52 (auto_load_gdb_scripts_enabled): New function.
53 (script_language_gdb): Update, add new members.
54 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
55 and call to maybe_add_script moved to caller.
56 (auto_load_objfile_script_1): Auto-load safe-checking and
57 call to maybe_add_script moved here.
58 (auto_load_objfile_script): Make static. Early exit if support for
59 scripting language hasn't been compiled in, or auto-loading has been
60 disabled.
61 (source_section_scripts): Argument "source_name" renamed to
62 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
63 with section_name. Skip loading script if support for scripting
64 language hasn't been compiled in, or auto-loading has been disabled.
65 Call language->source_script_for_objfile instead of calling
66 source_python_script_for_objfile directly.
67 (load_auto_scripts_for_objfile): Update.
68 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
69 (gdbpy_load_auto_script_for_objfile): Delete.
70 (auto_load_python_scripts_enabled): New function.
71 (script_language_python): Update, add new members.
72 (gdbpy_script_language_defn): New function.
73 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
74 (gdbpy_script_language_defn): Declare.
75
76 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
77 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
78 (source_section_scripts): Moved here from py-auto-load.c.
79 (auto_load_section_scripts): Ditto.
80 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
81 auto-load.c, renamed AUTO_SECTION_NAME.
82 (source_section_scripts, auto_load_section_scripts): Moved to
83 auto-load.c.
84
d9c43928
YQ
852013-11-30 Yao Qi <yao@codesourcery.com>
86
87 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
88
e7b12392
SDJ
892013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
90
91 * gdbarch.sh: Remove include of "gdb_string.h", replace by
92 <string.h>.
93
256458bc
DE
942013-11-29 Doug Evans <xdje42@gmail.com>
95
7b2d3abf
DE
96 * python/py-auto-load.c (source_section_scripts): Move comment to
97 more relevant location.
98
256458bc
DE
99 Whitespace cleanup.
100 * python/py-breakpoint.c: Remove trailing whitespace.
101 * python/py-cmd.c: Ditto.
102 * python/py-evts.c: Ditto.
103 * python/py-finishbreakpoint.c: Ditto.
104 * python/py-frame.c: Ditto.
105 * python/py-function.c: Ditto.
106 * python/py-inferior.c: Ditto.
107 * python/py-infthread.c: Ditto.
108 * python/py-param.c: Ditto.
109 * python/py-prettyprint.c: Ditto.
110 * python/py-symbol.c: Ditto.
111 * python/py-type.c: Ditto.
112 * python/py-utils.c: Ditto.
113 * python/py-value.c: Ditto.
114 * python/python-internal.h: Ditto.
115 * python/python.c: Ditto.
116
20e1ca3b
PA
1172013-11-29 Pedro Alves <palves@redhat.com>
118
119 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
120
8b4f3082
PA
1212013-11-29 Pedro Alves <palves@redhat.com>
122
123 * breakpoint.c (build_target_condition_list): Release previous
124 conditions.
125 (build_target_command_list): Release previous commands.
126 (bp_location_dtor): Release target conditions and commands.
127 * remote.c (remote_add_target_side_condition): Don't release
128 conditions.
129 (remote_add_target_side_commands): Don't release commands.
130
9f713294
YQ
1312013-11-29 Yao Qi <yao@codesourcery.com>
132 Pedro Alves <palves@redhat.com>
133
134 * dcache.c (dcache_read_line): Use current_target.beneath
135 instead of &current_target.
136 * target.c (memory_xfer_partial_1): Factor code out to ...
137 (raw_memory_xfer_partial): ... it. New function.
138 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
139 is TARGET_OBJECT_RAW_MEMORY.
140
4cb0213d
DE
1412013-11-28 Doug Evans <xdje42@gmail.com>
142
143 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
144 breakpoint_object. All uses updated.
145 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
146 breakpoint_object. All uses updated.
147 * python.c (*): All uses of breakpoint_object updated.
148 * python.h (*): All uses of breakpoint_object updated.
149 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
150 * python/py-finishbreakpoint.c (*): Ditto.
151
d344e670
DE
1522013-11-28 Doug Evans <xdje42@gmail.com>
153
d729aae0 154 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
155 * configure: Regenerate.
156
eebc056c
AB
1572013-11-28 Andrew Burgess <aburgess@broadcom.com>
158 Pedro Alves <palves@redhat.com>
159
160 * valprint.c (value_check_printable): If the value is entirely
161 unavailable, print a single "<unavailable>" instead of printing
162 all subfields.
163
a7300869
PA
1642013-11-28 Pedro Alves <palves@redhat.com>
165
166 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
167 Add "set debug frame" output.
168 (frame_stop_reason_symbol_string): New function.
169
50fd528a
PA
1702013-11-28 Pedro Alves <palves@redhat.com>
171
172 * frame-unwind.c (default_frame_unwind_stop_reason): Return
173 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
174 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
175
5de51581
PA
1762013-11-28 Pedro Alves <palves@redhat.com>
177
178 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
179 set the unwind stop reason to UNWIND_OUTERMOST, not
180 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
181
739cb10c
PA
1822013-11-28 Pedro Alves <palves@redhat.com>
183
184 * frame.c (frame_unwind_register): Say the register was "not
185 saved" instead of "optimized out".
186
514c0aa6 1872013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 188
514c0aa6 189 PR 16152
92a021de 190 * configure: Rebuild.
514c0aa6 191 * configure.ac: Tighten cygwin detection check.
92a021de 192
908fa2aa
PA
1932013-11-27 Pedro Alves <palves@redhat.com>
194
195 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
196 register in the previous frame's arch.
197
6bd273ae
PA
1982013-11-27 Pedro Alves <palves@redhat.com>
199
200 * frame-unwind.c (frame_unwind_got_optimized): Return
201 an lval_register value instead of a not_lval value.
202
f6c01fc5
AB
2032013-11-27 Andrew Burgess <aburgess@broadcom.com>
204
205 * frame.c: Include "valprint.h".
206 (frame_unwind_register_value): Use value_optimized_out.
207 * value.c (value_fetch_lazy): Likewise.
208
4f14910f
AB
2092013-11-26 Andrew Burgess <aburgess@broadcom.com>
210
211 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
212
15859968
TT
2132013-11-26 Tom Tromey <tromey@redhat.com>
214
215 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
216 2013-11-22.
217
244ec0da
WT
2182013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
219
220 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
221 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
222 (HAS_MPX): New macro.
223 (HAS_AVX): New macro.
224 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
225
f7e3ecae
KS
2262013-11-25 Keith Seitz <keiths@redhat.com>
227
228 PR c++/14819
229 * c-exp.y (classify_inner_name): If no matching symbol was
230 found, try looking up the token as a base class.
231 Likewise if a constructor was found.
232 * cp-namespace.c (find_type_baseclass_by_name): New function.
233 * cp-support.h (find_type_baseclass_by_name): Declare.
234 * valops.c (value_struct_elt_for_reference): If we get
235 a non-static field, try to get a value based on the
236 current instance, if any.
237
283f7163
YQ
2382013-11-24 Yao Qi <yao@codesourcery.com>
239
240 * disasm.c (dis_asm_read_memory): Call target_read_code
241 instead of target_read_memory.
242
29453a14
YQ
2432013-11-24 Yao Qi <yao@codesourcery.com>
244
245 * NEWS: Add note on new "set code-cache" option.
246 * target-dcache.c (code_cache_enabled_1): New variable.
247 (code_cache_enabled): New variable.
248 (show_code_cache, set_code_cache): New function.
249 (code_cache_enabled_p): New function.
250 (_initialize_target_dcache): Register command.
251 * target-dcache.h (code_cache_enabled_p): Declare.
252 * target.c (memory_xfer_partial_1):Handle
253 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
254 (target_read_code): New function.
255 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
256 New.
257 (target_read_code): Declare.
258
0fb14d8f
YQ
2592013-11-24 Yao Qi <yao@codesourcery.com>
260
261 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
262 (stack_cache_enabled_1): ... this. New variable.
263 (stack_cache_enabled_p): Rename to ...
264 (stack_cache_enabled): ... this. New variable.
265 (set_stack_cache_enabled_p): Rename to ...
266 (set_stack_cache): ... this. Update caller.
267 (show_stack_cache_enabled_p): Rename to ...
268 (show_stack_cache): ... this. Update caller.
269 (stack_cache_enabled): Rename to ...
270 (stack_cache_enabled_p): ... this. Update caller.
271 (_initialize_target_dcache): Replace "data cache" with
272 "target memory cache".
273 * target-dcache.h (stack_cache_enabled): Remove declaration.
274 (stack_cache_enabled_p): Add declaration.
275
a12361b9
DE
2762013-11-23 Doug Evans <xdje42@gmail.com>
277
278 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
279 superfluous.
280
1e1d6920
DE
2812013-11-23 Doug Evans <xdje42@gmail.com>
282
283 * python/py-frame.c (frapy_block): Fix error message text.
284
1e9c71b8
DE
2852013-11-23 Doug Evans <xdje42@gmail.com>
286
287 * cli/cli-script.c (multi_line_command_p): New function.
288 (recurse_read_control_structure, read_command_lines_1): Call it.
289 (execute_control_command): Consistently have a blank line between
290 each case.
291
f380848e
SA
2922013-11-22 Sterling Augustine <saugustine@google.com>
293
38e1f2a7 294 PR gdb/16196:
f380848e
SA
295 * valprint.c (read_string): Set new variable fetchlen based on
296 fetchlimit and size. Use it in call to partial_memory_read.
297 Update comment.
298
da2b2fdf
TT
2992013-11-22 Tom Tromey <tromey@redhat.com>
300
301 PR backtrace/16155:
302 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
303 the return address column is unspecified.
304
6eeee81c
TT
3052013-11-22 Tom Tromey <tromey@redhat.com>
306 Pedro Alves <palves@redhat.com>
307
308 PR backtrace/16155
309 * value.c (value_fetch_lazy): Internal error if
310 get_frame_register_value returns the same register.
311
194cca41
PA
3122013-11-22 Pedro Alves <palves@redhat.com>
313 Tom Tromey <tromey@redhat.com>
314
315 * frame.c (frame_stash_add): Now returns whether a frame with the
316 same ID was already known.
317 (compute_frame_id): New function, factored out from get_frame_id.
318 (get_frame_id): No longer lazilly compute the frame id here.
319 (get_prev_frame_if_no_cycle): New function. Detects wider stack
320 cycles.
321 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
322 and checking for stack cycles here.
323
33f8fe58
PA
3242013-11-22 Pedro Alves <palves@redhat.com>
325
326 PR 16155
327 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
328 this frame and the new previous frame, not between this frame and
329 the next frame.
330
1ec56e88
PA
3312013-11-22 Pedro Alves <palves@redhat.com>
332
333 PR 16155
334 * dwarf2-frame.c (struct dwarf2_frame_cache)
335 <checked_tailcall_bottom, entry_cfa_sp_offset,
336 entry_cfa_sp_offset_p>: New fields.
337 (dwarf2_frame_cache): Adjust to use the new cache fields instead
338 of locals. Don't call dwarf2_tailcall_sniffer_first here.
339 (dwarf2_frame_prev_register): Call it here, but only once.
340
ca092b61
DE
3412013-11-21 Doug Evans <xdje42@gmail.com>
342
343 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
344 (type_equality_entry): Move here from python/py-type.c.
345 (type_equality_entry_d): Ditto.
346 (compare_maybe_null_strings, check_types_equal): Ditto.
347 (check_types_worklist, types_deeply_equal): Ditto.
348 * gdbtypes.h (types_deeply_equal): Declare.
349 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
350 (typy_richcompare): Update.
351
7c245c24
JB
3522013-11-20 Joel Brobecker <brobecker@adacore.com>
353
354 * python/py-value.c (is_intlike): Delete.
355 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
356 by use of is_integral_type.
357 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
358 by use of is_integral_type and check for TYPE_CODE_PTR.
359
8986e351
TT
3602013-11-20 Tom Tromey <tromey@redhat.com>
361
362 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
363 strerror module.
364 * gnulib/aclocal.m4: Update.
365 * gnulib/config.in: Update.
366 * gnulib/configure: Update.
367 * gnulib/import/Makefile.am: Update.
368 * gnulib/import/Makefile.in: Update.
369 * gnulib/import/errno.in.h: Remove.
370 * gnulib/import/intprops.h: Remove.
371 * gnulib/import/m4/errno_h.m4: Remove.
372 * gnulib/import/m4/gnulib-cache.m4: Update.
373 * gnulib/import/m4/gnulib-comp.m4: Update.
374 * gnulib/import/m4/strerror.m4: Remove.
375 * gnulib/import/m4/sys_socket_h.m4: Remove.
376 * gnulib/import/strerror-override.c: Remove.
377 * gnulib/import/strerror-override.h: Remove.
378 * gnulib/import/strerror.c: Remove.
379 * gnulib/update-gnulib.sh: Update.
380
6b1141e3
YQ
3812013-11-20 Yao Qi <yao@codesourcery.com>
382
383 * target-dcache.c (target_dcache_get_or_init): Call
384 set_address_space_data if 'dcache' is NULL.
385
60650f2e
WT
3862013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
387
388 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
389
09748966
WT
3902013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
391
392 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
393 * data-directory/Makefile.in: Copy bond_register.py to the right path
394 to be initialized at gdb startup.
09748966 395
e43e105e
WT
3962013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
397
398 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
399 Add MPX registers.
400 (amd64_linux_read_description): Add initialization for MPX and
401 AVX independently.
402 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
403 (amd64_linux_gregset_reg_offset): Add MPX registers.
404 (amd64_linux_core_read_description): Add initialization for MPX
405 registers.
406 (_initialize_amd64_linux_tdep): Initialize MPX targets.
407 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
408 register on the list.
409 (tdesc_amd64_mpx_linux) Add new target for MPX.
410 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
411 (amd64_mpx_names): MPX register names.
412 (amd64_init_abi): Add MPX register while initializing the ABI.
413 (_initialize_amd64_tdep): Initialize MPX targets.
414 * amd64-tdep.h (amd64_regnum): Add MPX registers.
415 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
416
1dbcd68c
WT
4172013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
418
419 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
420 registers on the range of registers to be read from
421 xsave buffer.
422 (i386_linux_read_description): Add case for MPX.
423 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
424 (i386_linux_gregset_reg_offset): Add MPX registers.
425 (i386_linux_core_read_description): Initialize also MPX.
426 (_initialize_i386_linux_tdep): Add mpx initialization.
427 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
428 mpx_register_names.
429 (i386_regnum): Add MPX registers.
430 (I386_MPX_NUM_REGS): New macro.
431 (i386_bnd_regnum_p): New function.
432 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
433 number of registers to be the number of BNDSTATUS.
434 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
435 * i386-tdep.c: Include features/i386/i386-mpx.c.
436 (i386_mpx_names): Add MPX register names array.
437 (i386_bnd_names): Add bnd pseudo register names array.
438 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
439 registers.
440 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
441 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
442 registers.
443 (i386_bnd_type): New function.
444 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
445 register types.
446 (i386_pseudo_register_read_into_value): Add bnd case.
447 (i386_pseudo_register_write): Add bnd pseudo registers.
448 (i386_register_reggroup_p): Add MPX register to the group all.
449 (i386_validate_tdesc_p): Add MPX to the target description
450 validation.
451 (i386_pseudo_register_name): Add bnd pseudo registers.
452 (i386_gdbarch_init): Add MPX for architecture initialization.
453 (_initia_initialize_i386_tdep): Add mpx initialization.
454 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
455 XSAVE buffer.
456 (XSAVE_MPX_ADDR): New macro.
457 (i387_supply_xsave): Add MPX case.
458 (i387_collect_xsave): Add MPX case.
459 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
460 (I387_BNDCFGU_REGNUM): New macro.
461 (I387_NUM_MPX_REGS): New macro.
462 (I387_NUM_BND_REGS): New macro.
463 (I387_NUM_MPX_CTRL_REGS): New macro.
464 (I387_MPXEND_REGNUM): New macro.
465 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
466 (I386_XSTATE_BNDCFG): Likewise.
467 (I386_XSTATE_MPX_MASK): Likewise.
468 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
469 (I386_XSTATE_BNDREGS_SIZE): New macro.
470 (I386_XSTATE_BNDCFG_SIZE): Likewise.
471 (I386_XSTATE_SIZE): Adapt for MPX.
472 (I386_XSTATE_MAX_SIZE): Likewise.
473
ccc42043
WT
4742013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
475
476 * features/i386/Makefile: Adapts for using MPX registers.
477 * features/i386/32bit-mpx.xml: New file.
478 * features/i386/64bit-mpx.xml: Likewise.
479 * features/i386/amd64-mpx-linux.c: Likewise.
480 * features/i386/amd64-mpx-linux.xml: Likewise.
481 * features/i386/amd64-mpx.c: Likewise.
482 * features/i386/amd64-mpx.xml: Likewise.
483 * features/i386/i386-mpx-linux.c: Likewise.
484 * features/i386/i386-mpx-linux.xml: Likewise.
485 * features/i386/i386-mpx.c: Likewise.
486 * features/i386/i386-mpx.xml: Likewise.
487 * regformats/i386/amd64-mpx-linux.dat: New file.
488 * regformats/i386/amd64-mpx.dat: Likewise.
489 * regformats/i386/i386-mpx-linux.dat: Likewise.
490 * regformats/i386/i386-mpx.dat: Likewise.
491
57803a3c
WT
4922013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
493
494 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
495 Modified logic of creating a bitfield to be in sync with
496 tdesc_gdb_type.
497
2b59118e
WN
4982013-11-20 Will Newton <will.newton@linaro.org>
499
500 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
501 error message.
502
b26dfc9a
YQ
5032013-11-20 Yao Qi <yao@codesourcery.com>
504
505 * progspace.h (struct address_space_data): Declare.
506 * target-dcache.c: Include "progspace.h".
507 (target_dache): Remove.
508 (target_dcache_aspace_key): New.
509 (target_dcache_cleanup): New function.
510 (target_dcache_init_p): Get data through
511 target_dcache_aspace_key.
512 (target_dcache_invalidate): Likewise.
513 (target_dcache_get): Likewise.
514 (target_dcache_get_or_init): Likewise.
515 (_initialize_target_dcache): Initialize
516 target_dcache_aspace_key.
517
3a8356ff
YQ
5182013-11-20 Yao Qi <yao@codesourcery.com>
519
520 * progspace.c (struct address_space): Update comments.
521 <REGISTRY_FIELDS>: New fields.
522 DEFINE_REGISTRY for address_space.
523 (new_address_space): Call address_space_alloc_data.
524 (free_address_space): Call address_space_free_data.
525 * progspace.h: Use DECLARE_REGISTRY.
526
68c765e2
YQ
5272013-11-20 Yao Qi <yao@codesourcery.com>
528
529 * Makefile.in (SFILES):Add target-dcache.c.
530 (HFILES_NO_SRCDIR): Add target-dcache.h.
531 (COMMON_OBS): Add target-dcache.o.
532 * dcache.c: Remove inclusion to "target.h". Include
533 "target-dcache.h".
534 * memattr.c: Include "target-dcache.h".
535 * top.c: Likewise.
536 * tracepoint.c: Likewise.
537 * target.c: (stack_cache_enabled_p_1): Move to
538 target-dcache.c.
539 (stack_cache_enabled_p): Likewise.
540 (set_stack_cache_enabled_p): Likewise.
541 (show_stack_cache_enabled_p): Likewise.
542 (target_dcache, target_dcache_init_p): Likewise.
543 (target_dcache_invalidate): Likewise.
544 (target_dcache_get, target_dcache_get_or_init): Likewise.
545 (memory_xfer_partial_1): Call function stack_cache_enabled.
546 (initialize_target): Move code to target-dcache.c.
547 * target.h (target_dcache_invalidate): Move to
548 target-dcache.h.
549 (target_dcache_get): Likewise.
550 * target-dcache.c: New.
551 * target-dcache.h: New.
552
f2de9785
YQ
5532013-11-20 Yao Qi <yao@codesourcery.com>
554
555 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
556 it is initialized.
557
2a2f9fe4
YQ
5582013-11-20 Yao Qi <yao@codesourcery.com>
559
560 * dcache.c (last_cache): Remove.
561 (dcache_free, dcache_init): Update.
562 (dcache_update):
563 (dcache_print_line): Add parameter 'dcache'. Replace
564 'target_dcache' with 'dcache'.
565 (dcache_info): Move code to dcache_info_1. Call
566 'dcache_info_1'.
567 (dcache_info_1): New function.
568 (set_dcache_size): Call target_dcache_invalidate.
569 (set_dcache_line_size): Call target_dcache_invalidate.
570 * target.c (target_dcache_init_p): New function.
571 (target_dcache_invalidate): Check target_dcache_init_p first.
572 (target_dcache_get, target_dcache_get_or_init): New function.
573 (memory_xfer_partial_1): Adjust.
574 (initialize_target): Don't initialize 'target_dcache'.
575 * target.h (struct dcache_struct): Declare.
576 (target_dcache_get): Declare.
577
8ab91b96
YQ
5782013-11-19 Yao Qi <yao@codesourcery.com>
579
580 * varobj.c (varobj_get_type): Fix typo.
581
df7752b0
JB
5822013-11-19 Joel Brobecker <brobecker@adacore.com>
583
584 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
585
4a0a886a
JB
5862013-11-19 Joel Brobecker <brobecker@adacore.com>
587
588 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
589 "stat.h".
590
53ce3c39
TT
5912013-11-18 Tom Tromey <tromey@redhat.com>
592
593 * common/gdb_stat.h: Remove.
594 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
595 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
596 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
597 * corefile.c: Use sys/stat.h, not gdb_stat.h.
598 * ctf.c: Use sys/stat.h, not gdb_stat.h.
599 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
600 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
601 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
602 * exec.c: Use sys/stat.h, not gdb_stat.h.
603 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
604 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
605 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
606 * jit.c: Use sys/stat.h, not gdb_stat.h.
607 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
608 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
609 * main.c: Use sys/stat.h, not gdb_stat.h.
610 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
611 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
612 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
613 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
614 * procfs.c: Use sys/stat.h, not gdb_stat.h.
615 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
616 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
617 * remote.c: Use sys/stat.h, not gdb_stat.h.
618 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
619 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
620 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
621 * source.c: Use sys/stat.h, not gdb_stat.h.
622 * symfile.c: Use sys/stat.h, not gdb_stat.h.
623 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
624 * symtab.c: Use sys/stat.h, not gdb_stat.h.
625 * top.c: Use sys/stat.h, not gdb_stat.h.
626 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
627
09607c9e
TT
6282013-11-18 Tom Tromey <tromey@redhat.com>
629
630 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
631 sys_stat.
632 * gnulib/aclocal.m4: Update.
633 * gnulib/config.in: Update.
634 * gnulib/configure: Update.
635 * gnulib/import/Makefile.am: Update.
636 * gnulib/import/Makefile.in: Update.
637 * gnulib/import/m4/gnulib-cache.m4: Update.
638 * gnulib/import/m4/gnulib-comp.m4: Update.
639 * gnulib/import/m4/sys_stat_h.m4: New.
640 * gnulib/import/m4/time_h.m4: New.
641 * gnulib/import/sys_stat.in.h: New.
642 * gnulib/import/time.in.h: New.
643
4ff70b84
TT
6442013-11-18 Tom Tromey <tromey@redhat.com>
645
646 * configure: Rebuild.
647 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
648
3447c057
TT
6492013-11-18 Tom Tromey <tromey@redhat.com>
650
651 * configure: Rebuild.
652 * configure.ac: Don't check for unistd.h.
653
0080a2f6
TT
6542013-11-18 Tom Tromey <tromey@redhat.com>
655
656 * configure: Rebuild.
657 * configure.ac: Don't check for stdlib.h
658 * defs.h: Include stdlib.h unconditionally.
659
161d1bec
TT
6602013-11-18 Tom Tromey <tromey@redhat.com>
661
662 * config.in: Rebuild.
663 * configure: Rebuild.
664 * configure.ac: Don't check for stddef.h.
665 * defs.h: Unconditionally include stddef.h. Remove duplicate
666 inclusion.
667
2978b111
TT
6682013-11-18 Tom Tromey <tromey@redhat.com>
669
670 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
671 * common/gdb_dirent.h: Remove.
672 * common/filestuff.c: Use dirent.h.
673 * common/linux-osdata.c: Use dirent.h.
674 (NAMELEN): Define.
675 * config.in: Rebuild.
676 * configure: Rebuild.
677 * configure.ac: Don't use AC_HEADER_DIRENT.
678 * linux-fork.c: Use dirent.h
679 * linux-nat.c: Use dirent.h.
680 * nto-procfs.c: Use dirent.h.
681 * procfs.c: Use dirent.h.
682
e26b6bb0
TT
6832013-11-18 Tom Tromey <tromey@redhat.com>
684
685 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
686 * gnulib/aclocal.m4: Update.
687 * gnulib/config.in: Update.
688 * gnulib/configure: Update.
689 * gnulib/import/Makefile.am: Update.
690 * gnulib/import/Makefile.in: Update.
691 * gnulib/import/dirent.in.h: New.
692 * gnulib/import/m4/dirent_h.m4: New.
693 * gnulib/import/m4/gnulib-cache.m4: Update.
694 * gnulib/import/m4/gnulib-comp.m4: Update.
695
a3d08894
TT
6962013-11-18 Tom Tromey <tromey@redhat.com>
697
698 * configure: Rebuild.
699 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
700 strings.h.
701
0e9f083f
TT
7022013-11-18 Tom Tromey <tromey@redhat.com>
703
704 * common/gdb_string.h: Remove.
705 * aarch64-tdep.c: Use string.h, not gdb_string.h.
706 * ada-exp.y: Use string.h, not gdb_string.h.
707 * ada-lang.c: Use string.h, not gdb_string.h.
708 * ada-lex.l: Use string.h, not gdb_string.h.
709 * ada-typeprint.c: Use string.h, not gdb_string.h.
710 * ada-valprint.c: Use string.h, not gdb_string.h.
711 * aix-thread.c: Use string.h, not gdb_string.h.
712 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
713 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
714 * alpha-nat.c: Use string.h, not gdb_string.h.
715 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
716 * alpha-tdep.c: Use string.h, not gdb_string.h.
717 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
718 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
719 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
720 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
721 * amd64-nat.c: Use string.h, not gdb_string.h.
722 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
723 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
724 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
725 * arch-utils.c: Use string.h, not gdb_string.h.
726 * arm-linux-nat.c: Use string.h, not gdb_string.h.
727 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
728 * arm-tdep.c: Use string.h, not gdb_string.h.
729 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
730 * armbsd-tdep.c: Use string.h, not gdb_string.h.
731 * armnbsd-nat.c: Use string.h, not gdb_string.h.
732 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
733 * armobsd-tdep.c: Use string.h, not gdb_string.h.
734 * avr-tdep.c: Use string.h, not gdb_string.h.
735 * ax-gdb.c: Use string.h, not gdb_string.h.
736 * ax-general.c: Use string.h, not gdb_string.h.
737 * bcache.c: Use string.h, not gdb_string.h.
738 * bfin-tdep.c: Use string.h, not gdb_string.h.
739 * breakpoint.c: Use string.h, not gdb_string.h.
740 * build-id.c: Use string.h, not gdb_string.h.
741 * buildsym.c: Use string.h, not gdb_string.h.
742 * c-exp.y: Use string.h, not gdb_string.h.
743 * c-lang.c: Use string.h, not gdb_string.h.
744 * c-typeprint.c: Use string.h, not gdb_string.h.
745 * c-valprint.c: Use string.h, not gdb_string.h.
746 * charset.c: Use string.h, not gdb_string.h.
747 * cli-out.c: Use string.h, not gdb_string.h.
748 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
749 * cli/cli-decode.c: Use string.h, not gdb_string.h.
750 * cli/cli-dump.c: Use string.h, not gdb_string.h.
751 * cli/cli-interp.c: Use string.h, not gdb_string.h.
752 * cli/cli-logging.c: Use string.h, not gdb_string.h.
753 * cli/cli-script.c: Use string.h, not gdb_string.h.
754 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
755 * cli/cli-utils.c: Use string.h, not gdb_string.h.
756 * coffread.c: Use string.h, not gdb_string.h.
757 * common/common-utils.c: Use string.h, not gdb_string.h.
758 * common/filestuff.c: Use string.h, not gdb_string.h.
759 * common/linux-procfs.c: Use string.h, not gdb_string.h.
760 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
761 * common/signals.c: Use string.h, not gdb_string.h.
762 * common/vec.h: Use string.h, not gdb_string.h.
763 * core-regset.c: Use string.h, not gdb_string.h.
764 * corefile.c: Use string.h, not gdb_string.h.
765 * corelow.c: Use string.h, not gdb_string.h.
766 * cp-abi.c: Use string.h, not gdb_string.h.
767 * cp-support.c: Use string.h, not gdb_string.h.
768 * cp-valprint.c: Use string.h, not gdb_string.h.
769 * cris-tdep.c: Use string.h, not gdb_string.h.
770 * d-lang.c: Use string.h, not gdb_string.h.
771 * dbxread.c: Use string.h, not gdb_string.h.
772 * dcache.c: Use string.h, not gdb_string.h.
773 * demangle.c: Use string.h, not gdb_string.h.
774 * dicos-tdep.c: Use string.h, not gdb_string.h.
775 * disasm.c: Use string.h, not gdb_string.h.
776 * doublest.c: Use string.h, not gdb_string.h.
777 * dsrec.c: Use string.h, not gdb_string.h.
778 * dummy-frame.c: Use string.h, not gdb_string.h.
779 * dwarf2-frame.c: Use string.h, not gdb_string.h.
780 * dwarf2loc.c: Use string.h, not gdb_string.h.
781 * dwarf2read.c: Use string.h, not gdb_string.h.
782 * elfread.c: Use string.h, not gdb_string.h.
783 * environ.c: Use string.h, not gdb_string.h.
784 * eval.c: Use string.h, not gdb_string.h.
785 * event-loop.c: Use string.h, not gdb_string.h.
786 * exceptions.c: Use string.h, not gdb_string.h.
787 * exec.c: Use string.h, not gdb_string.h.
788 * expprint.c: Use string.h, not gdb_string.h.
789 * f-exp.y: Use string.h, not gdb_string.h.
790 * f-lang.c: Use string.h, not gdb_string.h.
791 * f-typeprint.c: Use string.h, not gdb_string.h.
792 * f-valprint.c: Use string.h, not gdb_string.h.
793 * fbsd-nat.c: Use string.h, not gdb_string.h.
794 * findcmd.c: Use string.h, not gdb_string.h.
795 * findvar.c: Use string.h, not gdb_string.h.
796 * fork-child.c: Use string.h, not gdb_string.h.
797 * frame.c: Use string.h, not gdb_string.h.
798 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
799 * frv-tdep.c: Use string.h, not gdb_string.h.
800 * gdb.c: Use string.h, not gdb_string.h.
801 * gdb_bfd.c: Use string.h, not gdb_string.h.
802 * gdbarch.c: Use string.h, not gdb_string.h.
803 * gdbtypes.c: Use string.h, not gdb_string.h.
804 * gnu-nat.c: Use string.h, not gdb_string.h.
805 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
806 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
807 * go-exp.y: Use string.h, not gdb_string.h.
808 * go-lang.c: Use string.h, not gdb_string.h.
809 * go32-nat.c: Use string.h, not gdb_string.h.
810 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
811 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
812 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
813 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
814 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
815 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
816 * i386-linux-nat.c: Use string.h, not gdb_string.h.
817 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
818 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
819 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
820 * i386-tdep.c: Use string.h, not gdb_string.h.
821 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
822 * i386gnu-nat.c: Use string.h, not gdb_string.h.
823 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
824 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
825 * i387-tdep.c: Use string.h, not gdb_string.h.
826 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
827 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
828 * inf-child.c: Use string.h, not gdb_string.h.
829 * inf-ptrace.c: Use string.h, not gdb_string.h.
830 * inf-ttrace.c: Use string.h, not gdb_string.h.
831 * infcall.c: Use string.h, not gdb_string.h.
832 * infcmd.c: Use string.h, not gdb_string.h.
833 * inflow.c: Use string.h, not gdb_string.h.
834 * infrun.c: Use string.h, not gdb_string.h.
835 * interps.c: Use string.h, not gdb_string.h.
836 * iq2000-tdep.c: Use string.h, not gdb_string.h.
837 * irix5-nat.c: Use string.h, not gdb_string.h.
838 * jv-exp.y: Use string.h, not gdb_string.h.
839 * jv-lang.c: Use string.h, not gdb_string.h.
840 * jv-typeprint.c: Use string.h, not gdb_string.h.
841 * jv-valprint.c: Use string.h, not gdb_string.h.
842 * language.c: Use string.h, not gdb_string.h.
843 * linux-fork.c: Use string.h, not gdb_string.h.
844 * linux-nat.c: Use string.h, not gdb_string.h.
845 * lm32-tdep.c: Use string.h, not gdb_string.h.
846 * m2-exp.y: Use string.h, not gdb_string.h.
847 * m2-typeprint.c: Use string.h, not gdb_string.h.
848 * m32c-tdep.c: Use string.h, not gdb_string.h.
849 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
850 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
851 * m32r-rom.c: Use string.h, not gdb_string.h.
852 * m32r-tdep.c: Use string.h, not gdb_string.h.
853 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
854 * m68k-tdep.c: Use string.h, not gdb_string.h.
855 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
856 * m68klinux-nat.c: Use string.h, not gdb_string.h.
857 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
858 * m88k-tdep.c: Use string.h, not gdb_string.h.
859 * macrocmd.c: Use string.h, not gdb_string.h.
860 * main.c: Use string.h, not gdb_string.h.
861 * mdebugread.c: Use string.h, not gdb_string.h.
862 * mem-break.c: Use string.h, not gdb_string.h.
863 * memattr.c: Use string.h, not gdb_string.h.
864 * memory-map.c: Use string.h, not gdb_string.h.
865 * mep-tdep.c: Use string.h, not gdb_string.h.
866 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
867 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
868 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
869 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
870 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
871 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
872 * mi/mi-console.c: Use string.h, not gdb_string.h.
873 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
874 * mi/mi-interp.c: Use string.h, not gdb_string.h.
875 * mi/mi-main.c: Use string.h, not gdb_string.h.
876 * mi/mi-parse.c: Use string.h, not gdb_string.h.
877 * microblaze-rom.c: Use string.h, not gdb_string.h.
878 * microblaze-tdep.c: Use string.h, not gdb_string.h.
879 * mingw-hdep.c: Use string.h, not gdb_string.h.
880 * minidebug.c: Use string.h, not gdb_string.h.
881 * minsyms.c: Use string.h, not gdb_string.h.
882 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
883 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
884 * mips-tdep.c: Use string.h, not gdb_string.h.
885 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
886 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
887 * mipsread.c: Use string.h, not gdb_string.h.
888 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
889 * mn10300-tdep.c: Use string.h, not gdb_string.h.
890 * monitor.c: Use string.h, not gdb_string.h.
891 * moxie-tdep.c: Use string.h, not gdb_string.h.
892 * mt-tdep.c: Use string.h, not gdb_string.h.
893 * nbsd-tdep.c: Use string.h, not gdb_string.h.
894 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
895 * nto-procfs.c: Use string.h, not gdb_string.h.
896 * nto-tdep.c: Use string.h, not gdb_string.h.
897 * objc-lang.c: Use string.h, not gdb_string.h.
898 * objfiles.c: Use string.h, not gdb_string.h.
899 * opencl-lang.c: Use string.h, not gdb_string.h.
900 * osabi.c: Use string.h, not gdb_string.h.
901 * osdata.c: Use string.h, not gdb_string.h.
902 * p-exp.y: Use string.h, not gdb_string.h.
903 * p-lang.c: Use string.h, not gdb_string.h.
904 * p-typeprint.c: Use string.h, not gdb_string.h.
905 * parse.c: Use string.h, not gdb_string.h.
906 * posix-hdep.c: Use string.h, not gdb_string.h.
907 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
908 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
909 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
910 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
911 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
912 * printcmd.c: Use string.h, not gdb_string.h.
913 * procfs.c: Use string.h, not gdb_string.h.
914 * prologue-value.c: Use string.h, not gdb_string.h.
915 * python/py-auto-load.c: Use string.h, not gdb_string.h.
916 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
917 * ravenscar-thread.c: Use string.h, not gdb_string.h.
918 * regcache.c: Use string.h, not gdb_string.h.
919 * registry.c: Use string.h, not gdb_string.h.
920 * remote-fileio.c: Use string.h, not gdb_string.h.
921 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
922 * remote-mips.c: Use string.h, not gdb_string.h.
923 * remote-sim.c: Use string.h, not gdb_string.h.
924 * remote.c: Use string.h, not gdb_string.h.
925 * reverse.c: Use string.h, not gdb_string.h.
926 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
927 * ser-base.c: Use string.h, not gdb_string.h.
928 * ser-go32.c: Use string.h, not gdb_string.h.
929 * ser-mingw.c: Use string.h, not gdb_string.h.
930 * ser-pipe.c: Use string.h, not gdb_string.h.
931 * ser-tcp.c: Use string.h, not gdb_string.h.
932 * ser-unix.c: Use string.h, not gdb_string.h.
933 * serial.c: Use string.h, not gdb_string.h.
934 * sh-tdep.c: Use string.h, not gdb_string.h.
935 * sh64-tdep.c: Use string.h, not gdb_string.h.
936 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
937 * skip.c: Use string.h, not gdb_string.h.
938 * sol-thread.c: Use string.h, not gdb_string.h.
939 * solib-dsbt.c: Use string.h, not gdb_string.h.
940 * solib-frv.c: Use string.h, not gdb_string.h.
941 * solib-osf.c: Use string.h, not gdb_string.h.
942 * solib-spu.c: Use string.h, not gdb_string.h.
943 * solib-target.c: Use string.h, not gdb_string.h.
944 * solib.c: Use string.h, not gdb_string.h.
945 * somread.c: Use string.h, not gdb_string.h.
946 * source.c: Use string.h, not gdb_string.h.
947 * sparc-nat.c: Use string.h, not gdb_string.h.
948 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
949 * sparc-tdep.c: Use string.h, not gdb_string.h.
950 * sparc64-tdep.c: Use string.h, not gdb_string.h.
951 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
952 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
953 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
954 * spu-linux-nat.c: Use string.h, not gdb_string.h.
955 * spu-multiarch.c: Use string.h, not gdb_string.h.
956 * spu-tdep.c: Use string.h, not gdb_string.h.
957 * stabsread.c: Use string.h, not gdb_string.h.
958 * stack.c: Use string.h, not gdb_string.h.
959 * std-regs.c: Use string.h, not gdb_string.h.
960 * symfile.c: Use string.h, not gdb_string.h.
961 * symmisc.c: Use string.h, not gdb_string.h.
962 * symtab.c: Use string.h, not gdb_string.h.
963 * target.c: Use string.h, not gdb_string.h.
964 * thread.c: Use string.h, not gdb_string.h.
965 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
966 * tilegx-tdep.c: Use string.h, not gdb_string.h.
967 * top.c: Use string.h, not gdb_string.h.
968 * tracepoint.c: Use string.h, not gdb_string.h.
969 * tui/tui-command.c: Use string.h, not gdb_string.h.
970 * tui/tui-data.c: Use string.h, not gdb_string.h.
971 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
972 * tui/tui-file.c: Use string.h, not gdb_string.h.
973 * tui/tui-layout.c: Use string.h, not gdb_string.h.
974 * tui/tui-out.c: Use string.h, not gdb_string.h.
975 * tui/tui-regs.c: Use string.h, not gdb_string.h.
976 * tui/tui-source.c: Use string.h, not gdb_string.h.
977 * tui/tui-stack.c: Use string.h, not gdb_string.h.
978 * tui/tui-win.c: Use string.h, not gdb_string.h.
979 * tui/tui-windata.c: Use string.h, not gdb_string.h.
980 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
981 * typeprint.c: Use string.h, not gdb_string.h.
982 * ui-file.c: Use string.h, not gdb_string.h.
983 * ui-out.c: Use string.h, not gdb_string.h.
984 * user-regs.c: Use string.h, not gdb_string.h.
985 * utils.c: Use string.h, not gdb_string.h.
986 * v850-tdep.c: Use string.h, not gdb_string.h.
987 * valarith.c: Use string.h, not gdb_string.h.
988 * valops.c: Use string.h, not gdb_string.h.
989 * valprint.c: Use string.h, not gdb_string.h.
990 * value.c: Use string.h, not gdb_string.h.
991 * varobj.c: Use string.h, not gdb_string.h.
992 * vax-tdep.c: Use string.h, not gdb_string.h.
993 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
994 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
995 * windows-nat.c: Use string.h, not gdb_string.h.
996 * xcoffread.c: Use string.h, not gdb_string.h.
997 * xml-support.c: Use string.h, not gdb_string.h.
998 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
999 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1000
63ce7108
TT
10012013-11-18 Tom Tromey <tromey@redhat.com>
1002
1003 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1004 and strstr.
1005 * gnulib/aclocal.m4: Update.
1006 * gnulib/config.in: Update.
1007 * gnulib/configure: Update.
1008 * gnulib/import/Makefile.am: Update.
1009 * gnulib/import/Makefile.in: Update.
1010 * gnulib/import/errno.in.h: New.
1011 * gnulib/import/intprops.h: New.
1012 * gnulib/import/m4/errno_h.m4: New.
1013 * gnulib/import/m4/gnulib-cache.m4: Update.
1014 * gnulib/import/m4/gnulib-comp.m4: Update.
1015 * gnulib/import/m4/strerror.m4: New.
1016 * gnulib/import/m4/strstr.m4: New.
1017 * gnulib/import/m4/sys_socket_h.m4: New.
1018 * gnulib/import/strerror-override.c: New.
1019 * gnulib/import/strerror-override.h: New.
1020 * gnulib/import/strerror.c: New.
1021 * gnulib/import/strstr.c: New.
1022
a7c11ee1
TT
10232013-11-18 Tom Tromey <tromey@redhat.com>
1024
1025 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1026 multiple lines.
1027
d0b5971a
JM
10282013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1029
1030 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1031 * sparc-tdep.h: And its prototype.
1032
1033 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1034 function.
1035 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1036
4b4589ad
PA
10372013-11-18 Pedro Alves <palves@redhat.com>
1038
1039 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1040 use unpack_pointer.
1041
422ad5c2
JB
10422013-11-18 Joel Brobecker <brobecker@adacore.com>
1043
1044 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1045 to -list-features output.
1046
b1370418
JB
10472013-11-17 Joel Brobecker <brobecker@adacore.com>
1048
1049 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1050 <read_addr_from_reg>: Renames "read_reg".
1051 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1052 Adjust comment.
1053 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1054 Use read_addr_from_reg in place of read_reg.
1055 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1056 in place of read_reg.
1057 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1058 dwarf_expr_read_reg.
1059 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1060 with dwarf_expr_read_addr_from_reg.
1061 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1062 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1063 needs_frame_read_addr_from_reg.
1064
6ea71545
JK
10652013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1066
1067 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1068
19a1b230
AA
10692013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1070
1071 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1072 NULL.
1073
805e1f19
TT
10742013-11-15 Tom Tromey <tromey@redhat.com>
1075
1076 PR c++/16117:
1077 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1078 (classify_name): Likewise. Prefer a field of "this" over a
1079 filename.
1080 (classify_inner_name, yylex): Update.
1081
0acf8b65
JB
10822013-11-15 Joel Brobecker <brobecker@adacore.com>
1083
1084 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1085 Extend the documentation a bit.
1086 <get_reg_value>: New field.
1087 * dwarf2loc.c (dwarf_expr_get_reg_value)
1088 (needs_frame_get_reg_value): New functions.
1089 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1090 callback.
1091 * dwarf2-frame.c (get_reg_value): New function.
1092 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1093 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1094 Use new callback to compute result_val.
1095
ef1bc9e7
AM
10962013-11-15 Alan Modra <amodra@gmail.com>
1097
1098 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1099 (ppc64_desc_entry_point): ..this. Update comments here and at
1100 call points.
1101 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1102 ppc64_standard_linkage3): Update comments.
1103 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1104 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1105 patterns.
1106 (ppc64_standard_linkage4_target): New function.
1107 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1108 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1109 nop match. Fix comment wrap.
1110
36fa8042
PA
11112013-11-14 Pedro Alves <palves@redhat.com>
1112
1113 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1114 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1115
4f5d7f63
PA
11162013-11-14 Pedro Alves <palves@redhat.com>
1117
1118 * infrun.c (struct execution_control_state)
1119 <stepped_after_stopped_by_watchpoint>: New field.
1120 (get_inferior_stop_soon): New function.
1121 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1122 moved to struct execution_control_state -- adjust. Use
1123 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1124 new function.
1125 (handle_signal_stop): New function, factored out from
1126 handle_inferior_event.
1127
47591c29
PA
11282013-11-14 Pedro Alves <palves@redhat.com>
1129
1130 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1131 return a boolean.
1132 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1133 boolean.
1134 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1135 Adjust to return a boolean.
1136 * breakpoint.h (enum bpstat_signal_value): Delete.
1137 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1138 (bpstat_explains_signal): Likewise.
1139 * infrun.c (handle_inferior_event) <random signal checks>:
1140 bpstat_explains_signal now returns a boolean - adjust. No longer
1141 consider hiding signals.
1142
bac7d97b
PA
11432013-11-14 Pedro Alves <palves@redhat.com>
1144
1145 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1146 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1147 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1148 BPSTAT_SIGNAL_HIDE.
1149 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1150 instead of BPSTAT_SIGNAL_HIDE.
1151 * infrun.c (handle_inferior_event): Rework random signal checks.
1152
ce12b012
PA
11532013-11-14 Pedro Alves <palves@redhat.com>
1154
1155 * infrun.c (struct execution_control_state): Remove
1156 'random_signal' field.
1157 (handle_syscall_event): Use bpstat_causes_stop instead of
1158 bpstat_explains_signal. Don't set ecs->random_signal.
1159 (handle_inferior_event): New 'random_signal' local.
1160 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1161 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1162 bpstat_explains_signal. Don't set ecs->random_signal.
1163 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1164 ecs->random_signal.
1165
05ba8510
PA
11662013-11-14 Pedro Alves <palves@redhat.com>
1167
1168 * infrun.c (handle_inferior_event): Move comment from the
1169 function's body to the function's description, adjusted.
1170
5c09a2c5
PA
11712013-11-14 Pedro Alves <palves@redhat.com>
1172
1173 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1174 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1175 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1176 case.
1177
91822956
TT
11782013-11-14 Tom Tromey <tromey@redhat.com>
1179
1180 * python/py-linetable.c (ltpy_has_line)
1181 (ltpy_get_all_source_lines): Fix loop termination condition.
1182
403cb6b1
JB
11832013-11-14 Joel Brobecker <brobecker@adacore.com>
1184
1185 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1186 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1187 PARSE->LANGUAGE during command execution, if set.
1188 * mi/mi-parse.c: Add "language.h" #include.
1189 (mi_parse): Add parsing of "--language" command option.
1190
1191 * NEWS: Add entry mentioning the new "--language" command option.
1192
b5be8ce0
JB
11932013-11-14 Pedro Alves <palves@redhat.com>
1194 Joel Brobecker <brobecker@adacore.com>
1195
1196 * cli/cli-utils.h (extract_arg_const): Add declaration.
1197 * cli/cli-utils.c (extract_arg_const): New function.
1198 (extract_arg): Reimplement using extract_arg_const.
1199
671afef6
JB
12002013-11-14 Joel Brobecker <brobecker@adacore.com>
1201
1202 * language.h: Add "symtab.h" #include.
1203
6c1b0f7b
DE
12042013-11-13 Doug Evans <xdje42@gmail.com>
1205
1206 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1207 specific breakpoints, don't evaluate breakpoint condition if
1208 different thread.
1209
74921315
KS
12102013-11-13 Keith Seitz <keiths@redhat.com>
1211
248ace2e 1212 PR c++/7935
74921315
KS
1213 PR c++/10541
1214 * cp-support.c (insepct_type): Add support for substituting
1215 namespace aliases, too.
1216 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1217 for DW_TAG_imported_declaration.
1218 (add_partial_symbol): Likewise.
1219 (process_die): Handle namespace aliases with
1220 read_namespace_alias.
1221 (die_needs_namespace): Add DW_TAG_imported_declaration.
1222 (read_namespace_alias): New function.
1223 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1224 (new_symbol_full): Handle DW_TAG_imported_declaration.
1225
793156e6
KS
12262013-11-13 Keith Seitz <keiths@redhat.com>
1227
1228 * p-exp.y (uptok): Make first parameter const.
1229 (yylex): Make `tokstart' and `tokptr' const.
1230 Don't copy the lexer input to a temporary buffer.
1231 Make `p' const.
1232 Remove const workaround for parse_escape.
1233 Create a temporary buffer for a convenience variable instead
1234 of doing in-place modification of the input.
1235 If a match is found with a different case from the input,
1236 do not change the input at all.
1237 Use `tmp' to construct the resultant stoken instead of
1238 `tokstart'.
1239
c42bd95a
DE
12402013-11-13 Doug Evans <xdje42@gmail.com>
1241
1242 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1243
93973826
JB
12442013-11-13 Joel Brobecker <brobecker@adacore.com>
1245
1246 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1247 entry with "ada-exceptions".
1248
846060df
JB
12492013-11-13 Joel Brobecker <brobecker@adacore.com>
1250
1251 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1252 after re-initialization of OBJFILE's obstack.
1253
5efd1b2b 12542013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1255
1256 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1257 bs->stop != 0 on entry. Update function comment. Simplify early
1258 exit for frame mismatch. Reindent rest of function.
1259
ee7615e1
AA
12602013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1261
1262 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1263 NULL.
1264
8943b874
DE
12652013-11-12 Doug Evans <dje@google.com>
1266
1267 Work around gold/15646.
1268 * dwarf2read.c (read_index_from_section): Update comment.
1269 (struct dw2_symtab_iterator): New member global_seen.
1270 (dw2_symtab_iter_init): Initialize it.
1271 (dw2_symtab_iter_next): Skip duplicate global symbols.
1272 (dw2_expand_symtabs_matching): Ditto.
1273
a8a9844d
JB
12742013-11-12 Joel Brobecker <brobecker@adacore.com>
1275
1276 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1277 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1278 command.
1279 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1280 (mi_cmd_info_ada_exceptions): New function.
1281 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1282
778865d3
JB
12832013-11-12 Joel Brobecker <brobecker@adacore.com>
1284
1285 * ada-lang.h: #include "vec.h".
1286 (struct ada_exc_info): New.
1287 (ada_exc_info): New typedef.
1288 (DEF_VEC_O(ada_exc_info)): New vector.
1289 (ada_exceptions_list): Add declaration.
1290 * ada-lang.c (ada_is_exception_sym)
1291 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1292 (sort_remove_dups_ada_exceptions_list)
1293 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1294 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1295 (ada_exceptions_list_1, ada_exceptions_list)
1296 (info_exceptions_command): New function.
1297 (_initialize_ada_language): Add "info exception" command.
1298
bc79de95
PM
12992013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1300
1301 PR python/15629
1302 * NEWS: Add linetable feature.
1303 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1304 * python/py-linetable.c: New file.
1305 * python/py-symtab.c (stpy_get_linetable): New function.
1306 * python/python-internal.h (symtab_to_linetable_object): Declare.
1307 (gdbpy_initialize_linetable): Ditto.
1308 * python/python.c (_initialize_python): Call
1309 gdbpy_initialize_linetable.
1310
2df4d1d5
JB
13112013-11-11 Joel Brobecker <brobecker@adacore.com>
1312
1313 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1314 the documentation of fields "except_string" and "condition".
1315 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1316 CONDITION on the heap before passing it to
1317 create_ada_exception_catchpoint.
1318 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1319 CONDITION.
1320
99c1d451
TT
13212013-11-11 Tom Tromey <tromey@redhat.com>
1322
1323 * config.in, configure: Rebuild.
1324 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1325
8ca5801b
JB
13262013-11-11 Joel Brobecker <brobecker@adacore.com>
1327
1328 * remote-sim.c (gdbsim_detach): Break declaration into
1329 shorter lines. No code change.
1330
7a06d430
EBM
13312013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1332
1333 * remote-sim.c (gdbsim_detach): Fix prototype.
1334
73be47f5
DE
13352013-11-08 Doug Evans <dje@google.com>
1336
1337 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1338 (create_debug_types_hash_table): Only print debugging messages for
1339 each TU if dwarf2-read >= 2.
1340 (process_queue): Ditto.
1341 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1342 Update doc string.
1343
a18d8f10
TT
13442013-11-08 Tom Tromey <tromey@redhat.com>
1345
1346 * configure: Rebuild.
1347 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1348
9467110b
TT
13492013-11-08 Tom Tromey <tromey@redhat.com>
1350
1351 * configure, config.in: Rebuild.
1352 * configure.ac: Remove unused configury.
1353
69706679
TT
13542013-11-08 Tom Tromey <tromey@redhat.com>
1355
1356 * m32c-tdep.c: Use gdb_string.h.
1357
9b4bea72
TT
13582013-11-08 Tom Tromey <tromey@redhat.com>
1359
1360 * configure, config.in: Rebuild.
1361 * configure.ac: Remove all link.h-related checks.
1362
3266f10b
TT
13632013-11-08 Tom Tromey <tromey@redhat.com>
1364
1365 * acinclude.m4: Include common.m4.
1366 * common/common.m4: New file.
1367 * configure, config.in: Rebuild.
1368 * configure.ac: Use GDB_AC_COMMON.
1369
db0fec5c
DE
13702013-11-08 Doug Evans <dje@google.com>
1371
1372 * NEWS: Mention that "set debug symtab-create" now accepts a
1373 verbosity level.
1374 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1375 to set the symtab's primary flag.
1376 * jit.c (finalize_symtab): Ditto.
1377 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1378 * symfile.c (allocate_symtab): Only print debugging messages for
1379 symtab_create_debug levels 2 and higher.
1380 * symtab.c (symtab_create_debug): Change type to unsigned int.
1381 (set_symtab_primary): New function.
1382 (_initialize_symtab): Change "set debug symtab-create" to a
1383 zuinteger option.
1384 * symtab.h (set_symtab_primary): Declare.
1385 (symtab_create_debug): Update decl.
1386
52554a0e
TT
13872013-11-08 Tom Tromey <tromey@redhat.com>
1388
1389 * aix-thread.c (aix_thread_detach): Update.
1390 * corelow.c (core_detach): Update.
1391 * darwin-nat.c (darwin_detach): Update.
1392 * dec-thread.c (dec_thread_detach): Update.
1393 * gnu-nat.c (gnu_detach): Update.
1394 * go32-nat.c (go32_detach): Update.
1395 * inf-ptrace.c (inf_ptrace_detach): Update.
1396 * inf-ttrace.c (inf_ttrace_detach): Update.
1397 * linux-fork.c (linux_fork_detach): Update.
1398 * linux-fork.h (linux_fork_detach): Update.
1399 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1400 local for const-correctness.
1401 * linux-thread-db.c (thread_db_detach): Update.
1402 * monitor.c (monitor_detach): Update.
1403 * nto-procfs.c (procfs_detach): Update.
1404 * procfs.c (procfs_detach): Update.
1405 * record.c (record_detach): Update.
1406 * record.h (record_detach): Update.
1407 * remote-m32r-sdi.c (m32r_detach): Update.
1408 * remote-mips.c (mips_detach): Update.
1409 * remote-sim.c (gdbsim_detach): Update.
1410 * remote.c (remote_detach_1, remote_detach)
1411 (extended_remote_detach): Update.
1412 * sol-thread.c (sol_thread_detach): Update.
1413 * target.c (target_detach): Make "args" const.
1414 (init_dummy_target): Update.
1415 * target.h (struct target_ops) <to_detach>: Make argument const.
1416 (target_detach): Likewise.
1417 * windows-nat.c (windows_detach): Update.
1418
204b5331
DE
14192013-11-07 Doug Evans <dje@google.com>
1420
1421 PR 11786
1422 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1423 and align fields for PT_GNU_RELRO segments.
1424
92e32e33
PM
14252013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1426
ef1bc9e7
AM
1427 PR python/15747
1428 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1429
f76c27b5
PM
14302013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1431
1432 * NEWS: Document Python temporary breakpoint support.
1433 * python/py-breakpoint.c (bppy_get_temporary): New function.
1434 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1435 to temporary if True.
1436
d52cd232
JM
14372013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1438
1439 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1440 removed to allow analyzing unconditional branch instructions
1441 with PC-relative offsets of zero.
1442
fa4d0c40
YQ
14432013-11-07 Yao Qi <yao@codesourcery.com>
1444
1445 * mi/mi-cmd-var.c: Include "language.h".
1446 (mi_cmd_var_info_expression): Get language name from
1447 language_defn.
1448 * varobj.c (varobj_language_string): Remove.
1449 (variable_language): Remove declaration.
1450 (languages): Remove.
1451 (varobj_get_language): Change the type of return value.
1452 (variable_language): Remove.
1453 * varobj.h (enum varobj_languages): Remove.
1454 (varobj_language_string): Remove declaration.
1455 (varobj_get_language): Update declaration.
1456
6abde28f
YQ
14572013-11-07 Yao Qi <yao@codesourcery.com>
1458
1459 * language.h (struct language_defn) <la_natural_name>: New
1460 field.
1461 * ada-lang.c (ada_language_defn): Initialize field
1462 'la_natural_name'.
1463 * c-lang.c (c_language_defn): Likewise.
1464 (cplus_language_defn, asm_language_defn): Likewise.
1465 * d-lang.c (d_language_defn): Likewise.
1466 * f-lang.c (f_language_defn): Likewise.
1467 * go-lang.c (go_language_defn): Likewise.
1468 * jv-lang.c (java_language_defn): Likewise.
1469 * language.c (unknown_language_defn ): Likewise.
1470 (auto_language_defn): Likewise.
1471 * m2-lang.c (m2_language_defn): Likewise.
1472 * objc-lang.c (objc_language_defn): Likewise.
1473 * opencl-lang.c (opencl_language_defn): Likewise.
1474 * p-lang.c (pascal_language_defn): Likewise.
1475
27cd387b
YQ
14762013-11-07 Yao Qi <yao@codesourcery.com>
1477
1478 * language.c (language_str): Return const char *.
1479 (add_language): Add const to 'language_names'
1480 * language.h (struct language_defn) <la_name>: Add const.
1481 (language_str: Update declaration.
1482
6682d959
AA
14832013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1484
1485 * s390-linux-nat.c (s390_read_description): Consider the TE field
1486 in the HWCAP for determining 'have_regset_tdb'.
1487
b9502d3f
WN
14882013-11-06 Will Newton <will.newton@linaro.org>
1489
1490 PR gdb/12866
1491 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1492 values. (read_partial_die): Likewise.
1493
840da61a
MB
14942013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1495
1496 PR cli/16122
1497 * top.c (command_line_input): Unify interactivity tests to use
1498 input_from_terminal_p.
1499 * event-top.c (command_line_handler): Likewise.
1500
7636ccf9
YQ
15012013-11-06 Yao Qi <yao@codesourcery.com>
1502
1503 * Makefile.in (check-perf): New target.
1504
12b27276
WN
15052013-11-05 Will Newton <will.newton@linaro.org>
1506
1507 PR gdb/7670
1508 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1509 (arm_print_float_info): Likewise.
1510
67c059c2
AB
15112013-11-04 Anton Blanchard <anton@samba.org>
1512
1513 * target.c (memory_xfer_partial): Cap write to 4KB.
1514
0569175e
TSD
15152013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1516
1517 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1518 probe scan even when the arch provides no get_longjmp_target.
1519
b18e90f5
PA
15202013-10-31 Pedro Alves <palves@redhat.com>
1521
1522 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1523 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1524 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1525 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1526 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1527 <bpstat handling>: If the bpstat chain wants the signal to be
1528 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1529 GDB_SIGNAL_TRAP.
1530
638aa5a1
AB
15312013-10-31 Andrew Burgess <aburgess@broadcom.com>
1532
1533 * breakpoint.c (update_watchpoint): Update error message and add
1534 an additional error message.
1535
0e5fae36
UW
15362013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1537
1538 * s390-tdep.h: Rename to...
1539 * s390-linux-tdep.h: ...here.
1540 * s390-tdep.c: Rename to...
1541 * s390-linux-tdep.c: ...here. Adjust #include.
1542 * s390-nat.c: Rename to...
1543 * s390-linux-nat.c: ...here. Adjust #include.
1544 * config/s390/s390.mh: Rename to...
1545 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1546 s390-linux-nat.o.
1547 * configure.host: Reflect host rename "s390" -> "linux".
1548 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1549 * Makefile.in (ALL_TARGET_OBS): Likewise.
1550 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1551 s390-linux-tdep.h.
1552 (ALLDEPFILES): Reflect rename of .c files.
1553
34201ae3
UW
15542013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1555
1556 * s390-nat.c: Whitespace cleanup.
1557 * s390-tdep.c: Likewise.
1558 * s390-tdep.h: Remove empty line at end of file.
1559
e17aaa33
MR
15602013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1561
1562 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1563 siginfo_size.
1564
aee17e42
TT
15652013-10-29 Tom Tromey <tromey@redhat.com>
1566
1567 * utils.c (reg): Move undefinition...
1568 * gdb_curses.h: ... here. Update comment to mention AIX.
1569
9ac69859
NB
15702013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1571
1572 * exec.h (add_target_sections_of_objfile): New declaration.
1573 * exec.c (add_target_sections_of_objfile): New function.
1574 * symfile.c (add_symbol_file_command): Update current target sections.
1575 (remove_symbol_file_command): New command.
1576 (symfile_free_objfile): New function.
1577 (_initialize_symfile): Register observer for free_objfile events.
1578 * NEWS: Add description of the remove-symbol-file command.
1579 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1580 * objfiles.c (free_objfile): Notify free_objfile.
1581 (is_addr_in_objfile): New function.
1582 * objfiles.h (is_addr_in_objfile): New declaration.
1583 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1584 events instead of solib_unloaded events.
1585 (_initialize_printcmd): Register observer for free_objfile instead
1586 of solib_unloaded notifications.
1587 * solib.c (remove_user_added_objfile): New function.
1588 (_initialize_symfile): Add remove-symbol-file.
1589
f69d9aef
AB
15902013-10-29 Andrew Burgess <aburgess@broadcom.com>
1591
1592 * infcmd.c (default_print_one_register_info): Use val_print to
1593 print all values even optimized out or unavailable ones. Don't
1594 try to print a raw form of optimized out or unavailable values.
1595
487ad57c
YQ
15962013-10-29 Yao Qi <yao@codesourcery.com>
1597
1598 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1599 parameter 'arg' instead of from program_space_data.
1600 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1601 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1602 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1603 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1604 * inflow.c (inflow_inferior_data_cleanup): Get data from
1605 parameter 'arg' instead of inferior_data.
1606 * registry.h: Add comments.
1607
3c4797ba
PA
16082013-10-28 Pedro Alves <palves@redhat.com>
1609
1610 * breakpoint.c (watchpoints_triggered)
1611 <!target_stopped_data_address>: Hardcode return 1.
1612
cdaa5b73
PA
16132013-10-28 Pedro Alves <palves@redhat.com>
1614
1615 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1616 level and reindent.
1617
94c57d6a
PA
16182013-10-28 Pedro Alves <palves@redhat.com>
1619
1620 * infrun.c (process_event_stop_test): New function, factored out
1621 from handle_inferior_event.
1622 (handle_inferior_event): 'process_event_stop_test' is now a
1623 function instead of a goto label -- adjust.
1624
fcf3daef
PA
16252013-10-28 Pedro Alves <palves@redhat.com>
1626
1627 * infrun.c (handle_inferior_event): Move process_event_stop_test
1628 goto label to the else branch of the ecs->random_signal check,
1629 along with FRAME and GDBARCH re-fetching.
1630
c447ac0b
PA
16312013-10-28 Pedro Alves <palves@redhat.com>
1632
1633 * infrun.c (switch_back_to_stepped_thread): New function, factored
1634 out from handle_inferior_event.
1635 (handle_inferior_event): Adjust to call
1636 switch_back_to_stepped_thread. Call it also at the tail of the
1637 random signal handling, and return, instead of also handling
1638 random signals just before the stepping tests.
1639
f05e4c11
PA
16402013-10-28 Pedro Alves <palves@redhat.com>
1641
1642 * infrun.c (clear_stop_func): Delete.
1643 (handle_inferior_event): Don't call clear_stop_func and don't
1644 clear 'ecs->random_signal'.
1645
ca20d462
YQ
16462013-10-27 Yao Qi <yao@codesourcery.com>
1647
1648 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1649 (varobj_create, varobj_get_path_expr): Update.
1650 (varobj_value_has_mutated, varobj_update): Likewise.
1651 (create_child_with_value, new_root_variable): Likewise.
1652 (number_of_children, name_of_variable): Likewise.
1653 (value_of_child, my_value_of_variable): Likewise.
1654 (varobj_value_is_changeable_p): Likewise.
1655
a53b64ea
YQ
16562013-10-25 Yao Qi <yao@codesourcery.com>
1657
1658 * language.h (struct lang_varobj_ops): Declare.
1659 (struct language_defn) <la_varobj_ops>: New field.
1660 * ada-lang.c: Include "varobj.h"
1661 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1662 ada_varobj_ops.
1663 * c-lang.c: Include "varobj.h"
1664 (c_language_defn): Initialize field 'la_varobj_ops' with
1665 c_varobj_ops.
1666 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1667 cplus_varobj_ops.
1668 (asm_language_defn): Initialize field 'la_varobj_ops' with
1669 default_varobj_ops.
1670 (minimal_language_defn): Likewise.
1671 * d-lang.c (d_language_defn): Likewise.
1672 * f-lang.c (f_language_defn): Likewise.
1673 * go-lang.c (go_language_defn): Likewise.
1674 * m2-lang.c (m2_language_defn): Likewise.
1675 * objc-lang.c (objc_language_defn): Likewise.
1676 * opencl-lang.c (opencl_language_defn): Likewise.
1677 * p-lang.c (pascal_language_defn): Likewise.
1678 * language.c (unknown_language_defn): Likewise.
1679 (auto_language_defn): Likewise.
1680 (local_language_defn): Likewise.
1681 * jv-lang.c (java_language_defn): Initialize field
1682 'la_varobj_ops' with java_varobj_ops.
1683 * varobj.c (varobj_create): Update.
1684 * varobj.h (default_varobj_ops): Define macro.
1685
686d4def
PA
16862013-10-25 Pedro Alves <palves@redhat.com>
1687
1688 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1689 static field value.
1690 (cp_print_static_field): If the value is entirely optimized out,
1691 print <optimized out> here.
1692 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1693 static field value.
1694 * p-valprint.c (pascal_object_print_static_field): If the value is
1695 entirely optimized out, print <optimized out> here.
1696 * valops.c (do_search_struct_field)
1697 (value_struct_elt_for_reference): No longer handle a NULL static
1698 field value.
1699 * value.c (value_static_field): Return an optimized out value
1700 instead of NULL.
1701
6c177e28
YQ
17022013-10-25 Yao Qi <yao@codesourcery.com>
1703
1704 * remote.c (remote_traceframe_info): Return early if
1705 traceframe is not selected.
1706
98322bfa
YQ
17072013-10-25 Yao Qi <yao@codesourcery.com>
1708
1709 * tracepoint.c (traceframe_fun): Remove.
1710 (traceframe_sal): Remove.
1711 (set_traceframe_context): Add local variables.
1712
6ba1f115
JB
17132013-10-25 Joel Brobecker <brobecker@adacore.com>
1714
1715 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1716 and parameter name.
1717
bbe769cc
MR
17182013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1719
1720 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1721 failure from register information collection.
1722
72ee4495 17232013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1724
1725 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1726 member.
1727 (linux_corefile_thread_callback): Update accordingly.
1728 (linux_make_corefile_notes): Likewise.
1729
98882a26
PA
17302013-10-24 Pedro Alves <palves@redhat.com>
1731
1732 * NEWS (New options): Mention set/show startup-with-shell.
1733 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1734 instead of 3.
1735 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1736 startup-with-shell'.
1737 (show_startup_with_shell): New function.
1738 (_initialize_fork_child): Register the set/show startup-with-shell
1739 commands.
1740 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1741 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1742 * procfs.c (procfs_init_inferior): Remove comment.
1743 * infcmd.c (startup_with_shell): New global.
1744 * inferior.h (startup_with_shell): Declare global.
1745 (STARTUP_WITH_SHELL): Delete.
1746 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1747
c9737c08
PA
17482013-10-23 Pedro Alves <palves@redhat.com>
1749
1750 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1751 * common/signals.c: Include "gdb_assert.h".
1752 (signals): New field 'symbol'.
1753 (SET): Use the 'symbol' parameter.
1754 (gdb_signal_to_symbol_string): New function.
1755 * infrun.c (handle_inferior_event) <random signal>: In debug
1756 output, print the random signal enum as string in addition to its
1757 number.
1758 * target/waitstatus.c (target_waitstatus_to_string): Print the
1759 signal's enum value as string instead of the (POSIX) signal name.
1760
f60db4f0
GB
17612013-10-23 Gary Benson <gbenson@redhat.com>
1762
1763 PR 16013
1764 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1765 from 32 to 18. Adjusted fscanf format string accordingly.
1766 (Avoids leaving cmd unterminated.)
1767 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1768 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1769 that local_address and remote_address will not overflow.
1770 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1771 leaving dependencies unterminated. Parse size as "%u" to match
1772 definition.
1773
6d3e7a94
PA
17742013-10-22 Pedro Alves <palves@redhat.com>
1775
1776 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1777 set ecs->random signal.
1778
42ec045f
PA
17792013-10-22 Pedro Alves <palves@redhat.com>
1780
1781 * infrun.c (keep_going): Update comments.
1782
17832013-10-22 Pedro Alves <palves@redhat.com>
1784
1785 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1786 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1787
17882013-10-22 Pedro Alves <palves@redhat.com>
1789
1790 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1791 GDB_EXC_BAD_ACCESS.
1792 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1793 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1794 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1795 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1796 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1797 (GDB_SIGNAL_LAST): Change description string.
1798 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1799 Adjust to signal renaming.
1800 * darwin-nat.c (darwin_decode_message): Likewise.
1801
c8fde1b1
JM
18022013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1803
1804 * MAINTAINERS (Write After Approval): Add myself to the list.
1805
e8369a73
AB
18062013-10-18 Andrew Burgess <aburgess@broadcom.com>
1807
1808 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1809 forced off, downgrade them to software watchpoints if possible,
1810 and error out if not possible.
1811 (watch_command_1): Move watchpoint type selection closer to
1812 watchpoint creation, and extend the comments.
1813
776f04fa
PA
18142013-10-18 Pedro Alves <palves@redhat.com>
1815
1816 PR gdb/16062
1817 * infrun.c (handle_inferior_event): Keep going if we got a random
1818 signal we should not stop for, instead of falling through to the
1819 step tests.
1820
0c6faab5
YQ
18212013-10-18 Yao Qi <yao@codesourcery.com>
1822
1823 * c-varobj.c (cplus_number_of_children): Fix indentation.
1824
50b34a18
TT
18252013-10-17 Tom Tromey <tromey@redhat.com>
1826
1827 PR gdb/15995:
1828 * printcmd.c (printcmd): Call gdb_flush.
1829
5c4c8a59
TT
18302013-10-17 Tom Tromey <tromey@redhat.com>
1831
1832 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1833 (elf_locate_sections): Update.
1834
c4124bf1
YQ
18352013-10-17 Yao Qi <yao@codesourcery.com>
1836
1837 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1838 * ada-varobj.c: Remove the include of ada-varobj.h.
1839 (ada_varobj_get_number_of_children): Declare.
1840 (ada_varobj_get_name_of_child): Make it static.
1841 (ada_varobj_get_path_expr_of_child): Likewise.
1842 (ada_varobj_get_value_of_child): Likewise.
1843 (ada_varobj_get_type_of_child): Likewise.
1844 (ada_varobj_get_value_of_array_variable): Likewise.
1845 * ada-varobj.h: Remove.
1846
99ad9427
YQ
18472013-10-17 Yao Qi <yao@codesourcery.com>
1848
1849 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1850 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1851 * ada-varobj.c: Include "varobj.h".
1852 (ada_number_of_children): New. Moved from varobj.c.
1853 (ada_name_of_variable, ada_name_of_child): Likewise.
1854 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1855 (ada_type_of_child, ada_value_of_variable): Likewise.
1856 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1857 (ada_varobj_ops): New.
1858 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1859 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1860 * gdbtypes.h (get_target_type): Declare.
1861 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1862 "ada-lang.h".
1863 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1864 (ANONYMOUS_UNION_NAME): Likewise.
1865 (get_type, get_value_type, get_target_type): Remove declarations.
1866 (value_get_print_value, varobj_value_get_print_value): Likewise.
1867 (c_number_of_children, c_name_of_variable): Likewise.
1868 (c_name_of_child, c_path_expr_of_child): Likewise.
1869 (c_value_of_child, c_type_of_child): Likewise.
1870 (c_value_of_variable, cplus_number_of_children): Likewise.
1871 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1872 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1873 (cplus_value_of_child, cplus_type_of_child): Likewise.
1874 (cplus_value_of_variable, java_number_of_children): Likewise.
1875 (java_name_of_variable, java_name_of_child): Likewise.
1876 (java_path_expr_of_child, java_value_of_child): Likewise.
1877 (java_type_of_child, java_value_of_variable): Likewise.
1878 (ada_number_of_children, ada_name_of_variable): Likewise.
1879 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1880 (ada_value_of_child, ada_type_of_child): Likewise.
1881 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1882 (ada_value_has_mutated): Likewise.
1883 (struct language_specific): Move it to varobj.h.
1884 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1885 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1886 Callers update.
1887 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1888 Make it extern.
1889 (is_anonymous_child): Move it to c-varobj.c and rename to
1890 varobj_is_anonymous_child. Caller update.
1891 (get_type): Move it to c-varobj.c.
1892 (get_value_type): Rename it varobj_get_value_type. Make it
1893 extern.
1894 (get_target_type): Move it gdbtypes.c.
1895 (varobj_formatted_print_options): New function.
1896 (value_get_print_value): Rename it to
1897 varobj_value_get_print_value and make it extern.
1898 (varobj_value_is_changeable_p): Make it extern.
1899 (adjust_value_for_child_access): Move it to c-varobj.c.
1900 (default_value_is_changeable_p): Rename it to
1901 varobj_default_value_is_changeable_p. Make it extern.
1902 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1903 (c_name_of_child, c_path_expr_of_child): Likewise.
1904 (c_value_of_child, c_type_of_child): Likewise.
1905 (c_value_of_variable, cplus_number_of_children): Likewise.
1906 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1907 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1908 (cplus_value_of_child, cplus_type_of_child): Likewise.
1909 (cplus_value_of_variable): Likewise.
1910 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1911 (java_name_of_child, java_path_expr_of_child): Likewise.
1912 (java_value_of_child, java_type_of_child): Likewise.
1913 (java_value_of_variable): Likewise.
1914 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1915 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1916 (ada_value_of_child, ada_type_of_child): Likewise.
1917 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1918 (ada_value_has_mutated): Likewise.
1919 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1920 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1921 (c_varobj_ops, cplus_varobj_ops): Declare.
1922 (java_varobj_ops, ada_varobj_ops): Declare.
1923 (varobj_default_value_is_changeable_p): Declare.
1924 (varobj_value_is_changeable_p): Declare.
1925 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1926 (varobj_get_path_expr_parent): Declare.
1927 (varobj_value_get_print_value): Declare.
1928 (varobj_formatted_print_options): Declare.
1929 (varobj_restrict_range): Declare.
1930
c8a62302
LM
19312013-10-17 Luis Machado <lgustavo@codesourcery.com>
1932
1933 * target/waitstatus.h (target_waitkind): Remove spurious
1934 character from the comments.
1935
eade6471
JB
19362013-10-17 Joel Brobecker <brobecker@adacore.com>
1937
1938 * gdbarch.sh (get_longjmp_target): Add method documentation.
1939 * gdbarch.h: Regenerate.
1940
5411b26c
TT
19412013-10-16 Tom Tromey <tromey@redhat.com>
1942
1943 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1944 label.
1945
87326c87
LM
19462013-10-16 Luis Machado <lgustavo@codesourcery.com>
1947
1948 * gcore.in: Call GDB using the full path to the gcore script.
1949 Error out if the GDB binary is not found.
1950
fd0a4d76
SDJ
19512013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1952
1953 PR gdb/16014
1954 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1955 sizeof.
1956
d92f7ee3
SDJ
19572013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1958
1959 PR gdb/16042
1960 * target.c (target_disable_btrace): Fix invalid return value for
1961 void function.
1962 (target_teardown_btrace): Likewise.
1963
bb5ce47a
YQ
19642013-10-14 Yao Qi <yao@codesourcery.com>
1965
1966 * varobj.c (struct varobj): Move most of the fields to
1967 varobj.h.
1968 (struct varobj_dynamic): New struct.
1969 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1970 (varobj_has_more): Likewise.
1971 (dynamic_varobj_has_child_method): Likewise.
1972 (update_dynamic_varobj_children): Likewise.
1973 (varobj_get_num_children): Likewise.
1974 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1975 (install_new_value_visualizer): Likewise.
1976 (install_new_value_visualizer, install_new_value): Likewise.
1977 (varobj_update, new_variable, free_variable): Likewise.
1978 (my_value_of_variable, value_get_print_value): Likewise.
1979 (install_visualizer): Change the type of parameter 'var' to
1980 'struct varobjd_dynamic *'. Callers update.
1981 * varobj.h (struct varobj): Moved from varobj.c.
1982 (struct varobj) <dynamic>: New field.
1983
0b76b0ce
SL
19842013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1985
1986 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1987 as the preferred name of r30.
1988 * nios2-linux-tdep.c (reg_offsets): Likewise.
1989 * features/nios2-cpu.xml: Likewise.
1990 * features/nios2-linux.c: Regenerated.
1991 * features/nios2.c: Regenerated.
1992 * regformats/nios2-linux.dat: Regenerated.
1993
4856b6bc
JK
19942013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1995
1996 Canonicalize directories for EXEC_FILENAME.
1997 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1998 exec_filename.
1999 * utils.c (gdb_realpath_keepfile): New function.
2000 * utils.h (gdb_realpath_keepfile): New declaration.
2001
9b557b58
DE
20022013-10-11 Doug Evans <dje@google.com>
2003
2004 * Makefile.in (GDBFLAGS): New variable.
2005 (run): New rule.
2006
ce13fade
JB
20072013-10-11 Joel Brobecker <brobecker@adacore.com>
2008
2009 * NEWS: Add entry documenting the new "-catch-assert" and
2010 "-catch-exception" GDB/MI commands.
2011
349774ef
JB
20122013-10-11 Joel Brobecker <brobecker@adacore.com>
2013
2014 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2015 "enabled".
2016 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2017 "enabled". Set B->ENABLE_STATE accordingly.
2018 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2019 ada-lang.c.
2020 (create_ada_exception_catchpoint): Add declaration.
2021 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2022 (create_ada_exception_catchpoint): Make non-static. Add new
2023 parameter "disabled". Use it in call to
2024 init_ada_exception_breakpoint.
2025 (catch_ada_exception_command): Add parameter "enabled" in call
2026 to create_ada_exception_catchpoint.
2027 (catch_assert_command): Likewise.
2028
2029 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2030 Add declarations.
2031 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2032 "catch-exception" commands.
2033 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2034 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2035
761269c8
JB
20362013-10-11 Joel Brobecker <brobecker@adacore.com>
2037
2038 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2039 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2040 of all its enumerates with "ada_". Update the rest of this
2041 file throughout.
2042
b4a5b78b
JB
20432013-10-11 Joel Brobecker <brobecker@adacore.com>
2044
2045 * ada-lang.c (ada_decode_exception_location): Delete.
2046 (create_ada_exception_catchpoint): Remove arguments "sal",
2047 "addr_string" and "ops". Add argument "ex_kind" instead.
2048 Adjust implementation accordingly, calling ada_exception_sal
2049 to get the entities it no longer gets passed as arguments.
2050 Document the function's arguments.
2051 (catch_ada_exception_command): Use catch_ada_exception_command_split
2052 instead of ada_decode_exception_location, and update call to
2053 create_ada_exception_catchpoint.
2054 (catch_ada_assert_command_split): Renames
2055 ada_decode_assert_location. Remove parameters "addr_string" and
2056 "ops", and now returns void. Adjust implementation accordingly.
2057 Update the function documentation.
2058 (catch_assert_command): Use catch_ada_assert_command_split
2059 instead of ada_decode_assert_location. Update call to
2060 create_ada_exception_catchpoint.
2061
7ad1d32c 20622013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2063
2064 * utils.h (perror_warning_with_name): Add declaration.
2065 * utils.c (perror_warning_with_name): New function.
2066 * cli/cli-cmds.c (source_script_with_search): Add call to
2067 perror_warning_with_name if from_tty is nul.
2068
7ad1d32c 20692013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2070
2071 * utils.c (perror_string): New function, extracted out of
2072 throw_perror_with_name.
2073 (throw_perror_with_name): Rework to use perror_string.
2074
bcc75809
YQ
20752013-10-11 Yao Qi <yao@codesourcery.com>
2076
2077 * remote.c (discard_pending_stop_replies_in_queue): Update
2078 declaration.
2079 (struct stop_reply) <rs>: New field.
2080 (remove_stop_reply_of_remote_state): New function.
2081 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2082 Callers update. Pass remove_stop_reply_of_remote_state to
2083 QUEUE_iterate.
2084 (remote_parse_stop_reply): Initialize field 'rs'.
2085
05feb193
WN
20862013-10-10 Will Newton <will.newton@linaro.org>
2087
2088 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2089 linux_init_abi.
2090
0d12017b
JB
20912013-10-10 Joel Brobecker <brobecker@adacore.com>
2092
2093 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2094 serial_baud_show_cmd.
2095 (_initialize_cli_cmds): Delete the code creating the
2096 "set/show remotebaud" commands.
2097 * serial.c (baud_rate): Move here from top.c.
2098 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2099 (_initialize_serial): Create "set/show serial baud" commands.
2100 Add "set/show remotebaud" command aliases.
2101 * top.c (baud_rate): Moved to serial.c.
2102 * NEWS: Document the new "set/show serial baud" commands,
2103 replacing "set/show remotebaud".
2104
578d3588
PA
21052013-10-09 Pedro Alves <palves@redhat.com>
2106
2107 * breakpoint.c (insert_bp_location): Use memory_error_message to
2108 build the memory error string.
2109 * c-lang.c: Include "gdbcore.h".
2110 (c_get_string): Use memory_error to throw error.
2111 (target_xfer_memory_error): Delete.
2112 (memory_error_message): New, factored out from
2113 target_xfer_memory_error.
2114 (memory_error): Change parameter type to target_xfer_error.
2115 Rewrite.
2116 (read_memory): Use memory_error instead of
2117 target_xfer_memory_error.
2118 * gdbcore.h: Include "target.h".
2119 (memory_error): Change parameter type to target_xfer_error.
2120 (memory_error_message): Declare function.
2121 * target.c (target_read_memory, target_read_stack)
2122 (target_write_memory, target_write_raw_memory): Return
2123 TARGET_XFER_E_IO on error. Adjust comments.
2124 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2125 instead of EIO.
2126 * target.h (target_read, target_insert_breakpoint)
2127 (target_remove_breakpoint): Adjust comments.
2128 * valprint.c (partial_memory_read): Rename parameter, and adjust
2129 comment.
2130 (val_print_string): Use memory_error_message to build the memory
2131 error string.
2132
c74e1ccf
JK
21332013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2134
2135 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2136 result variable. Rename variable fopen_e_ever_failed to
2137 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2138
915215be
PA
21392013-10-09 Pedro Alves <palves@redhat.com>
2140
2141 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2142 (monitor_write_memory_longlongs, monitor_write_memory_block):
2143 Constify 'myaddr' parameter.
2144 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2145 helper.
2146 (monitor_xfer_partial): New function.
2147 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2148 hook. Install a to_xfer_partial hook.
2149
acd13123
TT
21502013-10-09 Tom Tromey <tromey@redhat.com>
2151
2152 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2153 bfd_get_alt_debug_link_info.
2154
40135bb1
JK
21552013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2156
2157 New flag OBJF_NOT_FILENAME.
2158 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2159 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2160 allocate_objfile.
2161 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2162 symbol_file_add_from_bfd.
2163 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2164 allocate_objfile.
2165 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2166 NULL.
2167 * objfiles.h (OBJF_NOT_FILENAME): New.
2168
dc294be5
TT
21692013-10-08 Tom Tromey <tromey@redhat.com>
2170
2171 * Makefile.in (SFILES): Add build-id.c.
2172 (HFILES_NO_SRCDIR): Add build-id.h.
2173 * build-id.c: New file, largely from elfread.c. Modified
2174 most functions.
2175 * build-id.h: New file.
2176 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2177 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2178 Search for dwz file using build-id.
2179 * elfread.c (build_id_bfd_get, build_id_verify)
2180 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2181
db230ce3
JB
21822013-10-08 Joel Brobecker <brobecker@adacore.com>
2183
2184 * ada-lang.c (compare_names_with_case): Renamed from
2185 compare_names, adding a new parameter "casing" and its handling.
2186 New function documentation.
2187 (compare_names): New function, implemented using
2188 compare_names_with_case.
2189
6501c98a
JB
21902013-10-08 Joel Brobecker <brobecker@adacore.com>
2191
2192 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2193
84a1243b
TT
21942013-10-07 Tom Tromey <tromey@redhat.com>
2195
2196 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2197 demangled_names_hash.
2198 (free_objfile): Don't delete the demangled_names_hash.
2199 * objfiles.h (struct objfile_per_bfd_storage)
2200 <demangled_names_hash>: New field.
2201 (struct objfile) <demangled_names_hash>: Move to
2202 objfile_per_bfd_storage.
2203 * symfile.c (reread_symbols): Don't delete the
2204 demangled_names_hash.
2205 * symtab.c (create_demangled_names_hash): Update.
2206 (symbol_set_names): Update.
2207
1da77581
TT
22082013-10-07 Tom Tromey <tromey@redhat.com>
2209
2210 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2211 needs_relocations>: New fields.
2212 (gdb_bfd_requires_relocations): New function.
2213 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2214 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2215 the BFD needs relocations applied.
2216
46ecd527
PA
22172013-10-07 Pedro Alves <palves@redhat.com>
2218
2219 PR breakpoints/11568
2220 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2221 the thread list" instead of "gone".
2222
0c557179
SDJ
22232013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2224
2225 * NEWS: Mention new convenience variable $_exitsignal.
2226 * corelow.c (core_open): Reset exit convenience variables. Set
2227 $_exitsignal to the uncaught signal which generated the corefile.
2228 * infrun.c (handle_inferior_event): Reset exit convenience
2229 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2230 (clear_exit_convenience_vars): New function.
2231 * inferior.h (clear_exit_convenience_vars): New prototype.
2232
1cc47d81
YQ
22332013-10-06 Yao Qi <yao@codesourcery.com>
2234
2235 * varobj.h: Add comments to enum varobj_languages.
2236
73869dc2
DE
22372013-10-04 Doug Evans <dje@google.com>
2238
2239 Add support for DWP file format version 2.
2240 * NEWS: Mention support for DWP file format version 2.
2241 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2242 union of asection, containing_section. New fields virtual_offset
2243 and is_virtual. Change type of readin filed from int to char.
2244 (dwo_sections, dwo_file): Tweak comments.
2245 (dwp_v2_section_ids): New enum.
2246 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2247 str_offsets, types.
2248 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2249 All uses updated.
2250 (virtual_v2_dwo_sections): New struct.
2251 (dwp_hash_table): New fields version, nr_columns. Change type of
2252 section_pool field to a union.
2253 (dwp_file): New field version.
2254 (dwarf2_has_info): Check for virtual sections.
2255 (get_containing_section): New function.
2256 (get_section_bfd_owner, get_section_bfd_section): Call it.
2257 (dwarf2_locate_sections): Update.
2258 (dwarf2_section_empty_p): Update.
2259 (dwarf2_read_section): Handle virtual sections.
2260 (locate_dwz_sections): Update.
2261 (create_dwp_hash_table): Document and handle V2 format.
2262 (locate_v1_virtual_dwo_sections): Renamed from
2263 locate_virtual_dwo_sections and update. All callers updated.
2264 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2265 Delete arg htab. Rename arg section_index to unit_index.
2266 All callers updated.
2267 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2268 All uses updated.
2269 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2270 (lookup_dwo_unit_in_dwp): Add V2 support.
2271 (dwarf2_locate_dwo_sections): Update.
2272 (dwarf2_locate_common_dwp_sections): Renamed from
2273 dwarf2_locate_dwp_sections and update. All callers updated.
2274 (dwarf2_locate_v2_dwp_sections): New function.
2275 (open_and_init_dwp_file): Add V2 support.
2276 (read_str_index): New locals str_section, str_offsets_section.
2277
9a2c3737
PA
22782013-10-04 Pedro Alves <palves@redhat.com>
2279
2280 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2281 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2282 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2283 describing comments with references to ptid.h.
2284 * common/ptid.h: Remove intro description of constructors,
2285 accessors and predicates.
2286 (struct ptid): Reformat.
2287 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2288 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2289 describing comments.
2290
f5371440
JB
22912013-10-04 Joel Brobecker <brobecker@adacore.com>
2292
2293 * aix-thread.c (sync_threadlists): Add missing ')' in call
2294 to ptid_build.
2295
793e1c06
JB
22962013-10-04 Joel Brobecker <brobecker@adacore.com>
2297
2298 * procfs.c (procfs_init_inferior): Fix typo causing the build
2299 to fail.
2300
26f0edc1
JB
23012013-10-04 Joel Brobecker <brobecker@adacore.com>
2302
2303 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2304
5713b9b5
JB
23052013-10-04 Joel Brobecker <brobecker@adacore.com>
2306
2307 * mi/mi-main.c (run_one_inferior): Add function description.
2308 Make ARG a pointer to an integer whose value determines whether
2309 we should "run" or "start" the program.
2310 (mi_cmd_exec_run): Add handling of the "--start" option.
2311 Reject all other command-line options.
2312 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2313
f48ff2a7
YQ
23142013-10-04 Yao Qi <yao@codesourcery.com>
2315
2316 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2317 (struct notif_client) <pending_event>: Moved
2318 to struct remote_notif_state.
2319 <id>: New field.
2320 (struct remote_notif_state) <pending_event>: New field.
2321 (notif_event_xfree): Declare.
2322 * remote-notif.c (handle_notification): Adjust.
2323 (notif_event_xfree): New function.
2324 (do_notif_event_xfree): Call notif_event_xfree.
2325 (remote_notif_state_xfree): Call notif_event_xfree to free
2326 each element in field pending_event.
2327 * remote.c (discard_pending_stop_replies): Remove declaration.
2328 (discard_pending_stop_replies_in_queue): Declare.
2329 (remote_close): Call discard_pending_stop_replies_in_queue
2330 instead of discard_pending_stop_replies.
2331 (remote_start_remote): Adjust.
2332 (stop_reply_xfree): Call notif_event_xfree.
2333 (notif_client_stop): Adjust initialization.
2334 (remote_notif_remove_all): Rename it to ...
2335 (remove_stop_reply_for_inferior): ... this. Update comments.
2336 Don't check INF is NULL.
2337 (discard_pending_stop_replies): Return early if notif_state is
2338 NULL. Adjust. Don't check INF is NULL.
2339 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2340 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2341 (remote_wait_ns): Likewise.
2342
5965e028
YQ
23432013-10-04 Yao Qi <yao@codesourcery.com>
2344
2345 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2346 (notif_queue): Remove.
2347 (remote_notif_process): Add one parameter 'notif_queue'.
2348 Update comments. Callers update.
2349 (remote_async_get_pending_events_token): Remove.
2350 (remote_notif_register_async_event_handler): Remove.
2351 (remote_notif_unregister_async_event_handler): Remove.
2352 (handle_notification): Add parameter 'notif_queue'. Update
2353 comments. Callers update.
2354 (notif_xfree): Remove.
2355 (remote_notif_state_allocate): New function.
2356 (remote_notif_state_xfree): New function.
2357 (_initialize_notif): Remove code to allocate queue.
2358 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2359 (struct remote_notif_state): New.
2360 (handle_notification): Update declaration.
2361 (remote_notif_process): Likewise.
2362 (remote_notif_register_async_event_handler): Remove.
2363 (remote_notif_unregister_async_event_handler): Remove.
2364 (remote_notif_state_allocate): Declare.
2365 (remote_notif_state_xfree): Declare.
2366 * remote.c (struct remote_state) <notif_state>: New field.
2367 (remote_close): Don't call
2368 remote_notif_unregister_async_event_handler. Call
2369 remote_notif_state_xfree.
2370 (remote_open_1): Don't call
2371 remote_notif_register_async_event_handler. Call
2372 remote_notif_state_allocate.
2373
5e5ac9a5
YQ
23742013-10-04 Yao Qi <yao@codesourcery.com>
2375
2376 * varobj.c (create_child_with_value): Remove 'const' from the
2377 type of parameter 'name'.
2378 (varobj_add_child): Likewise.
2379 (install_dynamic_child): Remove 'const' from the type of
2380 parameter 'name'.
2381 (varobj_add_child): Likewise.
2382 (create_child_with_value): Likewise. Update comments. Don't
2383 duplicate 'name'.
2384 (update_dynamic_varobj_children): Duplicate 'name'
2385 and pass it to install_dynamic_child.
2386
06ab7b19
PM
23872013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2388
2389 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2390 conversion logic to occur after PyLong_Check. Comment on order
2391 change significance.
2392 * python/py-arch.c (archpy_disassemble): Comment on order of
2393 conversion for integers and longs.
2394
8ae377e8
PA
23952013-10-03 Pedro Alves <palves@redhat.com>
2396
2397 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2398 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2399 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2400 PTRACE_O_TRACEFORK is not supported.
2401 (linux_test_for_tracesysgood): New function.
2402 (linux_test_for_tracefork): New function, factored out from
2403 linux_check_ptrace_features, and also don't kill child_pid here.
2404
b1328b1b
TG
24052013-10-03 Tristan Gingold <gingold@adacore.com>
2406
2407 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2408 Remove verbose error reporting. Use detected state to
2409 thread_set_state call.
2410 (i386_darwin_dr_get): Fix return type. Remove verbose error
2411 report.
2412 Remove trailing spaces.
2413
901461f8
PA
24142013-10-02 Pedro Alves <palves@redhat.com>
2415
2416 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2417 val_print_optimized_out.
2418 * jv-valprint.c (java_print_value_fields): Likewise.
2419 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2420 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2421 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2422 new optimized out value.
2423 * findvar.c (address_from_register): Likewise.
2424 * frame.c (put_frame_register): Tweak error string to say the
2425 register was not saved, rather than optimized out.
2426 * infcmd.c (default_print_one_register_info): Adjust call to
2427 val_print_optimized_out. Use value_of_register instead of
2428 get_frame_register_value.
2429 * mi/mi-main.c (output_register): Use value_of_register instead of
2430 get_frame_register_value.
2431 * valprint.c (valprint_check_validity): Likewise.
2432 (val_print_optimized_out): New value parameter. If the value is
2433 lval_register, print <not saved> instead.
2434 (value_check_printable, val_print_scalar_formatted): Adjust calls
2435 to val_print_optimized_out.
2436 * valprint.h (val_print_optimized_out): New value parameter.
2437 * value.c (struct value) <optimized_out>: Extend comment.
2438 (error_value_optimized_out): New function.
2439 (require_not_optimized_out): Use it. Use a different string for
2440 lval_register values.
2441 * value.h (error_value_optimized_out): New declaration.
2442 * NEWS: Mention <not saved>.
2443
042a84d9
JB
24442013-10-02 Joel Brobecker <brobecker@adacore.com>
2445
2446 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2447 strcmp to compare two symtab filenames.
2448
6b9780fb
JB
24492013-10-02 Joel Brobecker <brobecker@adacore.com>
2450
2451 * symtab.c (search_symbols_equal): Delete.
2452 (sort_search_symbols_remove_dups): Replace call to
2453 search_symbols_equal by call to compare_search_syms,
2454 adjusting as necessary.
2455
751e7549
PM
24562013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2457
2458 PR python/15579
751e7549
PM
2459 * python/python.c: Document gdb.execute command in Python help.
2460
1efd7661
PM
24612013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2462
2463 * python/py-frame.c (frame_info_to_frame_object): Use
2464 gdbpy_convert_exception. Clean up Python object on failure.
2465
562fc849
PM
24662013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2467
2468 * python/lib/gdb/command/frame_filters.py
2469 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2470 (ShowFrameFilterPriority.invoke): Ditto.
2471
d7561cbb
KS
24722013-10-01 Keith Seitz <keiths@redhat.com>
2473
2474 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2475 (parse_linespec): Make 'argptr' const.
2476 Remove temporary cast of 'argptr' to const char **.
2477 (decode_line_full): Pass const pointer to parse_linespec.
2478 (decode_line_1): Likewise.
2479 (decode_objc): Make local variable 'new_argptr' const.
2480 (find_function_symbols): Remove temporary cast to char *
2481 to find_imps.
2482 * objc-lang.c (find_imps): Make argument 'method' const.
2483 Return const.
2484 * objc-lang.h (find_imps): Likewise.
2485
24862013-10-01 Keith Seitz <keiths@redhat.com>
2487
2488 * completer.c (skip_quoted_chars): Make all arguments const.
2489 Return const.
2490 (skip_quoted): Likewise.
2491 * completer.h (skip_quoted_chars): Likewise.
2492 (skip_quoted): Likewise.
2493 * defs.h (skip_quoted): Remove duplicate declaration.
2494 * jv-exp.y: Include completer.h.
2495 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2496 * p-exp.y: Include completer.h.
2497
24982013-10-01 Keith Seitz <keiths@redhat.com>
2499
2500 * c-exp.y (parse_number): Make first argument const.
2501 Make a copy of the input to manipulate.
2502 (c_parse_escape): Make first argument const.
2503 Make local variable 'tokptr' const.
2504 (parse_string_or_char): Make first two arguments const.
2505 (macro_original_text): Make const.
2506 (lex_one_token): Make local variable 'tokstart' const.
2507 Likewise for local variables named 'p'.
2508 Cast away const for struct stoken (temporary).
2509 * c-lang.h (c_parse_escpae): Make first argument const.
2510 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2511 const.
2512 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2513 var_string case.
2514 * f-exp.y (parse_number): Make first argument const.
2515 (match_string_literal): Make local variable 'tokstart'
2516 const.
2517 (yylex): Make local variable 'p' const.
2518 Cast away const for struct stoken (temporary).
2519 * go-exp.y (parse_number): Make first argument const.
2520 (parse_string_or_char): Likewise.
2521 Make local variable 'tokstart' const.
2522 (lex_one_token): Likewise for numerous locals called 'p'.
2523 Cast away const for struct stoken (temporary).
2524 * jv-exp.y (parse_number): Make first argument const.
2525 Make local variables 'tokstart' and 'tokptr' const.
2526 Cast away const for call to skip_quoted (temporary).
2527 (yylex): Make local variable 'p' const.
2528 Cast away const for struct stoken (temporary).
2529 * m2-exp.y (parse_number): Make local variable 'p' const.
2530 (yylex): Likewise for 'tokstart'.
2531 Cast away const for struct stoken (temporary).
2532 Make local variable 'p' const.
2533 * macroexp.c (get_character_constant): Pass a const string
2534 to c_parse_escape.
2535 (get_string_literal): Likewise.
2536 (macro_expand_next): Make first argument const.
2537 Cast away const for init_shared_buffer.
2538 * macroexp.h (macro_expand_next): Make first argument const.
2539 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2540 Pass a const string to c_parse_escape.
2541 Make local variables 'p' and 'namestart' const.
2542 * parse.c (lexptr): Make const.
2543 (prev_lexptr): Likewise.
2544 (find_template_name_end): Return const.
2545 Make argument const, too.
2546 (parse_exp_in_context): Make first argument const.
2547 Remove the entire const_hack.
2548 (parse_exp_in_context_1): Make first argument const.
2549 * parser-defs.h (find_template_name_end): Return const.
2550 Make argument const, too.
2551 (lexptr): Make const.
2552 (prev_lexptr): Likewise.
2553 * utils.c (parse_escape): Make second argument const.
2554 * utils.h (parse_escape): Likewise.
2555
25562013-10-01 Keith Seitz <keiths@redhat.com>
2557
2558 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2559 is now const.
2560 (block_lookup): Make 'raw_name' and 'name' const.
2561 * ada-lex.l (processString): Update for struct stoken.ptr.
2562 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2563 (operator_stoken): Likewise.
2564 (lex_one_token): Remove temporary cast to char * for
2565 'yylval.sval.ptr'.
2566 * f-exp.y (yylex): Likewise.
2567 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2568 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2569 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2570 'yylval.sval.ptr'.
2571 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2572 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2573 * linespec.c (struct ls_parser): Make 'stream' const.
2574 (find_parameter_list_end): Make argument 'input' and local
2575 variable 'p' const.
2576 (linespec_lexer_lex_string): Make local variables 'start' and
2577 'p' const.
2578 Use skip_spaces_const instead of skip_spaces.
2579 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2580 const.
2581 (parse_linespec): Temporarily cast 'argptr' to const for
2582 'parser->lexer.stream'.
2583 * m2-exp.y (yylex): Remove temporary cast to char * for
2584 'yylval.sval.ptr'.
2585 * objc-lang.c (add_msglist): Make local variable 'p' const.
2586 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2587 (exp : STRING): Make 'sp' const.
2588 (parse_number): Make argument 'p' const.
2589 * parser-defs.h (struct stoken): Make 'ptr' const.
2590
193a8eac
DE
25912013-10-01 Doug Evans <dje@google.com>
2592
2593 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2594
2213e2be
YQ
25952013-10-01 Yao Qi <yao@codesourcery.com>
2596
2597 * varobj.c (c_value_of_root): Remove declaration.
2598 (cplus_value_of_root, java_value_of_root): Likewise.
2599 (ada_value_of_root): Likewise.
2600 (struct language_specific) <value_of_root>: Remove.
2601 (languages): Update initialization.
2602 (check_scope): Move earlier.
2603 (c_value_of_root): Move earlier and rename to ...
2604 (value_of_root_1): ... this.
2605 (value_of_root): Caller update.
2606 (cplus_value_of_root, java_value_of_root): Remove.
2607 (ada_value_of_root): Remove.
2608
c573f273
YQ
26092013-10-01 Yao Qi <yao@codesourcery.com>
2610
2611 * varobj.c (varobj_format_string): Remove "unknown".
2612 (languages): Remove the first element.
2613 * varobj.h (enum varobj_languages): Remove vlang_c.
2614
56250258
YQ
26152013-10-01 Yao Qi <yao@codesourcery.com>
2616
2617 * varobj.c (struct language_specific) <language>: Remove.
2618 (languages): Update the initialization.
2619
29f9ebfa
YQ
26202013-10-01 Yao Qi <yao@codesourcery.com>
2621
2622 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2623 "solib-target.h". Include "windows-tdep.h".
2624 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2625 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2626 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2627 windows-tdep.o to gdb_target_obs.
2628
64870a42
YQ
26292013-10-01 Yao Qi <yao@codesourcery.com>
2630
2631 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2632 "solib-target.h".
2633 (amd64_windows_init_abi): Don't call set_solib_ops and
2634 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2635 windows_init_abi instead.
2636 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2637 "solib-target.h".
2638 (i386_cygwin_init_abi): Don't call set_solib_ops,
2639 set_gdbarch_has_dos_based_file_system and
2640 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2641 windows_init_abi instead.
2642 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2643 (windows_init_abi): New function.
2644 (windows_iterate_over_objfiles_in_search_order): Make it
2645 static.
2646 * windows-tdep.h (windows_init_abi): Declare.
2647 (windows_iterate_over_objfiles_in_search_order): Remove
2648 declaration.
2649
0aebdefa
JB
26502013-10-01 Jerome Guitton <guitton@adacore.com>
2651
2652 Checked in by Joel Brobecker <brobecker@adacore.com>
2653 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2654 incomplete dictionnary instead of None in case of missing
2655 environment variables.
2656 (elinos_init): in case of an incomplete environment, best
2657 effort to load system libraries instead of abort.
2658
1c8e84b0
JB
26592013-10-01 Joel Brobecker <brobecker@adacore.com>
2660
2661 * ada-lang.c (ada_has_this_exception_support): Ignore
2662 mst_solib_trampoline minimal symbols.
2663
61d82a0d
TG
26642013-09-30 Tristan Gingold <gingold@adacore.com>
2665
2666 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2667 hardware watchpoint.
2668 (i386_darwin_dr_set): Support 32 and 64 bit states.
2669 (i386_darwin_dr_get): Likewise.
2670 (i386_darwin_dr_set_control): Make static.
2671 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2672 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2673
dfd4cc63
LM
26742013-09-30 Luis Machado <lgustavo@codesourcery.com>
2675
2676 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2677 Replace TIDGET with ptid_get_lwp.
2678 Replace GET_LWP with ptid_get_lwp.
2679 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2680 Replace BUILD_THREAD with ptid_build.
2681 Replace BUILD_LWP with ptid_build.
2682 Replace PIDGET with ptid_get_pid.
2683 Replace TIDGET with ptid_get_lwp.
2684 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2685 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2686 Replace TIDGET with ptid_get_lwp.
2687 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2688 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2689 Replace TIDGET with ptid_get_lwp.
2690 Replace GET_LWP with ptid_get_lwp.
2691 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2692 * auxv.c: Likewise.
2693 * breakpoint.c: Likewise.
2694 * common/ptid.c (ptid_is_pid): Condense check for
2695 null_ptid and minus_one_ptid.
2696 (ptid_lwp_p): New function.
2697 (ptid_tid_p): New function.
2698 * common/ptid.h: Update comments for accessors.
2699 (ptid_lwp_p): New prototype.
2700 (ptid_tid_p): New prototype.
2701 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2702 * gcore.c: Replace PIDGET with ptid_get_pid.
2703 * gdbthread.h: Likewise.
2704 * gnu-nat.c: Likewise.
2705 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2706 Replace TIDGET with ptid_get_lwp.
2707 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2708 * hppanbsd-nat.c: Likewise.
2709 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2710 Replace TIDGET with ptid_get_lwp.
2711 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2712 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2713 * infcmd.c: Likewise.
2714 * inferior.h: Likewise.
2715 * inflow.c: Likewise.
2716 * infrun.c: Likewise.
2717 * linux-fork.c: Likewise.
2718 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2719 Replace GET_PID with ptid_get_pid.
2720 Replace is_lwp with ptid_lwp_p.
2721 Replace GET_LWP with ptid_get_lwp.
2722 Replace BUILD_LWP with ptid_build.
2723
5b4e221c
MF
27242013-09-28 Mike Frysinger <vapier@gentoo.org>
2725
2726 * common/linux-btrace.c: Move sys/syscall.h out of the
2727 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2728 Also check for SYS_perf_event_open before attempting to buid.
2729
57d63ce2
DE
27302013-09-27 Doug Evans <dje@google.com>
2731
19ac8c2e
DE
2732 * dwarf2read.c (dwarf2_section_info): Add comment.
2733 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2734 All uses updated.
2735 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2736 (dwarf2_read_section): Delete unused local "header". Add section
2737 name to error message.
2738 (create_dwo_in_dwp): Tweak comment.
2739 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2740
a32a8923
DE
2741 * dwarf2read.c (die_reader_specs): Tweak comment.
2742 (get_section_bfd_owner, get_section_bfd_section): New functions.
2743 (get_section_name, get_section_file_name): New functions.
2744 (get_section_id, get_section_flags): New functions.
2745 (*): Use new functions to access section fields.
2746
57d63ce2
DE
2747 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2748 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2749 arg "htab". All callers updated.
2750 (create_debug_types_hash_table): Remove redundant copy of
2751 abbrev_section.
2752 (create_dwo_in_dwp): Tweak comments.
2753 (read_str_index): Tweak comment. Record dwarf form name in static
2754 local.
2755
3736004f
PA
27562013-09-27 Pedro Alves <palves@redhat.com>
2757
2758 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2759 (remote_filename_p): Add comment.
2760 * remote.c (remote_filename_p): Adjust to use
2761 REMOTE_SYSROOT_PREFIX.
2762 * solib.c (solib_find): When deciding whether we need to add a
2763 directory separator, check whether the sysroot is "remote:"
2764 instead of checking whether the patch has a drive spec. Add
2765 comments.
2766
5b5596ff
PA
27672013-09-27 Pedro Alves <palves@redhat.com>
2768
2769 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2770 Delete fields.
2771 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2772 directly.
2773
b5eef7aa
JK
27742013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2775
2776 Fix set debug frame output.
2777 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2778 SENTINEL_FRAME entry lower to match enum frame_type order.
2779
5b856f36
PM
27802013-09-26 Pierre Muller <muller@sourceware.org>
2781
2782 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2783 AMD64_R15_REGNUM when a register index is expected.
2784 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2785 Substitute in array.
2786 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2787 (amd64_push_arguments): Substitute in integer_regnum array.
2788
ade7ed9e
DE
27892013-09-25 Doug Evans <dje@google.com>
2790
d3e81981
DE
2791 * objfiles.c (allocate_objfile): Move comment to better place.
2792
8fb8eb5c
DE
2793 New option "set debug symfile on".
2794 * NEWS: Mention "set debug symfile".
2795 * Makefile.in (SFILES): Add symfile-debug.c.
2796 (COMMON_OBS): Add symfile-debug.o.
2797 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2798 objfile's symbol functions.
2799 * objfiles.h (objfile_set_sym_fns): Declare.
2800 * symfile-debug.c: New file.
2801 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2802 objfile's symbol functions.
2803 (reread_symbols): Ditto.
2804
c256e171
DE
2805 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2806 All uses updated.
2807 (add_symtab_fns): Update prototype.
2808 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2809 (registered_sym_fns): ... this.
2810 (symtab_fns): Update.
2811 (add_symtab_fns): New arg "flavour". All callers updated.
2812 (find_sym_fns): Rewrite to use new sym_fns registry.
2813
f56ce883
DE
2814 * symfile.h (struct sym_fns): Add "objfile" argument to
2815 sym_read_linetable. All uses updated.
2816
20c681d1
DE
2817 * symtab.c (domain_name, search_domain_name): New functions.
2818 * symtab.h (domain_name, search_domain_name): Declare.
2819
ade7ed9e
DE
2820 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2821 map_matching_symbols so objfile is first. All uses updated.
2822 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2823 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2824
7d760051
UW
28252013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2826
2827 PR shlibs/8882
2828 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2829 link map entries.
2830
020f7036
DE
28312013-09-24 Doug Evans <dje@google.com>
2832
2833 * objfiles.c (free_objfile): Move comment.
2834
598402f0
JB
28352013-09-24 Joel Brobecker <brobecker@adacore.com>
2836
2837 * ada-exp.y (string_to_operator): Delete.
2838 (dummy_string_to_ada_operator): Delete.
2839
bf4d6c1c
JB
28402013-09-24 Joel Brobecker <brobecker@adacore.com>
2841
2842 Revert:
2843 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2844 amd64-tdep.c.
2845 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2846 call_dummy_integer_regs, and classify.
2847 * amd64-tdep.h (amd64_classify): Add declaration.
2848 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2849 (amd64_reg_class): Delete, moved to i386-tdep.h.
2850 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2851 Replace call to amd64_classify by call to tdep->classify.
2852 (amd64_push_arguments): Get the list of registers to use for
2853 passing integer parameters from the gdbarch tdep structure,
2854 rather than using a hardcoded one. Replace calls to amd64_classify
2855 by calls to tdep->classify.
2856 (amd64_push_dummy_call): Get the register number used for
2857 the "hidden" argument from tdep->call_dummy_integer_regs.
2858 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2859 and tdep->call_dummy_integer_regs. Set tdep->classify.
2860
849e9755
JB
28612013-09-24 Joel Brobecker <brobecker@adacore.com>
2862
2863 Revert:
2864 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2865 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2866 where tdep->memory_args_by_pointer is non-zero.
2867
c1459fd6
JB
28682013-09-24 Joel Brobecker <brobecker@adacore.com>
2869
2870 Revert:
2871 * i386-tdep.h (struct gdbarch_tdep): Add new field
2872 integer_param_regs_saved_in_caller_frame.
2873 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2874 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2875
20c2e3e0
JB
28762013-09-24 Joel Brobecker <brobecker@adacore.com>
2877
874440b8 2878 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2879 (amd64_windows_classify): Delete.
2880 (amd64_windows_passed_by_integer_register)
2881 (amd64_windows_passed_by_xmm_register)
2882 (amd64_windows_passed_by_pointer)
2883 (amd64_windows_adjust_args_passed_by_pointer)
2884 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2885 (amd64_windows_push_dummy_call): New functions.
2886 (amd64_windows_init_abi): Remove setting of
2887 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2888 tdep->classify, tdep->memory_args_by_pointer and
2889 tdep->integer_param_regs_saved_in_caller_frame.
2890 Add call to set_gdbarch_push_dummy_call.
2891
82bf32bc
JK
28922013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2893
2894 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2895 objfile->original_name.
2896
24ba069a
JK
28972013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2898
2899 Pass down original filename for objfile.
2900 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2901 * elfread.c (elf_symfile_read): Likewise.
2902 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2903 longer set ORIGINAL_NAME.
2904 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2905 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2906 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2907 symbol_file_add_from_bfd call.
2908 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2909 (macho_check_dsym): Add parameter filenamep. Change function comment.
2910 Set *filenamep.
2911 (macho_symfile_read): New variable dsym_filename. Update
2912 macho_check_dsym call. Use it for symbol_file_add_separate.
2913 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2914 it. Use it for objfile->original_name.
2915 (objfile_name): Return OBFD's filename, if available.
2916 * objfiles.h (allocate_objfile): Add new parameter name.
2917 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2918 * symfile-mem.c (symbol_file_add_from_memory): Update
2919 symbol_file_add_from_bfd call.
2920 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2921 comment for it.
2922 (symbol_file_add_with_addrs): New parameter name, add function comment
2923 for it. Remove variable name. Update allocate_objfile call.
2924 (symbol_file_add_separate): New parameter name, add function comment
2925 for it. Update symbol_file_add_with_addrs call.
2926 (symbol_file_add_from_bfd): New parameter name. Update
2927 symbol_file_add_with_addrs call.
2928 (symbol_file_add): Update symbol_file_add_from_bfd call.
2929 (reread_symbols): New variable original_name. Save
2930 objfile->original_name by it.
2931 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2932 second parameter.
2933
4262abfb
JK
29342013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2935
2936 Code cleanup: Add objfile_name accessor function.
2937 * ada-lang.c (is_known_support_routine): Use objfile_name.
2938 * auto-load.c (source_gdb_script_for_objfile)
2939 (auto_load_objfile_script): Likewise.
2940 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2941 * dbxread.c (dbx_symfile_read): Likewise.
2942 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2943 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2944 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2945 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2946 (lookup_dwp_signatured_type, lookup_dwo_unit)
2947 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2948 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2949 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2950 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2951 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2952 (read_subrange_type, load_partial_dies, read_partial_die)
2953 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2954 (die_containing_type, build_error_marker_type, lookup_die_type)
2955 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2956 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2957 (get_DW_AT_signature_type, write_psymtabs_to_index)
2958 (save_gdb_index_command): Likewise.
2959 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2960 Likewise.
2961 * expprint.c (dump_subexp_body_standard): Likewise.
2962 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2963 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2964 original_name.
2965 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2966 obj_name, use objfile_name for it, use the variable.
2967 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2968 Use objfile_name.
2969 * machoread.c (macho_symtab_read, macho_check_dsym)
2970 (macho_symfile_relocate): Likewise.
2971 * maint.c (maintenance_translate_address): Likewise.
2972 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2973 * minsyms.c (install_minimal_symbols): Likewise.
2974 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2975 original_name.
2976 (filter_overlapping_sections): Use objfile_name.
2977 (objfile_name): New function.
2978 * objfiles.h (struct objfile): Rename field name to original_name.
2979 (objfile_name): New prototype.
2980 * printcmd.c (sym_info, address_info): Use objfile_name.
2981 * probe.c (parse_probes, collect_probes, compare_probes)
2982 (info_probes_for_ops): Likewise.
2983 * progspace.c (clone_program_space): Likewise.
2984 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2985 (maintenance_info_psymtabs): Likewise.
2986 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2987 (source_section_scripts): Likewise.
2988 * python/py-objfile.c (objfpy_get_filename): Likewise.
2989 * python/py-progspace.c (pspy_get_filename): Likewise.
2990 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2991 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2992 * solib.c (solib_read_symbols): Likewise.
2993 * stabsread.c (scan_file_globals): Likewise.
2994 * stap-probe.c (handle_stap_probe): Likewise.
2995 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2996 (find_separate_debug_file_by_debuglink): Likewise.
2997 (reread_symbols): Likewise. Use the objfile field name renamed to
2998 original_name.
2999 (allocate_symtab): Use objfile_name.
3000 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3001 (dump_objfile, dump_msymbols, dump_symtab_1)
3002 (maintenance_print_msymbols, maintenance_print_objfiles)
3003 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3004 * target.c (target_translate_tls_address, target_info): Likewise.
3005 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3006 objfile_name.
3007
4721dc18
JK
30082013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3009
3010 Code cleanup.
3011 * probe.c (parse_probes): Rename variable objfile_name to
3012 objfile_namestr.
3013
a61d6db8
JK
30142013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3015
3016 Remove solib-sunos.c.
3017 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3018 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3019 * objfiles.c (rt_common_objfile): Remove.
3020 (free_objfile): Remove rt_common_objfile comparison.
3021 * objfiles.h (rt_common_objfile): Remove.
3022 * solib-sunos.c: Remove.
3023 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3024
2659903b
JK
30252013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3026
3027 Remove a.out NetBSD and OpenBSD hosts.
3028 * NEWS (Removed native configurations): New.
3029 * config/arm/nbsdaout.mh: Remove.
3030 * config/i386/nbsdaout.mh: Remove.
3031 * config/i386/obsdaout.mh: Remove.
3032 * config/m68k/nbsdaout.mh: Remove.
3033 * config/sparc/nbsdaout.mh: Remove.
3034 * config/vax/nbsdaout.mh: Remove.
3035 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3036 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3037 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3038 error.
3039 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3040 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3041 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3042
f60e2d5c
TT
30432013-09-23 Tom Tromey <tromey@redhat.com>
3044
3045 * linespec.c (struct minsym_and_objfile): Remove.
3046 (minsym_and_objfile_d): Remove.
3047 (struct linespec, struct collect_info, linespec_parse_basic)
3048 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3049 (compare_msymbols, find_method, find_function_symbols)
3050 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3051 (add_minsym, search_minsyms_for_name): Update.
3052
d3eaaf66
AB
30532013-09-23 Andrew Burgess <aburgess@broadcom.com>
3054
3055 * regcache.c: Add include of valprint.h.
3056 (dump_endian_bytes): Delete.
3057 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3058
2cc762b5
AB
30592013-09-23 Andrew Burgess <aburgess@broadcom.com>
3060
3061 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3062
96181529
PA
30632013-09-19 Pedro Alves <palves@redhat.com>
3064
3065 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3066 breakpoints.
3067
9b3f3ee6
TS
30682013-09-19 Pedro Alves <palves@redhat.com>
3069 Thomas Schwinge <thomas@codesourcery.com>
3070 Yue Lu <hacklu.newborn@gmail.com>
3071
3072 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3073 Take a gdb_byte pointer instead of a char pointer.
3074
3075 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3076 gnu_xfer_partial helper.
3077 (gnu_xfer_partial): New function.
3078 (gnu_target): Don't install a deprecated_xfer_memory hook.
3079 Install a to_xfer_partial hook.
3080
69150c3d
JK
30812013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3082
3083 Constification.
3084 * main.c (captured_main): Replace catch_command_errors by
3085 catch_command_errors_const. Twice.
3086 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3087 (symbol_file_add): Make name parameter const.
3088 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3089 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3090 variable name. Change their usage accordingly.
3091 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3092 const.
3093 (symbol_file_add_main): Make args parameter const.
3094
086850b2
UW
30952013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3096 Ulrich Weigand <uweigand@de.ibm.com>
3097
3098 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3099 of c_value member.
3100 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3101
ca08a94c 31022013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3103 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3104
3105 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3106 (gnu_create_inferior)
3107 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3108 (set_sig_thread_cmd): Use the lwpid field of ptids to
3109 store/extract thread ids instead of the tid field.
3110 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3111
e4c6a2c4
AB
31122013-09-18 Andrew Burgess <aburgess@broadcom.com>
3113
3114 * infcmd.c (default_print_one_register_info): Add detection of
3115 optimized out values.
3116 (default_print_registers_info): Switch to using
3117 get_frame_register_value.
3118
58c48e72
MM
31192013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3120
3121 * infrun.c (handle_inferior_event): Check if we know the
3122 function start address before setting a resume breakpoint.
3123
c8d37639
PA
31242013-09-18 Pedro Alves <palves@redhat.com>
3125
3126 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3127 minus_one_ptid instead of looking at the ptid's tid field and
3128 comparing that to -1.
3129
71926e28
AB
31302013-09-18 Andrew Burgess <aburgess@broadcom.com>
3131
3132 * main.h (get_gdb_program_name): Remove extra whitespace.
3133
c88a1531
AB
31342013-09-18 Andrew Burgess <aburgess@broadcom.com>
3135
3136 * main.h (get_gdb_program_name): Add declaration.
3137 * main.c (get_gdb_program_name): Add definition.
3138
4390d890
DE
31392013-09-17 Doug Evans <dje@google.com>
3140
3141 * dwarf2read.c: Move definitions of complaint functions to after
3142 forward declarations of local functions.
3143
49fa26b0
PA
31442013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3145 Pedro Alves <palves@redhat.com>
3146
3147 PR gdb/11568
3148 * breakpoint.c (remove_threaded_breakpoints): New function.
3149 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3150 as thread_exit observer.
3151
08d72866
PA
31522013-09-17 Pedro Alves <palves@redhat.com>
3153
3154 PR gdb/15911
3155 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3156 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3157 * corelow.c (core_open):
3158 * frame.h (print_stack_frame, print_frame_info): New
3159 'set_current_sal' parameter.
3160 * infcmd.c (finish_command, kill_command): Adjust call to
3161 print_stack_frame.
3162 * inferior.c (inferior_command): Likewise.
3163 * infrun.c (normal_stop): Likewise.
3164 * linux-fork.c (linux_fork_context): Likewise.
3165 * record-full.c (record_full_goto_entry, record_full_restore):
3166 Likewise.
3167 * remote-mips.c (common_open): Likewise.
3168 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3169 Use it.
3170 (print_frame_info): New 'set_current_sal' parameter. Set the last
3171 displayed sal depending on the new paremeter instead of looking at
3172 print_what.
3173 (backtrace_command_1, select_and_print_frame, frame_command)
3174 (current_frame_command, up_command, down_command): Adjust call to
3175 print_stack_frame.
3176 * thread.c (print_thread_info, restore_selected_frame)
3177 (do_captured_thread_select): Adjust call to print_stack_frame.
3178 * tracepoint.c (tfind_1): Likewise.
3179 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3180 (mi_cmd_stack_info_frame): Likewise.
3181 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3182 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3183
6bc305f5
SDJ
31842013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3185
3186 * value.c (isvoid_internal_fn): Replace "parameter" with
3187 "argument".
3188
0a7cfe2c
SS
31892013-09-16 Stan Shebs <stan@codesourcery.com>
3190
3191 * README: Update references to writing code for GDB.
3192 * configure.ac (build_warnings): Remove obsolete comment.
3193 * configure: Regenerate.
3194 * gdbarch.sh: Remove references to gdbint.texinfo.
3195 * gdbarch.h: Regenerate.
3196 * gdbtypes.c (objfile_type): Remove comments referencing internals
3197 manual and D10V.
3198
a280dbd1
SDJ
31992013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3200
3201 * NEWS: Mention new convenience function $_isvoid.
3202 * value.c (isvoid_internal_fn): New function.
3203 (_initialize_values): Add new convenience function $_isvoid.
3204
04a83fee
PM
32052013-09-16 Pierre Muller <muller@sourceware.org>
3206
3207 * arm-linux-tdep.c: Add "elf/common.h" header.
3208 Remove AT_HWCAP macro definintion as it is provided in
3209 added include file.
3210 * s390-tdep.c: Remove system header <elf.h>
3211 Add "elf/common.h" header for AT_HWCAP definition.
3212 (s390_core_read_description): Use correct CORE_ADDR
3213 for hwcap local variable used as third parameter
3214 of function target_auxv_search.
3215
88505fac
PM
32162013-09-14 Pierre Muller <muller@sourceware.org>
3217 Tom Tromey <tromey@redhat.com>
3218 Pedro Alves <palves@redhat.com>
3219
3220 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3221 mode if operating system doesn't know O_CLOEXEC.
3222
d3846e71
JK
32232013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3224
3225 Code cleanup.
3226 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3227 inner block.
3228
4ac33720
UW
32292013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3230
3231 * NEWS: Mention TDB support.
3232 * features/s390-tdb.xml: New file.
3233 * features/s390-te-linux64.xml: New file.
3234 * features/s390x-te-linux64.xml: New file.
3235 * features/Makefile (WHICH): Add new tdescs above.
3236 (s390-te-linux64-expedite): Set.
3237 (s390x-te-linux64-expedite): Set.
3238 * features/s390-te-linux64.c: New file (generated).
3239 * features/s390x-te-linux64.c: New file (generated).
3240 * regformats/s390-te-linux64.dat: New file (generated).
3241 * regformats/s390x-te-linux64.dat: New file (generated).
3242 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3243 (HWCAP_S390_TE): Likewise.
3244 (S390_TDB_DWORD0_REGNUM): Likewise.
3245 (S390_TDB_DWORD0_REGNUM): Likewise.
3246 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3247 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3248 (S390_TDB_ATIA_REGNUM): Likewise.
3249 (S390_TDB_R0_REGNUM): Likewise.
3250 (S390_TDB_R1_REGNUM): Likewise.
3251 (S390_TDB_R2_REGNUM): Likewise.
3252 (S390_TDB_R3_REGNUM): Likewise.
3253 (S390_TDB_R4_REGNUM): Likewise.
3254 (S390_TDB_R5_REGNUM): Likewise.
3255 (S390_TDB_R6_REGNUM): Likewise.
3256 (S390_TDB_R7_REGNUM): Likewise.
3257 (S390_TDB_R8_REGNUM): Likewise.
3258 (S390_TDB_R9_REGNUM): Likewise.
3259 (S390_TDB_R10_REGNUM): Likewise.
3260 (S390_TDB_R11_REGNUM): Likewise.
3261 (S390_TDB_R12_REGNUM): Likewise.
3262 (S390_TDB_R13_REGNUM): Likewise.
3263 (S390_TDB_R14_REGNUM): Likewise.
3264 (S390_TDB_R15_REGNUM): Likewise.
3265 (S390_NUM_REGS): Increase.
3266 (S390_IS_TDBREGSET_REGNUM): New macro.
3267 (s390_regmap_tdb): Declare.
3268 (s390_sizeof_tdbregset): Define.
3269 (tdesc_s390_te_linux64): Declare.
3270 (tdesc_s390x_te_linux64): Likewise.
3271 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3272 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3273 (s390_regmap_tdb): New regmap.
3274 (s390_supply_tdb_regset): New function.
3275 (s390_tdb_regset): New regset.
3276 (s390_linux64v2_regset_sections): Add TDB regset to list.
3277 (s390x_linux64v2_regset_sections): Likewise.
3278 (s390_regset_from_core_section): Recognize TDB core note section.
3279 (s390_core_read_description): If HWCAP indicates TE support,
3280 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3281 (s390_gdbarch_init): Handle TDB regset.
3282 (_initialize_s390_tdep): Initialize new tdescs.
3283 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3284 (have_regset_tdb): New variable.
3285 (s390_native_supply): Support register invalidation.
3286 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3287 (check_regset): Treat ENODATA as "regset exists".
3288 (s390_linux_fetch_inferior_registers): Add TDB.
3289 (s390_read_description): Check for TDB existence and select
3290 appropriate tdesc.
3291 * gdbserver/Makefile.in (clean): Add removal of new makefile
3292 targets.
3293 (s390-te-linux64.c): New makefile target.
3294 (s390x-te-linux64.c): Likewise.
3295 * gdbserver/configure.srv (srv_regobj): Append new objects
3296 s390-te-linux64.o and s390x-te-linux64.o.
3297 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3298 s390x-te-linux64.xml, and s390-tdb.xml.
3299 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3300 declaration.
3301 (tdesc_s390_te_linux64): Likewise.
3302 (init_registers_s390x_te_linux64): Likewise.
3303 (tdesc_s390x_te_linux64): Likewise.
3304 (s390_check_regset): Treat ENODATA as "regset exists".
3305 (s390_arch_setup): Add TDB regset support.
3306 (initialize_low_arch): Initialize registers for new tdescs.
3307
2ccd1468
UW
33082013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3309
3310 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3311 (S390_IS_FPREGSET_REGNUM): New macro.
3312 * s390-tdep.c (s390_dwarf_regmap): Make const.
3313 (regnum_is_gpr_full): New function for replacing repeated code.
3314 (s390_pseudo_register_name): Use it.
3315 (s390_pseudo_register_type): Likewise.
3316 (s390_pseudo_register_read): Likewise.
3317 (s390_pseudo_register_write): Likewise.
3318 (s390_unwind_pseudo_register): Likewise.
3319 (s390_regmap_gregset): New format for regmap.
3320 (s390x_regmap_gregset): Likewise.
3321 (s390_regmap_fpregset): Likewise.
3322 (s390_regmap_upper): Likewise.
3323 (s390_regmap_last_break): Likewise.
3324 (s390_regmap_system_call): Likewise.
3325 (s390_supply_regset): Adjust to new regmap format.
3326 (s390_collect_regset): Likewise.
3327 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3328 (s390_native_collect): Likewise.
3329 (supply_gregset): Likewise.
3330 (fill_gregset): Likewise.
3331 (supply_fpregset): Likewise.
3332 (fill_fpregset): Likewise.
3333 (fetch_regset): Likewise.
3334 (store_regset): Likewise.
3335 (s390_linux_fetch_inferior_registers): Likewise.
3336 (s390_linux_fetch_inferior_registers): Likewise.
3337
1aa4cd77
AP
33382013-09-12 Andrew Pinski <apinski@cavium.com>
3339
3340 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3341
d91fab15
UW
33422013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3343
3344 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3345
5a5d8ead
AB
33462013-09-09 Andrew Burgess <aburgess@broadcom.com>
3347
3348 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3349
1385f66c
PA
33502013-09-06 Pedro Alves <palves@redhat.com>
3351
3352 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3353 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3354 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3355 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3356 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3357 gdb_stdlog.
3358
146ec4db
PA
33592013-09-06 Pedro Alves <palves@redhat.com>
3360
3361 * remote-sim.c (dump_mem): Constify buf parameter.
3362 gdbsim_xfer_inferior_memory): Rename to ...
3363 (gdbsim_xfer_memory): ... this. Adjust interface as
3364 target_xfer_partial helper.
3365 (gdbsim_xfer_partial): New function.
3366 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3367 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3368
fcde0081
PA
33692013-09-06 Pedro Alves <palves@redhat.com>
3370
3371 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3372 host_address_to_string, and send debug output to gdb_stdlog.
3373
749c8b38
RW
33742013-09-06 Ricard Wanderlof <ricardw@axis.com>
3375
3376 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3377 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3378 gdb_target_obs for cris target.
3379 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3380 (cris_gdbarch_init): Move calls to
3381 set_gdbarch_fetch_tls_load_module_address and
3382 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3383 Add call to gdbarch_init_osabi.
3384 * cris-linux-tdep.c: New file.
3385 * cris-tdep.h: New file.
3386
43df09d9
AB
33872013-09-06 Andrew Burgess <aburgess@broadcom.com>
3388
3389 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3390 to deprecated_init_ui_hook.
3391
4d09c5b4
AB
33922013-09-06 Andrew Burgess <aburgess@broadcom.com>
3393
3394 * cli/cli-interp.c (_initialize_cli_interp): Add a
3395 command_loop_proc to interp_procs.
3396 * event-top.c (cli_command_loop): Change signature to match
3397 interp_command_loop_ftype.
3398 * event-top.h (cli_command_loop): Same.
3399 * interps.c (interp_new): Require every interpreter to have a
3400 command_loop_proc.
3401 (current_interp_command_loop): Just call the command_loop_proc on
3402 the current interpreter.
3403 * tui/tui-interp.c (_initialize_tui_interp): Add a
3404 command_loop_proc to interp_procs.
3405
8eb3d7b6
RW
34062013-09-06 Ricard Wanderlof <ricardw@axis.com>
3407
3408 * cris-tdep.c (cris_gdbarch_init): Add call to
3409 get_gdbarch_fetch_tls_load_module_address.
3410
18b3c2f5
RW
34112013-09-06 Ricard Wanderlof <ricardw@axis.com>
3412
3413 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3414 (cris_elf_gregset_t): Rename from elf_gregset_t.
3415 (crisv32_elf_gregset_t): Adjust.
3416 (cris_supply_gregset, fetch_core_registers): Adjust.
3417
dc8636ef
RW
34182013-09-06 Ricard Wanderlof <ricardw@axis.com>
3419
3420 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3421
257e6d53
AB
34222013-09-05 Andrew Burgess <aburgess@broadcom.com>
3423
1581d8a7 3424 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3425 references in comments.
1581d8a7 3426 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3427 deprecated_command_loop_hook.
3428 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3429 setup.
1581d8a7 3430 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3431
7c33b57c
PA
34322013-09-05 Pedro Alves <palves@redhat.com>
3433
3434 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3435 local is now int instead of ULONGEST. Print it with %d
3436 instead of paddress.
3437
9f8edbd5
TG
34382013-09-05 Tristan Gingold <gingold@adacore.com>
3439
3440 * MAINTAINERS: Remove avr maintainership.
3441
d5b495b4
PA
34422013-09-05 Pedro Alves <palves@redhat.com>
3443
3444 * findvar.c (value_of_register): Rework in terms of
3445 value_of_register_lazy.
3446
40b91786
MB
34472013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3448
3449 * symfile.c (add_symbol_file_command): Remove trailing
3450 whitespaces and blank line after comment.
3451
6eed1678
PA
34522013-09-05 Pedro Alves <palves@redhat.com>
3453
3454 * tui/tui-regs.c (tui_register_format): Don't look at the
3455 register's name here. Return string representing register
3456 value instead of storing it in the data element.
3457 (tui_get_register): Compare register string representations
3458 instead of register value states and contents.
3459
8eb6bda2
PA
34602013-09-05 Pedro Alves <palves@redhat.com>
3461
3462 PR tui/15933
3463 * tui/tui-regs.c (tui_show_registers): Show registers of the
3464 selected frame, not the current frame.
3465
48b1f08c
RW
34662013-09-05 Ricard Wanderlof <ricardw@axis.com>
3467
3468 * MAINTAINERS (Write After Approval): Add myself to the list.
3469
89e63ee4
DE
34702013-09-04 Doug Evans <dje@google.com>
3471
3472 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3473 (queue_and_load_dwo_tu): New function.
3474 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3475 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3476 Make dependent_cu optional.
3477 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3478 and an older .gdb_index is in use, queue and load all its TUs too.
3479
492c0ab7
JK
34802013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3481
3482 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3483 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3484 variable search_flags.
3485 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3486 (OPF_RETURN_REALPATH): ... here.
3487 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3488 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3489 call. Twice.
3490 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3491 openp call.
3492 * solib.c (solib_find): Likewise. Four times.
3493 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3494 in the function comment and for the realpath_fptr variable.
3495 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3496 (find_and_open_source): Likewise. Twice.
3497 * symfile.c (symfile_bfd_open): Likewise, also twice.
3498
23a44de8
DE
34992013-09-04 Doug Evans <dje@google.com>
3500
3501 * progspace.c (save_current_space_and_thread): Remove unnecessary
3502 call to save_current_inferior.
3503
47061676
AB
35042013-09-04 Andrew Burgess <aburgess@broadcom.com>
3505
3506 * sh64-tdep.c (sh64_do_register): Return after printing message
3507 about unavailable register contents.
3508
41dc8db8
MB
35092013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3510 Pedro Alves <palves@redhat.com>
3511
3512 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3513 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3514 options and collapse into single conditional branch.
41dc8db8 3515
07107ca6
LM
35162013-09-03 Luis Machado <lgustavo@codesourcery.com>
3517
a7ea61cf 3518 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3519 detach_fork.
3520 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3521 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3522 * inferior.h (detach_fork): Remove.
3523 * infrun.c (detach_fork): Adjust comment and make it
3524 static.
3525 (follow_fork): Pass detach_fork parameter to
3526 target_follow_fork.
3527 * linux-nat.c (linux_child_follow_fork): New parameter
3528 detach_fork.
3529 * target.c (target_follow_fork): New parameter detach_fork.
3530 Pass detach_fork as parameter and print its value.
3531 * target.h (struct target_ops) <to_follow_fork>: New int
3532 parameter.
3533 (target_follow_fork): New parameter detach_fork.
3534
3bec2768
JB
35352013-09-03 Joel Brobecker <brobecker@adacore.com>
3536
3537 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3538 Replace sec->bfd by sec->the_bfd_section->owner.
3539
c01cbb3d
YQ
35402013-09-03 Yao Qi <yao@codesourcery.com>
3541
3542 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3543 from linux_has_shared_address_space.
3544 (linux_has_shared_address_space): Call linux_is_uclinux.
3545 * linux-tdep.h (linux_is_uclinux): Declare.
3546 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3547 linux_is_uclinux.
3548
7b00db47
YQ
35492013-09-03 Yao Qi <yao@codesourcery.com>
3550
3551 * config/djgpp/fnchange.lst: Remove entry of
3552 i386-interix-nat.c and i386-interix-tdep.c.
3553 * configure.ac: Remove '*-*-interix*'.
3554 * configure: Re-generated.
3555 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3556 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3557 obsolete comments.
3558 * osabi.c (gdb_osabi_names): Remove "Interix".
3559
0f9741f2
YQ
35602013-09-03 Yao Qi <yao@codesourcery.com>
3561
3562 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3563
1e038f67
MM
35642013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3565
3566 * record.h (record_print_flag) <record_print_src_line,
3567 record_print_insn_range>: Rename into ...
3568 (record_print_flag) <record_print_src_line,
3569 record_print_insn_range>: ... this. Update all users.
3570
9e52adf9
PM
35712013-09-02 Pierre Muller <muller@sourceware.org>
3572
3573 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3574 error code.
3575
a2388568
PM
35762013-09-02 Pierre Muller <muller@sourceware.org>
3577
3578 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3579 by use of plongest function.
3580
9058cc3a
TG
35812013-09-02 Tristan Gingold <gingold@adacore.com>
3582
3583 * NEWS: Add entry mentioning support for native Windows x64
3584 SEH data.
3585
3586 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3587 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3588 (struct amd64_windows_frame_cache): New struct.
3589 (amd64_windows_w2gdb_regnum): New global.
3590 (pc_in_range, amd64_windows_frame_decode_epilogue)
3591 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3592 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3593 (amd64_windows_frame_this_id): New functions.
3594 (amd64_windows_frame_unwind): New static global.
3595 (amd64_windows_skip_prologue): New function.
3596 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3597 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3598 with amd64_windows_skip_prologue.
3599
3161820b 36002013-08-30 Joel Brobecker <brobecker@adacore.com>
3601
3602 GDB 7.6.1 released.
3603
02457c76
PA
36042013-08-30 Pedro Alves <palves@redhat.com>
3605
3606 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3607 SRC_AND_LOC.
3608
e0162910
PA
36092013-08-30 Pedro Alves <palves@redhat.com>
3610
3611 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3612 warning text.
3613
6391ce51
PA
36142013-08-30 Pedro Alves <palves@redhat.com>
3615
3616 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3617 Adjust arguments to print_stack_frame.
3618
d1da0587
PA
36192013-08-30 Pedro Alves <palves@redhat.com>
3620
3621 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3622
adfd8245
PA
36232013-08-30 Pedro Alves <palves@redhat.com>
3624
3625 * frame.h (show_and_print_stack_frame): Delete declaration.
3626
96d9056e
PM
36272013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3628
3629 PR python/15461
96d9056e
PM
3630 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3631 (archpy_name): Check for valid architecture.
3632 (archpy_disassemble): Ditto.
3633
11cb8762
JB
36342013-08-29 Joel Brobecker <brobecker@adacore.com>
3635
3636 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3637 instead of "long long" in call to ptrace64.
3638
1af12a7d
AB
36392013-08-29 Andrew Burgess <aburgess@broadcom.com>
3640
3641 * mi/mi-interp.c (mi_command_loop): Change signature to match
3642 interp_command_loop_ftype.
3643 (mi1_command_loop): Remove.
3644 (mi2_command_loop): Remove.
3645 (mi3_command_loop): Remove.
3646 (mi_interpreter_resume): Remove setting of
3647 deprecated_command_loop_hook.
3648 (_initialize_mi_interp): Set mi_command_loop as the command loop
3649 callback.
3650
acc900c2
SA
36512013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3652
3653 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3654 value_type.
3655
548b762d
SA
36562013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3657
3658 * value.c (allocate_value_contents): Make static.
3659 * value.h (allocate_value_contents): Remove prototype.
3660
08039c9e
SA
36612013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3662
3663 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3664 of assembling value via allocate_value_lazy and attribute setter.
3665 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3666 assembling value via allocate_value_lazy and attribute setter.
3667 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3668 assembling value via allocate_value_lazy and attribute setter.
3669
314c7de9
SA
36702013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3671
3672 * value.c (value_from_contents_and_address): Replace allocate_value and
3673 memcpy with value_from_contents.
3674
8f28f522
PM
36752013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3676
3677 * python/py-framefilter.c (py_print_frame): Remove usage of
3678 PyString_AsString. Use python_string_to_host_string instead.
3679 Refactor function to work with a string as a new allocation
3680 instead of a pointer.
3681 (py_print_frame): Ditto.
3682 * python/lib/gdb/frames.py (return_list): Cain iterators together
3683 instead of adding them as a list.
3684 (_sort_list): Call return_list, and remove duplicate code.
3685 (execute_frame_filters): Convert iterator to a list with list().
3686 * python/lib/gdb/command/frame_filters.py
3687 (SetFrameFilterPriority._set_filter_priority): Convert priority
3688 attribute to an integer.
3689 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3690 wrapper function __next__.
3691 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3692 define as "str".
3693
8ee002df
PM
36942013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3695
3696 PR python/15752
8ee002df
PM
3697 * python/py-framefilter.c (apply_frame_filter): Check
3698 gdb_python_initialized. Exit if the Python frame-filter code
3699 cannot be initialized.
3700
af4c453a
PM
37012013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3702
3703 PR cli/15842
af4c453a
PM
3704 * top.c (print_gdb_version): Remove erroneous newline after help
3705 text.
3706
bf8793bb
YQ
37072013-08-29 Yao Qi <yao@codesourcery.com>
3708
3709 * varobj.c (install_dynamic_child): Remove trailing space.
3710 Add one blank line after variable declaration.
3711
1f0c4988
JK
37122013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3713
3714 PR gdb/15415
3715 * corefile.c (get_exec_file): Use exec_filename.
3716 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3717 * exec.c (exec_close): Free EXEC_FILENAME.
3718 (exec_file_attach): New variable canonical_pathname. Use
3719 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3720 EXEC_FILENAME.
3721 * exec.h (exec_filename): New.
3722 * inferior.c (print_inferior, inferior_command): Use
3723 PSPACE_EXEC_FILENAME.
3724 * mi/mi-main.c (print_one_inferior): Likewise.
3725 * progspace.c (clone_program_space, print_program_space): Likewise.
3726 * progspace.h (struct program_space): New field pspace_exec_filename.
3727 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3728 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3729
59ee9f94
WN
37302013-08-28 Will Newton <will.newton@linaro.org>
3731
3732 * common/linux-ptrace.c: Include stdint.h unconditionally.
3733
c8a2a419
JK
37342013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3735
3736 Code cleanup.
3737 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3738
ffa4ac95
YQ
37392013-08-28 Yao Qi <yao@codesourcery.com>
3740 Pedro Alves <palves@redhat.com>
3741
3742 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3743 instead of stdio_fileopen.
3744 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3745 .Call stderr_fileopen instead of stdio_fileopen.
3746 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3747 [__MINGW32__] (stderr_file_fputs): New function.
3748 (stderr_fileopen): New function.
3749 * ui-file.h (stderr_fileopen): Declare.
3750
69d751e3
DE
37512013-08-27 Doug Evans <dje@google.com>
3752
3753 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3754 (struct dwarf2_per_cu_data): Ditto.
3755 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3756 (process_imported_unit_die): Ditto.
3757 (follow_die_sig_1): Simplify assert.
3758
44f38867
PA
37592013-08-27 Pedro Alves <palves@redhat.com>
3760
3761 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3762 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3763 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3764 windows_xfer_memory directly.
3765 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3766
d28d46b5
PA
37672013-08-27 Pedro Alves <palves@redhat.com>
3768
3769 * darwin-nat.c (darwin_xfer_memory): Delete.
3770 (_initialize_darwin_inferior): Don't install a
3771 deprecated_xfer_memory method.
3772
6211c335
YQ
37732013-08-27 Pedro Alves <pedro@codesourcery.com>
3774 Yao Qi <yao@codesourcery.com>
3775
3776 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3777 (parse_no_frames_option): Remove.
3778 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3779 (mi_cmd_stack_list_args): Adjust.
3780 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3781 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3782 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3783 Caller update.
3784 (list_args_or_locals): New parameter 'skip_unavailable'.
3785 Handle it.
3786 * valprint.c (scalar_type_p): Rename to ...
3787 (val_print_scalar_type_p): ... this. Make extern.
3788 (val_print, value_check_printable): Adjust.
3789 * valprint.h (val_print_scalar_type_p): Declare.
3790 * value.c (value_entirely_unavailable): New function.
3791 * value.h (value_entirely_unavailable): Declare.
3792
3793 * NEWS: Mention the new option "--skip-unavailable" to MI
3794 commands '-stack-list-locals', '-stack-list-arguments' and
3795 '-stack-list-variables'.
3796
242f1fd7
YQ
37972013-08-27 Yao Qi <yao@codesourcery.com>
3798
3799 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3800 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3801 options.
3802 * mi/mi-getopt.c (mi_getopt): Remove.
3803 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3804 'error_on_unknown'.
3805 (mi_getopt): Call mi_getopt_1.
3806 (mi_getopt_silent): New.
3807 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3808
260b681b
DE
38092013-08-26 Doug Evans <dje@google.com>
3810
779bd270
DE
3811 PR symtab/15885
3812 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3813 .gdb_index is in use.
3814 * symfile.c (reread_symbols): Reset objfile->sf.
3815
52e260a3
DE
3816 * NEWS: Document "mt print objfiles" now takes optional regexp.
3817 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3818 regexp of objfiles to print.
3819 (_initialize_symmisc): Update doc string for "mt print objfiles".
3820
260b681b
DE
3821 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3822 missing debug info checks.
3823
a85c52f2
UW
38242013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3825 Ulrich Weigand <uweigand@de.ibm.com>
3826
3827 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3828 line tables generated by XLC compiled binaries.
3829
4f00dda3
DE
38302013-08-23 Doug Evans <dje@google.com>
3831
db68bbae
DE
3832 * symmisc.c (dump_symtab): Delete prototype.
3833 (dump_msymbols, dump_objfile): Ditto.
3834 (maintenance_info_symtabs): Mark as dont_repeat.
3835 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3836
4f00dda3
DE
3837 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3838 debugging printf to better location.
3839
23d577b0
PA
38402013-08-23 Pedro Alves <palves@redhat.com>
3841
3842 * target.c (target_read_live_memory): Change type of 'ret' local
3843 to LONGEST.
3844
00d84524
PA
38452013-08-23 Pedro Alves <palves@redhat.com>
3846
3847 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3848 (remote_read_bytes): Change return type to LONGEST, and adjust to
3849 return a target_xfer_error on error.
3850 (remote_xfer_memory): Delete.
3851 (remote_flash_write): Change type of 'ret' local to LONGEST.
3852 (remote_xfer_partial, remote_xfer_partial): Adjust.
3853 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3854
1ed3ee94
PM
38552013-08-23 Pierre Muller <muller@sourceware.org>
3856
3857 ARI fix: Push # directives to start of line.
3858 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3859
9eaabc75
MW
38602013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3861
3862 PR gdb/15501
3863 * breakpoint.c (enable_command, disable_command): Iterate over
3864 all specified breakpoint locations.
3865
101158d9
LM
38662013-08-22 Luis Machado <lgustavo@codesourcery.com>
3867
3868 * common/linux-ptrace.c (linux_fork_to_function): Push #
3869 directives to the start of the line.
3870 (linux_check_ptrace_features): Fix warning message to use
3871 the "_" markup.
3872
96d7229d
LM
38732013-08-22 Luis Machado <lgustavo@codesourcery.com>
3874
3875 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3876 nat/linux-waitpid.h.
3877 (linux-waitpid.o): New object file rule.
3878 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3879 (current_ptrace_options): Moved from linux-nat.c.
3880 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3881 parameters.
3882 (linux_fork_to_function): New function.
3883 (linux_grandchild_function): Likewise.
3884 (linux_child_function): Likewise.
3885 (linux_check_ptrace_features): New function, heavily
3886 based on linux-nat.c:linux_test_for_tracefork.
3887 (linux_enable_event_reporting): New function.
3888 (ptrace_supports_feature): Likewise.
3889 (linux_supports_tracefork): Likewise.
3890 (linux_supports_traceclone): Likewise.
3891 (linux_supports_tracevforkdone): Likewise.
3892 (linux_supports_tracesysgood): Likewise.
3893 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3894 gdbserver/linux-low.c.
3895 (linux_enable_event_reporting): New declaration.
3896 (linux_supports_tracefork): Likewise.
3897 (linux_supports_traceclone): Likewise.
3898 (linux_supports_tracevforkdone): Likewise.
3899 (linux_supports_tracesysgood): Likewise.
3900 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3901 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3902 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3903 * config/arm/linux.mh (NATDEPFILES): Likewise.
3904 * config/i386/linux.mh (NATDEPFILES): Likewise.
3905 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3906 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3907 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3908 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3909 * config/mips/linux.mh (NATDEPFILES): Likewise.
3910 * config/pa/linux.mh (NATDEPFILES): Likewise..
3911 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3912 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3913 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3914 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3915 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3916 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3917 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3918 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3919 ptrace's 4th argument's types.
3920 Check the type of PTRACE_TYPE_ARG4.
3921 * configure: Regenerate.
3922 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3923 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3924 (linux_supports_tracefork_flag): Remove.
3925 (linux_supports_tracesysgood_flag): Likewise.
3926 (linux_supports_tracevforkdone_flag): Likewise.
3927 (current_ptrace_options): Moved to
3928 common/linux-ptrace.c.
3929 (linux_tracefork_child): Remove.
3930 (my_waitpid): Remove.
3931 (linux_test_for_tracefork): Renamed to
3932 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3933 (linux_test_for_tracesysgood): Remove.
3934 (linux_supports_tracesysgood): Remove.
3935 (linux_supports_tracefork): Remove.
3936 (linux_supports_tracevforkdone): Remove.
3937 (linux_enable_tracesysgood): Remove.
3938 (linux_enable_event_reporting): Remove.
3939 (linux_init_ptrace): New function.
3940 (linux_child_post_attach): Call linux_init_ptrace.
3941 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3942 (linux_child_follow_fork): Call linux_supports_tracefork
3943 and linux_supports_tracevforkdone.
3944 (linux_child_insert_fork_catchpoint): Call
3945 linux_supports_tracefork.
3946 (linux_child_insert_vfork_catchpoint): Likewise.
3947 (linux_child_set_syscall_catchpoint): Call
3948 linux_supports_tracesysgood.
3949 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3950 * nat/linux-nat.h: New file.
3951 * nat/linux-waitpid.c: New file.
3952 * nat/linux-waitpid.h: New file.
3953
9f948660
SDJ
39542013-08-22 Samuel Bronson <naesten@gmail.com>
3955
3956 ARM Linux support for `catch syscall'.
3957 * syscalls/arm-linux.py: New file.
3958 * syscalls/arm-linux.xml: Likewise.
3959 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3960 (arm_linux_init_abi): Register the new function and syscall xml file.
3961 * data-directory/Makefile.in: Install the new syscall xml file.
3962 * NEWS: Brag about this.
3963
6be7b56e
PA
39642013-08-22 Pedro Alves <palves@redhat.com>
3965
3966 PR gdb/15871
3967 * corefile.c (target_xfer_memory_error): New function.
3968 (memory_error): Defer EIO to target_memory_error.
3969 (read_memory): Use target_xfer_partial, and handle finer-grained
3970 target xfer errors.
3971 * target.c (target_xfer_error_to_string): New function.
3972 (memory_xfer_partial_1): If memory is known to be
3973 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3974 (target_xfer_partial): Make extern.
3975 * target.h (enum target_xfer_error): New enum.
3976 (target_xfer_error_to_string): Declare function.
3977 (target_xfer_partial): Declare function.
3978 (struct target_ops) <xfer_partial>: Adjust describing comment.
3979
bcbec14e
AM
39802013-08-22 Alan Modra <amodra@gmail.com>
3981
3982 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3983 * configure.tgt: Likewise as targets.
3984
fc474241
DE
39852013-08-20 Doug Evans <dje@google.com>
3986
3987 * buildsym.c (subfile_stack): Move here from buildsym.h.
3988 (pending_macros): Ditto.
3989 (get_macro_table): New function.
3990 (buildsym_init): Initialize subfile_stack.
3991 * coffread.c (type_vector,type_vector_length): Moved here from
3992 buildsym.h.
3993 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3994 (coff_symtab_read): Use it.
3995 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3996 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3997 with call to get_macro_table.
3998 * stabsread.c (type_vector,type_vector_length): Moved here from
3999 buildsym.h.
4000 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4001 * buildsym.h (get_macro_table): Declare.
4002
bec71544
TT
40032013-08-20 Tom Tromey <tromey@redhat.com>
4004
4005 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4006 Update.
4007 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4008
0002ad5f
DE
40092013-08-20 Doug Evans <dje@google.com>
4010
4011 * blockframe.c: Remove #include "psymtab.h".
4012 * cp-support.c: Ditto.
4013 * source.c: Ditto.
4014 * stack.c: Ditto.
4015
df302446
TT
40162013-08-20 Tom Tromey <tromey@redhat.com>
4017
4018 PR python/15816:
4019 * exceptions.h (return_mask): Now an enum.
4020 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4021 enum constants.
4022
df6d5441
TT
40232013-08-20 Tom Tromey <tromey@redhat.com>
4024
4025 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4026 get_objfile_arch.
4027 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4028 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4029 * jit.c (jit_object_close_impl): Update.
4030 * jv-lang.c (get_dynamics_objfile): Update.
4031 * linespec.c (add_minsym): Use get_dynamics_objfile.
4032 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4033 (allocate_objfile): Don't initialize 'gdbarch' field.
4034 (get_objfile_arch): Update.
4035 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4036 moved from...
4037 (struct objfile) <gdbarch>: ... here. Remove.
4038 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4039 get_objfile_arch.
4040 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4041
f5aee5ee
AM
40422013-08-20 Alan Modra <amodra@gmail.com>
4043
4044 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4045 for IBM long double nan and inf.
4046 (floatformat_is_negative, floatformat_classify,
4047 floatformat_mantissa): Similarly.
4048 (floatformat_ieee_single, floatformat_ieee_double,
4049 floatformat_ieee_quad, floatformat_arm_ext,
4050 floatformat_ia64_spill): Delete unused vars.
4051 (_initialize_doublest): Delete unused function.
4052 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4053 little-endian variants of floatformat_ibm_long_double.
4054
33b60d58 40552013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4056
33b60d58
LM
4057 * Makefile.in (SFILES): Remove common/target-common.c and
4058 add target/waitstatus.c.
4059 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4060 target/resume.h, target/wait.h and target/waitstatus.h.
4061 (COMMON_OBS): Remove target-common.o and add
4062 waitstatus.o.
4063 (target-common.o): Remove.
4064 (waitstatus.o): New target object file.
4065 * common/target-common.c: Move contents to
4066 target/waitstatus.c and remove.
4067 * common/target-common.h: Move contents to other files and
4068 remove.
4069 (enum resume_kind: Move to target/resume.h.
4070 (TARGET_WNOHANG): Move to target/wait.h.
4071 (enum target_waitkind): Move to target/waitstatus.h.
4072 (struct target_waitstatus): Likewise.
4073 * target.h: Do not include target-common.h and
4074 include target/resume.h, target/wait.h and
4075 target/waitstatus.h.
4076 * target/resume.h: New file.
4077 * target/wait.h: New file.
4078 * target/waitstatus.h: New file.
4079 * target/waitstatus.c: New file.
4080
12696c10
PA
40812013-08-19 Pedro Alves <palves@redhat.com>
4082
4083 * linux-nat.c (linux_test_for_tracefork)
4084 (linux_test_for_tracesysgood, linux_child_follow_fork)
4085 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4086 (linux_nat_wait_1): Extend comment.
4087 (linux_async_pipe): Add comment.
4088
ba89f962
KB
40892013-08-15 Kevin Buettner <kevinb@redhat.com>
4090
4091 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4092 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4093 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4094 Update to account for fact that PC is now a pseudo-register.
4095 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4096 cases for RL78_PC_REGNUM.
4097
35ab155d
MB
40982013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4099
4100 PR cli/15841
4101 * top.c (quit_force): Skip writing history file
4102 if input is not from terminal.
4103
0d031856
TT
41042013-08-14 Tom Tromey <tromey@redhat.com>
4105
4106 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4107 resultthreadlist>: New fields.
4108 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4109 (remote_get_threadlist, remote_threadlist_iterator): Use
4110 new fields. Remove static variables.
4111
ee154bee
TT
41122013-08-14 Tom Tromey <tromey@redhat.com>
4113
4114 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4115 remote_watch_data_address>: New fields.
4116 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4117 (process_stop_reply, remote_wait_as)
4118 (remote_check_watch_resources, remote_stopped_data_address): Update.
4119
88b496c3
TT
41202013-08-14 Tom Tromey <tromey@redhat.com>
4121
4122 * remote.c (struct remote_state) <async_client_callback,
4123 async_client_context>: New fields.
4124 (async_client_callback, async_client_context): Remove.
4125 (remote_async_serial_handler, remote_async): Update.
4126
2f65bcb7
TT
41272013-08-14 Tom Tromey <tromey@redhat.com>
4128
4129 * remote.c (sizeof_pkt): Remove.
4130 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4131
b80fafe3
TT
41322013-08-14 Tom Tromey <tromey@redhat.com>
4133
4134 * remote.c (struct remote_state) <use_threadinfo_query,
4135 use_threadextra_query>: New fields.
4136 (remote_threads_info, remote_threads_extra_info)
4137 (remote_open_1): Update.
4138
8e88304f
TT
41392013-08-14 Tom Tromey <tromey@redhat.com>
4140
4141 * remote.c (struct remote_state) <finished_object,
4142 finished_annex, finished_offset>: New fields.
4143 (remote_read_qxfer): Use remote_state fields; remove static
4144 variables.
4145
280ceea3
TT
41462013-08-14 Tom Tromey <tromey@redhat.com>
4147
4148 * remote.c (struct remote_state) <last_sent_step>:
4149 New field.
4150 (last_sent_step): Remove.
4151 (remote_resume, remote_wait_as): Update.
4152
b73be471
TT
41532013-08-14 Tom Tromey <tromey@redhat.com>
4154
4155 * remote.c (struct remote_state) <last_sent_signal>:
4156 New field.
4157 (last_sent_signal): Remove.
4158 (new_remote_state, remote_resume, remote_wait_as): Update.
4159
5e4a05c4
TT
41602013-08-14 Tom Tromey <tromey@redhat.com>
4161
4162 * remote.c (struct remote_state) <last_program_signals_packet>:
4163 New field.
4164 (last_program_signals_packet): Remove.
4165 (remote_program_signals, remote_open_1): Update.
4166
747dc59d
TT
41672013-08-14 Tom Tromey <tromey@redhat.com>
4168
4169 * remote.c (struct remote_state) <last_pass_packet>:
4170 New field.
4171 (last_pass_packet): Remove.
4172 (remote_pass_signals, remote_open_1): Update.
4173
262e1174
TT
41742013-08-14 Tom Tromey <tromey@redhat.com>
4175
4176 * remote.c (struct remote_state) <remote_traceframe_number>:
4177 New field.
4178 (remote_traceframe_number): Remove.
4179 (new_remote_state, remote_open_1, set_remote_traceframe)
4180 (remote_trace_find): Update.
4181
47f8a51d
TT
41822013-08-14 Tom Tromey <tromey@redhat.com>
4183
4184 * remote.c (struct remote_state) <general_thread, continue_thread>:
4185 New fields.
4186 (general_thread, continue_thread): Remove.
4187 (record_currthread, set_thread, set_general_process)
4188 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4189 (extended_remote_mourn_1): Update.
4190
5d93a237
TT
41912013-08-14 Tom Tromey <tromey@redhat.com>
4192
4193 * remote.c (struct remote_state) <remote_desc>: New field.
4194 (remote_desc): Remove.
4195 (remote_threads_info, remote_threads_extra_info, remote_close)
4196 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4197 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4198 (remote_hostio_send_command, remote_file_put, remote_file_get)
4199 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4200 (remote_async, remote_new_objfile, set_range_stepping): Update.
4201
cf792862
TT
42022013-08-14 Tom Tromey <tromey@redhat.com>
4203
4204 * remote.c (remote_state): Now a pointer.
4205 (get_remote_state_raw): Update.
4206 (new_remote_state): New function.
4207 (_initialize_remote): Use new_remote_state.
4208
dc473cfb
TT
42092013-08-14 Tom Tromey <tromey@redhat.com>
4210
4211 * remote.c (remote_protocol_features): Now const.
4212
85ec6ce7
TT
42132013-08-14 Tom Tromey <tromey@redhat.com>
4214
4215 * remote.c (crc32_table, crc32): Remove.
4216 (remote_verify_memory): Use xcrc32.
4217
73033f12
SDJ
42182013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4219
4220 * value.h (create_internalvar_type_lazy): Adjust prototype
4221 declaration.
4222
5c30d39a
AB
42232013-08-13 Andrew Burgess <aburgess@broadcom.com>
4224
4225 * common/format.c (parse_format_string): Don't allow '#' flag for
4226 pointer arguments in format string.
4227
1a66331e
PM
42282013-08-13 Pierre Muller <muller@sourceware.org>
4229
fde605f3 4230 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4231 if rl_get_screen_size did not return useful values.
4232
b4013987
AA
42332013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4234
4235 PR breakpoints/15117
4236 * linespec.c (linespec_parse_basic): Check for convenience
4237 variable or history value while parsing.
4238
959b6a66
SDJ
42392013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4240
4241 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4242 AVR.
4243 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4244 different signals between the generic Linux kernel implementation
4245 and AVR's.
4246 (avr_linux_gdb_signal_from_target): Delete.
4247 (avr_linux_gdb_signal_to_target): Delete.
4248 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4249
24a55014
DE
42502013-08-09 Doug Evans <dje@google.com>
4251
4252 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4253 entries.
4254
eb14d406
SDJ
42552013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4256
4257 * linux-tdep.c: Define enum with generic signal numbers.
4258 (linux_gdb_signal_from_target): New function.
4259 (linux_gdb_signal_to_target): Likewise.
4260 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4261 methods to the functions above.
4262 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4263 (linux_gdb_signal_to_target): Likewise.
4264 * alpha-linux-tdep.c: Define new enum with signals different
4265 from generic Linux kernel.
4266 (alpha_linux_gdb_signal_from_target): New function.
4267 (alpha_linux_gdb_signal_to_target): Likewise.
4268 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4269 with the functions mentioned above.
4270 * avr-tdep.c: Define enum with differences between Linux kernel
4271 and AVR signals.
4272 (avr_linux_gdb_signal_from_target): New function.
4273 (avr_linux_gdb_signal_to_target): Likewise.
4274 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4275 the functions mentioned above.
4276 * sparc-linux-tdep.c: Define enum with differences between SPARC
4277 and generic Linux kernel signal numbers.
4278 (sparc32_linux_gdb_signal_from_target): New function.
4279 (sparc32_linux_gdb_signal_to_target): Likewise.
4280 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4281 to the functions defined above.
4282 * xtensa-linux-tdep.c: Define enum with differences between
4283 Xtensa and Linux kernel generic signals.
4284 (xtensa_linux_gdb_signal_from_target): New function.
4285 (xtensa_linux_gdb_signal_to_target): Likewise.
4286 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4287 to the functions defined above.
4288 * mips-linux-tdep.c: Define enum with differences between
4289 signals in MIPS and Linux kernel generic ones.
4290 (mips_gdb_signal_to_target): New function.
4291 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4292 only different signals from the Linux kernel generic.
4293 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4294 the functions defined above.
4295 * mips-linux-tdep.h (enum mips_signals): Remove.
4296
156d08c8
PA
42972013-08-09 Pedro Alves <palves@redhat.com>
4298
4299 * avr-tdep.c (XMALLOC): Delete macro.
4300 * cli/cli-dump.c (XMALLOC): Delete macro.
4301
db229724
PA
43022013-08-09 Pedro Alves <palves@redhat.com>
4303
4304 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4305 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4306 (fopen_with_cleanup, add_dump_command): Make static.
4307 * cli/cli-dump.h: Delete file.
4308 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4309 cli/cli-dump.h.
4310
3f12a589
PA
43112013-08-09 Pedro Alves <palves@redhat.com>
4312
4313 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4314 error message.
4315
c718be47
PA
43162013-08-09 Pedro Alves <palves@redhat.com>
4317
156d08c8 4318 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4319 error message.
4320
1e351ed1
PA
43212013-08-09 Pedro Alves <palves@redhat.com>
4322
4323 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4324 (gcore_command): Use tilde_expand here, and when showing the
4325 filename to the user, show the expanded version.
4326
1ed8d800
YQ
43272013-08-09 Yao Qi <yao@codesourcery.com>
4328
4329 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4330 'entryval' is set.
4331
47ecca85
PA
43322013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4333
4334 * gcore.c (create_gcore_bfd): Use tilde_expand.
4335
82a0a75f
YQ
43362013-08-08 Yao Qi <yao@codesourcery.com>
4337
4338 * frame.h (read_frame_local): Declare.
4339 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4340 read_frame_local.
4341 * stack.c (read_frame_local): New.
4342
5c4aa40b
YQ
43432013-08-08 Yao Qi <yao@codesourcery.com>
4344
4345 * mi/mi-cmd-stack.c: Update comments to function
4346 list_args_or_locals.
4347
b93601f3
TT
43482013-08-07 Tom Tromey <tromey@redhat.com>
4349
4350 PR symtab/15028:
4351 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4352 (process_psymtab_comp_unit_reader): Use it.
4353 (process_psymtab_comp_unit): Update. Add "pretend_language"
4354 argument.
4355 (dwarf2_build_psymtabs_hard): Update.
4356 (scan_partial_symbols): Pass CU's language to
4357 process_psymtab_comp_unit.
4358
fa760f46
TT
43592013-08-07 Tom Tromey <tromey@redhat.com>
4360
4361 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4362 (dwarf2_gdb_index_functions): Update.
4363 * psymtab.c (find_symbol_file_from_partial): Remove.
4364 (psym_functions): Update.
4365 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4366 Remove.
4367
bf6d8a91
TT
43682013-08-07 Tom Tromey <tromey@redhat.com>
4369
4370 * symfile.c (set_initial_language): Look up "main" symbol
4371 and use its language.
4372 * symtab.c (find_main_filename): Remove.
4373 * symtab.h (find_main_filename): Remove.
4374
f9125b6c
TT
43752013-08-07 Tom Tromey <tromey@redhat.com>
4376
4377 * dwarf2read.c (recursively_compute_inclusions): Add
4378 "immediate_parent" argument. Set symtab's "user" field
4379 if not set.
4380 (compute_symtab_includes): Update.
4381
fdbb204b
TT
43822013-08-07 Tom Tromey <tromey@redhat.com>
4383
4384 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4385 when adding label symbols.
4386
49de1690
UW
43872013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4388 Ulrich Weigand <uweigand@de.ibm.com>
4389
4390 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4391 * configure.host (powerpc64-*-aix*): Likewise.
4392
b08ee99f
UW
43932013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4394 Ulrich Weigand <uweigand@de.ibm.com>
4395
4396 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4397 is defined.
4398 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4399 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4400 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4401 * configure.ac: Check for ptrace64.
4402 * configure, config.in: Regenerate.
4403
fecf803e
UW
44042013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4405 Ulrich Weigand <uweigand@de.ibm.com>
4406
4407 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4408 Call ptrace64 instead of ptrace if defined.
4409 Add macro addr_ptr to take care of ptrace address argument.
4410 (pdc_read_regs): Likewise.
4411 (pdc_write_regs): Likewise.
4412 (aix_thread_resume): Likewise.
4413 (fetch_regs_kernel_thread): Likewise.
4414 (store_regs_kernel_thread): Likewise.
4415
3bb5e4a8
AB
44162013-08-07 Anton Blanchard <anton@samba.org>
4417
4418 * MAINTAINERS: Add myself to Write After Approval.
4419
12070676
TT
44202013-08-05 Tom Tromey <tromey@redhat.com>
4421
4422 * aix-thread.c (_initialize_aix_thread): Use
4423 complete_target_initialization.
4424 * bsd-uthread.c (_initialize_bsd_uthread): Use
4425 complete_target_initialization.
4426 * dec-thread.c (_initialize_dec_thread): Use
4427 complete_target_initialization.
4428 * ravenscar-thread.c (_initialize_ravenscar): Use
4429 complete_target_initialization.
4430 * sol-thread.c (_initialize_sol_thread): Use
4431 complete_target_initialization.
4432 * spu-multiarch.c (_initialize_spu_multiarch): Use
4433 complete_target_initialization.
4434
7c7b6655
TT
44352013-08-05 Tom Tromey <tromey@redhat.com>
4436
4437 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4438 * ada-lang.c (ada_lookup_simple_minsym): Return
4439 bound_minimal_symbol.
4440 * ada-lang.h (ada_lookup_simple_minsym): Update.
4441 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4442 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4443 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4444 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4445 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4446 * minsyms.c (msymbol_objfile): Remove.
4447 (lookup_minimal_symbol_internal): New function, from
4448 lookup_minimal_symbol.
4449 (lookup_minimal_symbol): Rewrite using
4450 lookup_minimal_symbol_internal.
4451 (lookup_bound_minimal_symbol): New function.
4452 * minsyms.h (msymbol_objfile): Remove.
4453 (lookup_bound_minimal_symbol): Declare.
4454 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4455 * parse.c (write_exp_msymbol): Change parameter to a
4456 bound_minimal_symbol.
4457 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4458 * parser-defs.h (write_exp_msymbol): Update.
4459 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4460 * symfile.c (simple_read_overlay_table): Use
4461 lookup_bound_minimal_symbol.
4462 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4463 (search_symbols): Likewise.
4464 (print_msymbol_info): Take a bound_minimal_symbol argument.
4465 (symtab_symbol_info, rbreak_command): Update.
4466 * symtab.h (struct symbol_search) <msymbol>: Change type
4467 to bound_minimal_symbol.
4468 * valops.c (find_function_in_inferior): Use
4469 lookup_bound_minimal_symbol.
4470 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4471
934b9bac
JK
44722013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4473
4474 Code cleanup.
4475 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4476 to ...
4477 (async_cleanup_sigint_signal_handler): ... this.
4478 (initialize_sigint_signal_handler): Remove declaration.
4479 (handle_remote_sigint): Rename the declaration to ...
4480 (async_handle_remote_sigint): ... this.
4481 (handle_remote_sigint_twice): Rename the declaration to ...
4482 (async_handle_remote_sigint_twice): ... this.
4483 (async_remote_interrupt, async_remote_interrupt_twice)
4484 (remote_interrupt): Remove the declarations.
4485 (remote_interrupt_twice): Rename the declaration ...
4486 (sync_remote_interrupt_twice): ... this.
4487 (sigint_remote_twice_token): Rename the variable to ...
4488 (async_sigint_remote_twice_token): ... this.
4489 (sigint_remote_token): Rename the variable to ...
4490 (async_sigint_remote_token): ... this.
4491 (initialize_sigint_signal_handler): Rename the function to ...
4492 (async_initialize_sigint_signal_handler): ... this. Update the name
4493 inside.
4494 (handle_remote_sigint): Rename the function to ...
4495 (async_handle_remote_sigint): ... this. Update the names inside.
4496 (handle_remote_sigint_twice): Rename the function to ...
4497 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4498 (cleanup_sigint_signal_handler): Rename the function to ...
4499 (async_cleanup_sigint_signal_handler): ... this.
4500 (remote_interrupt): Rename the function to ...
4501 (sync_remote_interrupt): this. Update the names inside.
4502 (remote_interrupt_twice): Rename the function to ...
4503 (sync_remote_interrupt_twice): this. Update the names inside.
4504 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4505 (_initialize_remote): Update the names inside.
4506
3a1115a0
TT
45072013-08-02 Tom Tromey <tromey@redhat.com>
4508
4509 PR symtab/15719:
4510 * breakpoint.c (update_watchpoint, watchpoint_check)
4511 (watch_command_1): Update.
4512 * eval.c (fetch_subexp_value): Add "preserve_errors"
4513 parameter.
4514 * ppc-linux-nat.c (check_condition): Update.
4515 * value.h (fetch_subexp_value): Update.
4516
58b19776
AB
45172013-08-02 Andrew Burgess <aburgess@broadcom.com>
4518
4519 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4520 add_file_handler.
4521
ec94af83
DE
45222013-08-01 Doug Evans <dje@google.com>
4523
7ee85ab1
DE
4524 PR symtab/15691
4525 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4526 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4527 Add assert of sig_entry->dwo_unit == NULL.
4528 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4529 had already been read.
4530 (read_signatured_type): Set per_cu.tu_read.
4531
b846d303
DE
4532 PR symtab/15695
4533 * valops.c (value_struct_elt): Add missing call to check_typedef.
4534 (value_find_oload_method_list): Ditto.
4535
b52109bc
DE
4536 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4537 effectively, struct symbol_search **.
4538 (make_cleanup_free_search_symbols): Change arg to struct
4539 symbol_search **. All callers updated.
4540 (compare_search_syms): Compare symtab file name and block as well.
4541 (search_symbols_equal): New function.
4542 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4543 New args new_head, new_tail. Result is now void. Remove dups after
4544 sorting the symbols.
4545 (search_symbols): Sort all found symbols once, after all have been
4546 found, and remove duplicates. Simplify cleanup tracking of result.
4547 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4548
ec94af83
DE
4549 Further workarounds for binutils/15021.
4550 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4551 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4552 Watch for duplicate symtabs coming from type units.
4553 (compute_symtab_includes): Update call to
4554 recursively_compute_inclusions. Build vector of included symtabs
4555 instead of per_cus.
4556 * symtab.h (symtab_ptr): New typedef.
4557 (DEF_VEC_P (symtab_ptr)): New VEC type.
4558 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4559 instead.
4560
b2ae85cf
AB
45612013-08-01 Andrew Burgess <aburgess@broadcom.com>
4562
4563 * cli/cli-script.c (script_from_file): Remove use of
4564 error_pre_print.
4565 * main.c (captured_main): Remove use of error_pre_print and
4566 quit_pre_print.
4567 * utils.c (error_pre_print, quit_pre_print): Remove.
4568 * utils.h (error_pre_print, quit_pre_print): Likewise.
4569
645eab03
YQ
45702013-08-01 Yao Qi <yao@codesourcery.com>
4571
4572 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4573 with mi_getopt.
4574 (mi_cmd_stack_list_variables): Likewise.
4575
16f92dd4
AB
45762013-07-31 Andrew Burgess <aburgess@broadcom.com>
4577
4578 * exceptions.c (deprecated_throw_reason): Remove.
4579 * exceptions.h (deprecated_throw_reason): Remove.
4580
13f78033
AB
45812013-07-31 Andrew Burgess <aburgess@broadcom.com>
4582
4583 * remote-mips.c (mips_error): Replace use of
4584 deprecated_throw_reason with throw_verror. Use the error message
4585 passed to mips_error as the error message for throw_verror.
4586
039e3c22
AB
45872013-07-31 Andrew Burgess <aburgess@broadcom.com>
4588
4589 * monitor.c (monitor_interrupt_query): Replace use of
4590 deprecated_throw_reason with quit.
4591 * nto-procfs.c (interrupt_query): Likewise.
4592 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4593 * remote-mips.c (mips_kill): Likewise.
4594 * remote.c (interrupt_query): Likewise.
4595
8150913b
AB
45962013-07-31 Andrew Burgess <aburgess@broadcom.com>
4597
4598 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4599 with call to fatal.
4600
de74e63a
YQ
46012013-07-31 Pedro Alves <pedro@codesourcery.com>
4602 Yao Qi <yao@codesourcery.com>
4603
4604 * tracepoint.c (trace_dump_command): Select the current frame.
4605
247f5c4f
DE
46062013-07-30 Doug Evans <dje@google.com>
4607
4608 * dwarf2read.c (process_queue): Add type signature to debug output.
4609
11b4b7cc
AB
46102013-07-30 Andrew Burgess <aburgess@broadcom.com>
4611
4612 * value.c (value_fetch_lazy): Mark optimized out values as such
4613 rather than raising an error.
4614
b0c54aa5
AB
46152013-07-30 Andrew Burgess <aburgess@broadcom.com>
4616
4617 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4618 before checking which bits of the parent, not the child, value are
4619 valid.
4620
97c85fc6
MB
46212013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4622
4623 PR gdb/15715
4624 * top.c: Include "filenames.h".
4625 (set_history_filename): New function.
4626 (init_main): Install it as set hook of the "set history filename"
4627 command.
4628
ff39bb5e
SA
46292013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4630
4631 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4632 attribute parameter.
4633 (dwarf2_const_value_data): Constify struct attribute parameter.
4634 (dwarf2_const_value): Constify struct attribute parameter.
4635 (dwarf2_const_value_attr): Constify struct attribute parameter.
4636 (lookup_die_type): Constify struct attribute parameter.
4637 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4638 (follow_die_ref_or_sig): Constify struct attribute parameter.
4639 (follow_die_ref): Constify struct attribute parameter.
4640 (follow_die_sig): Constify struct attribute parameter.
4641 (get_DW_AT_signature_type): Constify struct attribute parameter.
4642 (get_type_unit_group): Constify struct attribute parameter.
4643 (fill_in_loclist_baton): Constify struct attribute parameter.
4644 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4645 (type_unit_group): Constify struct attribute parameter.
4646
6e5a29e1
SA
46472013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4648
4649 * dwarf2read.c (attr_form_is_block): Make argument const.
4650 (attr_form_is_section_offset): Make argument const.
4651 (attr_form_is_constant): Make argument const.
4652 (attr_form_is_ref): Make argument const.
4653
7771576e
SA
46542013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4655
4656 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4657 All uses updated.
4658 (attr_form_is_ref): Moved below attr_form_is_constant.
4659
a94e8645
DE
46602013-07-29 Doug Evans <dje@google.com>
4661
bb5291d0
DE
4662 * main.c (captured_command_loop): Tweak comment.
4663
b5419e49
DE
4664 * target.c (target_async_permitted_1): Fix comment.
4665
b2d23133
DE
4666 * symtab.c (iterate_over_some_symtabs): Add comment.
4667
a94e8645
DE
4668 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4669
7a60ad40
YQ
46702013-07-27 Yao Qi <yao@codesourcery.com>
4671
4672 * NEWS: Mention that GDBserver now supports hardware
4673 watchpoints on the MIPS GNU/Linux target.
4674
aaee2056
YQ
46752013-07-27 Yao Qi <yao@codesourcery.com>
4676
4677 * Makefile.in (HFILES_NO_SRCDIR): Add
4678 common/mips-linux-watch.h.
4679 (mips-linux-watch.o): New rule.
4680 * common/mips-linux-watch.c: New.
4681 * common/mips-linux-watch.h: New.
4682 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4683 * mips-linux-nat.c: Include mips-linux-watch.h.
4684 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4685 to common/mips-linux-watch.h.
4686 (MAX_DEBUG_REGISTER): Likewise.
4687 (enum pt_watch_style): Likewise.
4688 (struct mips32_watch_regs): Likewise.
4689 (struct mips64_watch_regs): Likewise.
4690 (struct pt_watch_regs): Likewise.
4691 (struct mips_watchpoint): Likewise.
4692 (mips_linux_watch_get_irw_mask): Move to
4693 common/mips-linux-watch.c.
4694 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4695 (mips_linux_watch_get_watchlo): Likewise.
4696 (mips_linux_watch_set_watchlo): Likewise.
4697 (mips_linux_watch_get_watchhi): Likewise.
4698 (mips_linux_watch_set_watchhi): Likewise.
4699 (mips_linux_read_watch_registers): Likewise.
4700 (mips_linux_watch_type_to_irw): Likewise.
4701 (mips_linux_stopped_data_address, fill_mask): Likewise.
4702 (mips_linux_watch_try_one_watch): Likewise.
4703 (mips_linux_watch_populate_regs): Likewise.
4704
b3436450
YQ
47052013-07-27 Yao Qi <yao@codesourcery.com>
4706
4707 * mips-linux-nat.c (get_irw_mask): Rename to ...
4708 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4709 'set' to 'n'. Update function comment. All callers changed.
4710 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4711 function comment. All callers changed.
4712 (get_num_valid): Rename to ...
4713 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4714 'set' to 'n'. Update function comment. All callers changed.
4715 (get_watchlo): Rename to ...
4716 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4717 'set' to 'n'. Update function comment. All callers changed.
4718 (set_watchlo): Rename to ...
4719 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4720 'set' to 'n'. Update function comment. All callers changed.
4721 (get_watchhi): Rename to ...
4722 (mips_linux_watch_get_watchhi): ... this. Update function
4723 comment. All callers changed.
4724 (set_watchhi): Rename to ...
4725 (mips_linux_watch_set_watchhi): ... this. Update function
4726 comment. All callers changed.
4727 (mips_linux_read_watch_registers): Update function comment.
4728 Add new parameters 'lwpid', 'watch_readback', and
4729 'watch_readback_valid'. Update.
4730 (type_to_irw): Rename to ...
4731 (mips_linux_watch_type_to_irw): ... this. Update function
4732 comment. All callers changed.
4733 (fill_mask): Update function comment.
4734 (try_one_watch): Rename to ...
4735 (mips_linux_watch_try_one_watch): ... this. Change the type
4736 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4737 (populate_regs_from_watches): Rename to ...
4738 (mips_linux_watch_populate_regs): ... this. Add parameter
4739 'current_watches'. All callers changed.
4740
9be14b81
YQ
47412013-07-27 Yao Qi <yao@codesourcery.com>
4742
4743 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4744 the code.
4745 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4746 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4747 (struct pt_watch_regs): Likewise.
4748 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4749 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4750 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4751 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4752 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4753
de6f69ad
YQ
47542013-07-27 Yao Qi <yao@codesourcery.com>
4755
4756 * breakpoint.h: Include break-common.h.
4757 (enum target_hw_bp_type): Move to ...
4758 * common/break-common.h: ... here. New.
4759
6f64ef53
PA
47602013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4761
4762 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4763 process group regardless of having tty on stdin.
4764
6107e809
DE
47652013-07-25 Doug Evans <dje@google.com>
4766
4767 * linux-fork.h (detach_fork): Delete.
4768
7fdc1521
TT
47692013-07-25 Tom Tromey <tromey@redhat.com>
4770
4771 PR remote/15256, PR remote/15266:
4772 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4773 * monitor.c (monitor_detach): Use unpush_target.
4774 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4775 * remote-mips.c (mips_detach): Use unpush_target. Don't
4776 call mips_close.
4777 * remote-sim.c (gdbsim_detach): Use unpush_target.
4778 * target.c (pop_target): Remove.
4779 (pop_all_targets_above): Don't call target_close.
4780 (target_close): Assert that the target is unpushed.
4781 * target.h (pop_target): Don't declare.
4782 * tracepoint.c (tfile_open): Use unpush_target.
4783
c22a2b88
TT
47842013-07-25 Tom Tromey <tromey@redhat.com>
4785
4786 * linux-thread-db.c (init_thread_db_ops): Call
4787 complete_target_initialization.
4788 (_initialize_thread_db): Don't call add_target.
4789 * target.c (complete_target_initialization): New function.
4790 (add_target_with_completer): Call it.
4791 * target.h (complete_target_initialization): Declare.
4792
cbb6aada
MK
47932013-07-25 Mark Kettenis <kettenis@gnu.org>
4794
4795 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4796 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4797 (HPPANBSD_SIZEOF_GREGS): New define.
4798 (hppaobsd_supply_gregset): Handle additional registers.
4799 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4800 we provide more registers now.
4801 (hppabsd_supply_gregset): Supply additional registers.
4802 (hppabsd_collect_gregset): Collect additional registers.
4803
17767988
MK
48042013-07-25 Mark Kettenis <kettenis@gnu.org>
4805
4806 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4807 (hppabsd_dwarf2_frame_init_reg): New function.
4808 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4809
fdc8aae8
AB
48102013-07-25 Andrew Burgess <aburgess@broadcom.com>
4811
4812 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4813 'z' format code. Remove error for optimized out values, standard
4814 code will handle these fine.
4815
6fbe845e
AB
48162013-07-25 Andrew Burgess <aburgess@broadcom.com>
4817
4818 * NEWS: Mention new 'z' formatter.
4819 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4820 (_initialize_printcmd): Mention 'z' formatter in help text of the
4821 'x' command.
4822
3373342d
MR
48232013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4824
4825 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4826 formatting.
4827
25f9533e
SDJ
48282013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4829
4830 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4831 interface can evaluate arguments. Fallback to the old mode if it
4832 cannot.
4833 (create_exception_master_breakpoint): Likewise.
4834 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4835 (struct sym_probe_fns elf_probe_fns): Export function above to the
4836 probe interface.
4837 * probe.c (can_evaluate_probe_arguments): New function.
4838 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4839 function pointer.
4840 (can_evaluate_probe_arguments): New function prototype.
4841 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4842 probe interface can evaluate arguments. Fallback to the old mode
4843 if it cannot.
4844 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4845 interface can evaluate arguments. Warning the user if it cannot.
4846 (stap_can_evaluate_probe_arguments): New function.
4847 (struct probe_ops stap_probe_ops): Export function above to the
4848 probe interface.
4849 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4850 New function pointer.
4851
3360c0bf
LM
48522013-07-24 Luis Machado <lgustavo@codesourcery.com>
4853
4854 * Makefile.in (SFILES): Add common/target-common.c.
4855 Add common/target-common.h to headers.
4856 (COMMON_OBS): Add target-common.o.
4857 (target-common.o): New target.
4858 * linux-nat.h (resume_kind): Move to common/target-common.h.
4859 * target.c (target_waitstatus_to_string): Move to
4860 common/target-common.c.
4861 * target.h: Include target-common.h.
4862 (target_waitkind): Move to common/target-common.h.
4863 (target_waitstatus): Likewise.
4864 (TARGET_WNOHANG): Likewise.
4865 * common/target-common.c: New file.
4866 * common/target-common.h: New file.
4867
6656a72d
DE
48682013-07-24 Doug Evans <dje@google.com>
4869
4870 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4871 a warning.
4872
6df81a63
YQ
48732013-07-23 Yao Qi <yao@codesourcery.com>
4874
4875 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4876 parameter 'gdbarch'.
4877 (i386_stack_tramp_frame_sniffer): Caller update.
4878 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4879 parameter 'gdbarch' and 'target'.
4880 (i386_linux_core_read_description): Caller update.
4881 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4882 Likewise.
4883 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4884 declaration.
4885
365156ad
TT
48862013-07-23 Tom Tromey <tromey@redhat.com>
4887
4888 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4889 2013-07-22.
4890
046ac79f
JK
48912013-07-22 Doug Evans <dje@google.com>
4892
4893 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4894 * exec.c (exec_close): Update call to remove_target_sections.
4895 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4896 * solib.c (update_solib_list): Ditto.
4897 (reload_shared_libraries_1): Ditto.
4898 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4899 * target.h (struct target_section): Rename key to owner.
4900 All uses updated.
046ac79f 4901
29b2cc46
TT
49022013-07-22 Tom Tromey <tromey@redhat.com>
4903
4904 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4905
d1160018
TT
49062013-07-22 Tom Tromey <tromey@redhat.com>
4907
4908 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4909 Simplify cleanup handling.
4910
2f324bf6
TT
49112013-07-22 Tom Tromey <tromey@redhat.com>
4912
4913 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4914 on all return paths.
4915
e23b9d6e
UW
49162013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4917
4918 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4919 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4920 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4921
1cf55f60
PM
49222013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4923
4924 * top.c (print_gdb_version): Add help, apropos description and
4925 url to online documentation.
4926
fa876972
HZ
49272013-07-19 Hui Zhu <hui@codesourcery.com>
4928
4929 PR gdb/15692
4930 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4931
1527aea8
YQ
49322013-07-19 Yao Qi <yao@codesourcery.com>
4933
4934 * target.c (update_current_target): Change the default action
4935 of 'to_traceframe_info' from tcomplain to return_zero.
4936 * target.h (struct target_ops) <to_traceframe_info>: Add more
4937 comments.
4938 * valops.c (read_value_memory): Call
4939 traceframe_available_memory unconditionally.
4940
886f230e
YQ
49412013-07-18 Yao Qi <yao@codesourcery.com>
4942
4943 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4944 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4945 symbol without prefix. If found, set its type to
4946 'mst_solib_trampoline'.
4947
16419bae
DE
49482013-07-17 Doug Evans <dje@google.com>
4949
e7045703
DE
4950 * NEWS: Mention "set print raw frame-arguments".
4951 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4952 * stack.c (print_raw_frame_arguments): New static global.
4953 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4954 (_initialize_stack): New command "set/show print raw frame-arguments".
4955 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4956 (set_print_raw, show_print_raw): New functions.
4957 (_initialize_valprint): New prefix command "set/show print raw".
4958 * valprint.h (value_print_options): Improve comments.
4959
453e48a5
DE
4960 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4961 of all *list variables.
4962
16419bae
DE
4963 * gdbcmd.h (togglelist): Delete.
4964 * cli/cli-cmds.c (togglelist): Delete.
4965 (init_cmd_lists): Update.
4966 * cli/cli-cmds.h (togglelist): Delete.
4967
626f2d1c
TT
49682013-07-17 Tom Tromey <tromey@redhat.com>
4969
4970 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4971 dwarf2_per_objfile.
4972
57e6060e
DE
49732013-07-16 Doug Evans <dje@google.com>
4974
4975 * nto-tdep.c (nto_relocate_section_addresses): Update,
4976 target_section.bfd deleted.
4977 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4978 * s390-tdep.c (s390_load): Ditto.
4979 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4980
5ea5559b
AB
49812013-07-16 Andrew Burgess <aburgess@broadcom.com>
4982
4983 * common/format.c (parse_format_string): Add checks for NULL
4984 character before calling strchr.
4985
2b2848e2
DE
49862013-07-16 Doug Evans <dje@google.com>
4987
2c571006
DE
4988 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4989 temp_pathname argument.
4990 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4991 when opening the file fails.
4992
2b2848e2
DE
4993 * target.h (struct target_section): Delete member bfd.
4994 All users updated to use the_bfd_section->owner instead.
4995 * exec.c (add_to_section_table): Assert bfd is expected value.
4996 Remove initialization of target_section.bfd.
4997 (remove_target_sections): Update.
4998 (section_table_available_memory): Update.
4999 (section_table_xfer_memory_partial): Update.
5000 (print_section_info): Update.
5001 (exec_set_section_address): Update.
5002 * record-full.c (record_full_core_xfer_partial): Update.
5003 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5004 * solib-target.c (solib_target_relocate_section_addresses): Update.
5005 * symfile.c (build_section_addr_info_from_section_table): Update.
5006 * target.c (memory_xfer_live_readonly_partial): Update.
5007 (memory_xfer_partial_1): Update.
5008
926bf92d
UW
50092013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5010
5011 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5012 now available for embedded (BookE) and server (BookS) processors,
5013 correct mentions of 'booke' and adjust comments accordingly in order to
5014 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5015 (have_ptrace_booke_interface): Rename function and variable
5016 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5017 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5018 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5019 'hwdebug_point_cmp'. Update all uses.
5020 (booke_find_thread_points_by_tid): Rename function
5021 'booke_find_thread_points_by_tid' to
5022 'hwdebug_find_thread_points_by_tid'. Update all uses.
5023 (booke_insert_point): Rename function 'booke_insert_point' to
5024 'hwdebug_insert_point'. Update all uses.
5025 (booke_remove_point): Rename function 'booke_remove_point' to
5026 'hwdebug_remove_point'. Update all uses.
5027
d929bc19
MR
50282013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5029
5030 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5031 numbers with enum values.
5032
054e8d9e
AA
50332013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5034
5035 PR threads/13217
5036 * thread.c (thread_apply_all_command): Check for valid threads
5037 and thread count.
5038 (thread_array_cleanup): New struct.
5039 (set_thread_refcount): New function.
5040
cf006359
AB
50412013-07-11 Andrew Burgess <aburgess@broadcom.com>
5042
5043 * infcmd.c (default_print_one_register_info): Reuse function
5044 print_hex_chars.
5045
94e36acc
TT
50462013-07-10 Tom Tromey <tromey@redhat.com>
5047
5048 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5049 (ada-exp.o): New target.
5050
915dd369
SDJ
50512013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5052
5053 * mt-tdep.c (mt_registers_info): Call
5054 get_no_prettyformat_print_options instead of
5055 get_raw_print_options (regression by last patch from Doug
5056 Evans).
5057
eca07816
JB
50582013-07-09 Pedro Alves <palves@redhat.com>
5059
5060 Checked in by Joel Brobecker <brobecker@adacore.com>.
5061 * ada-lang.c (coerce_unspec_val_to_type): Use
5062 value_optimized_out_const.
5063 * value.c (value_optimized_out_const): New function.
5064 * value.h (value_optimized_out_const): New declaration.
5065
2a998fc0
DE
50662013-07-09 Doug Evans <dje@google.com>
5067
5068 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5069 Enum values rename as well. All uses updated.
5070 * valprint.h (value_print_options): Rename member pretty to
5071 pretty format. Rename member prettyprint_arrays to
5072 prettyformat_arrays. Rename member prettyprint_structs to
5073 prettyformat_structs. All uses updated.
5074 (get_no_prettyformat_print_options): Renamed from
5075 get_raw_print_options.
5076 * valprint.c (get_no_prettyformat_print_options): Renamed from
5077 get_raw_print_options. All callers updated.
5078 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5079 All callers updated.
5080 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5081 All callers updated.
5082 (_initialize_valprint): Improve help text for "set print pretty" and
5083 "set print arrays".
5084
466c1fca
AB
50852013-07-09 Andrew Burgess <aburgess@broadcom.com>
5086
5087 * value.c (value_bits_valid): Revert previous change, and change
5088 by Pedro on 2013-07-04, due to regressions in
5089 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5090
ad0f0303
AB
50912013-07-08 Andrew Burgess <aburgess@broadcom.com>
5092 Pedro Alves <palves@redhat.com>
5093
5094 * value.c (value_bits_valid): If the value is not lval_computed
5095 or has no check validity handler then the answer is the
5096 optimized_out flag, otherwise defer to the handler.
5097
b187bec1
EZ
50982013-07-06 Eli Zaretskii <eliz@gnu.org>
5099
48d1d6f5
EZ
5100 * top.c (print_gdb_configuration): Explain in output of
5101 --configuration what does "relocatable" mean.
5102
b187bec1
EZ
5103 * main.c (print_gdb_help): Regroup options in the --help text.
5104 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5105 the relevant discussions.
5106
52d361e1
YQ
51072013-07-06 Yao Qi <yao@codesourcery.com>
5108
5109 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5110 Remove parameter 'lsal'.
5111 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5112 to inner block. Caller update.
5113 (base_breakpoint_create_breakpoints_sal): Update.
5114 (bkpt_create_breakpoints_sal): Likewise.
5115 (tracepoint_create_breakpoints_sal): Likewise.
5116 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5117 element 0 of vector 'canonical->sals'.
5118
e1ec1b42
LM
51192013-07-05 Luis Machado <lgustavo@codesourcery.com>
5120
5121 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5122 register number instead of the pseudo register one.
5123 (rs6000_dwarf2_reg_to_regnum): Likewise.
5124
7195e6f0
PA
51252013-07-04 Pedro Alves <palves@redhat.com>
5126
5127 * findvar.c (value_of_register): Use allocate_optimized_out_value
5128 if the register has been optimized out, instead of
5129 set_value_optimized_out.
5130 * frame-unwind.c (frame_unwind_got_optimized): Use
5131 allocate_optimized_out_value.
5132
58722cac
PA
51332013-07-04 Pedro Alves <palves@redhat.com>
5134
5135 * value.c (value_bits_valid): If the value is not lval_computed,
5136 or doesn't have a check_validity hook, assume the value is entirely
5137 valid.
5138
691a26f5
AB
51392013-07-04 Andrew Burgess <aburgess@broadcom.com>
5140
5141 * stack.c (read_frame_arg): No longer fetch lazy values.
5142 * value.c (value_optimized_out): If the value is not already
5143 marked optimized out, and is lazy then fetch it.
5144 (value_primitive_field): Move optimized out check to later in the
5145 function, after we have loaded any lazy values.
5146 (value_fetch_lazy): Use optimized out flag directly rather than
5147 calling optimized_out method.
5148
a58e2656
AB
51492013-07-04 Andrew Burgess <aburgess@broadcom.com>
5150
5151 * valops.c: Don't include "user-regs.h".
5152 (value_fetch_lazy): Moved to value.c.
5153 * value.c: Include "user-regs.h".
5154 (value_fetch_lazy): Moved from valops.c.
5155
bd885420
YQ
51562013-07-04 Yao Qi <yao@codesourcery.com>
5157
5158 Revert:
5159 2013-06-27 Yao Qi <yao@codesourcery.com>
5160
5161 * common/create-version.sh: Update comments. Handle the case
5162 that TARGET_ALIAS is empty.
5163
17ef446e
PA
51642013-07-03 Pedro Alves <palves@redhat.com>
5165
5166 * Makefile.in (config.status): Depend on development.sh.
5167 (aclocal_m4_deps): Add libmcheck.m4.
5168 * acinclude.m4: Include libmcheck.m4.
5169 * configure.ac: Source development.sh instead of setting
5170 'development' here. --enable-libmcheck/--disable-libmcheck code
5171 factored out to GDB_AC_LIBMCHECK. Run it.
5172 * development.sh: New file.
5173 * libmcheck.m4: New file.
5174 * configure: Regenerate.
5175
ac6dd50f
TT
51762013-07-02 Tom Tromey <tromey@redhat.com>
5177
5178 * contrib/ari/update-web-ari.sh: Update for version.in change.
5179
bd1df410
TT
51802013-07-02 Tom Tromey <tromey@redhat.com>
5181
5182 * common/ptid.h: Comment fixes.
5183
4db1a1dc
TT
51842013-07-01 Tom Tromey <tromey@redhat.com>
5185
5186 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5187 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5188 (dwarf2_read_index, create_all_comp_units): Update.
5189
dd9aa048
TT
51902013-07-01 Tom Tromey <tromey@redhat.com>
5191
5192 * configure.ac (build_warnings): Add -Wold-style-definition.
5193 * configure: Rebuild.
5194 * machoread.c (_initialize_machoread): Use "(void)".
5195 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5196 use "(void)".
5197
44d100c3
TT
51982013-07-01 Tom Tromey <tromey@redhat.com>
5199
5200 * configure.ac (build_warnings): Add -Wold-style-declaration.
5201 * configure: Rebuild.
5202 * dsrec.c (make_srec): Use "static const", not "const static".
5203 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5204 not "const static".
5205 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5206 Use "static const", not "const static".
5207 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5208 not "const static".
5209 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5210 not "const static".
5211 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5212 not "const static".
5213 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5214 not "const static".
5215 (v850_dbtrap_breakpoint_from_pc): Likewise.
5216 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5217 not "const static".
5218
2945b807
TT
52192013-07-01 Tom Tromey <tromey@redhat.com>
5220
5221 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5222 * configure: Rebuild.
5223
d8d2a3ee
PA
52242013-07-01 Pedro Alves <palves@redhat.com>
5225
5226 * defs.h: Include "pathmax.h".
5227 * utils.c: Don't include sys/param.h.
5228 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5229 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5230 instead of MAXPATHLEN.
5231 * solib-sunos.c: Don't include sys/param.h.
5232 * xcoffread.c: Don't include sys/param.h.
5233 * bsd-kvm.c: Don't include sys/param.h.
5234 * darwin-nat.c: Don't include sys/param.h.
5235 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5236 * darwin-nat-info.c: Don't include sys/param.h.
5237 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5238 MAXPATHLEN.
5239 * i386obsd-nat.c: Don't include sys/param.h.
5240 * inf-child.c: Don't include sys/param.h.
5241 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5242 * linux-fork.c: Don't include sys/param.h.
5243 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5244 * linux-nat.c: Don't include sys/param.h.
5245 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5246 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5247 * m68klinux-nat.c: Don't include sys/param.h.
5248 * nbsd-nat.c: Don't include sys/param.h.
5249 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5250 * ppc-linux-nat.c: Don't include sys/param.h.
5251 * rs6000-nat.c: Don't include sys/param.h.
5252 * spu-linux-nat.c. Don't include sys/param.h.
5253 * windows-nat.c: Don't include sys/param.h.
5254 * xtensa-linux-nat.c: Don't include sys/param.h.
5255 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5256
38ec2207
PA
52572013-07-01 Pedro Alves <palves@redhat.com>
5258
5259 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5260 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5261 * gnulib/aclocal.m4: Regenerate.
5262 * gnulib/config.in: Regenerate.
5263 * gnulib/configure: Regenerate.
5264 * gnulib/import/pathmax.h: New file.
5265 * gnulib/import/Makefile.am: Regenerate.
5266 * gnulib/import/Makefile.in: Regenerate.
5267 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5268 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5269 * gnulib/import/m4/pathmax.m4: New file.
5270
e655c1a2
PA
52712013-07-01 Pedro Alves <palves@redhat.com>
5272
5273 * configure.ac (GDBINIT): Define, depending on host.
5274 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5275 * top.c (PATH_MAX): Delete fallback definition.
5276 (GDBINIT_FILENAME): Delete.
5277 (gdbinit): Reimplement as const char array set to the GDBINIT
5278 string constant.
5279 * top.h (gdbinit): Make const.
5280 * configure, config.in: Regenerate.
5281
50dd9793
PA
52822013-07-01 Pedro Alves <palves@redhat.com>
5283
5284 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5285 * cli/cli-cmds.h (source_script): Likewise.
5286 * exceptions.c (catch_command_errors_const): New function.
5287 * exceptions.h (catch_command_errors_const): Declare.
5288 * main.c (get_init_files): Make parameters const, and adjust.
5289 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5290 'local_gdbinit' locals const. Adjust to use
5291 catch_command_errors_const.
5292 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5293 'local_gdbinit' locals const.
5294
bc7dea8d
PA
52952013-07-01 Pedro Alves <palves@redhat.com>
5296
5297 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5298 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5299 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5300 <unistd.h>.
5301
8839a007
PA
53022013-07-01 Pedro Alves <palves@redhat.com>
5303
5304 Import the "unistd" gnulib module.
5305 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5306 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5307 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5308 import/m4/unistd_h.m4.
5309 * gnulib/aclocal.m4: Renenerate.
5310 * gnulib/config.in: Renenerate.
5311 * gnulib/configure: Renenerate.
5312 * gnulib/import/Makefile.am: Renenerate.
5313 * gnulib/import/Makefile.in: Renenerate.
5314 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5315 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5316 * gnulib/import/m4/off_t.m4: New file.
5317 * gnulib/import/m4/ssize_t.m4: New file.
5318 * gnulib/import/m4/sys_types_h.m4: New file.
5319 * gnulib/import/m4/unistd_h.m4: New file.
5320 * gnulib/import/sys_types.in.h: New file.
5321 * gnulib/import/unistd.c: New file.
5322 * gnulib/import/unistd.in.h: New file.
5323
8c0da261
PA
53242013-07-01 Pedro Alves <palves@redhat.com>
5325
5326 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5327 defined instead of checking HAVE_UNISTD_H.
5328
3574124b
PA
53292013-07-01 Pedro Alves <palves@redhat.com>
5330
5331 Reimport gnulib from scratch.
5332 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5333 import/m4/onceonly.m4.
5334 * gnulib/aclocal.m4: Renegerate.
5335 * gnulib/config.in: Renegerate.
5336 * gnulib/configure: Renegerate.
5337 * gnulib/import/Makefile.in: Renegerate.
5338 * gnulib/import/extra/update-copyright: Renegerate.
5339 * gnulib/import/m4/onceonly.m4: Delete.
5340
702dc4fd
PA
53412013-07-01 Pedro Alves <palves@redhat.com>
5342
5343 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5344
47e1ce27
JK
53452013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5346
5347 Code cleanup.
5348 * remote.c (async_remote_interrupt_twice): Make it static.
5349 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5350
e82839d4
SDJ
53512013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5352
5353 * ia64-linux-tdep.c: Include <ctype.h>.
5354 (ia64_linux_stap_is_single_operand): New function.
5355 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5356
d6c2da54
TT
53572013-06-28 Tom Tromey <tromey@redhat.com>
5358
5359 * Makefile.in (version.c): Use version.in, not
5360 common/version.in.
5361 * common/create-version.sh: Likewise.
5362 * common/version.in: Move...
5363 * version.in: ...here.
5364
74da6f00
PA
53652013-06-28 Pedro Alves <palves@redhat.com>
5366
5367 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5368 here.
5369 * utils.h (pagination_enabled): Declare.
5370
d32dc48e
PA
53712013-06-28 Pedro Alves <palves@redhat.com>
5372
5373 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5374 Move higher up in file.
5375
0edd9e3b
TT
53762013-06-28 Tom Tromey <tromey@redhat.com>
5377
5378 * tracepoint.c (deprecated_readline_begin_hook)
5379 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5380 declare.
5381
4eb59108
PA
53822013-06-28 Pedro Alves <palves@redhat.com>
5383
5384 PR tui/14880
5385 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5386 checking if they're available.
5387 * value.c (value_available_contents_eq): Change comment.
5388 * value.h (value_available_contents_eq): Expand comment.
5389
97b17156
TT
53902013-06-27 Tom Tromey <tromey@redhat.com>
5391
5392 * target.c (find_run_target): Remove.
5393 * target.h (find_run_target): Remove.
5394
6a3bfc5c
TT
53952013-06-27 Tom Tromey <tromey@redhat.com>
5396
5397 * corelow.c (core_gdbarch): Now static.
5398
c9ef825d
TT
53992013-06-27 Tom Tromey <tromey@redhat.com>
5400
5401 * target.c (target_struct_index): Remove.
5402
e5823f1c
PA
54032013-06-27 Pedro Alves <palves@redhat.com>
5404
5405 * infrun.c: Remove comment describing the 'stepping over runtime
5406 loader dynamic symbol resolution code' mechanism; moved to
5407 gdbint.texinfo.
5408
97f8dd09
PA
54092013-06-27 Pedro Alves <palves@redhat.com>
5410
5411 * exceptions.c (catch_command_errors): Remove spurious space.
5412 * exceptions.h (catch_command_errors): Second parameter is "arg",
5413 not "command".
5414
02b1871e
YQ
54152013-06-27 Yao Qi <yao@codesourcery.com>
5416
5417 * common/create-version.sh: Update comments. Handle the case
5418 that TARGET_ALIAS is empty.
5419
bb1b1cf1
PA
54202013-06-26 Pedro Alves <palves@redhat.com>
5421
5422 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5423 comment.
5424
7b624e71
PA
54252013-06-26 Pedro Alves <palves@redhat.com>
5426
5427 * infrun.c: Update comments on stepping over runtime loader
5428 dynamic symbol resolution code.
5429
74e5a346
SDJ
54302013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5431
5432 * ax-gdb.h (union exp_element): Forward declare.
5433 * parser-defs.h: Include expression.h.
5434
a2fb2cee
MR
54352013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5436
5437 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5438
cdba14e0
DK
54392013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5440
5441 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5442
f30aa5af
DK
54432013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5444
5445 Fix trace-status to output proper start-time and stop-time.
5446 * tracepoint.c (trace_status_command): Fix type of printf arg to
5447 prevent improper type conversion.
5448 (trace_status_mi): Likewise.
5449
1aee363c
MR
54502013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5451
5452 * mips-tdep.c (mips_next_pc): Fix a typo.
5453
3356937a
MR
54542013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5455
5456 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5457
dc673c81
YQ
54582013-06-26 Pedro Alves <pedro@codesourcery.com>
5459 Yao Qi <yao@codesourcery.com>
5460
5461 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5462 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5463 * mi/mi-main.c (print_variable_or_computed): New function.
5464 (mi_cmd_trace_frame_collected): New function.
5465 * tracepoint.c (find_trace_state_variable_by_number): New.
5466 (struct traceframe_info): Move to tracepoint.h
5467 (struct collection_list): Likewise.
5468 (do_collect_symbol): Include locals and arguments in the
5469 collected variables list.
5470 (clear_collection_list): Clear wholly collected variables list
5471 and computed variables list.
5472 (append_exp): New function.
5473 (encode_actions_1): Include variables in the wholly
5474 collected variables list. Include memory ranges and
5475 full-fledged expressions in the computed expressions list.
5476 (encode_actions): Move some code to ...
5477 Return the cleanup chain.
5478 (encode_actions_rsp): ... here. New function.
5479 (get_traceframe_location, get_traceframe_info): Remove static.
5480 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5481 (struct collection_list): Moved from tracepoint.c. Add two
5482 new fields 'wholly_collected' and 'computed'.
5483 (find_trace_state_variable_by_number): Declare.
5484 (encode_actions): Adjust declaration.
5485 (encode_actions_rsp): Declare.
5486 (get_traceframe_info, get_traceframe_location): Declare.
5487
5488 * NEWS: Mention new MI command -trace-frame-collected.
5489
28a93511
YQ
54902013-06-26 Pedro Alves <pedro@codesourcery.com>
5491 Yao Qi <yao@codesourcery.com>
5492
5493 * ctf.c (ctf_traceframe_info): Push trace state variables
5494 present in the trace data into the traceframe info object.
5495 * breakpoint.c (DEF_VEC_I): Remove.
5496 * common/filestuff.c (DEF_VEC_I): Likewise.
5497 * dwarf2loc.c (DEF_VEC_I): Likewise.
5498 * mi/mi-main.c (DEF_VEC_I): Likewise.
5499 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5500 * features/traceframe-info.dtd: Add tvar element and its
5501 attributes.
5502 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5503 (build_traceframe_info): Push trace state variables present in
5504 the trace data into the traceframe info object.
5505 (traceframe_info_start_tvar): New function.
5506 (tvar_attributes): New.
5507 (traceframe_info_children): Add "tvar" element.
5508 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5509
5510 * NEWS: Mention the change in GDB and GDBserver.
5511
ddacd3c8
YQ
55122013-06-26 Pedro Alves <pedro@codesourcery.com>
5513 Yao Qi <yao@codesourcery.com>
5514
5515 * tracepoint.c (trace_dump_command): Move code to ...
5516 (get_traceframe_location): ... here. New.
5517
05796b35
YQ
55182013-06-26 Pedro Alves <pedro@codesourcery.com>
5519 Yao Qi <yao@codesourcery.com>
5520
5521 * tracepoint.c (trace_dump_command): GDB emits an error
5522 instead of a warning when a traceframe is not selected.
5523
cbfa3b61
YQ
55242013-06-26 Pedro Alves <pedro@codesourcery.com>
5525 Yao Qi <yao@codesourcery.com>
5526
5527 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5528 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5529 in collection_list.
5530 (do_clear_collection_list, init_collection_list): New.
5531 (encode_actions): Add local variables 'tracepoint_list' and
5532 'stepping_list'. Call init_collection_list and make cleanup
5533 which calls do_clear_collection_list. Don't call
5534 clear_collection_list.
5535 (_initialize_tracepoint): Delete references to
5536 'tracepoint_list' and 'stepping_list'.
5537
6e2048d3
TT
55382013-06-25 Tom Tromey <tromey@redhat.com>
5539
5540 * common/create-version.sh (date): Use "$", not "$$" in sed
5541 expression.
5542
42059f0e
KB
55432013-06-25 Kevin Buettner <kevinb@redhat.com>
5544
5545 * NEWS (New targets): Add entry for TI MSP430.
5546
a0743c90
YQ
55472013-06-25 Yao Qi <yao@codesourcery.com>
5548
5549 * remote.c (remote_start_remote): Move code to upload tsv
5550 earlier.
5551
9d6e6e84
HZ
55522013-06-25 Yao Qi <yao@codesourcery.com>
5553 Hui Zhu <hui@codesourcery.com>
5554 Pedro Alves <palves@redhat.com>
5555
5556 PR breakpoints/15075
5557 PR breakpoints/15434
5558 * breakpoint.c (bpstat_stop_status): Call
5559 b->ops->after_condition_true.
5560 (update_dprintf_command_list): Don't append "continue" command
5561 to the command list of dprintf breakpoint.
5562 (base_breakpoint_after_condition_true): New function.
5563 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5564 (dprintf_after_condition_true): New function.
5565 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5566 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5567
586cf749
KB
55682013-06-24 Kevin Buettner <kevinb@redhat.com>
5569
5570 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5571 (ALLDEPFILES): Add msp430-tdep.c.
5572 * configure.tgt (msp430*-*-elf): New target.
5573 * msp430-tdep.c: New file.
5574
1bbce132
MR
55752013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5576
5577 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5578 microMIPS synthetic symbols.
5579
3e5d3a5a
MR
55802013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5581
5582 * objfiles.h (pc_in_section): New prototype.
5583 (in_plt_section): Remove name argument, replace prototype with
5584 static inline function.
5585 * mips-tdep.h: Include "objfiles.h".
5586 (in_mips_stubs_section): New function.
5587 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5588 in_solib_call_trampoline member.
5589 (hppa_in_solib_call_trampoline): Remove name argument.
5590 * objfiles.c (pc_in_section): New function.
5591 (in_plt_section): Remove function.
5592 * mips-linux-tdep.c: Include "objfiles.h".
5593 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5594 name argument. Return 1 rather than the low 16-bit halfword of
5595 any instruction examined.
5596 (mips_linux_in_dynsym_resolve_code): Update
5597 mips_linux_in_dynsym_stub call accordingly.
5598 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5599 rather than an equivalent hand-coded sequence.
5600 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5601 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5602 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5603 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5604 in_opd_section.
5605 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5606 on call to tdep->in_solib_call_trampoline.
5607 (hppa_in_solib_call_trampoline): Remove name argument, update
5608 according to in_plt_section change.
5609 (hppa_skip_trampoline_code): Update according to in_plt_section
5610 change.
5611 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5612 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5613 Likewise.
5614 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5615 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5616 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5617 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5618 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5619 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5620 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5621 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5622 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5623 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5624 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5625 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5626 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5627
b9b26a16
JB
56282013-06-24 Joel Brobecker <brobecker@adacore.com>
5629
5630 * common/create-version.sh: Fix expansion of $host_alias
5631 and $target_alias in generation of HOST_NAME and TARGET_NAME
5632 (resp.).
5633
01208463
TT
56342013-06-24 Tom Tromey <tromey@redhat.com>
5635
5636 * common/create-version.sh: New file.
5637 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5638 create-version.sh.
5639 (HFILES_NO_SRCDIR): Use common/version.h.
5640 * version.in: Move to ...
5641 * common/version.in: ... here. Replace date with "DATE".
5642 * version.h: Move to ...
5643 * common/version.h: ... here.
5644
bb6b9a5e
JB
56452013-06-21 Joel Brobecker <brobecker@adacore.com>
5646
5647 * gdb/gnulib/Makefile.in: Update date in copyright header.
5648 * gdb/gnulib/configure.ac: Ditto.
5649 * gdb/gnulib/update-gnulib.sh: Ditto.
5650
c3b18ee7
JB
56512013-06-21 Joel Brobecker <brobecker@adacore.com>
5652
5653 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5654 "gdb/gnulib/import".
5655
85d3b769
WN
56562013-06-21 Will Newton <will.newton@linaro.org>
5657
5658 * doublest.c (ldfrexp): Remove function.
5659 (convert_doublest_to_floatformat): Call frexpl instead of
5660 ldfrexp.
5661
88b48903
WN
56622013-06-21 Will Newton <will.newton@linaro.org>
5663
5664 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5665 * gnulib/aclocal.m4: Regenerate.
5666 * gnulib/config.in: Regenerate.
5667 * gnulib/configure: Regenerate.
5668 * gnulib/import/Makefile.am: Update.
5669 * gnulib/import/Makefile.in: Update.
5670 * gnulib/import/m4/gnulib-cache.m4: Update.
5671 * gnulib/import/m4/gnulib-comp.m4: Update.
5672 * gnulib/import/float+.h: Import.
5673 * gnulib/import/float.c: Import.
5674 * gnulib/import/float.in.h: Import.
5675 * gnulib/import/fpucw.h: Import.
5676 * gnulib/import/frexp.c: Import.
5677 * gnulib/import/frexpl.c: Import.
5678 * gnulib/import/isnan.c: Import.
5679 * gnulib/import/isnand-nolibm.h: Import.
5680 * gnulib/import/isnand.c: Import.
5681 * gnulib/import/isnanl-nolibm.h: Import.
5682 * gnulib/import/isnanl.c: Import.
5683 * gnulib/import/itold.c: Import.
5684 * gnulib/import/m4/exponentd.m4: Import.
5685 * gnulib/import/m4/exponentl.m4: Import.
5686 * gnulib/import/m4/float_h.m4: Import.
5687 * gnulib/import/m4/fpieee.m4: Import.
5688 * gnulib/import/m4/frexp.m4: Import.
5689 * gnulib/import/m4/frexpl.m4: Import.
5690 * gnulib/import/m4/isnand.m4: Import.
5691 * gnulib/import/m4/isnanl.m4: Import.
5692 * gnulib/import/m4/math_h.m4: Import.
5693 * gnulib/import/math.c: Import.
5694 * gnulib/import/math.in.h: Import.
5695
4353c9e6
JK
56962013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5697
5698 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5699 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5700 signature_INTEL_edx comparisons.
5701
e3e06db3
DE
57022013-06-20 Doug Evans <dje@google.com>
5703
6ac97d4c
DE
5704 symtab/15652
5705 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5706 All callers updated.
5707 (open_dwp_file): If we can't find the dwp file, search the basename
5708 in debug-file-directory.
5709
93417882
DE
5710 * dwarf2read.c (struct dwp_file): Fix comment.
5711 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5712
e3e06db3
DE
5713 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5714 better.
5715
0878d0fa
YQ
57162013-06-20 Yao Qi <yao@codesourcery.com>
5717
5718 * breakpoint.c (create_breakpoint): Fix code indentation.
5719
023fa29b
YQ
57202013-06-20 Yao Qi <yao@codesourcery.com>
5721
5722 * breakpoint.c (create_breakpoints_sal_default): Remove
5723 parameter 'lsal'. Update declaration.
5724 (bkpt_create_breakpoints_sal): Caller update.
5725 (tracepoint_create_breakpoints_sal): Likewise.
5726
c898adb7
YQ
57272013-06-20 Pedro Alves <pedro@codesourcery.com>
5728 Yao Qi <yao@codesourcery.com>
5729
5730 * NEWS: Mention the new option '--skip-unavailable' of command
5731 -data-list-register-values.
5732 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5733 --skip-unavailable option. Adjust to use output_register.
5734 (output_register): Add new 'skip_unavailable' parameter.
5735 Handle it.
5736
4d157a3d
MF
57372013-06-19 Mike Frysinger <vapier@gentoo.org>
5738
5739 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5740 common/i386-gcc-cpuid.h.
5741 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5742 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5743 Copy the latest version from upstream gcc.
5744 * common/linux-btrace.c: Include i386-cpuid.h.
5745 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5746 call to i386_cpuid.
5747 (cpu_supports_btrace): Likewise.
5748 * go32-nat.c: Include i386-cpuid.h.
5749 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5750
1ce4db08
DE
57512013-06-19 Doug Evans <dje@google.com>
5752
5753 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5754 (get_section_index): Ditto.
5755
0e4777df
TT
57562013-06-19 Tom Tromey <tromey@redhat.com>
5757
5758 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5759 "dprintf" help.
5760
3190f0c6
DE
57612013-06-18 Doug Evans <dje@google.com>
5762
5763 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5764 before using it.
5765 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5766 Move test of cu_index closer to use. Print complaint if cu_index
5767 is bad.
5768
8b89a20a
JB
57692013-06-18 Joel Brobecker <brobecker@adacore.com>
5770
5771 * machoread.c (oso_vector): Delete this global.
5772 (macho_register_oso): Add new parameter "oso_vector_ptr".
5773 Use it instead of the "oso_vector" global.
5774 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5775 (macho_symfile_read): Use a local oso_vector, to be free'ed
5776 at the end of this function, in place of the old "oso_vector"
5777 global. Update various function calls accordingly. Use one
5778 single cleanup chain for the entire function.
5779
59b0c7c1
JB
57802013-06-18 Joel Brobecker <brobecker@adacore.com>
5781
937c708c 5782 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5783 DWARF2_PER_OBJFILE by uses of DATA instead.
5784
427cd150
TT
57852013-06-18 Tom Tromey <tromey@redhat.com>
5786
5787 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5788 argument.
5789 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5790 Special case signals other than GDB_SIGNAL_TRAP.
5791 (explains_signal_watchpoint): New function.
5792 (base_breakpoint_explains_signal): Add 'sig' argument.
5793 (initialize_breakpoint_ops): Set 'explains_signal' method for
5794 watchpoints.
5795 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5796 signal argument.
5797 (bpstat_explains_signal): Likewise.
5798 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5799
2d57700b
TT
58002013-06-18 Tom Tromey <tromey@redhat.com>
5801
5802 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5803
ac475191
TT
58042013-06-18 Tom Tromey <tromey@redhat.com>
5805
5806 * python/python.c (finish_python_initialization): Decref
5807 'pythondir' on failure path as well.
5808
5bd1ef56
TT
58092013-06-18 Tom Tromey <tromey@redhat.com>
5810
5811 PR symtab/15391:
5812 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5813 after taking bits_to_skip into account. Sign extend byte_offset.
5814 * utils.h (gdb_sign_extend): Declare.
5815 * utils.c (gdb_sign_extend): New function.
5816
92fac807
JK
58172013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5818
5819 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5820
2d503272
PM
58212013-06-17 Pierre Muller <muller@sourceware.org>
5822
5823 * corelow.c (core_open): Print GDB signal name instead of target
5824 signal number.
5825
6916fd98
MF
58262013-06-17 Mike Frysinger <vapier@gentoo.org>
5827
5828 * .gitignore: Add /gcore.
5829
9c02c129
DE
58302013-06-13 Doug Evans <dje@google.com>
5831
5832 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5833 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5834
d0548fa2
PM
58352013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5836
5837 * stack.c (backtrace_command_1): Fix indentation.
5838
22128028
JB
58392013-06-11 Joel Brobecker <brobecker@adacore.com>
5840
5841 * window-nat.c (thread_rec): Add missing empty line after
5842 local variable declaration.
5843
2ed3e009
JB
58442013-06-11 Joel Brobecker <brobecker@adacore.com>
5845
5846 * windows-nat.c (thread_rec): Revert format used to print
5847 error code returned by SuspendThread from %d back to %u.
5848
0c3d84be
JB
58492013-06-11 Joel Brobecker <brobecker@adacore.com>
5850
5851 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5852 ID in debug trace.
5853 (get_windows_debug_event): Likewise, for all debug traces.
5854
80e88e1a
JB
58552013-06-11 Joel Brobecker <brobecker@adacore.com>
5856
5857 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5858 warning message.
5859
1edebdbf
YQ
58602013-06-08 Pedro Alves <pedro@codesourcery.com>
5861 Yao Qi <yao@codesourcery.com>
5862
5863 * mi/mi-main.c (get_register): Remove declaration.
5864 (output_register): Declare.
5865 (mi_cmd_data_list_register_values): Remove local variable
5866 'tuple_cleanup'. Move some code into output_register.
5867 (get_register): Renamed to ...
5868 (output_register): ... this. Output the register's
5869 "number" ui_out tuple here.
5870
47d48711
PA
58712013-06-07 Pedro Alves <palves@redhat.com>
5872
5873 * darwin-nat.c: Fix formating in copyright header.
5874 * darwin-nat.h: Likewise.
5875 * gnu-nat.c: Likewise.
5876 * machoread.c: Likewise.
5877
3aee8918
PA
58782013-06-07 Pedro Alves <palves@redhat.com>
5879
5f2b57b5 5880 PR server/14823
3aee8918
PA
5881 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5882 static. Output a global target description pointer.
5883 (init_registers_${name}): Adjust to initialize a
5884 target description structure.
5885
fe8400b4
WN
58862013-06-07 Will Newton <will.newton@linaro.org>
5887
5888 * printcmd.c (build_address_symbolic): Call
5889 gdbarch_addr_bits_remove for text minimal symbols.
5890
20df6206
WN
58912013-06-07 Will Newton <will.newton@linaro.org>
5892
5893 * MAINTAINERS: Add myself to Write After Approval.
5894
aef525cb
YQ
58952013-06-07 Yao Qi <yao@codesourcery.com>
5896
5897 * tracepoint.c (start_tracing): Move code to ...
5898 (trace_reset_local_state): ... here. New.
5899 (disconnect_tracing): Don't call set_current_traceframe,
5900 set_tracepoint_num, and set_traceframe_context. Call
5901 trace_reset_local_state instead.
5902 (tfile_close): Call trace_reset_local_state.
5903 * ctf.c (ctf_close): Likewise.
5904 * remote.c (remote_close): Likewise.
5905 * tracepoint.h (trace_reset_local_state): Declare.
5906
d2415c6c
DE
59072013-06-06 Doug Evans <dje@google.com>
5908
5909 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5910 and fix header docs.
5911
69fc87c2
DE
59122013-06-05 Doug Evans <dje@google.com>
5913 Keith Seitz <keiths@redhat.com>
5914
5915 PR 15519
5916 * cp-namespace.c (find_symbol_in_baseclass): Call
5917 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5918 Check result of call to lookup_symbol_static.
5919 Call lookup_static_symbol_aux unconditionally.
5920 Call check_typedef on base types before accessing them.
5921 (cp_lookup_nested_symbol): Fix comment.
5922
a513d1e8
LM
59232013-06-05 Luis Machado <lgustavo@codesourcery.com>
5924
5925 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5926 minimal symbols pointing to function descriptors.
5927
351a6f02
TT
59282013-06-05 Tom Tromey <tromey@redhat.com>
5929
5930 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5931
5e1b953b 59322013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5933 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5934
5935 * remote.c (remote_wait_as): Restore signal handler before returning
5936 when GDB gets a notification.
5937
f9e14852
GB
59382013-06-04 Gary Benson <gbenson@redhat.com>
5939
8445cbf1 5940 PR 2328
f9e14852
GB
5941 * breakpoint.h (handle_solib_event): Moved function declaration
5942 to solib.h.
5943 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5944 (bpstat_stop_status): Pass new argument to handle_solib_event.
5945 * solib.h (update_solib_breakpoints): New function declaration.
5946 (handle_solib_event): Moved function declaration from
5947 breakpoint.h.
5948 * solib.c (update_solib_breakpoints): New function.
5949 (handle_solib_event): Moved function from breakpoint.c.
5950 Updated to call solib_ops->handle_event if not NULL.
5951 * solist.h (target_so_ops): New fields "update_breakpoints" and
5952 "handle_event".
5953 * infrun.c (set_stop_on_solib_events): New function.
5954 (_initialize_infrun): Use the above for "set
5955 stop-on-solib-events".
5956 (handle_inferior_event): Pass new argument to handle_solib_event.
5957 * solib-svr4.c (probe.h): New include.
5958 (svr4_free_library_list): New forward declaration.
5959 (probe_action): New enum.
5960 (probe_info): New struct.
5961 (probe_info): New static variable.
5962 (NUM_PROBES): New definition.
5963 (svr4_info): New fields "using_xfer", "probes_table" and
5964 "solib_list".
5965 (free_probes_table): New function.
5966 (free_solib_list): New function.
5967 (svr4_pspace_data_cleanup): Free probes table and solib list.
5968 (svr4_copy_library_list): New function.
5969 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5970 (svr4_read_so_list): New parameter "prev_lm".
5971 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5972 (svr4_current_sos): New function.
5973 (probe_and_action): New struct.
5974 (hash_probe_and_action): New function.
5975 (equal_probe_and_action): Likewise.
5976 (register_solib_event_probe): Likewise.
5977 (solib_event_probe_at): Likewise.
5978 (solib_event_probe_action): Likewise.
5979 (solist_update_full): Likewise.
5980 (solist_update_incremental): Likewise.
5981 (disable_probes_interface_cleanup): Likewise.
5982 (svr4_handle_solib_event): Likewise.
5983 (svr4_update_solib_event_breakpoint): Likewise.
5984 (svr4_update_solib_event_breakpoints): Likewise.
5985 (svr4_create_solib_event_breakpoints): Likewise.
5986 (enable_break): Free probes table before creating breakpoints.
5987 Use svr4_create_solib_event_breakpoints to create breakpoints.
5988 (svr4_solib_create_inferior_hook): Free the solib list.
5989 (_initialize_svr4_solib): Initialise
5990 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5991
ced63ec0
GB
59922013-06-04 Gary Benson <gbenson@redhat.com>
5993
5994 * target.h (target_ops): New field
5995 "to_augmented_libraries_svr4_read".
5996 (target_augmented_libraries_svr4_read): New macro.
5997 * target.c (update_current_target): Handle
5998 to_augmented_libraries_svr4_read.
5999 * remote.c (remote_state): New field
6000 "augmented_libraries_svr4_read".
6001 (remote_augmented_libraries_svr4_read_feature): New function.
6002 (remote_protocol_features): Add entry for
6003 "augmented-libraries-svr4-read".
6004 (remote_augmented_libraries_svr4_read): New function.
6005 (init_remote_ops): Initialize
6006 remote_ops.to_augmented_libraries_svr4_read.
6007
7f91dbec
GB
60082013-06-04 Gary Benson <gbenson@redhat.com>
6009
6010 * NEWS: Update.
6011
607ece04
GB
60122013-06-04 Gary Benson <gbenson@redhat.com>
6013
6014 * objfiles.h (inhibit_section_map_updates): New function
6015 declaration.
6016 (resume_section_map_updates): Likewise.
6017 (resume_section_map_updates_cleanup): Likewise.
6018 * objfiles.c (objfile_pspace_info): Removed field
6019 "objfiles_changed_p". New fields "new_objfiles_available",
6020 "section_map_dirty" and "inhibit_updates".
6021 (allocate_objfile): Set new_objfiles_available.
6022 (free_objfile): Set section_map_dirty.
6023 (objfile_relocate1): Likewise.
6024 (in_plt_section): Likewise.
6025 (find_pc_section): Update the conditions under which the
6026 section map will be updated.
6027 (inhibit_section_map_updates): New function.
6028 (resume_section_map_updates): Likewise.
6029 (resume_section_map_updates_cleanup): Likewise.
6030
9ee6a5ac
GB
60312013-06-04 Gary Benson <gbenson@redhat.com>
6032
6033 * probe.h (get_probe_argument_count): New declaration.
6034 (evaluate_probe_argument): Likewise.
6035 * probe.c (get_probe_argument_count): New function.
6036 (evaluate_probe_argument): Likewise.
6037 (probe_safe_evaluate_at_pc): Use the above new functions.
6038
845d4708
AM
60392013-06-04 Alan Modra <amodra@gmail.com>
6040
6041 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6042 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6043 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6044 target mem reads on optional insns.
6045 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6046 ppc_insns_match_pattern calls.
6047 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6048 Add match for power7 thread safety insns, and new order of
6049 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6050 invocation in comment, and update rest of comment.
6051 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6052 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6053 (ppc64_standard_linkage2_target): Update insn offsets.
6054 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6055 stubs first. Update calls.
6056
404e278f
YQ
60572013-06-04 Yao Qi <yao@codesourcery.com>
6058
6059 * solib.c (solib_find): Don't need dir separator if path has
6060 drive spec.
6061
f6aea118
JB
60622013-06-03 Joel Brobecker <brobecker@adacore.com>
6063
6064 Revert (indirectly causes a SIGSEGV):
6065 * machoread.c (macho_symfile_read): Assign first cleanup to
6066 'back_to'.
6067
87967e27
YQ
60682013-06-03 Yao Qi <yao@codesourcery.com>
6069
6070 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6071 mi-parse.c. Make them static.
6072 (mi_all_values): Likewise.
6073 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6074 mi_parse_print_values. Make it external.
6075 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6076 Remove the declarations.
6077 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6078 * mi/mi-parse.h (mi_parse_print_values): Declare.
6079 * mi/mi-cmd-stack.c: Include mi-parse.h.
6080 (parse_print_values): Remove
6081 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6082 of parse_print_values.
6083 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6084
3ca73e0c
YQ
60852013-05-31 Pedro Alves <pedro@codesourcery.com>
6086 Yao Qi <yao@codesourcery.com>
6087
6088 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6089 (encode_actions): Move code to ...
6090 (all_tracepoint_actions_and_cleanup): ... here. New.
6091 (trace_dump_command): Likewise.
6092
4e993a19
TT
60932013-05-30 Tom Tromey <tromey@redhat.com>
6094
6095 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6096
e3b76b4f
TT
60972013-05-30 Tom Tromey <tromey@redhat.com>
6098
6099 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6100 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6101 'old_chain' argument. Add 'parser_result' argument.
6102 (gdb_xml_create_parser_and_cleanup): Remove old version.
6103 (gdb_xml_parse_quick): Update.
6104 (xml_process_xincludes): Update.
6105 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6106 declare.
6107
db26349c
TT
61082013-05-30 Tom Tromey <tromey@redhat.com>
6109
6110 * probe.c (collect_probes): Check arguments for NULL before
6111 calling compile_rx_or_error.
6112 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6113 Remove NULL return.
6114
77f9e713
TT
61152013-05-30 Tom Tromey <tromey@redhat.com>
6116
6117 * infrun.c (adjust_pc_after_break): Introduce an outer null
6118 cleanup.
6119
45475de7
TT
61202013-05-30 Tom Tromey <tromey@redhat.com>
6121
6122 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6123
ac5007fd
TT
61242013-05-30 Tom Tromey <tromey@redhat.com>
6125
6126 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6127 for 'old_chain'. Do not check 'head' before processing
6128 cleanups.
6129
cd82eddc
TT
61302013-05-30 Tom Tromey <tromey@redhat.com>
6131
6132 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6133 "cleanup_tuple".
6134
57cee33a
TT
61352013-05-30 Tom Tromey <tromey@redhat.com>
6136
6137 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6138 inner scope. Unconditionally call do_cleanups.
6139
795d915c
TT
61402013-05-30 Tom Tromey <tromey@redhat.com>
6141
6142 * source.c (find_and_open_source): Call do_cleanups.
6143
1fc3cf4a
TT
61442013-05-30 Tom Tromey <tromey@redhat.com>
6145
6146 * linux-thread-db.c (thread_db_load_search): Unconditionally
6147 call do_cleanups.
6148
e35ac9bf
TT
61492013-05-30 Tom Tromey <tromey@redhat.com>
6150
6151 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6152 for 'cleanup'; instead use a later one.
6153
f3300387
TT
61542013-05-30 Tom Tromey <tromey@redhat.com>
6155
6156 * python/py-breakpoint.c (bppy_get_commands): Use
6157 explicit, unconditional return.
6158 * python/py-frame.c (frapy_read_var): Likewise.
6159 * python/python.c (gdbpy_decode_line): Likewise.
6160
c27e16e3
TT
61612013-05-30 Tom Tromey <tromey@redhat.com>
6162
6163 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6164 do_cleanups on all return paths.
6165
5ae85e44
TT
61662013-05-30 Tom Tromey <tromey@redhat.com>
6167
6168 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6169
73b8d9da
TT
61702013-05-30 Tom Tromey <tromey@redhat.com>
6171
6172 * stabsread.c (read_struct_type): Call do_cleanups along
6173 all return paths.
6174
7d266584
MR
61752013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6176
6177 * mips-linux-tdep.c: Adjust formatting throughout.
6178
0f900f54
TT
61792013-05-30 Tom Tromey <tromey@redhat.com>
6180
6181 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6182 along all return paths.
6183
a991ac28
TT
61842013-05-30 Tom Tromey <tromey@redhat.com>
6185
6186 * symfile.c (find_separate_debug_file): Call do_cleanups
6187 along all return paths.
6188
1abaf042
TT
61892013-05-30 Tom Tromey <tromey@redhat.com>
6190
6191 * symtab.c (search_symbols): Introduce a null cleanup for
6192 'retval_chain'.
6193
edefe1da
TT
61942013-05-30 Tom Tromey <tromey@redhat.com>
6195
6196 * python/py-value.c (valpy_binop): Call do_cleanups before
6197 exiting loop.
6198
54f72dcc
TT
61992013-05-30 Tom Tromey <tromey@redhat.com>
6200
6201 * python/py-prettyprint.c (print_children): Remove extra
6202 do_cleanups call.
6203
af1c6971
TT
62042013-05-30 Tom Tromey <tromey@redhat.com>
6205
6206 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6207 all return paths.
6208
b862ce75
TT
62092013-05-30 Tom Tromey <tromey@redhat.com>
6210
6211 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6212 along all return paths.
6213
e12fefc8
TT
62142013-05-30 Tom Tromey <tromey@redhat.com>
6215
6216 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6217 call do_cleanups.
6218
4867f990
TT
62192013-05-30 Tom Tromey <tromey@redhat.com>
6220
6221 * varobj.c (c_value_of_root): Call do_cleanups along all
6222 return paths.
6223
4fd2d6af
TT
62242013-05-30 Tom Tromey <tromey@redhat.com>
6225
6226 * tracepoint.c (trace_dump_command): Unconditionally call
6227 do_cleanups.
6228
752eb8b4
TT
62292013-05-30 Tom Tromey <tromey@redhat.com>
6230
6231 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6232 do_cleanups earlier.
6233
e42d0aa5
TT
62342013-05-30 Tom Tromey <tromey@redhat.com>
6235
6236 * machoread.c (macho_symfile_read): Assign first cleanup to
6237 'back_to'.
6238
4bbc010a
TT
62392013-05-30 Tom Tromey <tromey@redhat.com>
6240
6241 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6242
b9635925
TT
62432013-05-30 Tom Tromey <tromey@redhat.com>
6244
6245 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6246
25f43500
TT
62472013-05-30 Tom Tromey <tromey@redhat.com>
6248
6249 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6250 call discard_cleanups.
6251 (inf_ptrace_attach): Likewise.
6252
d6a2e54a
TT
62532013-05-30 Tom Tromey <tromey@redhat.com>
6254
6255 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6256 return paths.
6257 (mips_initialize): Likewise.
6258 (common_open): Call do_cleanups.
6259
48be7c1b
TT
62602013-05-30 Tom Tromey <tromey@redhat.com>
6261
6262 * utils.c (internal_vproblem): Call do_cleanups.
6263
e61727ab
TT
62642013-05-30 Tom Tromey <tromey@redhat.com>
6265
6266 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6267
b81b921f
TT
62682013-05-30 Tom Tromey <tromey@redhat.com>
6269
6270 * cli/cli-script.c (setup_user_args): Don't return after error.
6271
fe48dfb1
TT
62722013-05-30 Tom Tromey <tromey@redhat.com>
6273
6274 * somread.c (som_symtab_read): Call do_cleanups.
6275
27833de7
TT
62762013-05-30 Tom Tromey <tromey@redhat.com>
6277
6278 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6279
5b3fca71
TT
62802013-05-30 Tom Tromey <tromey@redhat.com>
6281
6282 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6283 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6284 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6285 * source.c (show_substitute_path_command): Call do_cleanups.
6286 (unset_substitute_path_command, set_substitute_path_command):
6287 Likewise.
6288 * symfile.c (load_command): Call do_cleanups.
6289
af83e3f8
TT
62902013-05-30 Tom Tromey <tromey@redhat.com>
6291
6292 * contrib/cleanup_check.py: New file.
6293 * contrib/gcc-with-excheck: Add option parsing.
6294
564eac42
JB
62952013-05-30 Joel Brobecker <brobecker@adacore.com>
6296
6297 * windows-nat.c (windows_delete_thread): Add missing space
6298 in cast expression.
6299
47902076
HAQ
63002013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6301
6302 * inferior.c (top level): Include tilde.h.
6303 (add_inferior_command): Call tilde_expand on the value of 'exec'
6304 argument.
6305
23da373a
YQ
63062013-05-30 Pedro Alves <pedro@codesourcery.com>
6307 Yao Qi <yao@codesourcery.com>
6308
6309 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6310 Caller update.
6311 (encode_actions): Likewise.
6312 * remote.c (remote_download_tracepoint): Caller update.
6313 * tracepoint.h (encode_actions): Update declaration.
6314
a6e6f791
PA
63152013-05-30 Pedro Alves <palves@redhat.com>
6316
6317 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6318 pointer.
6319
36d25514
YQ
63202013-05-30 Yao Qi <yao@codesourcery.com>
6321
6322 * remote.c (remote_check_symbols): Remove unused parameter
6323 'objfile'.
6324 Declaration update.
6325 (remote_start_remote, remote_new_objfile): Caller update.
6326
62a813cc
YQ
63272013-05-30 Yao Qi <yao@codesourcery.com>
6328
6329 * mi/mi-cmds.c (mi_cmds): Define MI command
6330 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6331 DEF_MI_CMD_CLI.
6332
28439a30
PA
63332013-05-29 Pedro Alves <palves@redhat.com>
6334
6335 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6336 (remote_insert_watchpoint, remote_remove_watchpoint)
6337 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6338 (remote_verify_memory, compare_sections_command)
6339 (remote_search_memory): Set the general process/thread on the
6340 remote side.
6341
6ac1c082
PA
63422013-05-29 Pedro Alves <palves@redhat.com>
6343
6344 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6345 (_initialize_aarch64_tdep): Don't call
6346 initialize_tdesc_aarch64_without_fpu.
6347 * features/Makefile (WHICH): Remove reference to
6348 aarch64-without-fpu.
6349 * features/aarch64-without-fpu.c: Delete file.
6350 * regformats/aarch64-without-fpu.dat: Delete file.
6351
a73e3634
YQ
63522013-05-28 Yao Qi <yao@codesourcery.com>
6353
6354 * tracepoint.c (stringify_collection_list): Remove parameter
6355 'string'.
6356 (encode_actions): Caller update. Remove local variables.
6357
c0ea94eb
YQ
63582013-05-24 Yao Qi <yao@codesourcery.com>
6359
6360 * tracepoint.c (TFILE_PID): Remove.
6361 (tfile_open): Don't add thread and inferior.
6362 (tfile_close): Don't set 'inferior_ptid'. Don't call
6363 exit_inferior_silent.
6364 (tfile_thread_alive): Remove.
6365 (init_tfile_ops): Don't set field 'to_thread_alive' of
6366 tfile_ops.
6367
20d7f211
DE
63682013-05-23 Doug Evans <dje@google.com>
6369
6370 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6371
8658d16d
PA
63722013-05-23 Pedro Alves <palves@redhat.com>
6373
6374 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6375 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6376 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6377 Only define if HAVE_SOCKETS is defined.
6378 * configure.ac: Check for sys/socket.h.
6379 * config.in, configure: Regenerate.
6380
21aa081e
PA
63812013-05-23 Pedro Alves <palves@redhat.com>
6382
6383 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6384 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6385 printing uint32_t variables.
6386
c2d6af84
PA
63872013-05-23 Pedro Alves <palves@redhat.com>
6388
6389 * NEWS: Mention GDBserver range stepping support.
6390
c1e36e3e
PA
63912013-05-23 Yao Qi <yao@codesourcery.com>
6392 Pedro Alves <palves@redhat.com>
6393
6394 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6395 field.
6396 * infcmd.c (step_once, until_next_command): Enable range stepping.
6397 * infrun.c (displaced_step_prepare): Disable range stepping.
6398 (resume): Disable range stepping if stepping over a breakpoint or
6399 we have software watchpoints. If range stepping is enabled,
6400 assert the thread is in the stepping range.
6401 (clear_proceed_status_thread): Clear may_range_step.
6402 (handle_inferior_event): Disable range stepping as soon as we know
6403 the thread that hit the event. Re-enable it whenever we're going
6404 to step with a step range.
6405 * remote.c (struct vCont_action_support) <r>: New field.
6406 (use_range_stepping): New global.
6407 (remote_vcont_probe): Handle 'r' action.
6408 (append_resumption): Append an 'r' action if the thread may range
6409 step.
6410 (show_range_stepping): New function.
6411 (set_range_stepping): New function.
6412 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6413 'set range-stepping' and 'show range-stepping' commands.
6414 * NEWS: Mention range stepping, the new vCont;r action, and the
6415 new "set/show range-stepping" commands.
6416
d458bd84
PA
64172013-05-23 Yao Qi <yao@codesourcery.com>
6418 Pedro Alves <palves@redhat.com>
6419
6420 * remote.c (struct vCont_action_support): New struct.
6421 (struct remote_state) <support_vCont_t>: Remove field.
6422 <vCont_actions_support>: New field.
6423 (remote_vcont_probe, remote_stop_ns): Update.
6424
ce4c476a
PA
64252013-05-23 Yao Qi <yao@codesourcery.com>
6426 Pedro Alves <palves@redhat.com>
6427
6428 * gdbthread.h (pc_in_thread_step_range): New declaration.
6429 * thread.c (pc_in_thread_step_range): New function.
6430 * infrun.c (handle_inferior_event): Use it.
6431
ce70887a
JB
64322013-05-23 Joel Brobecker <brobecker@adacore.com>
6433
6434 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6435 of sprintf.
6436
55b87a52
KS
64372013-05-22 Keith Seitz <keiths@redhat.com>
6438
6439 * ada-lang.c (is_known_support_routine): Add explicit free of
6440 'func_name' from find_frame_funname.
6441 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6442 for func_name from find_frame_funname.
6443 * python/py-frame.c (frapy_name): Add explicit free of
6444 'name' from find_frame_funname.
6445 * stack.c (find_frame_funname): Add comment explaining that
6446 funcp must be freed by the caller.
6447 Return copy of symbol names instead of pointers.
6448 (print_frame): Add a cleanup for 'funname' from
6449 find_frame_funname.
6450 * stack.h (find_frame_funname): Remove "const" from
6451 'funname' parameter.
6452
5f2e6b00
TT
64532013-05-22 Tom Tromey <tromey@redhat.com>
6454
6455 PR c++/15401:
6456 * c-valprint.c (c_value_print): Use value_addr for
6457 references. Convert back to reference type with value_ref.
6458
d85c4847
EZ
64592013-05-22 Eli Zaretskii <eliz@gnu.org>
6460
6461 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6462 unloaded DLL, it will be done by handle_solib_event. See
6463 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6464 details.
6465
54eb231c
PM
64662013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6467
6468 * ui-out.c: Create typedef ui_out_level_p and define vector
6469 operations for that type.
6470 (struct ui_out): Use a vector instead of an array.
6471 (current_level): Return level from a vector.
6472 (push_level): Create a level in a vector.
6473 (pop_level): Delete a level in a vector.
6474 (ui_out_new): Create initial level zero level, and store in a
6475 vector.
6476 (ui_out_destroy): Add vector cleanup.
6477
ac90359c
PA
64782013-05-22 Pedro Alves <palves@redhat.com>
6479
6480 * python/python-internal.h (gdb_Py_DECREF): Tag with
6481 "ARI: editCase function".
6482
6dcc1893
PP
64832013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6484
6485 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6486
c8c735b9
PA
64872013-05-21 Pedro Alves <palves@redhat.com>
6488
6489 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6490 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6491 * python/py-utils.c (py_decref): Don't check for NULL before
6492 calling Py_DECREF.
6493
1915daeb
PA
64942013-05-21 Pedro Alves <palves@redhat.com>
6495
6496 * python/py-utils.c (py_decref): Remove extra braces.
6497 (gdb_pymodule_addobject): Remove extra braces.
6498 * python-internal.h (gdb_Py_DECREF): New static inline function.
6499 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6500
bd9673a4
PW
65012013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6502
6503 * breakpoints.c (detach_breakpoints): Do not
6504 detach breakpoints locations with loc_type bp_loc_other.
6505
ff6009d0
JK
65062013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6507
6508 Workaround Python 2.6.
6509 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6510 a block.
6511
3641da11
JK
65122013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6513
6514 Code cleanup: constification.
6515 * solib.c (solib_ops): Make return type and ops variable type const.
6516 (set_solib_ops): Make the new_ops parameter and ops variable const.
6517 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6518 (solib_add, solib_keep_data_in_core, clear_solib)
6519 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6520 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6521 const.
6522 * solib.h (set_solib_ops): Make the new_ops parameter const.
6523
776af39e
JB
65242013-05-21 Joel Brobecker <brobecker@adacore.com>
6525
6526 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6527 variable.
6528 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6529 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6530 (SYSTEM_GDBINIT_FILES): New variables.
6531 (all): Add stamp-system-gdbinit.
6532 (stamp-system-gdbinit): New rule.
6533 (clean-system-gdbinit, install-system-gdbinit)
6534 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6535 (install-only): Add dependency on install-system-gdbinit.
6536 (uninstall): Add dependency on uninstall-system-gdbinit.
6537 (clean): Add dependency on clean-system-gdbinit.
6538 * system-gdbinit/elinos.py: New file.
6539 * system-gdbinit/wrs-linux.py: New file.
6540
1509e573
JB
65412013-05-21 Joel Brobecker <brobecker@adacore.com>
6542
6543 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6544
c5867ab6
HZ
65452013-05-21 Hui Zhu <hui@codesourcery.com>
6546
6547 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6548 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6549 * mi/mi-cmd-break.c (ctype.h): New include.
6550 (gdb_obstack.h): New include.
6551 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6552 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6553 (mi_cmd_dprintf_insert): New.
6554 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6555 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6556
7d38e38f
TT
65572013-05-20 Tom Tromey <tromey@redhat.com>
6558
6559 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6560
97b77b39
TT
65612013-05-20 Tom Tromey <tromey@redhat.com>
6562
6563 * python/py-value.c (valpy_get_dynamic_type): Simplify
6564 dynamic_type assignment. Use Py_XINCREF.
6565
53e66479
TT
65662013-05-20 Tom Tromey <tromey@redhat.com>
6567
6568 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6569
dcf87832
TT
65702013-05-20 Tom Tromey <tromey@redhat.com>
6571
6572 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6573 (gdbpy_selected_frame): Move object-construction code
6574 out of TRY_CATCH.
6575
aa36459a
TT
65762013-05-20 Tom Tromey <tromey@redhat.com>
6577
6578 * python/py-arch.c (gdbpy_initialize_arch): Use
6579 gdb_pymodule_addobject.
6580 * python/py-block.c (gdbpy_initialize_blocks): Use
6581 gdb_pymodule_addobject.
6582 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6583 gdb_pymodule_addobject.
6584 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6585 gdb_pymodule_addobject.
6586 * python/py-event.c (gdbpy_initialize_event_generic): Use
6587 gdb_pymodule_addobject.
6588 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6589 gdb_pymodule_addobject.
6590 * python/py-evts.c (add_new_registry): Use
6591 gdb_pymodule_addobject.
6592 (gdbpy_initialize_py_events): Likewise.
6593 * python/py-finishbreakpoint.c
6594 (gdbpy_initialize_finishbreakpoints): Use
6595 gdb_pymodule_addobject.
6596 * python/py-frame.c (gdbpy_initialize_frames): Use
6597 gdb_pymodule_addobject.
6598 * python/py-function.c (gdbpy_initialize_functions): Use
6599 gdb_pymodule_addobject.
6600 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6601 gdb_pymodule_addobject.
6602 * python/py-infthread.c (gdbpy_initialize_thread): Use
6603 gdb_pymodule_addobject.
6604 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6605 gdb_pymodule_addobject.
6606 * python/py-param.c (gdbpy_initialize_parameters): Use
6607 gdb_pymodule_addobject.
6608 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6609 gdb_pymodule_addobject.
6610 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6611 gdb_pymodule_addobject.
6612 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6613 gdb_pymodule_addobject.
6614 * python/py-type.c (gdbpy_initialize_types): Use
6615 gdb_pymodule_addobject.
6616 * python/py-utils.c (gdb_pymodule_addobject): New function.
6617 * python/py-value.c (gdbpy_initialize_values): Use
6618 gdb_pymodule_addobject.
6619 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6620 * python/python.c (_initialize_python): Use
6621 gdb_pymodule_addobject.
6622
3d4a3c3e
TT
66232013-05-20 Tom Tromey <tromey@redhat.com>
6624
6625 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6626 * python/py-param.c (get_set_value, get_show_value): Use
6627 explicit decrefs.
6628 * python/python.c (start_type_printers, apply_type_printers):
6629 Use explicit decrefs.
6630
72ff8829
TT
66312013-05-20 Tom Tromey <tromey@redhat.com>
6632
6633 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6634 incref the module.
6635
02146ba5
TT
66362013-05-20 Tom Tromey <tromey@redhat.com>
6637
6638 * python/python.c (gdbpy_run_events): Decref the result
6639 of PyObject_CallObject.
6640
33ee792f
TT
66412013-05-20 Tom Tromey <tromey@redhat.com>
6642
6643 * python/py-symtab.c (set_sal): Use
6644 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6645 (symtab_and_line_to_sal_object): Update.
6646
fcb49fc8
TT
66472013-05-20 Tom Tromey <tromey@redhat.com>
6648
6649 * python/py-param.c (compute_enum_values): Decref 'item'.
6650
0646da15
TT
66512013-05-20 Tom Tromey <tromey@redhat.com>
6652
6653 * mi/mi-main.c: Include python-internal.h.
6654 (mi_cmd_list_features): Check gdb_python_initialized.
6655 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6656 (python_inferior_exit, python_new_objfile, add_thread_object)
6657 (delete_thread_object, py_free_inferior): Check
6658 gdb_python_initialized.
6659 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6660 gdb_python_initialized.
6661 * python/py-type.c (save_objfile_types): Check
6662 gdb_python_initialized.
6663 * python/python-internal.h (gdb_python_initialized): Declare.
6664 * python/python.c (ensure_python_env): Throw exception if
6665 Python not initialized.
6666 (before_prompt_hook, source_python_script_for_objfile)
6667 (start_type_printers, apply_type_printers,
6668 free_type_printers): Check gdb_python_initialized.
6669 * varobj.c (varobj_get_display_hint)
6670 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6671 (install_new_value_visualizer, varobj_set_visualizer)
6672 (value_get_print_value): Check gdb_python_initialized.
6673
999633ed
TT
66742013-05-20 Tom Tromey <tromey@redhat.com>
6675
6676 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6677 Check errors.
6678 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6679 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6680 Check errors.
6681 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6682 Check errors.
6683 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6684 Check errors.
6685 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6686 Check errors.
6687 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6688 init function to return 'int'.
6689 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6690 Return 'int'. Check errors.
6691 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6692 Check errors.
6693 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6694 Return 'int'. Check errors.
6695 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6696 Check errors.
6697 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6698 Check errors.
6699 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6700 Check errors.
6701 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6702 Check errors.
6703 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6704 Check errors.
6705 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6706 Check errors.
6707 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6708 Check errors.
6709 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6710 Check errors.
6711 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6712 Check errors.
6713 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6714 Check errors.
6715 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6716 Check errors.
6717 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6718 Check errors.
6719 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6720 Check errors.
6721 * python/python-internal.h (gdbpy_initialize_auto_load,
6722 gdbpy_initialize_values, gdbpy_initialize_frames,
6723 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6724 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6725 gdbpy_initialize_blocks, gdbpy_initialize_types,
6726 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6727 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6728 gdbpy_initialize_finishbreakpoints,
6729 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6730 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6731 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6732 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6733 gdbpy_initialize_signal_event,
6734 gdbpy_initialize_breakpoint_event,
6735 gdbpy_initialize_continue_event,
6736 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6737 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6738 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6739 * python/python.c (gdb_python_initialized): New global.
6740 (gdbpy_initialize_events): Return 'int'. Check errors.
6741 (_initialize_python): Check errors. Set
6742 gdb_python_initialized.
6743
18868860
TT
67442013-05-20 Tom Tromey <tromey@redhat.com>
6745
6746 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6747 Decref the reslut of PyObject_CallMethod.
6748
9f4ff0c2
TT
67492013-05-20 Tom Tromey <tromey@redhat.com>
6750
6751 * python/py-event.c (gdbpy_initialize_event_generic): Return
6752 early if PyType_Ready fails.
6753
0d3a2e8a
TT
67542013-05-20 Tom Tromey <tromey@redhat.com>
6755
6756 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6757 as 'default' in the switch.
6758
b86af38a
TT
67592013-05-20 Tom Tromey <tromey@redhat.com>
6760
6761 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6762 get_addr_from_python calls out of TRY_CATCH.
6763 (infpy_write_memory, infpy_search_memory): Likewise.
6764 * python/py-utils.c (get_addr_from_python): Return negative
6765 value on error. Use TRY_CATCH.
6766 * python/python-internal.h (get_addr_from_python): Use
6767 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6768
c127ec58
TT
67692013-05-20 Tom Tromey <tromey@redhat.com>
6770
6771 * python/py-event.c (evpy_emit_event): Decref the
6772 result of PyObject_CallFunctionObjArgs.
6773
ba327838
TT
67742013-05-20 Tom Tromey <tromey@redhat.com>
6775
6776 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6777 Correctly decref.
6778
d8191432
TT
67792013-05-20 Tom Tromey <tromey@redhat.com>
6780
6781 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6782
5d153bd1
TT
67832013-05-20 Tom Tromey <tromey@redhat.com>
6784
6785 * python/py-event.h (gdbpy_initialize_event_generic): Use
6786 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6787 * python/py-evts.c (add_new_registry): Use
6788 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6789 * python/python-internal.h
6790 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6791
56cc411c
TT
67922013-05-20 Tom Tromey <tromey@redhat.com>
6793
6794 * python/py-arch.c (archpy_disassemble): Update.
6795 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6796 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6797 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6798 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6799 macro.
6800 (GDB_PY_HANDLE_EXCEPTION): Update.
6801 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6802
8919e174
TT
68032013-05-20 Tom Tromey <tromey@redhat.com>
6804
6805 * python/python-internal.h (events_object_type): Remove.
6806
9b08f225
TT
68072013-05-20 Tom Tromey <tromey@redhat.com>
6808
f5aee5ee
AM
6809 * python/py-event.h (evpy_emit_event): Use
6810 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6811 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6812 New macro.
9b08f225 6813
f04010ff
TT
68142013-05-20 Tom Tromey <tromey@redhat.com>
6815
6816 * py-evtregistry.c (create_event_object): Decref
6817 eventregistry_object if PyList_New fails.
6818
3919fd96
TT
68192013-05-20 Tom Tromey <tromey@redhat.com>
6820
6821 * py-cmd.c (gdbpy_string_to_argv): Check result of
6822 PyList_New.
6823
0430e8cb
TT
68242013-05-20 Tom Tromey <tromey@redhat.com>
6825
6826 * python/python.c (before_prompt_hook): Add cleanup to
6827 decref 'hook'.
6828
764123e4
TT
68292013-05-20 Tom Tromey <tromey@redhat.com>
6830
6831 * python/py-function.c (fnpy_init): Decref result of
6832 PyObject_GetAttrString.
6833
634c58be
TT
68342013-05-20 Tom Tromey <tromey@redhat.com>
6835
6836 * python/py-threadevent.c (get_event_thread): Use
6837 CPYCHECKER_RETURNS_BORROWED_REF.
6838 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6839 New define.
6840 (pspace_to_pspace_object, objfile_to_objfile_object)
6841 (find_thread_object): Use it.
6842
62eec1a5
TT
68432013-05-20 Tom Tromey <tromey@redhat.com>
6844
6845 * python/py-arch.c (arch_object_type): Use
6846 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6847 * python/py-block.c (block_syms_iterator_object_type):
6848 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6849 * python/py-bpevent.c (breakpoint_event_object_type):
6850 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6851 * python/py-cmd.c (cmdpy_object_type): Use
6852 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6853 * python/py-continueevent.c (continue_event_object_type):
6854 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6855 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6856 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6857 * python/py-events.h (thread_event_object_type):
6858 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6859 * python/py-evtregistry.c (eventregistry_object_type): Use
6860 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6861 * python/py-exitedevent.c (exited_event_object_type):
6862 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6863 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6864 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6865 * python/py-function.c (fnpy_object_type): Use
6866 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6867 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6868 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6869 * python/py-infthread.c (thread_object_type): Use
6870 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6871 * python/py-lazy-string.c (lazy_string_object_type):
6872 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6873 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6874 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6875 * python/py-objfile.c (objfile_object_type): Use
6876 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6877 * python/py-param.c (parmpy_object_type):
6878 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6879 * python/py-progspace.c (pspace_object_type):
6880 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6881 * python/py-signalevent.c (signal_event_object_type):
6882 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6883 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6884 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6885 * python/py-type.c (type_object_type, field_object_type)
6886 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6887 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6888 define.
6889 (value_object_type, block_object_type, symbol_object_type)
6890 (event_object_type, stop_event_object_type, breakpoint_object_type)
6891 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6892
81ea8796
AT
68932013-05-20 Andreas Tobler <andreas@fgznet.ch>
6894
6895 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6896 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6897
a2ce51a0
DE
68982013-05-20 Doug Evans <dje@google.com>
6899
6900 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6901 For Fission.
6902 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6903 reading_dwo_directly.
6904 (struct signatured_type): New member dwo_unit.
6905 (struct die_reader_specs): New member comp_dir.
6906 (create_signatured_type_table_from_index): Use malloc for
6907 all_type_units instead of objfile's obstack.
6908 (create_all_type_units): Ditto.
6909 (fill_in_sig_entry_from_dwo_entry): New function.
6910 (add_type_unit): New function.
6911 (lookup_dwo_signatured_type): New function.
6912 (lookup_dwp_signatured_type): New function.
6913 (lookup_signatured_type): New arg cu. All callers updated.
6914 (init_cu_die_reader): Initialize comp_dir.
6915 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6916 Change assert of matching type signatures to call error on mismatch.
6917 (lookup_dwo_unit): Add assert.
6918 (init_tu_and_read_dwo_dies): New function.
6919 (init_cutu_and_read_dies): Call it.
6920 (build_type_unit_groups): Handle case of no type unit groups created.
6921 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6922 (lookup_dwo_cutu): Tweak complaint.
6923 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6924 (dwarf2_per_objfile_free): Free all_type_units.
6925
a25cd31f
JB
69262013-05-20 Joel Brobecker <brobecker@adacore.com>
6927
6928 * windows-nat.c (handle_unload_dll): Add missing empty line.
6929
4d804846
JB
69302013-05-20 Joel Brobecker <brobecker@adacore.com>
6931
6932 * dwarf2read.c (prototyped_function_p): New function.
6933 (read_subroutine_type): Use it.
6934
1c432e72
JB
69352013-05-20 Joel Brobecker <brobecker@adacore.com>
6936
6937 * rs6000-aix-tdep.c: De-indent some example code provided
6938 as a comment.
6939
4feebbdd
EBM
69402013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6941
6942 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6943 region is ok for a hardware watchpoint using the new ptrace interface
6944 on Power servers.
6945
7d0c9981
DE
69462013-05-17 Doug Evans <dje@google.com>
6947
6948 * NEWS: Mention new maintenance commands check-symtabs, and
6949 expand-symtabs, and renamed check-psymtabs.
6950 * psymtab.c (maintenance_check_psymtabs): Renamed from
6951 maintenance_check_symtabs. Only process already-expanded symbol
6952 tables.
6953 (_initialize_psymtab): Update.
6954 * symmisc.c (maintenance_check_symtabs): New function.
6955 (maintenance_expand_name_matcher): New function
6956 (maintenance_expand_file_matcher): New function
6957 (maintenance_expand_symtabs): New function.
6958 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6959 commands.
6960
6cbc7c3d
TT
69612013-05-17 Tom Tromey <tromey@redhat.com>
6962
6963 * python/py-inferior.c (infpy_read_memory): Don't call
6964 PyErr_SetString if PyObject_New fails.
6965 * python/py-frame.c (frame_info_to_frame_object): Don't call
6966 PyErr_SetString if PyObject_New fails.
6967
a48b32c0
L
69682013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6969
6970 * acinclude.m4: Add check for dlopen in libdl.
6971 * configure.ac: Ditto.
6972 * configure: Regenerate.
6973
3de661e6
PM
69742013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6975
6976 * frame.c (frame_stash): Convert to htab.
6977 (frame_addr_hash): New function.
6978 (frame_addr_hash_eq): New function.
6979 (frame_stash_create): Convert function to create
6980 a hash table.
6981 (frame_stash_add): Convert function to add an entry to a hash
6982 table.
6983 (frame_stash_find): Convert function to search the hash table.
6984 (frame_stash_invalidate): Convert function to empty the hash
6985 table.
6986 (get_frame_id): Only add to stash if a frame_id is created.
6987 (_initialize_frame): Call frame_stash_create.
6988
bb4168a9 69892013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6990
6991 * configure.ac: Ensure MIG is available when building for GNU Hurd
6992 hosts.
6993 * configure: Regenerate.
6994
d1be3247
JB
69952013-05-16 Joel Brobecker <brobecker@adacore.com>
6996
6997 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6998
b8fea896
JB
69992013-05-16 Joel Brobecker <brobecker@adacore.com>
7000
7001 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7002 all cleanups are done before returning from this function.
7003
af880d85
JB
70042013-05-15 Joel Brobecker <brobecker@adacore.com>
7005
7006 * utils.h: #include "exceptions.h".
7007 (enum errors): Remove partial declaration.
7008
356a5233
JB
70092013-05-15 Joel Brobecker <brobecker@adacore.com>
7010
7011 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7012 * gdbarch.h, gdbarch.c: Regenerate.
7013 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7014 handling.
7015
7016 * rs6000-aix-tdep.h: New file.
7017 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7018 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7019 "xml-utils.h".
7020 (struct field_info, struct ld_info_desc): New types.
7021 (ld_info32_desc, ld_info64_desc): New static constants.
7022 (struct ld_info): New type.
7023 (rs6000_aix_extract_ld_info): New function.
7024 (rs6000_aix_shared_library_to_xml): Likewise.
7025 (rs6000_aix_ld_info_to_xml): Likewise.
7026 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7027 (rs6000_aix_init_osabi): Add call to
7028 set_gdbarch_core_xfer_shared_libraries_aix.
7029 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7030 Remove "xml-utils.h" include.
7031 (LdInfo): Delete typedef.
7032 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7033 Delete macros.
7034 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7035 Adjust code accordingly.
7036 (rs6000_core_ldinfo): Delete, folded into
7037 rs6000_aix_core_xfer_shared_libraries_aix.
7038 (rs6000_xfer_shared_library): Delete.
7039 (rs6000_xfer_shared_libraries): Reimplement.
7040
742ce053
MM
70412013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7042
7043 * record.c (record_goto_cmdlist): New.
7044 (cmd_record_goto): Split into this ...
7045 (cmd_record_goto_begin): ... this
7046 (cmd_record_goto_end): ... and this.
7047 (_initialize_record): Change "record goto" to prefix command.
7048 Add commands for "record goto begin" and "record goto end".
7049 Add an alias for "record goto start" to "record goto begin".
7050
e93ba630
JK
70512013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7052
7053 * linespec.c (convert_linespec_to_sals): New comment for
7054 SOURCE_FILENAME assignment.
7055
5821aace
JK
70562013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7057
7058 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7059 internal_warning.
7060
a1b8c4cc
TT
70612013-05-14 Tom Tromey <tromey@redhat.com>
7062
7063 * eval.c (parse_and_eval_long): Make 'exp' const.
7064 * value.h (parse_and_eval_long): Update.
7065
23b3a2c3
TT
70662013-05-14 Tom Tromey <tromey@redhat.com>
7067
7068 * ui-file.c (gdb_fopen): Make arguments const.
7069 * ui-file.h (gdb_fopen): Make arguments const.
7070
ca623f82
TT
70712013-05-14 Tom Tromey <tromey@redhat.com>
7072
7073 * remote.c (remote_set_trace_notes): Make arguments const.
7074 * target.c (update_current_target): Update cast.
7075 * target.h (to_set_trace_notes): Make arguments const.
7076
503ebb2c
TT
70772013-05-14 Tom Tromey <tromey@redhat.com>
7078
7079 * go32-nat.c (go32_terminal_info): Make 'args' const.
7080 * inferior.h (child_terminal_info): Update.
7081 * inflow.c (child_terminal_info): Make 'args' const.
7082 * target.c (default_terminal_info): Make 'args' const.
7083 (debug_to_terminal_save_ours): Likewise.
7084 * target.h (struct target_ops) <to_terminal_info>: Make argument
7085 const.
7086
85e1311a
TT
70872013-05-13 Tom Tromey <tromey@redhat.com>
7088
7089 * gcore.c (create_gcore_bfd): Make 'filename' const.
7090 * gcore.h (create_gcore_bfd): Make 'filename' const.
7091 * record-full.c (record_full_save): Make 'recfilename' const.
7092 * target.c (target_save_record): Make 'filename' const.
7093 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7094 const.
7095 (target_save_record): Likewise.
7096
d62bfeaf
TT
70972013-05-13 Tom Tromey <tromey@redhat.com>
7098
f5aee5ee 7099 PR gdb/15338:
d62bfeaf
TT
7100 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7101 ranges section has been read.
7102
ac1ca910
TT
71032013-05-13 Tom Tromey <tromey@redhat.com>
7104
7105 PR exp/15364:
7106 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7107 STRUCTOP_PTR>: Return a not_lval value for
7108 EVAL_AVOID_SIDE_EFFECTS.
7109 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7110 for EVAL_AVOID_SIDE_EFFECTS.
7111
36d1c68c
JB
71122013-05-13 Joel Brobecker <brobecker@adacore.com>
7113
7114 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7115 floating point registers to register type before storing
7116 value.
7117 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7118 Likewise.
7119
21ff4686
TT
71202013-05-10 Joel Brobecker <brobecker@adacore.com>
7121 Tom Tromey <tromey@redhat.com>
7122
7123 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7124 New functions.
7125 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7126 Declare.
7127 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7128 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7129 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7130 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7131
d3685d60
TT
71322013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7133 Tom Tromey <tromey@redhat.com>
7134
7135 PR build/15414:
7136 * configure: Rebuild.
7137 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7138 with -Wno-format.
7139
eb9fe518
PA
71402013-05-10 Pedro Alves <palves@redhat.com>
7141
7142 * remote.c (_initialize_remote): Fix spelling of
7143 qXfer:traceframe-info:read packet in packet config command.
7144
9779ab84
PA
71452013-05-10 David Taylor <dtaylor@emc.com>
7146
7147 PR remote/15455
7148
7149 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7150 "QTro" at start of packet.
7151
060cfbef
JB
71522013-05-10 Joel Brobecker <brobecker@adacore.com>
7153
7154 * solib-aix.c (solib_aix_relocate_section_addresses):
7155 For the .bss section action, apply the same offset as
7156 the .data section.
7157
ab1c4e88
JB
71582013-05-10 Joel Brobecker <brobecker@adacore.com>
7159
7160 * solib-aix.c (solib_aix_relocate_section_addresses):
7161 Remove FIXME comment.
7162
c1357578
JB
71632013-05-10 Joel Brobecker <brobecker@adacore.com>
7164
7165 PR tdep/15420:
7166 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7167 New functions, directly copied from sparc-sol-thread.c.
7168 * sparc-sol-thread.c: Delete.
7169 * configure.ac: Remove code handling sparc-solaris-thread.c.
7170 * configure: Regenerate.
7171
1e611234
PM
71722013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7173
7174 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7175 filter logic.
7176 (backtrace_command): Add "no-filters" option parsing.
7177 (_initialize_stack): Alter help to reflect "no-filters" option.
7178 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7179 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7180 (py-frame.o): Add target
7181 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7182 filter files.
7183 * python/python.h: Add new frame filter constants, and flag enum.
7184 (apply_frame_filter): Add definition.
7185 * python/python.c (apply_frame_filter): New non-Python
7186 enabled function.
7187 * python/py-utils.c (py_xdecref): New function.
7188 (make_cleanup_py_xdecref): Ditto.
7189 * python/py-objfile.c: Declare frame_filters dictionary.
7190 (objfpy_dealloc): Add frame_filters dealloc.
7191 (objfpy_new): Initialize frame_filters attribute.
7192 (objfile_to_objfile_object): Ditto.
7193 (objfpy_get_frame_filters): New function.
7194 (objfpy_set_frame_filters): New function.
7195 * python/py-progspace.c: Declare frame_filters dictionary.
7196 (pspy_dealloc): Add frame_filters dealloc.
7197 (pspy_new): Initialize frame_filters attribute.
7198 (pspacee_to_pspace_object): Ditto.
7199 (pspy_get_frame_filters): New function.
7200 (pspy_set_frame_filters): New function.
7201 * python/py-framefilter.c: New file.
7202 * python/lib/gdb/command/frame_filters.py: New file.
7203 * python/lib/gdb/frames.py: New file.
7204 * python/lib/gdb/__init__.py: Initialize global frame_filters
7205 dictionary
7206 * python/lib/gdb/FrameDecorator.py: New file.
7207 * python/lib/gdb/FrameIterator.py: New file.
7208 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7209 * mi/mi-cmds.h: Declare.
7210 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7211 --no-frame-filter logic, and Python frame filter logic.
7212 (stack_enable_frame_filters): New function.
7213 (parse_no_frame_option): Ditto.
7214 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7215 filter logic.
7216 (mi_cmd_stack_list_locals): Ditto.
7217 (mi_cmd_stack_list_args): Ditto.
7218 (mi_cmd_stack_list_variables): Ditto.
7219 * NEWS: Add frame filter note.
7220
2cb9c859
DE
72212013-05-09 Doug Evans <dje@google.com>
7222
6bf667bb
DE
7223 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7224 All callers updated.
7225 (syms_from_objfile): Ditto. Make static.
7226 (symbol_file_add_with_addrs): Renamed from
7227 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7228 num_offsets. All callers updated.
7229 * symfile.h (syms_from_objfile): Delete.
7230
2cb9c859
DE
7231 * symfile.c (decrement_reading_symtab): Add assert.
7232 (increment_reading_symtab): Ditto.
7233
40aea477
JB
72342013-05-09 Joel Brobecker <brobecker@adacore.com>
7235
7236 * source.c (forward_search_command): Replace call to getc
7237 by call to fgetc.
7238 (reverse_search_command): Likewise.
7239
680d1742
DE
72402013-05-08 Doug Evans <dje@google.com>
7241
7242 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7243 matching test.
7244
17e760ae
JB
72452013-05-08 Joel Brobecker <brobecker@adacore.com>
7246
7247 * sol-thread.c (info_cb): Factorize the code a little.
7248
c0f5f490
JB
72492013-05-08 Joel Brobecker <brobecker@adacore.com>
7250
7251 * sol-thread.c (info_cb): Rework the output of the "maintenance
7252 info sol-threads" command a bit.
7253
5d74e061
JB
72542013-05-08 Joel Brobecker <brobecker@adacore.com>
7255
7256 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7257 Replace ti.ti_startfunc by ti.ti_pc.
7258
814a3ff7
JB
72592013-05-08 Joel Brobecker <brobecker@adacore.com>
7260
7261 * solib-aix.c (solib_aix_free_library_list): New function
7262 for the case where HAVE_LIBEXPAT is not defined.
7263
58ce7251
SDJ
72642013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7265
7266 PR breakpoints/15413:
7267 * breakpoint.c (condition_completer): Simplify the code to
7268 disconsider multiple locations of breakpoints when completing the
7269 "condition" command.
7270
be8b1ea6
PM
72712013-05-07 Pierre Muller <muller@sourceware.org>
7272
7273 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7274 instead of <sys/wait.h>.
7275
1e52bda6
PM
72762013-05-07 Pierre Muller <muller@sourceware.org>
7277
7278 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7279 trailing new line from warning message.
7280
27fd0c6b
PM
72812013-05-07 Pierre Muller <muller@sourceware.org>
7282
7283 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7284 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7285
e228ac87
JB
72862013-05-07 Joel Brobecker <brobecker@adacore.com>
7287
7288 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7289 error message (ARI fix).
7290
72912013-05-07 Joel Brobecker <brobecker@adacore.com>
7292
7293 * features/library-list-aix.dtd: Replace library-list by
7294 library-list-aix.
7295 * rs6000-nat.c: Replace library-list by library-list-aix
7296 throughout.
7297 * solib-aix.c: Likewise.
7298
72992013-05-07 Joel Brobecker <brobecker@adacore.com>
7300
7301 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7302 Renames TARGET_OBJECT_AIX_LIBRARIES.
7303 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7304 TARGET_OBJECT_LIBRARIES_AIX throughout.
7305 * solib-aix.c: Likwise.
7306
26a4dda9
YQ
73072013-05-07 Yao Qi <yao@codesourcery.com>
7308
7309 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7310 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7311
3582629f
YQ
73122013-05-07 Yao Qi <yao@codesourcery.com>
7313
7314 * solib-dsbt.c (enable_break): Declare.
7315 (dsbt_current_sos): Remove call to enable_break2.
7316 (enable_break2): Rename to enable_break. Set solib breakpoint
7317 on '_dl_debug_state'.
7318 (enable_break): Remove.
7319
aacbb8a5
LM
73202013-05-07 Luis Machado <lgustavo@codesourcery.com>
7321
7322 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7323 debug state prior to replicating existing hardware watchpoints or
7324 breakpoints.
7325
0c013353
JK
73262013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7327
7328 * gcore.c (gcore_create_callback): Ignore sections with
7329 separate_debug_objfile_backlink != NULL.
7330
a1217d97
SL
73312013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7332 Andrew Jenner <andrew@codesourcery.com>
7333 Chung-Lin Tang <cltang@codesourcery.com>
7334 Julian Brown <julian@codesourcery.com>
7335
7336 Based on the nios2-elf port from Altera Corporation.
7337
7338 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7339 nios2-linux-tdep.o.
7340 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7341 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7342 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7343 * nios2-tdep.h: New.
7344 * nios2-tdep.c: New.
7345 * nios2-linux-tdep.c: New.
7346 * features/Makefile (WHICH): Add nios2-linux.
7347 (nios2-linux-expedite): Set.
7348 * features/nios2-cpu.xml: New.
7349 * features/nios2.xml: New.
7350 * features/nios2-linux.xml: New.
7351 * features/nios2.c: New (autogenerated).
7352 * features/nios2-linux.c: New (autogenerated).
7353 * regformats/nios2-linux.dat: New (autogenerated).
7354 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7355 and commands.
7356
0892cb63
DE
73572013-05-06 Doug Evans <dje@google.com>
7358
3b7bacac
DE
7359 * symfile.c: Whitespace cleanup.
7360
0892cb63
DE
7361 * solist.h (struct target_so_ops): New member clear_so.
7362 * solib-svr4.c (svr4_clear_so): New function.
7363 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7364 * solib.c (clear_so): Renamed from free_so_symbols.
7365 All callers updated. Call target clear_so if it exists.
7366
40501e00
TT
73672013-05-06 Tom Tromey <tromey@redhat.com>
7368
7369 * ada-lang.c (ada_value_primitive_packed_val): Don't
7370 call value_incref.
7371 * value.c (set_value_parent): Incref the new parent and decref
7372 the old parent.
7373 (value_copy, value_primitive_field): Use set_value_parent.
7374
b6807d98
TT
73752013-05-06 Tom Tromey <tromey@redhat.com>
7376
7377 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7378 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7379 if needed.
7380 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7381 * dwarf2read.c (write_constant_as_bytes)
7382 (dwarf2_fetch_constant_bytes): New functions.
7383
3aef2284
TT
73842013-05-06 Tom Tromey <tromey@redhat.com>
7385
7386 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7387 parameters.
7388 (dwarf2_const_value_attr): Update.
7389
66f65e2b
TT
73902013-05-06 Tom Tromey <tromey@redhat.com>
7391
7392 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7393 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7394 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7395 Remove declaration.
7396
7919a973
TT
73972013-05-06 Tom Tromey <tromey@redhat.com>
7398
7399 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7400 objfile's obstack.
7401
a7bfba49
DE
74022013-05-06 Doug Evans <dje@google.com>
7403
3189cb12
DE
7404 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7405 * stabsread.h (process_one_symbol): Update declaration.
7406 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7407 * elfread.c (elf_symfile_relocate_probe): Ditto.
7408 * psymtab.c (relocate_psymtabs): Ditto.
7409 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7410 (objfile_relocate): Ditto.
7411 * objfiles.h (objfile_relocate): Update declaration.
7412 * symfile.c (relative_addr_info_to_section_offsets): Constify
7413 addrs parameter.
7414 (default_symfile_offsets): Ditto.
7415 (syms_from_objfile_1): Constify offsets parameter.
7416 (syms_from_objfile): Ditto.
7417 (symbol_file_add_with_addrs_or_offsets): Ditto.
7418 (symfile_map_offsets_to_segments): Constify data parameter.
7419 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7420 delta parameters of member relocate.
7421 (struct sym_probe_fns): Constify new_offsets,
7422 delta parameters of member sym_relocate_probe.
7423 (struct sym_fns): Constify section_addr_info parameter of member
7424 sym_offsets.
7425 (relative_addr_info_to_section_offsets): Update declaration.
7426 (default_symfile_offsets): Ditto.
7427 (syms_from_objfile): Ditto.
7428 (symfile_map_offsets_to_segments): Ditto.
7429
a7bfba49
DE
7430 * symfile.c (syms_from_objfile_1): Use correct section count when
7431 objfile->sf == NULL.
7432
5f8e0b8f
MF
74332013-05-06 Mike Frysinger <vapier@gentoo.org>
7434
7435 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7436
ea52d893
DE
74372013-05-06 Doug Evans <dje@google.com>
7438
7439 * psympriv.h (struct partial_symtab): Augment comment for member
7440 section_offsets.
7441
4d1eb6b4
JB
74422013-05-06 Joel Brobecker <brobecker@adacore.com>
7443
7444 Reimplement shared library support on ppc-aix...
7445 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7446 * features/library-list-aix.dtd: New file.
7447 * solib-aix.h, solib-aix.c: New file.
7448 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7449 (rs6000_find_toc_address_hook): Delete.
7450 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7451 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7452 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7453 "xml-utils.h".
7454 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7455 (vmap_symtab, fixup_breakpoints): Delete.
7456 (rs6000_xfer_shared_libraries): New function.
7457 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7458 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7459 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7460 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7461 (rs6000_xfer_shared_library): New function.
7462 (find_toc_address): Delete.
7463 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7464 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7465 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7466 before creating minimal symbol. Adjust function description
7467 accordingly.
7468 (scan_xcoff_symtab): Replace call to
7469 prim_record_minimal_symbol_and_info by call to
7470 record_minimal_symbol.
7471 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7472 around default_symfile_offsets.
7473 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7474 powerpc-aix targets.
7475 * config/rs6000/nm-rs6000.h: Delete.
7476 * config/powerpc/aix.mh (NAT_FILE): Delete.
7477 (NATDEPFILES): Remove xcoffsolib.o.
7478 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7479 (ALL_TARGET_OBS): Add solib-aix.o.
7480 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7481 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7482 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7483 * xcoffsolib.h, xcoffsolib.c: Delete.
7484
7485 * solib.c (reload_shared_libraries): Remove reference to
7486 SOLIB_CREATE_INFERIOR_HOOK.
7487 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7488 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7489 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7490 comment.
7491 * corelow.c (deprecated_core_resize_section_table): Delete.
7492 * exec.c: Remove include of xcoffsolib.h".
7493 (map_vmap, vmap): Delete.
7494 (exec_close_1): Remove references to vmap.
7495 (exec_file_attach): Remove vmap handling code, and reference
7496 to DEPRECATED_IBM6000_TARGET.
7497 (bfdsec_to_vmap): Delete.
7498 (exec_files_info): Remove block of code handling VMAP.
7499 * infcmd.c (post_create_inferior): Remove reference to
7500 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7501 * infrun.c (follow_exec): Remove reference to
7502 SOLIB_CREATE_INFERIOR_HOOK.
7503 * stack.c (print_frame): Remove reference to PC_SOLIB.
7504 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7505 (dsbt_relocate_main_executable): Likewise.
7506 * solib-frv.c (frv_current_sos): Likewise.
7507
0c4f667c
JB
75082013-05-06 Joel Brobecker <brobecker@adacore.com>
7509
7510 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7511 to target_write_memory and target_read_memory.
7512
726ce67c
JB
75132013-05-06 Joel Brobecker <brobecker@adacore.com>
7514
7515 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7516 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7517
c8c9911f
JB
75182013-05-06 Joel Brobecker <brobecker@adacore.com>
7519
7520 * darwin-nat.c: Replace all "%x" instances in format strings
7521 into "0x%x" throughout.
7522
fda184b6
JB
75232013-05-06 Joel Brobecker <brobecker@adacore.com>
7524
7525 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7526 gdb_assert by call to MACH_CHECK_ERROR.
7527 (darwin_attach_pid): Raise an error rather than a failed
7528 assertion when various system calls failed. Report a warning
7529 instead of raising a failed assertion when PREV_NOT is not NULL
7530 after call to mach_port_request_notification.
7531 (darwin_ptrace_me): Raise an error rather than a failed
7532 assertion when read returns nonzero.
7533
d1d69afb
JB
75342013-05-06 Joel Brobecker <brobecker@adacore.com>
7535
7536 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7537
dc90b24d
JK
75382013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7539
7540 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7541
faab9922
JK
75422013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7543
7544 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7545 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7546 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7547 a stale cleanup. Fix double free of NAME.
7548
e0ea48a0
EZ
75492013-05-04 Eli Zaretskii <eliz@gnu.org>
7550
7551 * windows-nat.c (windows_delete_thread): Accept an additional
7552 argument, the thread's exit code, and announce thread death when
7553 print_thread_events is non-zero and we are deleting a thread that
7554 is not the main thread.
7555 (get_windows_debug_event): Pass thread exit code to
7556 windows_delete_thread.
7557
83b2706a
KB
75582013-05-03 Kevin Buettner <kevinb@redhat.com>
7559
7560 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7561 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7562 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7563 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7564 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7565 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7566 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7567 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7568 (gdbarch_tdep): New struct.
7569 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7570 E_NUM_REGS.
7571 (v850e3v5_register_name): New function.
7572 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7573 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7574 code handling the struct return conventions for the RH850 ABI.
7575 Update all callers.
7576 (v850_eight_byte_align_p): New function.
7577 (v850_push_call_dummy): Push structs by value, not by reference
7578 for the RH850 ABI. Add support for eight byte alignment.
7579 (v850_dbtrap_breakpoint_from_pc): New function.
7580 (v850_gdbarch_init): Add ABI detection code. Register
7581 v850e3v5_register_name for the v850e3v5 architecture. Set the
7582 number of registers for v850e3v5. Register
7583 v850_dbtrap_breakpoint_from_pc as appropriate.
7584 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7585
d445b2f6
DE
75862013-05-03 Doug Evans <dje@google.com>
7587
7588 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7589 of bfd_count_sections.
7590 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7591 * symfile.c (default_symfile_offsets): Ditto.
7592 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7593 one entry, not bfd_count_sections entries.
7594
b3ce41ea
KB
75952013-05-03 Kevin Buettner <kevinb@redhat.com>
7596
7597 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7598 `save' and `restore' register groups. Don't include SPL
7599 or SPH in these groups.
7600 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7601 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7602 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7603 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7604 dwarf2_append_unwinders().
7605
96f7d3f1
PW
76062013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7607
7608 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7609 ignore SIGINT and SIGTRAP in case these internal signals are
7610 caught explicitely.
7611
b9dd1947
JB
76122013-05-01 Joel Brobecker <brobecker@adacore.com>
7613
7614 * darwin-nat.c (darwin_read_write_inferior): Change types
7615 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7616 of copy_count to "mach_msg_type_number_t".
7617 (darwin_read_dyld_info): Change type of parameter
7618 rdaddr to "gdb_byte *".
7619
4ca18a63
JB
76202013-05-01 Joel Brobecker <brobecker@adacore.com>
7621
7622 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7623 of &info->load_map from "char *" to "gdb_byte *".
7624
2b692d32
JB
76252013-05-01 Joel Brobecker <brobecker@adacore.com>
7626
7627 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7628 from "char *" to "gdb_byte *".
7629 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7630
a98c29a0
DE
76312013-04-30 Doug Evans <dje@google.com>
7632
6a506a2d
DE
7633 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7634 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7635 DWO stub. If DWO isn't found, just use stub.
7636 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7637
a98c29a0
DE
7638 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7639 calling init_cutu_and_read_dies.
7640
f92b06da
WT
76412013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7642
7643 * target-descriptions.c (maint_print_c_tdesc_cmd):
7644 Add case to parse structures as register types and
7645 bitfields.
7646
95eebdcc
WT
76472013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7648
7649 * MAINTAINERS (Write After Approval): Add myself to the list.
7650
019c1128
JB
76512013-04-30 Joel Brobecker <brobecker@adacore.com>
7652
7653 * sol-thread.c (rw_common): Change type of parameter "buf"
7654 to "gdb_byte *".
7655 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7656 rw_common to "gdb_byte *" instead of "char *".
7657
5812197c
JB
76582013-04-30 Joel Brobecker <brobecker@adacore.com>
7659
7660 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7661 of local variable msym to const struct bound_minimal_symbol.
7662 Adjust use accordingly.
7663 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7664
ecccb813
TS
76652013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7666
7667 * i386gnu-nat.c (CREG_OFFSET): New macro.
7668 (creg_offset): New array.
7669 (CREG_ADDR): Use creg_offset instead of reg_offset.
7670
f1d02dd4 76712013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7672
7673 * mep-tdep.c (mep_write_pc): Delete.
7674 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7675 Add call to set_gdbarch_pc_regnum.
7676
f1d02dd4 76772013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7678
7679 * common/filestuff.c: Replace #include <dirent.h> by
7680 #include "gdb_dirent.h".
7681
f1d02dd4 76822013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7683
7684 * common/filestuff.c: Replace #include <sys/stat.h> by
7685 #include "gdb_stat.h".
7686
b385a60d
PM
76872013-04-29 Pierre Muller <muller@sourceware.org>
7688
7689 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7690 editCase function rule.
7691 (get_DW_AT_signature_type): Likewise.
7692
d27b54ad
JB
76932013-04-29 Joel Brobecker <brobecker@adacore.com>
7694
7695 * m32r-tdep.c (m32r_write_pc): Delete.
7696 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7697 Add call to set_gdbarch_pc_regnum.
7698
47d21dc5
PM
76992013-04-29 Pierre Muller <muller@sourceware.org>
7700
7701 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7702
9056882e
JB
77032013-04-29 Joel Brobecker <brobecker@adacore.com>
7704
7705 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7706
7ee4732a
YQ
77072013-04-28 Yao Qi <yao@codesourcery.com>
7708
7709 * solib-dsbt.c (fetch_loadmap): Re-indent.
7710 (displacement_from_map, enable_break2): Likewise.
7711 (dsbt_relocate_section_addresses): Likewise.
7712
2260af53 77132013-04-26 Joel Brobecker <brobecker@adacore.com>
7714
7715 GDB 7.6 released.
7716
ff546935
TT
77172013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7718
7719 PR corefiles/14983:
7720 * dwarf2read.c (process_full_comp_unit): Always create a static
7721 block.
7722
40fb6c5e
HZ
77232013-04-25 Hui Zhu <hui@codesourcery.com>
7724
7725 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7726 to loc->cmd_bytecode.
7727
74e04d1c
DE
77282013-04-24 Doug Evans <dje@google.com>
7729
7730 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7731
3cf62c1d
KS
77322013-04-22 Keith Seitz <keiths@redhat.com>
7733
7734 * tracepoint.c (trace_save): Call the writer's start method.
7735
bf9e4d0c
MB
77362013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7737
7738 PR gdb/10462
7739 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7740 before argument.
7741
5d71132c
TT
77422013-04-23 Tom Tromey <tromey@redhat.com>
7743
7744 * common/filestuff.c: Check USE_WIN32API before including
7745 sys/socket.h.
7746 (HAVE_F_GETFD): New define.
7747 (mark_cloexec): Check HAVE_F_GETFD.
7748 (gdb_open_cloexec): Change 'mode' to unsigned long.
7749 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7750 (gdb_pipe_cloexec): Check HAVE_PIPE.
7751 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7752 long.
7753
a11cfd87
HZ
77542013-04-23 Hui Zhu <hui@codesourcery.com>
7755
7756 PR gdb/15293
a11cfd87
HZ
7757 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7758
2d9442cc
HZ
77592013-04-23 Hui Zhu <hui@codesourcery.com>
7760
7761 PR gdb/15165
2d9442cc
HZ
7762 * breakpoint.c (dprintf_print_recreate): New.
7763 (save_breakpoints): Let it not save dprintf commands.
7764 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7765
614c279d
TT
77662013-04-22 Tom Tromey <tromey@redhat.com>
7767
7768 PR gdb/7912:
7769 * Makefile.in (SFILES): Add filestuff.c
7770 (COMMON_OBS): Add filestuff.o.
7771 (filestuff.o): New target.
7772 * auto-load.c (auto_load_objfile_script_1): Use
7773 gdb_fopen_cloexec.
7774 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7775 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7776 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7777 * common/agent.c (gdb_connect_sync_socket): Use
7778 gdb_socket_cloexec.
7779 * common/filestuff.c: New file.
7780 * common/filestuff.h: New file.
7781 * common/linux-osdata.c (linux_common_core_of_thread)
7782 (command_from_pid, commandline_from_pid, print_source_lines)
7783 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7784 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7785 gdb_fopen_cloexec.
7786 * common/linux-procfs.c (linux_proc_get_int)
7787 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7788 * config.in, configure: Rebuild.
7789 * configure.ac: Don't check for sys/socket.h. Check for
7790 fdwalk, pipe2.
7791 * corelow.c (core_open): Use gdb_open_cloexec.
7792 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7793 * fork-child.c (fork_inferior): Call close_most_fds.
7794 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7795 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7796 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7797 Use gdb_fopen_cloexec.
7798 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7799 gdb_open_cloexec.
7800 (linux_async_pipe): Use gdb_pipe_cloexec.
7801 * remote-fileio.c (remote_fileio_func_open): Use
7802 gdb_open_cloexec.
7803 * remote.c (remote_file_put, remote_file_get): Use
7804 gdb_fopen_cloexec.
7805 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7806 close_most_fds.
7807 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7808 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7809 * solib.c (solib_find): Use gdb_open_cloexec.
7810 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7811 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7812 (tfile_open): Use gdb_open_cloexec.
7813 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7814 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7815 * xml-support.c (xml_fetch_content_from_file): Use
7816 gdb_fopen_cloexec.
7817 * main.c (captured_main): Call notice_open_fds.
7818
5fda2332
EBM
78192013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7820
7821 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7822 'char *' to 'gdb_byte *'.
7823 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7824 'gdb_byte'.
7825
eb6c553b
YQ
78262013-04-22 Yao Qi <yao@codesourcery.com>
7827
7828 * infrun.c: Fix typo in comment.
7829
9991b207
SDJ
78302013-04-22 Andrew Haley <aph@redhat.com>
7831
7832 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7833 instead of "long".
7834
8b4833e3
YQ
78352013-04-20 Yao Qi <yao@codesourcery.com>
7836
7837 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7838 'char *' to 'gdb_byte *'. Cast the return value of
7839 'bt_ctf_get_char_array' to 'gdb_byte *'.
7840
bd3f3b55
PA
78412013-04-19 Pedro Alves <palves@redhat.com>
7842
7843 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7844 -Wpointer-sign.
7845 * configure: Regenerate.
7846
c49e7f76
PA
78472013-04-19 Pedro Alves <palves@redhat.com>
7848
7849 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7850 'void *'.
7851
12ff8552
PA
78522013-04-19 Pedro Alves <palves@redhat.com>
7853
7854 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7855 Change type of 'myaddr' parameter to gdb_byte pointer.
7856 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7857 to 'long long' pointer instead of to 'unsigned long long'.
7858 (monitor_write_memory_block, monitor_read_memory_single)
7859 (monitor_read_memory): Change type of 'myaddr' parameter to
7860 gdb_byte pointer.
7861
9c37696b
PA
78622013-04-19 Pedro Alves <palves@redhat.com>
7863
7864 * record.c (validate_history_size): Make parameter 'setting'
7865 unsigned.
7866
a398505b
PA
78672013-04-19 Pedro Alves <palves@redhat.com>
7868
7869 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7870 to 'gdb_byte *'.
7871
9f8afa72
PA
78722013-04-19 Pedro Alves <palves@redhat.com>
7873
7874 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7875 local to int.
7876
c714b426
PA
78772013-04-19 Pedro Alves <palves@redhat.com>
7878
7879 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7880 * ada-tasks.c (read_fat_string_value): Likewise.
7881
507a579c
PA
78822013-04-19 Pedro Alves <palves@redhat.com>
7883
7884 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7885 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7886 'offset', and adjust.
7887
f9d83a0b
PA
78882013-04-19 Pedro Alves <palves@redhat.com>
7889
7890 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7891 (read_index_from_section): Add cast to 'char *'.
7892
745eb4fd
PA
78932013-04-19 Pedro Alves <palves@redhat.com>
7894
7895 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7896
db5be46f
PA
78972013-04-19 Pedro Alves <palves@redhat.com>
7898
7899 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7900
0f928d68
PA
79012013-04-19 Pedro Alves <palves@redhat.com>
7902
7903 * record-full.c (record_full_get_bookmark): Change local 'ret'
7904 type to char * and add cast to gdb_byte *.
7905 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7906 string.
7907 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7908
89f6d837
PA
79092013-04-19 Pedro Alves <palves@redhat.com>
7910
7911 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7912 * python/py-prettyprint.c (print_string_repr): Change type of
7913 'output' local to char *. Add cast to gdb_byte * in
7914 LA_PRINT_STRING call.
7915 (print_children): Change type of 'output' local to char *.
7916 * python/py-value.c (valpy_string): Add cast to const char * in
7917 PyUnicode_Decode call.
7918
ce6ec7d8
PA
79192013-04-19 Pedro Alves <palves@redhat.com>
7920
7921 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7922 and change its type to 'const char *'. Adjust.
7923 (mips_send_packet): Add cast to 'char *', and remove cast to
7924 'unsigned char *'.
7925 (mips_receive_packet): Remove cast to 'unsigned char *'.
7926 (mips_load_srec): Use bfd_byte.
7927 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7928 (pmon_checkset): Make 'value' parameter unsigned.
7929
fda0389f
PA
79302013-04-19 Pedro Alves <palves@redhat.com>
7931
7932 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7933
bc20a4af
PA
79342013-04-19 Pedro Alves <palves@redhat.com>
7935
7936 * remote.c (remote_write_bytes_aux, compare_sections_command)
7937 (remote_read_qxfer)
7938 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7939 (remote_hostio_readlink, remote_bfd_iovec_pread)
7940 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7941 binary buffer, and char when buffer is used as string.
7942 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7943 (trace_save, tfile_open, traceframe_walk_blocks)
7944 (tfile_fetch_registers): Likewise.
7945
c628b528
PA
79462013-04-19 Pedro Alves <palves@redhat.com>
7947
7948 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7949 buffer and size_t size. Adjust.
7950 * ser-base.h (ser_base_write): Adjust.
7951 * ser-go32.c (cnts): Change type to size_t.
7952 (dos_write): Change prototype -- take 'void *'
7953 buffer and size_t size. Adjust.
7954 (dos_info): Print elements of 'cnts' as unsigned long.
7955 * serial.c (serial_write): Likewise.
7956 * serial.h (serial_write): Adjust.
7957 (struct serial_ops) <write>: Change prototype -- take 'void *'
7958 buffer and size_t size. Adjust.
7959
51a5cd90
PA
79602013-04-19 Pedro Alves <palves@redhat.com>
7961
7962 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7963 gdb_byte *.
7964 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7965
a9933661
PA
79662013-04-19 Pedro Alves <palves@redhat.com>
7967
7968 * alpha-tdep.c (alpha_extract_return_value): Use
7969 regcache_cooked_read_unsigned to read 'v0'.
7970
19afdd07
PA
79712013-04-19 Pedro Alves <palves@redhat.com>
7972
7973 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7974 parameters 'at', 'as' and 'offset' to uint32_t.
7975
96b32e50
PA
79762013-04-19 Pedro Alves <palves@redhat.com>
7977
7978 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7979 'is64' to signed 'int'.
7980
eb1bd1fb
PA
79812013-04-19 Pedro Alves <palves@redhat.com>
7982
7983 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7984 parameter to int *.
7985
463920bf
PA
79862013-04-19 Pedro Alves <palves@redhat.com>
7987
7988 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7989 'insnbuf' buffer type to unsigned int[].
7990
70242eb1
PA
79912013-04-19 Pedro Alves <palves@redhat.com>
7992
7993 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7994
9d1dd0e2
PA
79952013-04-19 Pedro Alves <palves@redhat.com>
7996
7997 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7998 unsigned long *.
7999
44096aee
PA
80002013-04-19 Pedro Alves <palves@redhat.com>
8001
8002 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8003 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8004 UINT_MAX.
8005 * mips-tdep.c (heuristic_fence_post): Change type to int.
8006 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8007
e4286e57
PA
80082013-04-19 Pedro Alves <palves@redhat.com>
8009
8010 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8011 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8012 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8013
001f13d8
PA
80142013-04-19 Pedro Alves <palves@redhat.com>
8015
8016 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8017 it to get a string view of the byte buffer.
8018 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8019 type to gdb_byte *. Adjust.
8020 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8021 Change local to char *.
8022 * solib-darwin.c (find_program_interpreter): Change return type to
8023 char *. Adjust.
8024 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8025 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8026 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8027 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8028 * solib-svr4.c (find_program_interpreter): Change return type to
8029 char *. Adjust.
8030 (enable_break): Change local 'interp_name' to char *.
8031 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8032 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8033 (spu_pseudo_register_write_spu): Use char for string buffer.
8034 Adjust.
8035 (info_spu_event_command, info_spu_signal_command): Add casts to
8036 'char *'.
8037
948f8e3d
PA
80382013-04-19 Pedro Alves <palves@redhat.com>
8039
8040 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8041 gdb_byte[].
8042 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8043 * ada-lang.c (ada_value_assign): Use gdb_byte.
8044 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8045 (alphanbsd_sigtramp_offset): Use gdb_byte.
8046 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8047 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8048 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8049 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8050 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8051 * arm-tdep.c (arm_stub_unwind_sniffer)
8052 (arm_displaced_init_closure): Use gdb_byte.
8053 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8054 (arm_default_thumb_le_breakpoint)
8055 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8056 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8057 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8058 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8059 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8060 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8061 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8062 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8063 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8064 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8065 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8066 (cris_store_return_value, cris_extract_return_value): Use
8067 gdb_byte.
8068 (constraint): Change type of parameter to char * from signed
8069 char*. Use gdb_byte.
8070 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8071 of local buffer to gdb_byte *.
8072 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8073 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8074 (add_address_entry): Change type of local buffer to gdb_byte[].
8075 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8076 (frv_push_dummy_call): Use gdb_byte.
8077 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8078 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8079 (hppa_hpux_supply_save_state): Use gdb_byte.
8080 * hppa-tdep.c (hppa32_push_dummy_call)
8081 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8082 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8083 (slotN_contents, replace_slotN_contents): Change type of parameter
8084 to gdb_byte *.
8085 (fetch_instruction, ia64_pseudo_register_write)
8086 (ia64_register_to_value, ia64_value_to_register)
8087 (ia64_extract_return_value, ia64_store_return_value)
8088 (ia64_push_dummy_call): Use gdb_byte.
8089 * m32c-tdep.c (m32c_return_value): Remove cast.
8090 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8091 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8092 gdb_byte.
8093 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8094 * mn10300-tdep.c (mn10300_store_return_value)
8095 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8096 gdb_byte.
8097 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8098 (moxie_process_record): Remove casts.
8099 * ppc-ravenscar-thread.c (supply_register_at_address)
8100 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8101 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8102 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8103 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8104 * remote.c (compare_sections_command): Use gdb_byte.
8105 * score-tdep.c (score7_free_memblock): Change type of parameter to
8106 gdb_byte *.
8107 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8108 gdb_byte *. Use gdb_byte.
8109 (sh_push_dummy_call_fpu): Use gdb_byte.
8110 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8111 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8112 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8113 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8114 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8115 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8116 (sh64_store_return_value, sh64_register_convert_to_virtual):
8117 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8118 (sh64_pseudo_register_write): Use gdb_byte.
8119 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8120 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8121 buffer.
8122 (irix_current_sos): Use gdb_byte.
8123 * solib-som.c (som_current_sos): Use gdb_byte.
8124 * sparc-ravenscar-thread.c (supply_register_at_address)
8125 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8126 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8127 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8128 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8129 'gdb_byte *'.
8130 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8131 'gdb_byte *'.
8132 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8133 * xstormy16-tdep.c (xstormy16_extract_return_value)
8134 (xstormy16_store_return_value): Change parameter type to
8135 'gdb_byte *'. Adjust.
8136 (xstormy16_push_dummy_call): Use gdb_byte.
8137 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8138 (call0_analyze_prologue, execute_code): Use gdb_byte.
8139
433730c9
PA
81402013-04-19 Vladimir Kargov <kargov@gmail.com>
8141 Pedro Alves <palves@redhat.com>
8142
8143 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8144 value contents.
8145
ac9ec31b
DE
81462013-04-17 Doug Evans <dje@google.com>
8147
8148 * dwarf2read.c (struct signatured_type): New member type.
8149 (struct attribute): Replace member signatured_type with signature.
8150 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8151 (read_call_site_scope): Call follow_die_ref instead of
8152 follow_die_ref_or_sig.
8153 (read_structure_type): Rewrite handling of signatured types.
8154 (read_enumeration_type): Ditto.
8155 (read_attribute_value): Update.
8156 (build_error_marker_type): New function.
8157 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8158 Don't call error for bad types, just build an error marker type.
8159 (dump_die_shallow): Update.
8160 (follow_die_sig_1): Renamed from follow_die_sig.
8161 Don't call error for bad types, instead return NULL.
8162 (follow_die_sig): New function.
8163 (get_signatured_type, get_DW_AT_signature_type): New functions.
8164
e546e8bb
YZ
81652013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8166
8167 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8168 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8169 function.
e546e8bb 8170
ab116149
YQ
81712013-04-17 Yao Qi <yao@codesourcery.com>
8172
8173 * top.c (print_gdb_configuration): Print configure-time
8174 parameter on using libbabeltrace or not.
8175
488a42b8
PA
81762013-04-16 Pedro Alves <palves@redhat.com>
8177
8178 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8179
f5fb825b
PA
81802013-04-16 Pedro Alves <palves@redhat.com>
8181
85d494ea 8182 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8183 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8184
e1154999
PA
81852013-04-16 Pedro Alves <palves@redhat.com>
8186
8187 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8188 * common/glibc_thread_db.h: ... this new file ...
8189 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8190
e3b50a7f
PA
81912013-04-16 Will Newton <will.newton@gmail.com>
8192 Pedro Alves <palves@redhat.com>
8193
8194 PR build/11881
8195
8196 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8197 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8198 HAVE_THREAD_DB_H.
8199
1c2e4450
PA
82002013-04-16 Pedro Alves <palves@redhat.com>
8201 Eli Zaretskii <eliz@gnu.org>
8202
8203 * NEWS: Mention "set foo unlimited".
8204
4031ecc5
DE
82052013-04-15 Doug Evans <dje@google.com>
8206
19c3d4c9
DE
8207 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8208 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8209 (create_dwo_cu_reader): Renamed from
8210 create_dwo_debug_info_hash_table_reader.
8211 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8212 Remove support for multiple CUs in a DWO file.
8213 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8214
4031ecc5
DE
8215 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8216 instead of phex.
8217 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8218 (create_dwo_in_dwp): Ditto.
8219
b340913d
TT
82202013-04-15 Tom Tromey <tromey@redhat.com>
8221
8222 * NEWS: Move recent entries into "since 7.6" section.
8223
cc16e6c9
TT
82242013-04-15 Tom Tromey <tromey@redhat.com>
8225
8226 PR c++/13588:
8227 * NEWS: Update.
8228 * break-catch-throw.c (struct exception_catchpoint)
8229 <exception_rx, pattern>: New fields.
8230 (fetch_probe_arguments, dtor_exception_catchpoint)
8231 (check_status_exception_catchpoint)
8232 (print_one_detail_exception_catchpoint): New functions.
8233 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8234 Compile regular expression if needed.
8235 (extract_exception_regexp): New function.
8236 (catch_exception_command_1): Use extract_exception_regexp.
8237 (compute_exception): Use fetch_probe_arguments.
8238 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8239 and check_status fields.
8240 * cp-abi.c (cplus_typename_from_type_info): New function.
8241 * cp-abi.h (cplus_typename_from_type_info): Declare.
8242 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8243 * gdb_regex.h (compile_rx_or_error): Declare.
8244 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8245 comment.
8246 (init_gnuv3_ops): Set get_type_from_type_info field.
8247 * probe.c (compile_rx_or_error): Move...
8248 * utils.c (compile_rx_or_error): ... here.
8249
72f1fe8a
TT
82502013-04-15 Tom Tromey <tromey@redhat.com>
8251
8252 PR c++/15176:
8253 * NEWS: Update.
8254 * break-catch-throw.c (compute_exception): New function.
8255 (exception_funcs): New global.
8256 (_initialize_break_catch_throw): Create $_exception.
8257 * cp-abi.c (cplus_type_from_type_info): New function.
8258 * cp-abi.h (cplus_type_from_type_info): Declare.
8259 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8260 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8261 (gnuv3_get_type_from_type_info): New functions.
8262 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8263
fc4746a2
TT
82642013-04-15 Tom Tromey <tromey@redhat.com>
8265
8266 * break-catch-throw.c (struct exception_names): New.
8267 (exception_functions): Change type.
8268 (re_set_exception_catchpoint): Look for SDT probes.
8269
15a73f56
TT
82702013-04-15 Tom Tromey <tromey@redhat.com>
8271
8272 PR c++/10119:
8273 * break-catch-throw.c (exception_functions): New global.
8274 (gnu_v3_exception_catchpoint_ops): Move earlier.
8275 (struct exception_catchpoint): New.
8276 (classify_exception_breakpoint): Rewrite.
8277 (re_set_exception_catchpoint): New function.
8278 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8279 Allocate a struct exception_catchpoint.
8280 (catch_exception_command_1): Update.
8281 (initialize_throw_catchpoint_ops): Set 're_set' method.
8282
916703c0
TT
82832013-04-15 Tom Tromey <tromey@redhat.com>
8284
8285 * Makefile.in (SFILES): Add break-catch-throw.c
8286 (COMMON_OBS): Add break-catch-throw.o.
8287 * break-catch-throw.c: New file.
8288 * breakpoint.c: Move exception-catching code to new file.
8289 (ep_parse_optional_if_clause): No longer static.
8290 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8291
6e72ca20
TT
82922013-04-15 Tom Tromey <tromey@redhat.com>
8293
8294 PR c++/9065:
8295 * NEWS: Update.
8296 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8297 * c-exp.y (TYPEID): New token.
8298 (exp): Add new TYPEID productions.
8299 (ident_tokens): Add "typeid".
8300 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8301 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8302 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8303 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8304 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8305 case.
8306 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8307 (build_std_type_info_type, gnuv3_get_typeid_type)
8308 (gnuv3_get_typeid): New functions.
8309 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8310 new fields on ABI object.
8311 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8312 * std-operator.def (OP_TYPEID): New.
8313
715c6909
TT
83142013-04-15 Tom Tromey <tromey@redhat.com>
8315
8316 * elfread.c (elf_symtab_read): Install versioned symbol under
8317 unversioned name as well.
8318
8de20a37
TT
83192013-04-15 Tom Tromey <tromey@redhat.com>
8320
8321 PR c++/11990:
8322 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8323 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8324 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8325 (gdb_demangle): New function.
8326 * cp-support.h (gdb_demangle): Declare.
8327 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8328 (dwarf2_name): Use gdb_demangle.
8329 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8330 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8331 suffixes from name.
8332 (gnuv3_print_method_ptr): Use gdb_demangle.
8333 * jv-lang.c (java_demangle): Use gdb_demangle.
8334 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8335 * language.c (unk_lang_demangle): Use gdb_demangle.
8336 * symtab.c (symbol_find_demangled_name)
8337 (demangle_for_lookup): Use gdb_demangle.
8338
591f19e8
TT
83392013-04-15 Tom Tromey <tromey@redhat.com>
8340
8341 PR c++/12824:
8342 * NEWS: Update.
8343 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8344 New constant.
8345 (classify_exception_breakpoint): New function.
8346 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8347 (print_mention_exception_catchpoint)
8348 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8349 (catch_exception_command_1): Handle "rethrow" catchpoint.
8350 (catch_rethrow_command): New function.
8351 (_initialize_breakpoint): Add "catch rethrow" command.
8352
4d40cad2
PM
83532013-04-15 Pierre Muller <muller@sourceware.org>
8354
8355 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8356 set_gdbarch_write_pc as deprecated anymore.
8357
30bcb456
JB
83582013-04-15 Joel Brobecker <brobecker@adacore.com>
8359
8360 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8361 declarations.
8362
da9160e4
YQ
83632013-04-13 Yao Qi <yao@codesourcery.com>
8364
8365 * ctf.c (_initialize_ctf): Include "completer.h".
8366 Call add_target_with_completer instead of add_target.
8367
39ed5604
JK
83682013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8369
8370 Fix GDB regression related to PR binutils/14813.
8371 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8372 * minidebug.c (lzma_close): Add return value comment.
8373 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8374 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8375 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8376
83772013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8378
8379 * config.in: Regenerate.
8380
d521ce57
TT
83812013-04-12 Tom Tromey <tromey@redhat.com>
8382
8383 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8384 const.
8385 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8386 (struct die_reader_specs) <buffer>: Likewise.
8387 (die_reader_func_ftype): Make 'info_ptr' const.
8388 (struct line_header) <include_dirs, statement_program_start,
8389 statement_program_end>: Now const.
8390 (struct file_entry) <name>: Likewise.
8391 (struct partial_die_info) <sibling>: Likewise.
8392 (struct dwarf_block) <data>: Likewise.
8393 (dwarf2_read_section): Remove cast.
8394 (dwarf2_get_section_info): Make 'bufp' const.
8395 (read_index_from_section): Constify.
8396 (dw2_get_file_names_reader): Make 'info_ptr' const.
8397 (dw2_get_primary_filename_reader): Likewise.
8398 (read_comp_unit_head): Make 'info_ptr' and return type const.
8399 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8400 Likewise.
8401 (read_abbrev_offset): Constify.
8402 (dwarf2_create_include_psymtab): Make 'name' const.
8403 (create_debug_types_hash_table): Update.
8404 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8405 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8406 Constify.
8407 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8408 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8409 (read_comp_units_from_section): Constify.
8410 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8411 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8412 const.
8413 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8414 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8415 (create_dwp_hash_table, dwarf2_ranges_read)
8416 (dwarf2_record_block_ranges): Constify.
8417 (read_die_and_children, read_die_and_siblings_1)
8418 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8419 const.
8420 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8421 (abbrev_table_read_table): Constify.
8422 (load_partial_dies): Make 'info_ptr' const.
8423 (read_partial_die, read_attribute_value, read_attribute): Make
8424 'info_ptr' and return type const.
8425 (read_address, read_initial_length)
8426 (read_checked_initial_length_and_offset, read_offset)
8427 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8428 const.
8429 (read_direct_string): Make 'buf' and return type const.
8430 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8431 (read_indirect_string): Make return type const.
8432 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8433 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8434 'info_ptr' const.
8435 (read_str_index): Make return type const.
8436 (add_include_dir): Make 'include_dir' const.
8437 (add_file_name): Make 'name' const.
8438 (dwarf_decode_line_header): Constify.
8439 (psymtab_include_file_name): Make return type const.
8440 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8441 (dwarf2_start_subfile): Make 'filename' const.
8442 (dwarf2_const_value_attr): Make 'bytes' const.
8443 (read_signatured_type_reader): Make 'info_ptr' const.
8444 (decode_locdesc): Constify.
8445 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8446 const.
8447 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8448 'mac_end', and return type const.
8449 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8450 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8451 type const.
8452 (per_cu_header_read_in): Constify.
8453 * symfile.h (dwarf2_get_section_info): Update.
8454
d47a1bc1
TT
84552013-04-12 Tom Tromey <tromey@redhat.com>
8456
8457 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8458
6eaaf48b
EZ
84592013-04-12 Eli Zaretskii <eliz@gnu.org>
8460
fc4c25bf 8461 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8462 * top.c (print_gdb_configuration): New function, displays the
8463 details about GDB configure-time parameters.
8464 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8465 * cli/cli-cmds.c (show_configuration): New function.
8466 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8467 * main.c (captured_main) <print_configuration>: New static var.
8468 <long_options>: Use it.
8469 If --configuration was given, call print_gdb_configuration.
8470
b292c783
JK
84712013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8472 Pedro Alves <palves@redhat.com>
8473
8474 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8475 (generated_files): Add gcore.
8476 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8477 HAVE_NATIVE_GCORE_HOST.
8478 (gcore): New.
8479 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8480 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8481 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8482 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8483 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8484 Add HAVE_NATIVE_GCORE_HOST.
8485 * configure: Regenerate.
8486 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8487 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8488 AC_CONFIG_FILES for gcore.
8489 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8490 gdb_have_gcore.
8491 * gdb_gcore.sh: Rename to ...
8492 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8493 and GCORE_TRANSFORM_NAME substitutions.
8494
c96b3c4f
JK
8495 Fix parsing tabs in ${gdb_target_obs}.
8496 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8497
d6cb50a2
JK
84982013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8499
8500 * remote.c (unpush_and_perror): Add output message final dot.
8501
cf2cb5ec
YQ
85022013-04-11 Yao Qi <yao@codesourcery.com>
8503
8504 * tracepoint.c (tfile_interp_line): Fit parameters line and
8505 utpp in one line.
8506
07293be4
JB
85072013-04-10 Joel Brobecker <brobecker@adacore.com>
8508
8509 * solib.c (solib_map_sections): Remove code overwriting
8510 SO->SO_NAME with the bfd's filename.
8511
f81d1120
PA
85122013-04-10 Pedro Alves <palves@redhat.com>
8513
8514 * cli/cli-decode.c (integer_unlimited_completer): New function.
8515 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8516 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8517 completer.
8518 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8519 (is_unlimited_literal): New function.
8520 (do_set_command): Handle literal "unlimited" arguments.
8521 * frame.c (_initialize_frame) <set backtrace limit>: Document
8522 "unlimited".
8523 * printcmd.c (_initialize_printcmd) <set print
8524 max-symbolic-offset>: Add help text.
8525 * record-full.c (_initialize_record_full) <set record full
8526 insn-number-max>: Likewise.
8527 * record.c (_initialize_record) <set record
8528 instruction-history-size, set record function-call-history-size>:
8529 Add help text.
8530 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8531 help text.
8532 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8533 Likewise.
8534 * source.c (_initialize_source) <set listsize>: Add help text.
8535 * utils.c (initialize_utils) <set height, set width>: Likewise.
8536 <set pagination>: Mention "set height unlimited".
8537 * valprint.c (_initialize_valprint) <set print elements, set print
8538 repeats>: Document "unlimited".
8539
2f9d54cf
PA
85402013-04-10 Pedro Alves <palves@redhat.com>
8541
8542 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8543 instead of disconnect_tracing.
8544 * infcmd.c (detach_command, disconnect_command): Call
8545 query_if_trace_running. Adjust.
8546 * top.c: Include "tracepoint.h".
8547 (quit_target): Delete. Contents moved ...
8548 (quit_force): ... here. Wrap each stage of teardown in
8549 TRY_CATCH. Call disconnect_tracing before detaching.
8550
393fd4c3
YQ
85512013-04-10 Hui Zhu <hui@codesourcery.com>
8552 Yao Qi <yao@codesourcery.com>
8553
8554 * configure.ac: Check libbabeltrace is installed.
8555 * config.in: Regenerate.
8556 * configure: Regenerate.
8557 * Makefile.in (LIBBABELTRACE): New.
8558 (CLIBS): Add LIBBABELTRACE.
8559 * ctf.c: Include "exec.h".
8560 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8561 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8562 (ctf_save_metadata_header): Define new type aliases in
8563 metadata.
8564 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8565 in metadata. Start a new faked packet for trace status.
8566 (ctf_write_status): Write trace status to CTF.
8567 (ctf_write_uploaded_tsv): Write TSV to CTF.
8568 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8569 (ctf_write_definition_end): End the faked packet.
8570
8571 (ctx, ctf_iter, trace_dirname): New.
8572 (start_pos): New variable.
8573 (ctf_destroy, ctf_open_dir, ctf_open): New.
8574 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8575 macros.
8576 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8577 (ctf_fetch_registers, ctf_xfer_partial): New.
8578 (ctf_get_trace_state_variable_value): New.
8579 (ctf_get_tpnum_from_frame_event): New.
8580 (ctf_get_traceframe_address): New.
8581 (ctf_trace_find, ctf_has_stack): New.
8582 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8583 (ctf_get_trace_status, ctf_read_status): New.
8584 (_initialize_ctf): New.
8585 * tracepoint.c (get_tracepoint_number): New
8586 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8587 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8588 * tracepoint.h: ... here.
8589 (get_tracepoint_number): Declare it.
8590 (get_uploaded_tsv): Declare it.
8591
8592 * NEWS: Mention new configure option.
8593
5c2b4418
HZ
85942013-04-10 Pedro Alves <palves@redhat.com>
8595 Hui Zhu <hui@codesourcery.com>
8596
8597 * breakpoint.c (dprintf_re_set): New.
8598 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8599 to dprintf_re_set.
8600
a5c66735
JB
86012013-04-09 Joel Brobecker <brobecker@adacore.com>
8602
8603 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8604 Remove solib-svr4.o from the list.
8605
9e77999c
JB
86062013-04-09 Joel Brobecker <brobecker@adacore.com>
8607
8608 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8609 Use gdb_assert_not_reached instead of invalid boolean expression.
8610
1927e618
PA
86112013-04-09 Pedro Alves <palves@redhat.com>
8612
8613 * remote.c (unpush_and_perror): New function.
8614 (readchar, remote_serial_write): Use it.
8615
10782d74
MM
86162013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8617
8618 * NEWS: Mention new btrace RSP packets.
8619
4c8429ef
TT
86202013-04-08 Tom Tromey <tromey@redhat.com>
8621
8622 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8623 long.
8624
8625fc1b
TT
86252013-04-08 Tom Tromey <tromey@redhat.com>
8626
8627 * maint.c (print_bfd_section_info): Print the section index.
8628 * symmisc.c (dump_msymbols): Print the section index.
8629
e27d198c
TT
86302013-04-08 Tom Tromey <tromey@redhat.com>
8631
8632 PR symtab/8424:
8633 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8634 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8635 * breakpoint.c (resolve_sal_pc): Update.
8636 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8637 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8638 (minsym_lookup_iterator_cb): Use it.
8639 (default_read_var_value): Update.
8640 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8641 Update.
8642 * infcmd.c (jump_command): Update.
8643 * linespec.c (minsym_found): Update.
8644 * maint.c (maintenance_translate_address): Update.
8645 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8646 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8647 * parse.c (write_exp_msymbol): Update.
8648 * printcmd.c (address_info): Update.
8649 * psymtab.c (find_pc_sect_psymbol): Update.
8650 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8651 SYMBOL_OBJ_SECTION.
8652 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8653 Don't initialize SYMBOL_OBJ_SECTION.
8654 * spu-tdep.c (spu_catch_start): Update.
8655 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8656 * symmisc.c (dump_msymbols, print_symbol): Update.
8657 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8658 how fallback section is computed.
8659 (fixup_symbol_section): Update.
8660 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8661 Update.
8662 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8663 Initialize SYMBOL_SECTION.
8664 * symtab.h (struct general_symbol_info) <section>: Update comment.
8665 <obj_section>: Remove.
8666 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8667 (SYMBOL_OBJFILE): New macro.
8668
e6dc44a8
TT
86692013-04-08 Tom Tromey <tromey@redhat.com>
8670
8671 * coffread.c (record_minimal_symbol): Update.
8672 * dbxread.c (record_minimal_symbol): Update.
8673 * elfread.c (record_minimal_symbol): Update.
8674 * machoread.c (macho_symtab_add_minsym): Update.
8675 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8676 Update.
8677 * minsyms.c (prim_record_minimal_symbol): Update.
8678 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8679 argument.
8680 (prim_record_minimal_symbol_and_info): Likewise.
8681 * minsyms.h (prim_record_minimal_symbol_full)
8682 (prim_record_minimal_symbol_and_info): Update.
8683 * symtab.c (allocate_symbol, initialize_symbol)
8684 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8685 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8686 Update.
8687
36192a8d
TT
86882013-04-08 Tom Tromey <tromey@redhat.com>
8689
8690 PR symtab/8423:
8691 * solib-som.c (som_solib_section_offsets): Use BFD section
8692 indices. Set offsets for all sections.
8693 * somread.c (som_symtab_read): Compute BFD section for
8694 symbol. Use prim_record_minimal_symbol_and_info.
8695 (som_symfile_read): Fix comment.
8696 (struct find_section_offset_arg): New.
8697 (find_section_offset, set_section_index): New functions.
8698 (som_symfile_offsets): Use set_section_index to compute
8699 section indices.
8700
65cf3563
TT
87012013-04-08 Tom Tromey <tromey@redhat.com>
8702
8703 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8704 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8705 gdb_bfd_section_index.
8706 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8707 New functions.
8708 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8709 Declare.
8710 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8711 Update.
8712 * objfiles.c (add_to_objfile_sections_full): New function.
8713 (add_to_objfile_sections): Use it.
8714 (build_section_table): Rewrite.
8715 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8716 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8717 (struct objfile) <sections>: Update comment.
8718 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8719 is NULL.
8720 (ALL_OBJSECTIONS): Use it.
8721 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8722 * solib-frv.c (frv_relocate_main_executable): Update.
8723 * solib-target.c (solib_target_relocate_section_addresses):
8724 Use gdb_bfd_section_index.
8725 * symfile.c (build_section_addr_info_from_section_table):
8726 Use gdb_bfd_section_index.
8727 (build_section_addr_info_from_bfd, place_section): Likewise.
8728 * symtab.c (fixup_section): Update.
8729 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8730
7cbd4a93
TT
87312013-04-08 Tom Tromey <tromey@redhat.com>
8732
8733 * minsyms.h (struct bound_minimal_symbol): New.
8734 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8735 Remove objfile argument.
8736 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8737 Return bound_minimal_symbol.
8738 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8739 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8740 Return bound_minimal_symbol.
8741 (in_gnu_ifunc_stub): Update.
8742 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8743 Remove 'objfile_p' argument.
8744 (lookup_solib_trampoline_symbol_by_pc): Update.
8745 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8746 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8747 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8748 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8749 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8750 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8751 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8752 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8753 stack.c, symtab.c, tui/tui-disasm.c: Update.
8754
f85f34ed
TT
87552013-04-08 Tom Tromey <tromey@redhat.com>
8756
8757 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8758 Use symbol's obstack, not an objfile.
8759 * coffread.c (process_coff_symbol): Update.
8760 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8761 * jv-lang.c (add_class_symbol): Update.
8762 * mdebugread.c (new_symbol): Update.
8763 * minsyms.c (prim_record_minimal_symbol_full)
8764 (terminate_minimal_symbol_table): Update.
8765 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8766 * stabsread.c (define_symbol, read_enum_type): Update.
8767 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8768 Handle Ada specially.
8769 (symbol_set_language): Add 'obstack' argument.
8770 (symbol_set_names): Update.
8771 (symbol_natural_name, symbol_demangled_name): Always use
8772 ada_decode_symbol.
8773 * symtab.h (struct general_symbol_info)
8774 <language_specific::obstack>: New field.
8775 <ada_mangled>: New field.
8776 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8777 (symbol_set_language): Update.
8778
ccde22c0
TT
87792013-04-08 Tom Tromey <tromey@redhat.com>
8780
8781 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8782 Take an obstack, not an objfile.
8783 (symbol_set_names): Update.
8784 * symtab.h (symbol_set_demangled_name): Update.
8785
e623cf5d
TT
87862013-04-08 Tom Tromey <tromey@redhat.com>
8787
8788 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8789 allocate_symbol.
8790 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8791 (read_func_scope): Call allocate_template_symbol.
8792 (new_symbol_full): Call allocate_symbol.
8793 * jit.c (finalize_symtab): Call allocate_symbol.
8794 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8795 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8796 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8797 (common_block_end): Call allocate_symbol.
8798 * symtab.c (allocate_symbol, initialize_symbol)
8799 (allocate_template_symbol): New functions.
8800 * symtab.c (allocate_symbol, initialize_symbol)
8801 (allocate_template_symbol): Declare.
8802 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8803
f6de8ec2
PA
88042013-04-08 Pedro Alves <palves@redhat.com>
8805 Keith Seitz <keiths@redhat.com>
8806
8807 * breakpoint.c (create_breakpoint): Rename
8808 "parse_condition_and_thread" parameter to "parse_arg". Update
8809 describing comment. If !PARSE_ARG, then error out if ARG is not
8810 the empty string after extracting the location.
8811 * breakpoint.h (create_breakpoint): Rename
8812 "parse_condition_and_thread" parameter to "parse_arg".
8813
f65ce5fb
AR
88142013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8815
8816 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8817
cc5925ad
YQ
88182013-04-07 Yao Qi <yao@codesourcery.com>
8819
8820 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8821 and 'addr2' to CORE_ADDR.
8822 * target.c (update_current_target): Update.
8823 * target.h (struct target_ops) <to_trace_find>: Change parameter
8824 type to CORE_ADDR.
8825 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8826 'addr2' to CORE_ADDR.
8827 (tfile_trace_find): Likewise.
8828 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8829 Change local variable 'addr' to type CORE_ADDR.
8830 * tracepoint.h (tfind_1): Update declaration.
8831
d9ac0664
EZ
88322013-04-06 Eli Zaretskii <eliz@gnu.org>
8833
8834 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8835 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8836 Include main.h.
8837
8838 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8839 here...
8840 * main.h (windows_get_absolute_argv0): ...to here.
8841
02142a6c
DE
88422013-04-05 Doug Evans <dje@google.com>
8843
8844 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8845 (read_cutu_die_from_dwo): Add comments.
8846 (read_structure_type): Update comment.
8847 (read_enumeration_type, read_namespace_type): Update comment.
8848 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8849
43662968
JK
88502013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8851
8852 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8853 * Makefile.in (gdb.z): Remove.
8854 (install-only): Remove $(man1dir) and gdb.1 installation.
8855 * gdb.1: Remove.
8856
9ead1b84
JK
88572013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8858
8859 Fix compatibility with Linux kernel 3.8.3.
8860 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8861 to more inner block. Remove parsing of NUMBER from outer block.
8862 Parse NUMBER only if KEYWORD has been identified.
8863
d1794952
JK
88642013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8865
8866 Fix variable name shadowing.
8867 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8868 filename to mapsfilename and update its uses.
8869
9025569e
EZ
88702013-04-05 Eli Zaretskii <eliz@gnu.org>
8871
8872 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8873 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8874 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8875 details of the problem.
8876
c9a6ce02
PA
88772013-04-04 Pedro Alves <palves@redhat.com>
8878 Hui Zhu <hui@codesourcery.com>
8879
8880 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8881 tracepoint, reset its STEP_COUNT and call validate_actionline.
8882
5ff888ce
DE
88832013-04-03 Doug Evans <dje@google.com>
8884
bf6af496
DE
8885 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8886 read_die_and_siblings.
8887 (read_die_and_siblings): New function.
8888 (read_cutu_die_from_dwo): Dump die if requested.
8889 (read_die_and_children): Call read_full_die_1 and
8890 read_die_and_siblings_1.
8891 (read_full_die): Dump die if requested.
8892
8893 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8894
0ac5b59e
DE
8895 * dwarf2read.c (struct dwo_file): New member comp_dir.
8896 Rename member name to dwo_name. All uses updated.
8897 (hash_dwo_file): Include comp_dir in computation.
8898 (eq_dwo_file): Ditto.
8899 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8900 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8901
5ff888ce
DE
8902 * psymtab.c (read_psymtabs_with_fullname): Don't call
8903 psymtab_to_fullname if the basenames are different.
8904
ec83d211
JK
89052013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8906
8907 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8908 New entry about "fullname" presence.
8909
4f4352f7
PA
89102013-04-03 Pedro Alves <palves@redhat.com>
8911
8912 * NEWS: Mention x86_64/Cygwin as new native configuration.
8913
3d1d5ea3
DE
89142013-04-02 Doug Evans <dje@google.com>
8915
8916 * dwarf2read.c (read_structure_type): Fix typo in comment.
8917
be9a8770
PA
89182013-04-02 Pedro Alves <palves@redhat.com>
8919
8920 * NEWS: Mention "set/show debug aarch64", "set/show debug
8921 coff-pe-read" and "set/show debug mach-o".
8922
a46c1e42
PA
89232013-04-02 Pedro Alves <palves@redhat.com>
8924
8925 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8926
3ad18b19
EZ
89272013-04-02 Eli Zaretskii <eliz@gnu.org>
8928
8929 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8930 gdb_string.h is now in common/.
8931
e9f1758d
PA
89322013-04-02 Pedro Alves <palves@redhat.com>
8933
8934 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8935 under "New options".
8936
049dc89b
JK
89372013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8938
8939 Revert this patch:
8940 PR gdb/15275
8941 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8942
c33e31fd
PA
89432013-04-02 Pedro Alves <palves@redhat.com>
8944
8945 PR gdb/15275
8946
8947 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8948 (remote_serial_write): New function.
8949 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8950
ea5f3910
JW
89512013-04-01 Jiong Wang <jiwang@tilera.com>
8952
8953 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8954 "New targets" sections.
ea5f3910 8955
5c6fa7ab
DE
89562013-04-01 Doug Evans <dje@google.com>
8957
c0f78cd4
DE
8958 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8959 (process_enumeration_scope): Simplify.
8960
0186c6a7
DE
8961 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8962 type_unit_group ...
8963 (struct signatured_type): ... to here.
8964 (sig_type_ptr): New typedef.
8965 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8966 out of union 't'. All uses updated.
8967 (dw2_get_file_names_reader): Assert not called for a type unit.
8968 (dw2_get_file_names): Assert not called for a type unit or type
8969 unit group.
8970 (build_type_psymtabs_reader): Assert called for a type unit.
8971 (build_type_psymtab_dependencies): Assert called for a type unit group.
8972
5c6fa7ab
DE
8973 * dwarf2read.c (free_dwo_file): Add comment.
8974 (dwarf2_per_objfile_free): Unref dwp bfd.
8975
b3c0ad67 89762013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8977
8978 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8979 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8980 (read_pe_exported_syms): Remove unused 'exportix'.
8981 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8982 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8983 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8984
e2df1547
AR
89852013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8986
8987 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8988 (print_it_watchpoint): Remove unused 'bl'.
8989 (say_where): Remove unused 'uiout'.
8990 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8991 (bkpt_breakpoint_hit): Remove unused 'b'.
8992 (internal_bkpt_print_it): Remove unused 'uiout'.
8993 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8994
d81e75c0
TD
89952013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8996
8997 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8998 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8999
5a8b3f62
DE
90002013-03-29 Doug Evans <dje@google.com>
9001
ab5088bf
DE
9002 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9003 Delete arg is_dwp. All callers updated.
9004 (open_dwp_file): New function.
9005 (open_and_init_dwp_file): Call it.
9006 (get_dwp_file): New function.
9007 (lookup_dwo_cutu): Call it.
9008
a8ad1e57
DE
9009 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9010 unnecessary, cleanup.
9011
6296d8c1
DE
9012 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9013
b0c7bfa9
DE
9014 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9015 (lookup_dwo_unit): New function.
9016 (init_cutu_and_read_dies): Move DWO handling to new functions.
9017
c88ee1f0
DE
9018 * dwarf2read.c (struct signatured_type): Tweak comment.
9019 (struct dwo_unit): Tweak comment.
9020 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9021 (create_dwo_debug_info_hash_table): Tweak comment.
9022 (dwarf2_per_cu_offset_and_type): Tweak comment.
9023
5a8b3f62
DE
9024 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9025 missing .debug_types section.
9026
9852c492
YQ
90272013-03-29 Yao Qi <yao@codesourcery.com>
9028
9029 * corelow.c: Include "completer.h".
9030 (_initialize_corelow): Call add_target_with_completer with
9031 argument 'filename_completer'.
9032 * tracepoint.c: Likewise.
9033 * exec.c (_initialize_exec): Likewise.
9034 * target.c (add_target): Rename to ...
9035 (add_target_with_completer): ... this. Call set_cmd_completer
9036 if parameter completer is not NULL.
9037 (add_target): New.
9038 * target.h: Include "command.h".
9039 (add_target_with_completer): Declare it.
9040
af312be7
JB
90412013-03-28 Joel Brobecker <brobecker@adacore.com>
9042
9043 * coffread.c (is_import_fixup_symbol): New function.
9044 (record_minimal_symbol): Use is_import_fixup_symbol to
9045 detect import fixup symbols, and discard them.
9046
8a0459fd
DE
90472013-03-28 Doug Evans <dje@google.com>
9048
0349ea22
DE
9049 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9050 types hash table until we know we need it.
9051
f652bce2
DE
9052 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9053 index numbers.
9054
e4a48d9d
DE
9055 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9056 All callers updated.
9057 (dw2_print_stats): Print #read CUs too.
9058 (dump_die_shallow): Print signatured types better.
9059
8a0459fd
DE
9060 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9061 info_or_types_section to section. All uses updated.
9062 (struct dwo_unit): Ditto.
9063
bd3eecc3
PA
90642013-03-28 Pedro Alves <palves@redhat.com>
9065
9066 * NEWS (New options): New section.
9067 (New options): Mention set/show remote trace-status-packet.
9068 * remote.c (PACKET_qTStatus): New enumeration value.
9069 (remote_get_trace_status): Skip sending qTStatus if the packet is
9070 disabled. Use packet_ok.
9071 (_initialize_remote): Register a configuration command for
9072 qTStatus packet.
9073
41245087
DE
90742013-03-28 Doug Evans <dje@google.com>
9075
7edbb660
DE
9076 * symfile.c (find_separate_debug_file): Add comment.
9077 (terminate_after_last_dir_separator): Tweak comment.
9078
0018ea6f
DE
9079 * dwarf2read.c (create_partial_symtab): Add forward decl.
9080 (create_partial_symtab): Move to be closer to other psymtab functions.
9081 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9082
ca69b9e6
DE
9083 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9084 (compute_symtab_includes): Remove unnecessary forward declaration.
9085 (die_needs_namespace): Add comment marking group of functions for
9086 dwarf2 name computation.
9087
a9375afe
DE
9088 * typeprint.c (_initialize_typeprint): Improve type help text.
9089
41245087
DE
9090 * python/python.c (finish_python_initialization): Provide suggestion
9091 for how to tell gdb to find its python files.
9092
7f7cc265
PA
90932013-03-28 Pedro Alves <palves@redhat.com>
9094
9095 PR gdb/15294
9096
9097 * source.c (_initialize_source): Change back "set listsize" to an
9098 integer command.
9099
ec21308c
JK
91002013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9101
9102 PR gdb/15275
9103 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9104
840a9a1f
PA
91052013-03-27 Pedro Alves <palves@redhat.com>
9106
9107 * top.c (history_size): Rename to ...
9108 (history_size_setshow_var): ... this. Add comment.
9109 (show_commands): Use readline's 'history_length' instead of
9110 computing the history length by calling history_get in a loop.
9111 (set_history_size_command): Error out for sizes over INT_MAX.
9112 Restore previous history size on invalid size.
9113 (init_history): If HISTSIZE is negative, leave the history size as
9114 zero. Add comments.
9115 (init_main): Adjust.
9116
826ecc4d
PA
91172013-03-27 Pedro Alves <palves@redhat.com>
9118
9119 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9120 coff_pe_read" command to "set debug coff-pe-read".
9121
0ccfeeae
MM
91222013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9123
9124 * record.c (command_size_to_target_size): Fix size comparison.
9125 Change parameter type from pointer to integer to integer.
9126 Update all users.
9127
40653b35
PM
91282013-03-27 Pierre Muller <muller@sourceware.org>
9129
9130 * windows-nat.c (handle_output_debug_string): Avoid typecast
9131 from integer of different size warning.
9132
c62fa0e2
JB
91332013-03-26 Joel Brobecker <brobecker@adacore.com>
9134
9135 * windows-nat.c (handle_output_debug_string): Add empty line
9136 after local block variable definition.
9137
2c619be2
PA
91382013-03-26 Pedro Alves <palves@redhat.com>
9139
9140 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9141 (net_open): Make 'polls' local unsigned.
9142
1b493192
PA
91432013-03-26 Pedro Alves <palves@redhat.com>
9144
9145 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9146 a zuinteger command instead of uinteger.
9147
7ee70bf5
PA
91482013-03-26 Pedro Alves <palves@redhat.com>
9149
9150 * record-full.c (record_full_insn_num): Make it unsigned.
9151 (record_full_check_insn_num, record_full_message)
9152 (record_full_registers_change, record_full_xfer_partial): Remove
9153 record_full_insn_max_num check (it's always != 0).
9154 (record_full_info, record_full_restore): Use %u as format string.
9155 (): Use %u as format string.
9156 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9157 check (it's always != 0).
9158
dfd1f9bb
PA
91592013-03-26 Pedro Alves <palves@redhat.com>
9160
9161 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9162 and "set dcache size" commands zuinteger instead of uinteger.
9163
addb4faf
PA
91642013-03-26 Pedro Alves <palves@redhat.com>
9165
9166 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9167 command zuinteger instead of uinteger.
9168
b75bf488
PA
91692013-03-26 Pedro Alves <palves@redhat.com>
9170
9171 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9172 zuinteger instead of uinteger.
9173
42c634cb
PA
91742013-03-26 Pedro Alves <palves@redhat.com>
9175
9176 * record.c (record_insn_history_size_setshow_var)
9177 (record_call_history_size_setshow_var): New globals.
9178 (command_size_to_target_size): New function.
9179 (cmd_record_insn_history, cmd_record_call_history): Use
9180 command_size_to_target_size instead of cast.
9181 (validate_history_size, set_record_insn_history_size)
9182 (set_record_call_history_size): New functions.
9183 (_initialize_record): Install set_record_insn_history_size and
9184 set_record_call_history_size as "set" hooks of "set record
9185 instruction-history-size" and "set record
9186 function-call-history-size".
9187
1fb2e2b5
PA
91882013-03-26 Pedro Alves <palves@redhat.com>
9189
9190 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9191 use with history_max_entries use. Remove FIXME note.
9192
99c819ee
MM
91932013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9194
9195 * record-btrace.c (record_btrace_close): Call
9196 record_btrace_auto_disable.
9197
9f9e404c
JB
91982013-03-25 Joel Brobecker <brobecker@adacore.com>
9199
9200 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9201
ebcdfe33
DE
92022013-03-25 Doug Evans <dje@google.com>
9203
9204 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9205
24955f63
TT
92062013-03-25 Tom Tromey <tromey@redhat.com>
9207
9208 PR symtab/11462:
9209 * c-exp.y (exp): Add new productions for destructors after '.' and
9210 '->'.
9211 (write_destructor_name): New function.
9212
fce632b6
TT
92132013-03-25 Tom Tromey <tromey@redhat.com>
9214
9215 PR c++/9197:
9216 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9217 value_struct_elt, not lookup_struct_elt_type.
9218 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9219 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9220 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9221
a4341769
YQ
92222013-03-25 Yao Qi <yao@codesourcery.com>
9223
9224 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9225 instead of '_mkdir'.
9226
b5981e5a
EZ
92272013-03-23 Eli Zaretskii <eliz@gnu.org>
9228
9229 * windows-nat.c (windows_get_absolute_argv0): New function.
9230 * windows-nat.h: Add its prototype.
9231
9232 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9233 Use IS_DIR_SEPARATOR instead of looking for a character inside
9234 SLASH_STRING. Include filenames.h.
9235 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9236 relocate_gdb_directory works when passed gdb_program_name.
9237 Include windows-nat.h.
9238
598d3636
JK
92392013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9240
9241 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9242 * remote.c (trace_error): Remove the special handling of '2'.
9243 (readchar) <SERIAL_EOF>
9244 (readchar) <SERIAL_ERROR>
9245 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9246 (remote_get_trace_status): Call throw_exception if EX is
9247 TARGET_CLOSE_ERROR.
9248 * utils.c (perror_with_name): Rename to ...
9249 (throw_perror_with_name): ... here. New parameter errcode, describe it
9250 in the function comment.
9251 (perror_with_name): New function wrapper.
9252 * utils.h (enum errors): New stub declaration.
9253 (throw_perror_with_name): New declaration.
9254
82b821e9
PA
92552013-03-22 Pedro Alves <palves@redhat.com>
9256 Yao Qi <yao@codesourcery.com>
9257 Mark Kettenis <kettenis@gnu.org>
9258
9259 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9260 Don't let the user set the value to UINT_MAX directly.
9261 <var_integer>: Don't let the user set the value to INT_MAX
9262 directly.
9263
78a095c3
JK
92642013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9265
9266 * remote.c (remote_unpush_target): New function.
9267 (remote_open_1): Remove two pop_target calls, update one comment, add
9268 comment to target_preopen call. Replace pop_target call by
9269 remote_unpush_target call.
9270 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9271 pop_target calls by remote_unpush_target calls.
9272
3e74e146
PA
92732013-03-22 Pedro Alves <palves@redhat.com>
9274
9275 * linux-nat.c (linux_child_follow_fork): Don't call
9276 linux_enable_event_reporting.
9277 (linux_handle_extended_wait): Don't call
9278 linux_enable_event_reporting.
9279
a2213dca
PA
92802013-03-22 Pedro Alves <palves@redhat.com>
9281
9282 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9283 use it to rewrite the trampoline buffers with type gdb_byte[], and
9284 undefine the macro. Remove char* cast.
9285
bd712aed
DE
92862013-03-21 Doug Evans <dje@google.com>
9287
9288 New commands "mt set per-command {space,time,symtab} {on,off}".
9289 * NEWS: Add entry.
9290 * event-top.c: #include "maint.h".
9291 * main.c: #include "maint.h".
9292 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9293 timeval-utils.h, maint.h, cli/cli-setshow.h.
9294 (per_command_time, per_command_space): New static globals.
9295 (per_command_symtab): New static global.
9296 (per_command_setlist, per_command_showlist): New static globals.
9297 (struct cmd_stats): Move here from utils.c.
9298 (set_per_command_time): Renamed from set_display_time in utils.c
9299 and moved here. All callers updated.
9300 (set_per_command_space): Renamed from set_display_space in utils.c
9301 and moved here. All callers updated.
9302 (count_symtabs_and_blocks): New function.
9303 (report_command_stats): Moved here from utils.c. Add support for
9304 printing symtab stats. Only print data if enabled before command
9305 executed.
9306 (make_command_stats_cleanup): Ditto.
9307 (sert_per_command_cmd, show_per_command_cmd): New functions.
9308 (_initialize_maint_cmds): Add new commands
9309 mt set per-command {space,time,symtab} {on,off}.
9310 * maint.h: New file.
9311 * top.c: #include "maint.h".
9312 * utils.c (reset_prompt_for_continue_wait_time): New function.
9313 (get_prompt_for_continue_wait_time): New function.
9314 * utils.h (reset_prompt_for_continue_wait_time): Declare
9315 (get_prompt_for_continue_wait_time): Declare.
9316 (make_command_stats_cleanup): Moved to maint.h.
9317 (set_display_time, set_display_space): Moved to maint.h and renamed
9318 to set_per_command_time, set_per_command_space.
9319 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9320 parse_binary_operation and made non-static. Don't call error,
9321 just return an error marker. All callers updated.
9322 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9323
d76488d8
TT
93242013-03-21 Tom Tromey <tromey@redhat.com>
9325
9326 * symfile.c (alloc_section_addr_info): Update header. Don't set
9327 'num_sections' field.
9328 (build_section_addr_info_from_section_table): Set 'num_sections'.
9329 (build_section_addr_info_from_bfd): Likewise.
9330 (build_section_addr_info_from_objfile): Remove dead loop
9331 condition.
9332 (free_section_addr_info): Unconditionally call xfree.
9333 (relative_addr_info_to_section_offsets, addrs_section_sort)
9334 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9335 condition.
9336 (syms_from_objfile_1): Remove dead 'if' condition. Check
9337 'num_sections'.
9338 (add_symbol_file_command): Set 'num_sections'.
9339 * symfile-mem.c (symbol_file_add_from_memory): Set
9340 'num_sections'.
9341 * somread.c (som_symfile_offsets): Remove dead loop condition.
9342 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9343 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9344
a72e5169 93452013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9346
9347 * tracepoint.h (decode_agent_options): Add 'trace_string'
9348 argument.
9349 * tracepoint.c (decode_agent_options): Add 'trace_string'
9350 argument.
9351 (validate_actionline): Update.
9352 (collect_symbol): Add 'trace_string' argument.
9353 (struct add_local_symbols_data) <trace_string>: New field.
9354 (do_collect_symbol): Update.
9355 (add_local_symbols): Add 'trace_string' argument.
9356 (encode_actions_1): Update.
9357 (trace_dump_actions): Update.
9358 * dwarf2loc.c (access_memory): Update.
9359 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9360 * ax-general.c (new_agent_expr): Update.
9361 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9362 (gen_trace_for_return_address): Add argument.
9363 (trace_kludge, trace_string_kludge): Remove.
9364 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9365 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9366 (gen_trace_for_var): Add 'trace_string' argument.
9367 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9368 (gen_printf, agent_eval_command_one): Update.
9369
b2f83c08
TT
93702013-03-21 Tom Tromey <tromey@redhat.com>
9371
9372 PR exp/15109:
9373 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9374 Handle FILENAME token.
9375
9507860e
TT
93762013-03-21 Tom Tromey <tromey@redhat.com>
9377
9378 * c-exp.y (YYPRINT): Define.
9379 (c_print_token): New function.
9380
e403aa4b
TT
93812013-03-21 Tom Tromey <tromey@redhat.com>
9382
9383 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9384
af307d6a
YQ
93852013-03-21 Yao Qi <yao@codesourcery.com>
9386
9387 * ctf.c: Include "gdb_stat.h".
9388 [USE_WIN32API]: New macro 'mkdir'.
9389 (ctf_start): Use permission bits macros if they are defined.
9390
fb81d016
KS
93912013-03-20 Keith Seitz <keiths@redhat.com>
9392
9393 * breakpoint.h (struct breakpoint): Add comment to
9394 extra_string indicating that this member is mallod'd.
9395 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9396
ef0026f0
PA
93972013-03-20 Pedro Alves <palves@redhat.com>
9398
9399 PR gdb/15289
9400
9401 * cli/cli-setshow.c (do_set_command)
9402 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9403 the result of parsing the command argument. Throw error if the
9404 value is greater than UINT_MAX. Print the invalid value with
9405 plongest.
9406 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9407 result of parsing the command argument. Throw error if the value
9408 is greater than INT_MAX, not greater or equal. Also throw error
9409 if the value is less than INT_MIN. Print the invalid value with
9410 plongest.
9411 <var_zuinteger_unlimited>: Throw error if the value is greater
9412 than INT_MAX, not greater or equal.
9413 (do_show_command) <var_integer, var_zinteger,
9414 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9415
24d6c2a0
TT
94162013-03-20 Tom Tromey <tromey@redhat.com>
9417
9418 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9419 if possible.
9420 * dwarf2read.c (read_func_scope): Remove old FIXME.
9421 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9422 not LOC_COMPUTED.
9423 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9424 Unconditionally call via computed ops, if possible.
9425 * printcmd.c (address_info): Unconditionally call via computed ops,
9426 if possible.
9427 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9428 if possible.
9429 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9430 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9431 if possible.
9432
f1e6e072
TT
94332013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9434 Tom Tromey <tromey@redhat.com>
9435
9436 PR symtab/8421:
9437 * coffread.c (coff_register_index): New global.
9438 (process_coff_symbol, coff_read_enum_type): Set
9439 SYMBOL_ACLASS_INDEX.
9440 (_initialize_coffread): Initialize new global.
9441 * dwarf2loc.c (locexpr_find_frame_base_location)
9442 (dwarf2_block_frame_base_locexpr_funcs)
9443 (loclist_find_frame_base_location)
9444 (dwarf2_block_frame_base_loclist_funcs): New.
9445 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9446 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9447 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9448 (dwarf2_block_frame_base_loclist_funcs): New.
9449 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9450 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9451 globals.
9452 (read_func_scope): Update.
9453 (fixup_go_packaging, mark_common_block_symbol_computed)
9454 (var_decode_location, new_symbol_full, dwarf2_const_value):
9455 Set SYMBOL_ACLASS_INDEX.
9456 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9457 (_initialize_dwarf2_read): Initialize new globals.
9458 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9459 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9460 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9461 globals.
9462 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9463 (_initialize_mdebugread): Initialize new globals.
9464 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9465 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9466 (stab_register_index, stab_regparm_index): New globals.
9467 (define_symbol, read_enum_type, common_block_end): Set
9468 SYMBOL_ACLASS_INDEX.
9469 (_initialize_stabsread): Initialize new globals.
9470 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9471 globals.
9472 (MAX_SYMBOL_IMPLS): New define.
9473 (register_symbol_computed_impl, register_symbol_block_impl)
9474 (register_symbol_register_impl)
9475 (initialize_ordinary_address_classes): New functions.
9476 (_initialize_symtab): Call initialize_ordinary_address_classes.
9477 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9478 (struct symbol_impl): New.
9479 (SYMBOL_ACLASS_BITS): New define.
9480 (struct symbol) <aclass, ops>: Remove fields.
9481 <aclass_index>: New field.
9482 (symbol_impls): Declare.
9483 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9484 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9485 (register_symbol_computed_impl, register_symbol_block_impl)
9486 (register_symbol_register_impl): Declare.
9487 (struct symbol_computed_ops): Add location_has_loclist.
9488 (struct symbol_block_ops): New.
9489 (SYMBOL_BLOCK_OPS): New.
9490 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9491
dbccfd4c
TT
94922013-03-20 Tom Tromey <tromey@redhat.com>
9493
9494 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9495 (print_partial_symbols, recursively_search_psymtabs): Use
9496 PSYMBOL_CLASS.
9497
e3f1ad4f
PM
94982013-03-20 Pierre Muller <muller@sourceware.org>
9499
9500 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9501 addtion, subtraction, multiplication and division binary operator.
9502
460014f5
JK
95032013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9504
9505 Code cleanup.
9506 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9507 * bsd-kvm.c (bsd_kvm_close): Likewise.
9508 * bsd-uthread.c (bsd_uthread_close): Likewise.
9509 * corelow.c (core_close): Likewise.
9510 (core_close_cleanup): Remove parameter quitting from a caller.
9511 * event-top.c (async_disconnect): Likewise.
9512 * exec.c (exec_close_1): Remove parameter quitting.
9513 * go32-nat.c (go32_close): Likewise.
9514 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9515 parameter quitting from a caller.
9516 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9517 variable.
9518 (mips_linux_close): Remove parameter quitting. Remove parameter
9519 quitting from a caller.
9520 * monitor.c (monitor_close): Remove parameter quitting.
9521 * monitor.h (monitor_close): Likewise.
9522 * record-btrace.c (record_btrace_close): Likewise.
9523 * record-full.c (record_full_close): Likewise.
9524 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9525 it also from fprintf_unfiltered.
9526 * remote-mips.c (mips_close): Remove parameter quitting.
9527 (mips_detach): Remove parameter quitting from a caller.
9528 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9529 (gdbsim_close): Remove duplicate function comment. Remove parameter
9530 quitting and remove it also from printf_filtered.
9531 * remote.c (remote_close): Remove parameter quitting.
9532 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9533 * target.c (update_current_target): Remove parameter int from to_close
9534 de_fault.
9535 (push_target, unpush_target, pop_target): Remove parameter quitting from
9536 a caller.
9537 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9538 Remove parameter quitting from a caller.
9539 (target_preopen): Remove parameter quitting from a caller.
9540 (target_close): Remove parameter quitting. Remove parameter quitting
9541 from a caller two times. Remove parameter quitting also from
9542 fprintf_unfiltered.
9543 * target.h (struct target_ops): Remove parameter quitting and as int
9544 from fields to_xclose and to_close.
9545 (extern struct target_ops current_target):
9546 (target_close, pop_all_targets): Remove parameter quitting. Update the
9547 comment.
9548 (pop_all_targets_above): Remove parameter quitting.
9549 * top.c (quit_target): Remove parameter quitting from a caller.
9550 * tracepoint.c (tfile_close): Remove parameter quitting.
9551 * windows-nat.c (windows_close): Remove parameter quitting.
9552
35a7120b
CV
95532013-03-20 Corinna Vinschen <vinschen@redhat.com>
9554
9555 * windows-nat.c (handle_output_debug_string): Replace call
9556 to string_to_core_addr with call to strtoull.
9557
8249a5a9
YQ
95582013-03-20 Yao Qi <yao@codesourcery.com>
9559
9560 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9561 and write it to CTF metadata.
9562
2c15ef43
CV
95632013-03-19 Corinna Vinschen <vinschen@redhat.com>
9564
9565 * windows-nat.c (handle_output_debug_string): Change type of n to
9566 SIZE_T to avoid crash on 64 bit systems.
9567
1cdd3232
EZ
95682013-03-17 Eli Zaretskii <eliz@gnu.org>
9569
9570 * python/python-internal.h (HAVE_SNPRINTF)
9571 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9572 about redefinition of snprintf by pyerrors.h.
9573
3cb2ab1a
SE
95742013-03-15 Steve Ellcey <sellcey@mips.com>
9575
9576 * remote-sim.c (sim_command_completer): Make char arguments const.
9577
9ce98649
TT
95782013-03-15 Tom Tromey <tromey@redhat.com>
9579
9580 PR c++/15116:
9581 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9582
dccee2de
TT
95832013-03-14 Tom Tromey <tromey@redhat.com>
9584
9585 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9586 New fields.
9587 (get_file_crc): Move from symfile.c.
9588 (gdb_bfd_crc): New function.
9589 * gdb_bfd.h (gdb_bfd_crc): Declare.
9590 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9591 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9592 (separate_debug_file_exists): Use gdb_bfd_crc.
9593
cc0ea93c
TT
95942013-03-14 Tom Tromey <tromey@redhat.com>
9595
9596 * symfile.c (get_debug_link_info): Remove.
9597 (find_separate_debug_file_by_debuglink): Use
9598 bfd_get_debug_link_info.
9599
08c23b0d
TT
96002013-03-14 Tom Tromey <tromey@redhat.com>
9601
9602 * symtab.c (error_in_psymtab_expansion): New function.
9603 (lookup_symbol_aux_quick)
9604 (basic_lookup_transparent_type_quick): Remove "last resort"
9605 code. Use error_in_psymtab_expansion.
9606
288e77a7
JK
96072013-03-14 Doug Evans <dje@google.com>
9608 Jan Kratochvil <jan.kratochvil@redhat.com>
9609
9610 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9611 any successful compare_filenames_for_search or FILENAME_CMP.
9612 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9613 * symtab.c (iterate_over_some_symtabs): Likewise.
9614
8f1b8b82
JK
96152013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9616
9617 * source.c (print_source_lines_base): Make a local copy of
9618 symtab_to_fullname.
9619
23eb71e4
JK
96202013-03-14 Hui Zhu <hui_zhu@mentor.com>
9621 Jan Kratochvil <jan.kratochvil@redhat.com>
9622
9623 * source.c (print_source_lines_base): Suppress "file" for TUI.
9624
bb869963
SDJ
96252013-03-14 Keith Seitz <keiths@redhat.com>
9626 Alan Matsuoka <alanm@redhat.com>
9627
9628 PR c++/15203
9629 PR c++/15210
9630 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9631 TYPE_CODE_METHOD.
9632 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9633 symbols.
9634
d6682f9e
YQ
96352013-03-14 Yao Qi <yao@codesourcery.com>
9636
9637 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9638 status to tfile if trace is stopped by command 'tstop'.
9639
a22fa6e4
YQ
96402013-03-14 Yao Qi <yao@codesourcery.com>
9641
9642 * tracepoint.c (tfile_write_status): Write trace notes and user
9643 name into tfile if they are not NULL.
9644
d0353e76
YQ
96452013-03-14 Hui Zhu <hui@codesourcery.com>
9646 Yao Qi <yao@codesourcery.com>
9647
9648 * Makefile.in (REMOTE_OBS): Add ctf.o.
9649 (SFILES): Add ctf.c.
9650 (HFILES_NO_SRCDIR): Add ctf.h.
9651 * ctf.c, ctf.h: New files.
9652 * tracepoint.c: Include 'ctf.h'.
9653 (collect_pseudocommand): Remove static.
9654 (trace_save_command): Parse option "-ctf".
9655 Produce different trace file writers per option.
9656 Adjust output message.
9657 (trace_save_tfile, trace_save_ctf): New.
9658 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9659 * mi/mi-main.c: Include 'ctf.h'.
9660 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9661 trace_save_tfile or trace_save_ctf.
9662 * NEWS: Mention these changes.
9663
3f43bc09
YQ
96642013-03-14 Yao Qi <yao@codesourcery.com>
9665
9666 * tracepoint.c (trace_file_writer_xfree): New.
9667 (struct tfile_writer_data): New.
9668 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9669 (tfile_write_header, tfile_write_regblock_type): New.
9670 (tfile_write_status, tfile_write_uploaded_tsv): New.
9671 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9672 (tfile_write_raw_data, (tfile_end): New.
9673 (tfile_write_ops): New global variable.
9674 (TRACE_WRITE_R_BLOCK): New macro.
9675 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9676 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9677 (TRACE_WRITE_V_BLOCK): New macro.
9678 (trace_save): Add extra one parameter WRITER. Make it static.
9679 Use WRITER to writer trace.
9680 (tfile_trace_file_writer_new): New.
9681 (trace_save_command): Caller update.
9682 (trace_save_tfile): Write trace data in TFILE format.
9683 * tracepoint.h (struct trace_frame_write_ops): New.
9684 (struct trace_file_write_ops): New.
9685 (struct trace_file_writer): New.
9686 (trace_save): Remove its declaration.
9687 (trace_save_tfile): Declare it.
9688 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9689 instead of trace_save.
9690
58665b40
PA
96912013-03-13 Pedro Alves <palves@redhat.com>
9692
9693 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9694
10217050
PA
96952013-03-13 Pedro Alves <palves@redhat.com>
9696
9697 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9698 commented out code.
9699 * demangle.c (current_demangling_style_string): Make it const.
9700 (set_demangling_command): Assert the demangling style is known.
9701 Remove all handling of unknown styles. Set
9702 'current_demangling_style_string' to an element of the
9703 demangling_style_names array.
9704 (set_demangling_style): Delete.
9705 (_initialize_demangler): Set current_demangling_style_string to the
9706 element of the demangling_style_names array that corresponds to
9707 the default demangling style. Remove FIXME note. Don't call
9708 set_demangling_style.
9709 * gdb-demangle.h (set_demangling_style): Remove declaration.
9710
6f937416
PA
97112013-03-13 Pedro Alves <palves@redhat.com>
9712
9713 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9714 fields const.
9715 (ada_make_symbol_completion_list): Make "text0" parameter const.
9716 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9717 * breakpoint.c (condition_completer): Make "text" and "word"
9718 parameters const. Adjust.
9719 (check_tracepoint_command): Adjust to validate_actionline
9720 prototype change.
9721 (catch_syscall_completer): Make "text" and "word" parameters
9722 const.
9723 * cli/cli-cmds.c (show_user): Make "comname" local const.
9724 (valid_command_p): Make "command" parameter const.
9725 (alias_command): Make "alias_prefix" and "command_prefix" locals
9726 const.
9727 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9728 (add_alias_cmd): Make "name" and "oldname" parameters const.
9729 Adjust. No longer make copy of OLDNAME.
9730 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9731 (add_setshow_cmd_full, add_setshow_enum_cmd)
9732 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9733 (add_setshow_filename_cmd, add_setshow_string_cmd)
9734 (add_setshow_string_noescape_cmd)
9735 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9736 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9737 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9738 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9739 Make "name" parameter const.
9740 (help_cmd): Rename "command" parameter to "arg". New const local
9741 "command".
9742 (find_cmd): Make "command" parameter const.
9743 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9744 deprecated_cmd_warning prototype change.
9745 (undef_cmd_error): Make "cmdtype" parameter const.
9746 (lookup_cmd): Make "line" parameter const.
9747 (deprecated_cmd_warning): Change type of "text" parameter to
9748 pointer to const char, from pointer to pointer to char. Adjust.
9749 (lookup_cmd_composition): Make "text" parameter const.
9750 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9751 parameters const.
9752 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9753 const.
9754 * cli/cli-script.c (validate_comname): Make "tem" local const.
9755 (define_command): New const local "tem_c". Use it in calls to
9756 lookup_cmd.
9757 (document_command): Make "tem" and "comfull" locals const.
9758 (show_user_1): Make "prefix" and "name" parameters const.
9759 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9760 const.
9761 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9762 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9763 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9764 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9765 (complete_on_enum, add_setshow_enum_cmd)
9766 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9767 (add_setshow_filename_cmd, add_setshow_string_cmd)
9768 (add_setshow_string_noescape_cmd)
9769 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9770 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9771 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9772 Change prototypes, constifying strings.
9773 * completer.c (noop_completer, filename_completer): Make "text"
9774 and "prefix" parameters const.
9775 (location_completer, expression_completer)
9776 (complete_line_internal): Make "text" and "prefix" parameters
9777 const and adjust.
9778 (command_completer, signal_completer): Make "text" and "prefix"
9779 parameters const.
9780 * completer.h (noop_completer, filename_completer)
9781 (expression_completer, location_completer, command_completer)
9782 (signal_completer): Change prototypes.
9783 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9784 parameters const.
9785 * cp-abi.c (cp_abi_completer): Likewise.
9786 * expression.h (parse_expression_for_completion): Change
9787 prototype.
9788 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9789 parameters const.
9790 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9791 * infrun.c (handle_completer): Make "text" and "word" parameters
9792 const.
9793 * interps.c (interpreter_completer): Make "text" and "word"
9794 parameters const.
9795 * language.h (struct language_defn)
9796 <la_make_symbol_completion_list>: Make "text" and "word"
9797 parameters const.
9798 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9799 (parse_exp_in_context): Rename to ...
9800 (parse_exp_in_context_1): ... this.
9801 (parse_exp_in_context): Reimplement, with const hack from
9802 parse_exp_1.
9803 (parse_expression_for_completion): Make "string" parameter const.
9804 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9805 to pointer to const char. Adjust.
9806 (print_command_1): Make "exp" parameter const.
9807 (output_command): Rename to ...
9808 (output_command_const): ... this. Make "exp" parameter const.
9809 (output_command): Reimplement.
9810 (x_command): Adjust.
9811 (display_command): Rename "exp" parameter to "arg". New "exp"
9812 local, const version of "arg".
9813 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9814 "cmd_name" local const.
9815 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9816 call.
9817 (cmdpy_completer): Make "text" and "word" parameters const.
9818 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9819 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9820 const.
9821 * remote.c (_initialize_remote): Make "cmd_name" local const.
9822 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9823 parameters const. Adjust.
9824 (completion_list_add_fields): Make "sym_text", "text" and "word"
9825 parameters const.
9826 (struct add_name_data) <sym_text, text, word>: Make fields const.
9827 (default_make_symbol_completion_list_break_on): Make "text" and
9828 "word" parameters const. Adjust locals.
9829 (default_make_symbol_completion_list)
9830 (make_symbol_completion_list, make_symbol_completion_type)
9831 (make_symbol_completion_list_fn): Make "text" and "word"
9832 parameters const.
9833 (make_file_symbol_completion_list): Make "text", "word" and
9834 "srcfile" parameters const. Adjust locals.
9835 (add_filename_to_list): Make "text" and "word" parameters const.
9836 (struct add_partial_filename_data) <text, word>: Make fields
9837 const.
9838 (make_source_files_completion_list): Make "text" and "word"
9839 parameters const.
9840 * symtab.h (default_make_symbol_completion_list_break_on)
9841 (default_make_symbol_completion_list, make_symbol_completion_list)
9842 (make_symbol_completion_type enum type_code)
9843 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9844 (make_source_files_completion_list): Change prototype.
9845 * top.c (execute_command): Adjust to pass pointer to pointer to
9846 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9847 change.
9848 (set_verbose): Make "cmdname" local const.
9849 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9850 and adjust.
9851 (validate_actionline): Make "line" parameter a pointer to const
9852 char, and adjust.
9853 (encode_actions_1): Make "action_exp" local const, and adjust.
9854 (encode_actions): Adjust.
9855 (replace_comma): Delete.
9856 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9857 const, and adjust. Don't frob the action string while splitting
9858 it at commas. Instead, make a copy of each split substring in
9859 turn.
9860 (trace_dump_command): Adjust to validate_actionline prototype
9861 change.
9862 * tracepoint.h (decode_agent_options, decode_agent_options)
9863 (encode_actions, validate_actionline): Change prototypes.
9864 * valprint.h (output_command): Delete declaration.
9865 (output_command_const): Declare.
9866 * value.c (function_destroyer): Cast const away in xfree call.
9867
a0bcdaa7
PA
98682013-03-13 Pedro Alves <palves@redhat.com>
9869
9870 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9871 rather than casting 'const char * const *' to 'const char **'.
9872 * ada-lex.l (processInt): Make "trailer" local const. Remove
9873 'const char **' cast.
9874 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9875 locals, and use those as strtol output pointer, instead than doing
9876 invalid casts to from 'const char **' to 'char **'.
9877 (_initialize_demangle): Remove cast.
9878 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9879 locals, and use those as strtol output pointer, instead than doing
9880 invalid casts to from 'const char **' to 'char **'.
9881 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9882 casts.
9883 * stap-probe.c (stap_parse_register_operand)
9884 (stap_parse_single_operand): Likewise.
9885
8ddb1965
YQ
98862013-03-13 Yao Qi <yao@codesourcery.com>
9887
9888 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9889 the last matched 'V' blcok in trace frame.
9890
2d450646
JB
98912013-03-12 Joel Brobecker <brobecker@adacore.com>
9892
9893 * NEWS: Create a new section for the next release branch.
9894 Rename the section of the current branch, now that it has
9895 been cut.
9896
b4b79973 98972013-03-12 Joel Brobecker <brobecker@adacore.com>
9898
9899 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9900 * version.in: Bump version to 7.6.50.20130312-cvs.
9901
ee047554
KS
99022013-03-12 Keith Seitz <keiths@redhat.com>
9903
9904 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9905 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9906 Remove temporary copy of input string.
9907 (mi_execute_command_wrapper): Make "cmd" const.
9908 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9909 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9910 Use const strings.
9911 (mi_parse): Make "cmd" const.
9912 Use const strings.
9913 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9914
bbc13ae3
KS
99152013-03-12 Keith Seitz <keiths@redhat.com>
9916
9917 * ada-lang.c (ada_read_renaming_var_value): Pass const
9918 pointer to expression string to parse_exp_1.
9919 (create_excep_cond_exprs): Likewise.
9920 * ax-gdb.c (agent_eval_command_one): Likewise.
9921 (maint_agent_printf_command): Likewise.
9922 Constify much of the string handling/parsing.
9923 * breakpoint.c (set_breakpoint_condition): Pass const
9924 pointer to expression string to parse_exp_1.
9925 (update_watchpoint): Likewise.
9926 (parse_cmd_to_aexpr): Constify string handling.
9927 Pass const pointer to parse_exp_1.
9928 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9929 (find_condition_and_thread): Likewise.
9930 Make TOK const.
9931 (watch_command_1): Make "arg" const.
9932 Constify string handling.
9933 Copy the expression string instead of changing the input
9934 string.
9935 (update_breakpoint_location): Pass const pointer to
9936 parse_exp_1.
9937 * eval.c (parse_and_eval_address): Make "exp" const.
9938 (parse_to_comma_and_eval): Make "expp" const.
9939 (parse_and_eval): Make "exp" const.
9940 * expression.h (parse_expression): Make argument const.
9941 (parse_exp_1): Make first argument const.
9942 * findcmd.c (parse_find_args): Treat "args" as const.
9943 * linespec.c (parse_linespec): Pass const pointer to
9944 linespec_expression_to_pc.
9945 (linespec_expression_to_pc): Make "exp_ptr" const.
9946 * parse.c (parse_exp_1): Make "stringptr" const.
9947 Make a copy of the expression to pass to parse_exp_in_context until
9948 this whole interface can be constified.
9949 (parse_expression): Make "string" const.
9950 * printcmd.c (ui_printf): Treat "arg" as const.
9951 Handle const strings.
9952 * tracepoint.c (validate_actionline): Pass const pointer to
9953 all calls to parse_exp_1.
9954 (encode_actions_1): Likewise.
9955 * value.h (parse_to_comma_and_eval): Make argument const.
9956 (parse_and_eval_address): Likewise.
9957 (parse_and_eval): Likewise.
9958 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9959 (varobj_set_value): Likewise.
9960 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9961 constify string handling.
9962 Pass const pointers to parse_and_eval_address and
9963 parse_to_comman_and_eval.
9964 * cli/cli-utils.c (skip_to_space): Rename to ...
9965 (skip_to_space_const): ... this. Handle const strings.
9966 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9967 skip_to_space_const.
9968 (skip_to_space_const): Declare.
9969 * common/format.c (parse_format_string): Make "arg" const.
9970 Handle const strings.
9971 * common/format.h (parse_format_string): Make "arg" const.
9972 * gdbserver/ax.c (ax_printf): Make "format" const.
9973 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9974 of the expression string.
9975
f3cec7e6
HZ
99762013-03-12 Hui Zhu <hui@codesourcery.com>
9977
9978 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9979
9df7235c
HZ
99802013-03-12 Yao Qi <yao@codesourcery.com>
9981 Hui Zhu <hui@codesourcery.com>
9982
9983 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9984 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9985 DW_OP_deref_size.
9986
82d049ab
PH
99872013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9988
5f8e0b8f
MF
9989 * ada-lex.l (rules): Only recognize 'thread' as a
9990 delimiter when followed by numerals, as for c-exp.y.
9991 Use new rewind_to_char function to rewind the input for
9992 expression-delimiting tokens.
9993 (rewind_to_char): New function.
82d049ab 9994
8c1fb155
JK
99952013-03-11 Pedro Alves <palves@redhat.com>
9996 Jan Kratochvil <jan.kratochvil@redhat.com>
9997
9998 * configure: Regenerate.
9999 * configure.ac (check dynamic export flag): Link python test with
10000 $PYTHON_LIBS.
10001
cc81e1c6
DE
100022013-03-11 Doug Evans <dje@google.com>
10003 Keith Seitz <keiths@redhat.com>
10004
10005 * linespec.c (find_linespec_symbols): Call find_function_symbols
10006 first, and then call lookup_prefix_sym/find_method.
10007
39086a0e
PA
100082013-03-11 Pedro Alves <palves@redhat.com>
10009
10010 * charset.c (convert_between_encodings): Don't cast between
10011 different pointer to pointer types. Instead, make the 'inp' local
10012 be of the type iconv expects.
10013 (wchar_iterate): Don't cast between different pointer to pointer
10014 types. Instead, use new pointer local of the type iconv expects.
10015 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10016 Add new local of type char pointer, and use it to get a
10017 char/string view of the byte buffer, instead of casting between
10018 pointer to pointer types.
10019
90585175
HAQ
100202013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10021
10022 * remote.c (remote_set_trace_buffer_size): Move != operator
10023 to the start of next line to fix an ARI warning.
10024
59ea5688
MM
100252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10026
10027 * NEWS: Add record changes.
10028
946287b7
MM
100292013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10030
10031 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10032 the instruction history disassembly.
10033 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10034 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10035
afedecd3
MM
100362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10037
10038 * Makefile.in (SFILES): Add record-btrace.c
10039 (COMMON_OBS): Add record-btrace.o
10040 * record-btrace.c: New.
10041 * objfiles.c: Include btrace.h.
10042 (free_objfile): call btrace_free_objfile.
10043
15984c13
MM
100442013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10045
10046 * target.c (target_call_history, target_call_history_from,
10047 target_call_history_range): New.
10048 * target.h (target_ops) <to_call_history, to_call_history_from,
10049 to_call_history_range>: New fields.
10050 (target_call_history, target_call_history_from,
10051 target_call_history_range): New declaration.
10052 * record.c (get_call_history_modifiers, cmd_record_call_history,
10053 record_call_history_size): New.
10054 (_initialize_record): Add the "record function-call-history" command.
10055 Add "set/show record function-call-history-size" commands.
10056 * record.h (record_print_flag): New.
10057
67c86d06
MM
100582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10059
10060 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10061 to_insn_history_range>: New fields.
10062 (target_insn_history): New.
10063 (target_insn_history_from): New.
10064 (target_insn_history_range): New.
10065 * target.c (target_insn_history): New.
10066 (target_insn_history_from): New.
10067 (target_insn_history_range): New.
10068 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10069 (record_insn_history_size): New.
10070 (get_insn_number): New.
10071 (get_context_size): New.
10072 (no_chunk): New.
10073 (get_insn_history_modifiers): New.
10074 (cmd_record_insn_history): New.
10075 (_initialize_record): Add "set/show record instruction-history-size"
10076 command. Add "record instruction-history" command.
10077
7c1687a9
MM
100782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10079
10080 * record.h (record_disconnect): New.
10081 (record_detach): New.
10082 (record_mourn_inferior): New.
10083 (record_kill): New.
10084 * record-full.c (record_disconnect, record_detach,
10085 record_mourn_inferior, record_kill): Move to...
10086 * record.c: ...here.
10087 (DEBUG): New.
10088 (record_stop): New.
10089 (record_unpush): New.
10090 (cmd_record_stop): Call record_stop. Replace unpush_target
10091 call with record_unpush call.
10092 (record_disconnect, record_detach): Assert that the target
10093 is of record stratum. Call record_unpush, record_stop, and
10094 DEBUG.
10095 (record_mourn_inferior, record_kill): Assert that the target
10096 is of record stratum. Call record_unpush and DEBUG.
10097
25ea693b
MM
100982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10099
10100 * record-full.h, record-full.c (record_memory_query): Rename
10101 to ...
10102 (record_full_memory_query): ...this. Update all users.
10103 (record_arch_list_add_reg): Rename to ...
10104 (record_full_arch_list_add_reg): ...this. Update all users.
10105 (record_arch_list_add_mem): Rename to ...
10106 (record_full_arch_list_add_mem): ...this. Update all users.
10107 (record_arch_list_add_end): Rename to ...
10108 (record_full_arch_list_add_end): ...this. Update all users.
10109 (record_gdb_operation_disable_set): Rename to ...
10110 (record_full_gdb_operation_disable_set): ...this.
10111 Update all users.
10112
88d1aa9d
MM
101132013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10114
10115 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10116 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10117 (RECORD_IS_REPLAY): Renamed to ...
10118 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10119 (RECORD_FILE_MAGIC): Renamed to ...
10120 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10121 (record_mem_entry): Renamed to ...
10122 (record_full_mem_entry): ... this. Updated all users.
10123 (record_reg_entry): Renamed to ...
10124 (record_full_reg_entry): ... this. Updated all users.
10125 (record_end_entry): Renamed to ...
10126 (record_full_end_entry): ... this. Updated all users.
10127 (record_type) <record_end, record_reg, record_mem>: Renamed
10128 to ...
10129 (record_full_type) <record_full_end, record_full_reg,
10130 record_full_mem>: ... this. Updated all users.
10131 (record_entry): Renamed to ...
10132 (record_full_entry): ... this. Updated all users.
10133 (record_core_buf_entry): Renamed to ...
10134 (record_full_core_buf_entry): ... this. Updated all users.
10135 (record_core_regbuf): Renamed to ...
10136 (record_full_core_regbuf): ... this. Updated all users.
10137 (record_core_start): Renamed to ...
10138 (record_full_core_start): ... this. Updated all users.
10139 (record_core_end): Renamed to ...
10140 (record_full_core_end): ... this. Updated all users.
10141 (record_core_buf_list): Renamed to ...
10142 (record_full_core_buf_list): ... this. Updated all users.
10143 (record_first): Renamed to ...
10144 (record_full_first): ... this. Updated all users.
10145 (record_list): Renamed to ...
10146 (record_full_list): ... this. Updated all users.
10147 (record_arch_list_head): Renamed to ...
10148 (record_full_arch_list_head): ... this. Updated all users.
10149 (record_arch_list_tail): Renamed to ...
10150 (record_full_arch_list_tail): ... this. Updated all users.
10151 (record_stop_at_limit): Renamed to ...
10152 (record_full_stop_at_limit): ... this. Updated all users.
10153 (record_insn_max_num): Renamed to ...
10154 (record_full_insn_max_num): ... this. Updated all users.
10155 (record_insn_num): Renamed to ...
10156 (record_full_insn_num): ... this. Updated all users.
10157 (record_insn_count): Renamed to ...
10158 (record_full_insn_count): ... this. Updated all users.
10159 (record_ops): Renamed to ...
10160 (record_full_ops): ... this. Updated all users.
10161 (record_core_ops): Renamed to ...
10162 (record_full_core_ops): ... this. Updated all users.
10163 (set_record_cmdlist): Renamed to ...
10164 (set_record_full_cmdlist): ... this. Updated all users.
10165 (show_record_cmdlist): Renamed to ...
10166 (show_record_full_cmdlist): ... this. Updated all users.
10167 (record_cmdlist): Renamed to ...
10168 (record_full_cmdlist): ... this. Updated all users.
10169 (record_beneath_to_resume_ops): Renamed to ...
10170 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10171 (record_beneath_to_resume): Renamed to ...
10172 (record_full_beneath_to_resume): ... this. Updated all users.
10173 (record_beneath_to_wait_ops): Renamed to ...
10174 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10175 (record_beneath_to_wait): Renamed to ...
10176 (record_full_beneath_to_wait): ... this. Updated all users.
10177 (record_beneath_to_store_registers_ops): Renamed to ...
10178 (record_full_beneath_to_store_registers_ops): ... this.
10179 Updated all users.
10180 (record_beneath_to_store_registers): Renamed to ...
10181 (record_full_beneath_to_store_registers): ... this.
10182 Updated all users.
10183 (record_beneath_to_xfer_partial_ops): Renamed to ...
10184 (record_full_beneath_to_xfer_partial_ops): ... this.
10185 Updated all users.
10186 (record_beneath_to_xfer_partial): Renamed to ...
10187 (record_full_beneath_to_xfer_partial): ... this.
10188 Updated all users.
10189 (record_beneath_to_insert_breakpoint): Renamed to ...
10190 (record_full_beneath_to_insert_breakpoint): ... this.
10191 Updated all users.
10192 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10193 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10194 Updated all users.
10195 (record_beneath_to_stopped_data_address): Renamed to ...
10196 (record_full_beneath_to_stopped_data_address): ... this.
10197 Updated all users.
10198 (record_beneath_to_async): Renamed to ...
10199 (record_full_beneath_to_async): ... this. Updated all users.
10200 (record_goto_insn): Renamed to ...
10201 (record_full_goto_insn): ... this. Updated all users.
10202 (record_save): Renamed to ...
10203 (record_full_save): ... this. Updated all users.
10204 (record_reg_alloc): Renamed to ...
10205 (record_full_reg_alloc): ... this. Updated all users.
10206 (record_reg_release): Renamed to ...
10207 (record_full_reg_release): ... this. Updated all users.
10208 (record_mem_alloc): Renamed to ...
10209 (record_full_mem_alloc): ... this. Updated all users.
10210 (record_mem_release): Renamed to ...
10211 (record_full_mem_release): ... this. Updated all users.
10212 (record_end_alloc): Renamed to ...
10213 (record_full_end_alloc): ... this. Updated all users.
10214 (record_end_release): Renamed to ...
10215 (record_full_end_release): ... this. Updated all users.
10216 (record_entry_release): Renamed to ...
10217 (record_full_entry_release): ... this. Updated all users.
10218 (record_list_release): Renamed to ...
10219 (record_full_list_release): ... this. Updated all users.
10220 (record_list_release_following): Renamed to ...
10221 (record_full_list_release_following): ... this.
10222 Updated all users.
10223 (record_list_release_first): Renamed to ...
10224 (record_full_list_release_first): ... this. Updated all users.
10225 (record_arch_list_add): Renamed to ...
10226 (record_full_arch_list_add): ... this. Updated all users.
10227 (record_get_loc): Renamed to ...
10228 (record_full_get_loc): ... this. Updated all users.
10229 (record_check_insn_num): Renamed to ...
10230 (record_full_check_insn_num): ... this. Updated all users.
10231 (record_arch_list_cleanups): Renamed to ...
10232 (record_full_arch_list_cleanups): ... this. Updated all users.
10233 (record_message): Renamed to ...
10234 (record_full_message): ... this. Updated all users.
10235 (record_message_wrapper): Renamed to ...
10236 (record_full_message_wrapper): ... this. Updated all users.
10237 (record_message_wrapper_safe): Renamed to ...
10238 (record_full_message_wrapper_safe): ... this. Updated all users.
10239 (record_gdb_operation_disable): Renamed to ...
10240 (record_full_gdb_operation_disable): ... this. Updated all users.
10241 (record_hw_watchpoint): Renamed to ...
10242 (record_full_hw_watchpoint): ... this. Updated all users.
10243 (record_exec_insn): Renamed to ...
10244 (record_full_exec_insn): ... this. Updated all users.
10245 (record_restore): Renamed to ...
10246 (record_full_restore): ... this. Updated all users.
10247 (record_async_inferior_event_token): Renamed to ...
10248 (record_full_async_inferior_event_token): ... this.
10249 Updated all users.
10250 (record_async_inferior_event_handler): Renamed to ...
10251 (record_full_async_inferior_event_handler): ... this.
10252 Updated all users.
10253 (record_core_open_1): Renamed to ...
10254 (record_full_core_open_1): ... this. Updated all users.
10255 (record_open_1): Renamed to ...
10256 (record_full_open_1): ... this. Updated all users.
10257 (record_open): Renamed to ...
10258 (record_full_open): ... this. Updated all users.
10259 (record_close): Renamed to ...
10260 (record_full_close): ... this. Updated all users.
10261 (record_resume_step): Renamed to ...
10262 (record_full_resume_step): ... this. Updated all users.
10263 (record_resumed): Renamed to ...
10264 (record_full_resumed): ... this. Updated all users.
10265 (record_execution_dir): Renamed to ...
10266 (record_full_execution_dir): ... this. Updated all users.
10267 (record_resume): Renamed to ...
10268 (record_full_resume): ... this. Updated all users.
10269 (record_get_sig): Renamed to ...
10270 (record_full_get_sig): ... this. Updated all users.
10271 (record_sig_handler): Renamed to ...
10272 (record_full_sig_handler): ... this. Updated all users.
10273 (record_wait_cleanups): Renamed to ...
10274 (record_full_wait_cleanups): ... this. Updated all users.
10275 (record_wait_1): Renamed to ...
10276 (record_full_wait_1): ... this. Updated all users.
10277 (record_wait): Renamed to ...
10278 (record_full_wait): ... this. Updated all users.
10279 (record_stopped_by_watchpoint): Renamed to ...
10280 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10281 (record_disconnect): Renamed to ...
10282 (record_full_disconnect): ... this. Updated all users.
10283 (record_detach): Renamed to ...
10284 (record_full_detach): ... this. Updated all users.
10285 (record_mourn_inferior): Renamed to ...
10286 (record_full_mourn_inferior): ... this. Updated all users.
10287 (record_kill): Renamed to ...
10288 (record_full_kill): ... this. Updated all users.
10289 (record_stopped_data_address): Renamed to ...
10290 (record_full_stopped_data_address): ... this. Updated all users.
10291 (record_registers_change): Renamed to ...
10292 (record_full_registers_change): ... this. Updated all users.
10293 (record_store_registers): Renamed to ...
10294 (record_full_store_registers): ... this. Updated all users.
10295 (record_xfer_partial): Renamed to ...
10296 (record_full_xfer_partial): ... this. Updated all users.
10297 (record_breakpoint): Renamed to ...
10298 (record_full_breakpoint): ... this. Updated all users.
10299 (record_breakpoint_p): Renamed to ...
10300 (record_full_breakpoint_p): ... this. Updated all users.
10301 (record_breakpoints): Renamed to ...
10302 (record_full_breakpoints): ... this. Updated all users.
10303 (record_sync_record_breakpoints): Renamed to ...
10304 (record_full_sync_record_breakpoints): ... this.
10305 Updated all users.
10306 (record_init_record_breakpoints): Renamed to ...
10307 (record_full_init_record_breakpoints): ... this.
10308 Updated all users.
10309 (record_insert_breakpoint): Renamed to ...
10310 (record_full_insert_breakpoint): ... this. Updated all users.
10311 (record_remove_breakpoint): Renamed to ...
10312 (record_full_remove_breakpoint): ... this. Updated all users.
10313 (record_can_execute_reverse): Renamed to ...
10314 (record_full_can_execute_reverse): ... this. Updated all users.
10315 (record_get_bookmark): Renamed to ...
10316 (record_full_get_bookmark): ... this. Updated all users.
10317 (record_goto_bookmark): Renamed to ...
10318 (record_full_goto_bookmark): ... this. Updated all users.
10319 (record_async): Renamed to ...
10320 (record_full_async): ... this. Updated all users.
10321 (record_can_async_p): Renamed to ...
10322 (record_full_can_async_p): ... this. Updated all users.
10323 (record_is_async_p): Renamed to ...
10324 (record_full_is_async_p): ... this. Updated all users.
10325 (record_execution_direction): Renamed to ...
10326 (record_full_execution_direction): ... this. Updated all users.
10327 (record_info): Renamed to ...
10328 (record_full_info): ... this. Updated all users.
10329 (record_delete): Renamed to ...
10330 (record_full_delete): ... this. Updated all users.
10331 (record_is_replaying): Renamed to ...
10332 (record_full_is_replaying): ... this. Updated all users.
10333 (record_goto_entry): Renamed to ...
10334 (record_full_goto_entry): ... this. Updated all users.
10335 (record_goto_begin): Renamed to ...
10336 (record_full_goto_begin): ... this. Updated all users.
10337 (record_goto_end): Renamed to ...
10338 (record_full_goto_end): ... this. Updated all users.
10339 (record_goto): Renamed to ...
10340 (record_full_goto): ... this. Updated all users.
10341 (init_record_ops): Renamed to ...
10342 (init_record_full_ops): ... this. Updated all users.
10343 (record_core_resume): Renamed to ...
10344 (record_full_core_resume): ... this. Updated all users.
10345 (record_core_kill): Renamed to ...
10346 (record_full_core_kill): ... this. Updated all users.
10347 (record_core_fetch_registers): Renamed to ...
10348 (record_full_core_fetch_registers): ... this. Updated all users.
10349 (record_core_prepare_to_store): Renamed to ...
10350 (record_full_core_prepare_to_store): ... this. Updated all users.
10351 (record_core_store_registers): Renamed to ...
10352 (record_full_core_store_registers): ... this. Updated all users.
10353 (record_core_xfer_partial): Renamed to ...
10354 (record_full_core_xfer_partial): ... this. Updated all users.
10355 (record_core_insert_breakpoint): Renamed to ...
10356 (record_full_core_insert_breakpoint): ... this. Updated all users.
10357 (record_core_remove_breakpoint): Renamed to ...
10358 (record_full_core_remove_breakpoint): ... this. Updated all users.
10359 (record_core_has_execution): Renamed to ...
10360 (record_full_core_has_execution): ... this. Updated all users.
10361 (init_record_core_ops): Renamed to ...
10362 (init_record_full_core_ops): ... this. Updated all users.
10363 (cmd_record_restore): Renamed to ...
10364 (cmd_record_full_restore): ... this. Updated all users.
10365 (record_save_cleanups): Renamed to ...
10366 (record_full_save_cleanups): ... this. Updated all users.
10367 (cmd_record_start): Renamed to ...
10368 (cmd_record_full_start): ... this. Updated all users.
10369 (set_record_insn_max_num): Renamed to ...
10370 (set_record_full_insn_max_num): ... this. Updated all users.
10371 (set_record_command): Renamed to ...
10372 (set_record_full_command): ... this. Updated all users.
10373 (show_record_command): Renamed to ...
10374 (show_record_full_command): ... this. Updated all users.
10375 (_initialize_record): Renamed to ...
10376 (_initialize_record_full): ... this. Updated all users.
10377
d02ed0bb
MM
103782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10379
10380 * record.h: Split into this and ...
10381 * record-full.h: ... this.
10382 * record.c: Split into this and ...
10383 * record-full.c: ... this.
10384 * target.h (target_ops): Add new fields to_info_record,
10385 to_save_record, to_delete_record, to_record_is_replaying,
10386 to_goto_record_begin, to_goto_record_end, to_goto_record.
10387 (target_info_record): New.
10388 (target_save_record): New.
10389 (target_supports_delete_record): New.
10390 (target_delete_record): New.
10391 (target_record_is_replaying): New.
10392 (target_goto_record_begin): New.
10393 (target_goto_record_end): New.
10394 (target_goto_record): New.
10395 * target.c (target_info_record): New.
10396 (target_save_record): New.
10397 (target_supports_delete_record): New.
10398 (target_delete_record): New.
10399 (target_record_is_replaying): New.
10400 (target_goto_record_begin): New.
10401 (target_goto_record_end): New.
10402 (target_goto_record): New.
10403 * record.h: Declare struct cmd_list_element.
10404 (record_cmdlist): New declaration.
10405 (set_record_cmdlist): New declaration.
10406 (show_record_cmdlist): New declaration.
10407 (info_record_cmdlist): New declaration.
10408 (cmd_record_goto): New declaration.
10409 * record.c: Remove unnecessary includes.
10410 Include inferior.h.
10411 (cmd_record_goto): Remove declaration.
10412 (record_cmdlist): Now extern. Initialize.
10413 (set_record_cmdlist): Now extern. Initialize.
10414 (show_record_cmdlist): Now extern. Initialize.
10415 (info_record_cmdlist): Now extern. Initialize.
10416 (find_record_target): New.
10417 (require_record_target): New.
10418 (cmd_record_start): Update.
10419 (cmd_record_delete): Remove target-specific code.
10420 Call target_delete_record.
10421 (cmd_record_stop): Unpush any record target.
10422 (set_record_insn_max_num): Move to record-full.c
10423 (set_record_command): Add comment.
10424 (show_record_command): Add comment.
10425 (info_record_command): Update comment.
10426 Remove target-specific code.
10427 Call the record target's to_info_record.
10428 (cmd_record_start): New.
10429 (cmd_record_goto): Now extern.
10430 Remove target-specific code.
10431 Call target_goto_begin, target_goto_end, or target_goto.
10432 (_initialize_record): Move record target ops initialization to
10433 record-full.c.
10434 Change "record" command help text.
10435 Move "record restore", "record set", and "record show" commands to
10436 record-full.c.
10437 * Makefile.in (SFILES): Add record-full.c.
10438 (HFILES_NO_SRCDIR): Add record-full.h.
10439 (COMMON_OBS): Add record-full.o.
10440 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10441 * arm-tdep.c: Include record-full.h.
10442 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10443 * i386-tdep.c: Include record-full.h.
10444 * infrun.c: Include record-full.h.
10445 * linux-record.c: Include record-full.h.
10446 * moxie-tdep.c: Include record-full.h.
10447 * record-full.c: Include record-full.h.
10448 Change module comment.
10449 (set_record_full_cmdlist): New.
10450 (show_record_full_cmdlist): New.
10451 (record_full_cmdlist): New.
10452 (record_goto_insn): New declaration.
10453 (record_save): New declaration.
10454 (record_check_insn_num): Change query string.
10455 (record_info): New.
10456 (record_delete): New.
10457 (record_is_replaying): New.
10458 (record_goto_entry): New.
10459 (record_goto_begin): New.
10460 (record_goto_end): New.
10461 (record_goto): New.
10462 (init_record_ops): Update.
10463 (init_record_core_ops): Update.
10464 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10465 (cmd_record_start): New.
10466 (set_record_insn_max_num): Moved from record.c
10467 (set_record_full_command): New.
10468 (show_record_full_command): New.
10469 (_initialize_record_full): New.
10470
b48d48eb
MM
104712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10472
10473 * target.h (add_deprecated_target_alias): New.
10474 * target.c (add_deprecated_target_alias): New.
10475
a950d57c
MM
104762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10477
10478 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10479 and signal.h.
10480 (linux_supports_btrace): Add kernel and
10481 cpuid check.
10482 (kernel_supports_btrace): New function.
10483 (cpu_supports_btrace): New function.
10484 (intel_supports_btrace): New function.
10485
9accd112
MM
104862013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10487
10488 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10489 * remote.c: Include btrace.h.
10490 (struct btrace_target_info): New struct.
10491 (remote_supports_btrace): New function.
10492 (send_Qbtrace): New function.
10493 (remote_enable_btrace): New function.
10494 (remote_disable_btrace): New function.
10495 (remote_teardown_btrace): New function.
10496 (remote_read_btrace): New function.
10497 (init_remote_ops): Add btrace ops.
10498 (enum <unnamed>): Add btrace packets.
10499 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10500 (_initialize_remote): Add packet configuration for branch tracing.
10501
c12a2917
MM
105022013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10503
10504 * features/btrace.dtd: New file.
10505 * Makefile.in (XMLFILES): Add btrace.dtd.
10506 * btrace.h (parse_xml_btrace): New declaration.
10507 * btrace.c: Include xml-support.h.
10508 (parse_xml_btrace): New function.
10509 (parse_xml_btrace_block): New function.
10510 (block_attributes): New struct.
10511 (btrace_attributes): New struct.
10512 (btrace_children): New struct.
10513 (btrace_elements): New struct.
10514
3e3aea48
MM
105152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10516
10517 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10518 (amd64_linux_enable_btrace): New.
10519 (amd64_linux_disable_btrace): New.
10520 (amd64_linux_teardown_btrace): New.
10521 (_initialize_amd64_linux_nat): Initialize btrace ops.
10522 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10523 (i386_linux_enable_btrace): New.
10524 (i386_linux_disable_btrace): New.
10525 (i386_linux_teardown_btrace): New.
10526 (_initialize_i386_linux_nat): Initialize btrace ops.
10527 * config/i386/linux.mh: Add linux-btrace.o.
10528 * config/i386/linux64.mh: Add linux-btrace.o.
10529
7c97f91e
MM
105302013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10531
10532 * common/linux_btrace.h: New file.
10533 * common/linux_btrace.c: New file.
10534 * Makefile.in (SFILES): Add btrace.c.
10535 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10536 (COMMON_OBS): Add btrace.o.
10537 (linux-btrace.o): New rule.
10538
1999790b 105392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10540
10541 * target.h: Include btrace.h.
10542 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10543 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10544 * target.c (target_supports_btrace): New function.
10545 (target_enable_btrace): New function.
10546 (target_disable_btrace): New function.
10547 (target_teardown_btrace): New function.
10548 (target_read_btrace): New function.
10549 * btrace.h: New file.
10550 * btrace.c: New file.
10551 * Makefile.in: Add btrace.c.
10552 * gdbthread.h: Include btrace.h.
10553 (struct thread_info): Add btrace field.
10554 * thread.c: Include btrace.h.
10555 (clear_thread_inferior_resources): Call target_teardown_btrace.
10556 * common/btrace-common.h: New file.
10557
61a31a67
JK
105582013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10559
10560 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10561 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10562 kill_status to outer block.
10563
05c56a9d
JK
105642013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10565
10566 Fix entry-values if the callee called a noreturn function.
10567 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10568 get_frame_address_in_block. Add new comment.
10569
9112db09
JK
105702013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10571
10572 Fix entry-values in C++ across CUs.
10573 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10574 lookup_minimal_symbol. Add a comment.
10575 * dwarf2read.c
10576 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10577 DW_AT_linkage_name.
10578
9b67fcec
YQ
105792013-03-08 Yao Qi <yao@codesourcery.com>
10580
10581 * tracepoint.c (_initialize_tracepoint): Indent the code.
10582
6221be90
PA
105832013-03-08 Pedro Alves <palves@redhat.com>
10584
10585 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10586 (parse_find_args, find_command): Change type of pattern buffer
10587 locals to 'gdb_byte *'.
10588
be9a119c 105892013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10590 Hafiz Abid Qadeer <abidh@codesourcery.com>
10591
10592 * NEWS: Mention set and show trace-buffer-size commands.
10593 Mention new packet.
10594 * target.h (struct target_ops): New method
10595 to_set_trace_buffer_size.
10596 (target_set_trace_buffer_size): New macro.
10597 * target.c (update_current_target): Set up new method.
10598 * tracepoint.c (trace_buffer_size): New global.
10599 (start_tracing): Send it to the target.
10600 (set_trace_buffer_size): New function.
10601 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10602 * remote.c (remote_set_trace_buffer_size): New function.
10603 (_initialize_remote): Use it.
10604 (QTBuffer:size) New remote command.
10605 (PACKET_QTBuffer_size): New enum.
10606 (remote_protocol_features): Add an entry for
10607 PACKET_QTBuffer_size.
10608
7da3ab79
TT
106092013-03-08 Tom Tromey <tromey@redhat.com>
10610
10611 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10612 variable.
10613
0c1f71e7
PA
106142013-03-07 Pedro Alves <palves@redhat.com>
10615
10616 * target.c (target_read_stralloc, target_fileio_read_alloc):
10617 *Cast pointer to 'gdb_byte *' in target call.
10618
c8af03a2
PA
106192013-03-07 Pedro Alves <palves@redhat.com>
10620
10621 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10622 call.
10623
529480d0
KS
106242013-03-07 Keith Seitz <keiths@redhat.com>
10625
10626 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10627 (trace_pass_command): Likewise.
10628 * cli/cli-cmds.c: Include cli/cli-utils.h.
10629 (source_command): Use skip-spaces.
10630 (disassemble_command): Likewise.
10631 * findcmd.c: Include cli/cli-utils.h.
10632 (parse_find_args): Use skip_spaces.
10633 * go32-nat.c: Include cli/cli-utils.h.
10634 (go32_sldt): Use skip_spaces.
10635 (go32_sgdt): Likewise.
10636 (go32_sidt): Likewise.
10637 (go32_pde): Likewise.
10638 (go32_pte): Likewise.
10639 (go32_pte_for_address): Likewise.
10640 * infcmd.c: Include cli/cli-utils.h.
10641 (registers_info): Use skip_spaces.
10642 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10643 (linux_info_proc): Likewise.
10644 * linux-thread-db.c: Include cli/cli-utils.h.
10645 (info_auto_load_libthread_db): Use skip_spaces_const.
10646 * m32r-rom.c: Include cli/cli-utils.h.
10647 (m32r_upload_command): Use skip_spaces.
10648 * maint.c: Include cli/cli-utils.h.
10649 (maintenance_translate_address): Use skip_spaces.
10650 * mi/mi-parse.c: Include cli/cli-utils.h.
10651 (mi_parse_argv): Use skip_spaces.
10652 (mi_parse): Likewise.
10653 * minsyms.c: Include cli/cli-utils.h.
10654 (msymbol_hash_iw): Use skip_spaces_const.
10655 * objc-lang.c: Include cli/cli-utils.h.
10656 (parse_selector): Use skip_spaces.
10657 (parse_method): Likewise.
10658 * python/python.c: Include cli/cli-utils.h.
10659 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10660 (python_command)[HAVE_PYTHON]: Likewise.
10661 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10662 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10663 (m32r_load): Use skip_spaces.
10664 * serial.c: Include cli/cli-utils.h.
10665 (serial_open): Use skip_spaces_const.
10666 * stack.c: Include cli/cli-utils.h.
10667 (parse_frame_specification_1): Use skip_spaces_const.
10668 * symfile.c: Include cli/cli-utils.h.
10669 (set_ext_lang_command): Use skip_spaces.
10670 * symtab.c: Include cli/cli-utils.h.
10671 (rbreak_command): Use skip_spaces.
10672 * thread.c (thread_name_command): Use skip_spaces.
10673 * tracepoint.c (validate_actionline): Use skip_spaces.
10674 (encode_actions_1): Likewise.
10675 (trace_find_range_command): Likewise.
10676 (trace_find_outside_command): Likewise.
10677 (trace_dump_actions): Likewise.
10678
ac91cd70
PA
106792013-03-07 Pedro Alves <palves@redhat.com>
10680
10681 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10682 * expprint.c (print_subexp_standard): Likewise.
10683 * utils.c (host_char_to_target): Likewise.
10684 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10685 * varobj.c (value_get_print_value): Change type of local to char*.
10686 Cast it gdb_byte * in call to language printer.
10687
2898e560
PA
106882013-03-07 Pedro Alves <palves@redhat.com>
10689
10690 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10691 gdb_byte *'.
10692 (make_wchar_iterator): Remove cast to char*.
10693 (wchar_iterate): Change type of local.
10694
a09b4448
PA
106952013-03-07 Pedro Alves <palves@redhat.com>
10696
10697 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10698 for 'regcache->register_status'.
10699
20ced3e4
PA
107002013-03-07 Pedro Alves <palves@redhat.com>
10701
c2d6a675 10702 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10703 int.
10704
fe106009
PA
107052013-03-07 Pedro Alves <palves@redhat.com>
10706
10707 * stap-probe.c (handle_stap_probe): Add cast to char*.
10708
8ac2c12b
PA
107092013-03-07 Pedro Alves <palves@redhat.com>
10710
10711 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10712 RECORD_MSGRCV>: Pass a signed variable to
10713 regcache_raw_read_signed, instead of an unsigned one.
10714
99f0a309
PA
107152013-03-07 Pedro Alves <palves@redhat.com>
10716
10717 * remote-notif.c (notif_debug): Change type to int.
10718 * remote-notif.h (notif_debug): Likewise.
10719
964b8317
PA
107202013-03-07 Pedro Alves <palves@redhat.com>
10721
10722 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10723
f0cc8ad4
PA
107242013-03-07 Pedro Alves <palves@redhat.com>
10725
10726 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10727 * remote.h (hex2bin, bin2hex): ... here.
10728 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10729
77dec115
EZ
107302013-03-07 Eli Zaretskii <eliz@gnu.org>
10731
10732 * utils.c (initialize_utils): Improve doc strings of "set/show
10733 width", "set/show height", and "set/show pagination".
10734
741d92cf
KS
107352013-03-06 Keith Seitz <keiths@redhat.com>
10736
10737 * ax-gdb.c (gen_printf): Make FORMAT const.
10738 * ax-gdb.h (gen_printf): Likewise.
10739 * ax-general.c (ax_string): Make STR const.
10740 * ax.h (ax_string): Likewise.
10741
7b6c814e
DE
107422013-03-06 Doug Evans <dje@google.com>
10743
10744 * elfread.c (elf_symfile_read): Move debugging printf to more
10745 logical location.
10746
634334ab
PA
107472013-03-06 Pedro Alves <palves@redhat.com>
10748
10749 * python/py-utils.c (target_string_to_unicode): Delete function.
10750 * python/python-internal.h (target_string_to_unicode): Delete
10751 declaration.
10752
e482a1a7
PM
107532013-03-06 Pierre Muller <muller@sourceware.org>
10754
10755 * linespec.c (get_current_search_block): ARI fix, use (void)
10756 for empty parameter list.
10757
4eeaa230
DE
107582013-03-05 Doug Evans <dje@google.com>
10759
10760 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10761 of old ada_lookup_symbol_list. In !full_search case, don't
10762 search superblocks.
10763 (ada_lookup_symbol_list): Delete arg full_search, all callers
10764 updated. Call ada_lookup_symbol_list_worker.
10765 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10766 * ada-lang.h (ada_lookup_symbol_list): Update.
10767 * language.h (language_defn): Update comment for
10768 la_iterate_over_symbols.
10769 * linespec.c (iterate_over_file_blocks): New function.
10770 (iterate_over_all_matching_symtabs): Call it.
10771 (lookup_prefix_sym): Ditto.
10772 (get_current_search_block): New function.
10773 (get_search_block): Delete.
10774 (find_label_symbols): Call get_current_search_block.
10775 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10776 * symtab.c (iterate_over_symbols): Don't search superblocks.
10777
b69b1fb1
YQ
107782013-03-05 Yao Qi <yao@codesourcery.com>
10779
10780 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10781 parameter VAR's type from "unsigned int" to "int".
10782 * command.h (var_zuinteger_unlimited): Update its comments.
10783 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10784
3c095f49
CV
107852013-03-05 Corinna Vinschen <vinschen@redhat.de>
10786
10787 * NEWS: Mention new target x86_64-*-cygwin*.
10788
b5b0b0af
CV
107892013-03-05 Corinna Vinschen <vinschen@redhat.de>
10790
10791 * configure.host: Add x86_64-*-cygwin* as host.
10792 * configure.tgt: Add x86_64-*-cygwin* as target.
10793 * config/i386/cygwin64.mh: New file.
10794
f6f99966
JK
107952013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10796
10797 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10798
33f448b1
JK
107992013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10800
10801 * linespec.c (struct linespec_canonical_name): New.
10802 (struct linespec_state): Change canonical_names type to it.
10803 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10804 xrealloc element size. Initialize the different CANONICAL fields.
10805 (canonical_to_fullform): New.
10806 (filter_results): Use it. Add variables canonical, fullform and
10807 cleanup.
10808 (struct decode_line_2_item, decode_line_2_compare_items): New.
10809 (decode_line_2): Remove variables iter and item_names, add variables
10810 items and items_count. Modify the code for these new variables.
10811
feb14725
CV
108122013-03-04 Corinna Vinschen <vinschen@redhat.com>
10813
10814 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10815 calling do_cleanup.
10816
e83b17ba
HZ
108172013-03-04 Luis Machado <lgustavo@codesourcery.com>
10818
10819 * tracepoint.c (build_traceframe_info): Add code for byte order.
10820
a2d13a0d
KB
108212013-03-02 Kevin Buettner <kevinb@redhat.com>
10822
8dddcae8
KB
10823 * v850-tdep.c: (v850e2_register_name): Revise system register
10824 names to match current V850E2M architecture specifications.
10825 Update register number enum comments too.
f5aee5ee 10826
d79e58d8
JW
108272013-03-01 Jiong Wang <jiwang@tilera.com>
10828 Pedro Alves <palves@redhat.com>
10829
10830 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10831 to END_ADDR.
10832 (tilegx_skip_prologue): Limit prologue analysis to section end.
10833
c4be5165
JK
108342013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10835
10836 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10837 use it.
10838
e362b510
PA
108392013-03-01 Pedro Alves <palves@redhat.com>
10840
10841 Use gdb_byte for bytes from the program being debugged.
10842
10843 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10844 Change type of local 'buf' to gdb_byte.
10845 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10846 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10847 * cris-tdep.c (cris_sigcontext_addr)
10848 (cris_sigtramp_frame_unwind_cache): Likewise.
10849 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10850 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10851 Likewise.
10852 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10853 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10854 (hppa32_hpux_search_dummy_call_sequence)
10855 (hppa_hpux_supply_save_state): Likewise.
10856 * hppa-linux-tdep.c (insns_match_pattern)
10857 (hppa_linux_find_global_pointer): Likewise.
10858 * hppa-tdep.c (hppa_in_function_epilogue_p)
10859 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10860 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10861 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10862 (i386fbsd_collect_uthread): Likewise.
10863 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10864 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10865 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10866 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10867 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10868 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10869 (ia64_libunwind_frame_prev_register)
10870 (ia64_libunwind_sigtramp_frame_this_id)
10871 (ia64_find_global_pointer_from_dynamic_section)
10872 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10873 (ia64_unwind_pc): Likewise.
10874 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10875 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10876 (m68hc11_extract_return_value): Likewise.
10877 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10878 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10879 (mep_get_insn, mep_push_dummy_call): Likewise.
10880 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10881 (mips_linux_in_dynsym_stub): Likewise.
10882 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10883 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10884 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10885 to gdb_byte.
10886 * remote-mips.c (mips_set_register): Likewise.
10887 * remote-sim.c (gdbsim_fetch_register): Likewise.
10888 * score-tdep.c (score7_fetch_inst): Change type of parameter
10889 'memblock' and local 'buf' to gdb_byte.
10890 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10891 Change type of local 'buf' to gdb_byte. Adjust.
10892 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10893 to gdb_byte**.
10894 (score7_analyze_prologue): Change type of 'memblock' and
10895 'memblock_ptr' locals to gdb_byte*.
10896 * sh64-tdep.c (sh64_extract_return_value)
10897 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10898 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10899 * solib-pa64.c (pa64_solib_create_inferior_hook)
10900 (pa64_open_symbol_file_object): Remove local 'buf'.
10901 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10902 (som_open_symbol_file_object): Likewise.
10903 * solib-spu.c (spu_current_sos): Likewise.
10904 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10905 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10906 (spu_store_registers): Likewise.
10907 * target.c (debug_print_register): Likewise.
10908 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10909 * xstormy16-tdep.c (xstormy16_store_return_value)
10910 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10911 (xstormy16_find_jmp_table_entry): Likewise.
10912
75cc61ca 109132013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10914
10915 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10916 (tilegx_gdbarch_init): Install it.
10917
ddb08e9c
TT
109182013-02-28 Tom Tromey <tromey@redhat.com>
10919
10920 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10921 PyLong_Check.
10922
62d7fb51
DE
109232013-02-28 Doug Evans <dje@google.com>
10924
10925 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10926 * python/python.c (gdbpy_find_pc_line): Ditto.
10927
c4a9e8b4
TT
109282013-02-28 Tom Tromey <tromey@redhat.com>
10929
10930 * contrib/excheck.py: New file.
10931 * contrib/exsummary.py: New file.
10932 * contrib/gcc-with-excheck: New file.
10933
7f6a5dde
TT
109342013-02-28 Tom Tromey <tromey@redhat.com>
10935
10936 * python/python.c (gdbpy_print_stack): Call begin_line and
10937 fprintf_filtered inside TRY_CATCH.
10938
9e974e55
TT
109392013-02-28 Tom Tromey <tromey@redhat.com>
10940
10941 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10942 inside TRY_CATCH.
10943
dd5fa3e7
TT
109442013-02-28 Tom Tromey <tromey@redhat.com>
10945
10946 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10947 frame_object_to_frame_info inside TRY_CATCH.
10948
86a3263f
TT
109492013-02-28 Tom Tromey <tromey@redhat.com>
10950
10951 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10952 TRY_CATCH.
10953
81b52a3a
TT
109542013-02-28 Tom Tromey <tromey@redhat.com>
10955
10956 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10957
d50a0ce2
CV
109582013-02-27 Corinna Vinschen <vinschen@redhat.com>
10959
10960 * windows-nat.c: Throughout, fix format strings and casts of
10961 printf-like functions to avoid type related warnings on all
10962 platforms.
10963 (handle_output_debug_string): Fetch context information address
10964 from debug string using string_to_core_addr.
10965
e1f58301
JW
109662013-02-27 Jiong Wang <jiwang@tilera.com>
10967
10968 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10969 * regformats/reg-tilegx32.dat: New.
10970
4fcd89fc
JW
109712013-02-27 Jiong Wang <jiwang@tilera.com>
10972
10973 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10974
748d24e6
JW
109752013-02-27 Jiong Wang <jiwang@tilera.com>
10976
10977 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10978
6c8e944d
YQ
109792013-02-27 Yao Qi <yao@codesourcery.com>
10980 Pedro Alves <palves@redhat.com>
10981
10982 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10983 pc/tp/range/outside, look for the next trace frame instead of
10984 always starting from frame 0.
6c8e944d 10985
acd7db30
AG
109862013-02-26 Anthony Green <green@moxielogic.com>
10987
10988 * configure.tgt: Add support for moxie-*-rtems* target.
10989
025e6dce
PA
109902013-02-25 Pedro Alves <palves@redhat.com>
10991
10992 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10993 warning text.
10994
ca9c94ef
MR
109952013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10996
10997 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10998 if $fp is used as the virtual frame pointer.
10999
24c274a1
AM
110002013-02-23 Alan Modra <amodra@gmail.com>
11001
11002 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11003 symbol size.
11004 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11005 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11006 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11007 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11008
bfada189
JK
110092013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11010
11011 Code cleanup.
11012 * elfread.c (build_id_bfd_get): Make the return type const.
11013 (build_id_verify): Make the check parameter const.
11014 (build_id_to_debug_filename): Make the build_id parameter and variable
11015 data const.
11016 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11017
c0355132
AM
110182013-02-21 Alan Modra <amodra@gmail.com>
11019
11020 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11021
9f44fbc0
SCR
110222013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11023
11024 Add a new method 'disassemble' to gdb.Architecture class.
11025 * python/py-arch.c (archpy_disassmble): Implementation of the
11026 new method gdb.Architecture.disassemble.
11027 (arch_object_methods): Add entry for the new method.
11028
b74ea3eb
JW
110292013-02-20 Jiong Wang <jiwang@tilera.com>
11030
11031 * MAINTAINERS (Write After Approval): Add myself to the list.
11032
61a672f1
PA
110332013-02-19 Pedro Alves <palves@redhat.com>
11034
11035 Garbage collect 'struct monitor_ops'::load_routine.
11036
11037 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11038 * monitor.c (monitor_load): No longer call
11039 current_monitor->load_routine.
11040 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11041 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11042 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11043
40e397df
PA
110442013-02-19 Pedro Alves <palves@redhat.com>
11045
11046 PR gdb/15161
11047
11048 Harmonize with generic_load.
11049
11050 * monitor.c: Include "readline/readline.h".
11051 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11052 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11053 long/strtol for the 'load_offset' local. Error out if no argument
11054 is given or if too many arguments are given. Tilde expand the
11055 passed in file name.
11056
f698ca8e
KT
110572013-02-19 Kai Tietz <ktietz@redhat.com>
11058
11059 PR gdb/15161
11060 * symfile.c (load_section_data): Change type of load_offset
11061 to CORE_ADDR.
11062 (generic_load): User strtoulst instead of strtoul for conversion
11063 of load_offset.
11064
3361b059
WL
110652013-02-19 Jiong Wang <jiwang@tilera.com>
11066
11067 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11068 for return address, "lr" register, saved on stack.
11069 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11070 after we invoke tilegx_analyze_prologue.
11071
3e9d5130
WL
110722013-02-19 Jiong Wang <jiwang@tilera.com>
11073
bb1bcd86
WL
11074 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11075
3361b059 110762013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11077
b74ea3eb 11078 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11079
4aaf2503
WL
110802013-02-19 Jiong Wang <jiwang@tilera.com>
11081
b74ea3eb 11082 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11083 (tilegx_write_pc): New function.
11084 (tilegx_cannot_reference_register): Return zero if REGNO
11085 is TILEGX_FAULTNUM_REGNUM.
11086 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11087 (tilegx_register_name): Add handling of "faultnum" register.
11088 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11089 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11090 handling of TILEGX_FAULTNUM_REGNUM.
11091 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11092
bc23a956
WL
110932013-02-19 Jiong Wang <jiwang@tilera.com>
11094
11095 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11096 should be aligned to 64bit.
bc23a956 11097
42f45f1a
KT
110982013-02-19 Kai Tietz <ktietz@redhat.com>
11099
11100 * windows-nat.c (windows_xfer_memory): Fix debug-output
11101 for LLP64.
11102
6ce4c112
LL
111032013-02-19 Lei Liu <lei.liu2@windriver.com>
11104
11105 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11106 Don't check DSP register number if HAVE_DSP is not set.
11107
30e8ee25
AM
111082013-02-19 Alan Modra <amodra@gmail.com>
11109
11110 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11111 throughout file instead.
11112 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11113 Don't xmalloc return value.
11114 (build_id_verify): Similarly. Don't xfree.
11115 (build_id_to_debug_filename): Update.
11116 (find_separate_debug_file_by_buildid): Update, don't xfree.
11117
4c9ad8c2
TT
111182013-02-18 Tom Tromey <tromey@redhat.com>
11119
11120 PR gdb/15102:
11121 * dwarf2read.c (read_subrange_type): Use result of
11122 'check_typedef'.
11123
983dc440
YQ
111242013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11125
11126 * frame.c: Remove one extra white space after #include
11127 directive.
11128
7fb2b84a
JK
111292013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11130
11131 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11132
edceb2a9
JK
111332013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11134
11135 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11136 and dir commands into an if block.
11137
e81b7af8
TT
111382013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11139
11140 * python/py-breakpoint (struct pybp_code): Use int instead of
11141 enum type_code.
11142
f5911ea1
HAQ
111432013-02-15 Pedro Alves <pedro@codesourcery.com>
11144 Hafiz Abid Qadeer <abidh@codesourcery.com>
11145
11146 * NEWS: Mention new field "trace-file".
11147 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11148 (tfile_open): Record the trace file's filename in the trace
11149 status.
11150 (tfile_files_info): Mention the name of the trace file.
11151 Check the "filename" field explicitely.
11152 (trace_status_command): Explicitely check "filename" field.
11153 (trace_find_command): Ditto.
11154 (trace_find_pc_command): Ditto.
11155 (trace_find_tracepoint_command): Ditto.
11156 (trace_find_line_command): Ditto.
11157 (trace_find_range_command): Ditto.
11158 (trace_find_outside_command): Ditto.
11159 * tracepoint.h (struct trace_status) <from_file>: Rename it
11160 to "filename" and make it hold the trace file's filename
11161 instead of a boolean.
11162 * remote.c (remote_get_trace_status): Initialize "filename"
11163 field with NULL instead of 0.
11164
796cb314
YQ
111652013-02-15 Yao Qi <yao@codesourcery.com>
11166
11167 * remote.c: Fix a typo.
11168
42e79b1d
PM
111692013-02-14 Pierre Muller <muller@sourceware.org>
11170
11171 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11172
baea0dae
PA
111732013-02-14 Pedro Alves <palves@redhat.com>
11174
11175 * utils.c (savestring): Don't #undef it. Move function to
11176 common/common-utils.c.
11177 * common/common-utils.c: Include gdb_string.h.
11178 (savestring): Move here from utils.c.
11179 * common/common-utils.h (savestring): Declare.
11180
57c3b6ed
PA
111812013-02-14 Pedro Alves <palves@redhat.com>
11182
11183 * utils.c (savestring): Rename parameter 'size' to 'len'.
11184
d6c44983
YZ
111852013-02-14 Pedro Alves <palves@redhat.com>
11186 Yufeng Zhang <yufeng.zhang@arm.com>
11187
11188 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11189 (aarch64_inferior_data, struct aarch64_inferior_data):
11190 Delete.
11191 (struct aarch64_process_info): New.
11192 (aarch64_process_list): New global.
11193 (aarch64_find_process_pid, aarch64_add_process)
11194 (aarch64_process_info_get): New functions.
11195 (aarch64_inferior_data_get): Delete.
11196 (aarch64_process_info_get): New function.
11197 (aarch64_forget_process): New function.
11198 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11199 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11200 aarch64_get_debug_reg_state.
11201 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11202 instead of linux_nat_iterate_watchpoint_lwps.
11203 (aarch64_linux_new_fork): New function.
11204 (aarch64_linux_child_post_startup_inferior): Use
11205 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11206 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11207 (aarch64_linux_remove_hw_breakpoint)
11208 (aarch64_handle_aligned_watchpoint)
11209 (aarch64_handle_unaligned_watchpoint)
11210 (aarch64_linux_insert_watchpoint)
11211 (aarch64_linux_remove_watchpoint)
11212 (aarch64_linux_stopped_data_address): Adjust to pass the current
11213 process id to aarch64_debug_reg_state.
11214 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11215 linux_nat_new_fork hook, and aarch64_forget_process as
11216 linux_nat_forget_process hook; remove the call to
11217 register_inferior_data_with_cleanup.
11218
4819b3f8
PA
112192013-02-14 Pedro Alves <palves@redhat.com>
11220
11221 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11222 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11223 lval_memory.
11224
1773c82c
HAQ
112252013-02-14 Pedro Alves <pedro@codesourcery.com>
11226 Hafiz Abid Qadeer <abidh@codesourcery.com>
11227
11228 * tracepoint.h (validate_trace_state_variable_name): Declare.
11229 * tracepoint.c (validate_trace_state_variable_name): New.
11230 (trace_variable_command): Parse the trace state variable's name
11231 without using parse_expression. Do several validations.
11232 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11233 trace state variable's name with parse_expression. Validate it.
11234
53778a97
YQ
112352013-02-14 Yao Qi <yao@codesourcery.com>
11236
11237 * infcmd.c (breakpoint_proceeded): Remove it.
11238
7b3ae3a6
YQ
112392013-02-14 Yao Qi <yao@codesourcery.com>
11240
11241 * tracepoint.c (end_actions_pseudocommand): Make it static.
11242 (while_stepping_pseudocommand): Likewise.
11243 * tracepoint.h (end_actions_pseudocommand): Remove the
11244 declaration.
11245 (while_stepping_pseudocommand): Likewise.
11246
64580925
YQ
112472013-02-14 Yao Qi <yao@codesourcery.com>
11248
11249 * cli/cli-decode.c (help_cmd): Remove the declaration of
11250 "cmdlist".
11251 (help_all): Likewise.
11252
26cb8b7c
PA
112532013-02-13 Pedro Alves <palves@redhat.com>
11254
11255 * amd64-linux-nat.c (update_debug_registers_callback):
11256 Update comment.
11257 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11258 iterate_over_lwps.
11259 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11260 i386_debug_reg_state.
11261 (amd64_linux_new_fork): New function.
11262 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11263 linux_nat_new_fork hook, and i386_forget_process as
11264 linux_nat_forget_process hook.
11265 * i386-linux-nat.c (update_debug_registers_callback):
11266 Update comment.
a8256ea1 11267 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11268 iterate_over_lwps.
11269 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11270 i386_debug_reg_state.
11271 (i386_linux_new_fork): New function.
11272 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11273 linux_nat_new_fork hook, and i386_forget_process as
11274 linux_nat_forget_process hook.
11275 * i386-nat.c (i386_init_dregs): Delete.
11276 (i386_inferior_data, struct i386_inferior_data):
11277 Delete.
11278 (struct i386_process_info): New.
11279 (i386_process_list): New global.
11280 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11281 New functions.
11282 (i386_inferior_data_get): Delete.
11283 (i386_process_info_get): New function.
11284 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11285 (i386_forget_process): New function.
11286 (i386_cleanup_dregs): Rewrite.
11287 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11288 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11289 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11290 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11291 to i386_debug_reg_state.
11292 (i386_use_watchpoints): Don't register inferior data.
11293 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11294 adjust comment.
11295 (i386_forget_process): Declare.
11296 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11297 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11298 New static globals.
11299 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11300 (add_initial_lwp): New, factored out from ...
11301 (add_lwp): ... this. Don't check the number of lwps before
11302 calling linux_nat_new_thread.
11303 (linux_nat_iterate_watchpoint_lwps): Delete.
11304 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11305 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11306 forks and vforks.
11307 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11308 initial lwp.
11309 (linux_nat_kill, linux_nat_mourn_inferior): Call
11310 linux_nat_forget_process.
11311 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11312 (linux_nat_forget_process): New functions.
11313 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11314 type.
11315 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11316 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11317 types.
11318 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11319 (linux_nat_forget_process): New declarations.
11320
11321 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11322 (amd64fbsd_mourn_inferior): New function.
11323 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11324 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11325
5befea72
MS
113262013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11327
55015247
YQ
11328 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11329 Adding _().
5befea72 11330
1d3ffd6b
MS
113312013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11332
11333 * aarch64-linux-nat.c (debug_reg_change_callback)
11334 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11335 %s and phex().
11336
6eb04473
MS
113372013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11338
11339 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11340 with LONGEST.
11341
a016fc87
HAQ
113422013-02-13 Pedro Alves <palves@redhat.com>
11343 Hafiz Abid Qadeer <abidh@codesourcery.com>
11344
11345 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11346
e234dfaf
TT
113472013-02-12 Tom Tromey <tromey@redhat.com>
11348
11349 PR symtab/11464:
11350 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11351 NAME return.
11352 (classify_inner_name): Remove 'first_name' argument, add
11353 'context'. Remove unused variable.
11354 (yylex): Explicitly maintain the context type. Exit loop earlier
11355 if NAME result is seen.
11356
0b1afbb3
PA
113572013-02-12 Pedro Alves <palves@redhat.com>
11358
11359 * amd64-darwin-tdep.c: Add (C) after Copyright.
11360 * cli/cli-cmds.h: Ditto.
11361 * cli/cli-decode.c: Ditto.
11362 * cli/cli-decode.h: Ditto.
11363 * cli/cli-dump.c: Ditto.
11364 * cli/cli-dump.h: Ditto.
11365 * cli/cli-interp.c: Ditto.
11366 * cli/cli-logging.c: Ditto.
11367 * cli/cli-script.c: Ditto.
11368 * cli/cli-script.h: Ditto.
11369 * cli/cli-setshow.c: Ditto.
11370 * cli/cli-setshow.h: Ditto.
11371 * cli/cli-utils.c: Ditto.
11372 * cli/cli-utils.h: Ditto.
11373 * config/alpha/nm-osf3.h: Ditto.
11374 * config/djgpp/djconfig.sh: Ditto.
11375 * config/i386/nm-fbsd.h: Ditto.
11376 * config/i386/nm-i386gnu.h: Ditto.
11377 * config/nm-linux.h: Ditto.
11378 * config/nm-nto.h: Ditto.
11379 * config/rs6000/nm-rs6000.h: Ditto.
11380 * config/sparc/nm-sol2.h: Ditto.
11381 * darwin-nat-info.c: Ditto.
11382 * dfp.c: Ditto.
11383 * dfp.h: Ditto.
11384 * gdb-demangle.h: Ditto.
11385 * i386-darwin-nat.c: Ditto.
11386 * i386-darwin-tdep.c: Ditto.
11387 * linux-fork.h: Ditto.
11388 * m32c-tdep.c: Ditto.
11389 * microblaze-linux-tdep.c: Ditto.
11390 * microblaze-rom.c: Ditto.
11391 * microblaze-tdep.c: Ditto.
11392 * microblaze-tdep.h: Ditto.
11393 * mips-linux-tdep.h: Ditto.
11394 * ppc-ravenscar-thread.c: Ditto.
11395 * ppc-ravenscar-thread.h: Ditto.
11396 * prologue-value.c: Ditto.
11397 * prologue-value.h: Ditto.
11398 * ravenscar-thread.c: Ditto.
11399 * ravenscar-thread.h: Ditto.
11400 * sparc-ravenscar-thread.c: Ditto.
11401 * sparc-ravenscar-thread.h: Ditto.
11402 * tilegx-linux-tdep.c: Ditto.
11403 * unwind_stop_reasons.def: Ditto.
11404 * windows-nat.h: Ditto.
11405 * xtensa-linux-tdep.c: Ditto.
11406 * xtensa-xtregs.c: Ditto.
11407 * regformats/regdat.sh: Ditto.
11408 * regformats/regdef.h: Ditto.
11409
6c01dd94
PA
114102013-02-12 Pedro Alves <palves@redhat.com>
11411
11412 * break-catch-sig.c: Update copyright years.
11413
b65a2bd9
SCR
114142013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11415
11416 Add support for a destructor for ui_out data and use it to
11417 provide a ui_out destructor.
11418 * ui-out.h: Declare the new ui_out destructor.
11419 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11420 * ui-out.c (default_data_destroy): Add a default data destructor
11421 which does nothing.
11422 (default_ui_out_impl): Set the new data_destroy field to
11423 default_data_destroy
11424 (uo_data_destroy): Local function which invokes the data
11425 destructor if present.
11426 (clear_table): Local function which clears the table data of a
11427 ui_out object.
11428 (ui_out_destroy): Public function which frees a ui_out object.
11429 (ui_out_table_end): Use the new clear_table function.
11430 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11431 NULL.
11432 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11433 to NULL.
11434
c2792f5a
DE
114352013-02-11 Doug Evans <dje@google.com>
11436
11437 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11438 (printf_decfloat): New function. Broken out from ui_printf.
11439 Remove unnecessary code to shift the entire format string down.
11440 (printf_pointer): New function.
11441 (ui_printf): Code to print C strings, wide C strings, decfloats,
11442 and pointers moved to separate functions.
11443
d9e98382
SDJ
114442013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11445
11446 * valops.c (value_assign): Handling bitfield offset in
11447 `lval_internalvar_component' case.
11448
4ff3ce77
DE
114492013-02-08 Doug Evans <dje@google.com>
11450
11451 * common/format.c (parse_format_string): Fix whitespace.
11452
901900c4
MGD
114532013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11454
11455 * stack.c (return_command): Work around uninitialized variable
11456 warning.
11457
b5dbc8d4
YZ
114582013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11459
11460 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11461 number of the registers from 36 to 34.
11462
51d66578
MS
114632013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11464
11465 * NEWS: Mention new AArch64 native and target support.
11466
176b1c95
MS
114672013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11468
11469 * MAINTAINERS (Write After Approval): Add myself.
11470
9d19df75
MS
114712013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11472 Marcus Shawcroft <marcus.shawcroft@arm.com>
11473 Nigel Stephens <nigel.stephens@arm.com>
11474 Yufeng Zhang <yufeng.zhang@arm.com>
11475
11476 * aarch64-linux-nat.c: New file.
11477 * config/aarch64/linux.mh: New file.
11478 * configure.host: Add AArch64.
11479 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11480
7e1e0340
DE
114812013-02-07 Doug Evans <dje@google.com>
11482
11483 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11484 disassemble command.
11485
45e25a36
MS
114862013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11487
11488 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11489 set_gdbarch_fetch_tls_load_module_address.
11490
bbfdfe1c
DM
114912013-02-06 David S. Miller <davem@davemloft.net>
11492
11493 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11494 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11495 * value.c (struct_return_convention): New function.
11496 (using_struct_return): Implement in terms of struct_return_convention.
11497 * value.h (struct_return_convention): Declare.
11498 * stack.c (return_command): Allow successful overriding of the return
11499 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11500
bc9abe4a
TT
115012013-02-06 Tom Tromey <tromey@redhat.com>
11502
11503 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11504 outside of TRY_CATCH.
11505
134a2066
YQ
115062013-02-06 Yao Qi <yao@codesourcery.com>
11507
11508 * mi/mi-interp.c: Include "tracepoint.h".
11509 (mi_tsv_modified): Declare.
11510 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11511 (mi_interpreter_init): Call observer_attach_tsv_modified.
11512 (mi_tsv_modified): New.
11513 (mi_tsv_created, mi_tsv_deleted): Update.
11514 * tracepoint.c (trace_variable_command): Call
11515 observer_notify_tsv_modified if the initial value of tsv is
11516 changed.
11517 (delete_trace_state_variable): Call
11518 observer_notify_tsv_deleted earlier.
11519 (trace_variable_command): Caller update.
11520 (create_tsv_from_upload): Likewise.
11521 * observer.sh: Declare "struct trace_state_variable".
11522
11523 * NEWS: Mention the new MI notification "=tsv-modified".
11524
59be2b6a
DE
115252013-02-05 Doug Evans <dje@google.com>
11526
11527 * completer.c (location_completer): Fix typo in comment.
11528
d30113d4
JK
115292013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11530
11531 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11532 ADDRESS sorted.
11533
14ac654f
MS
115342013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11535
11536 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11537 Refactor if statement to avoid trailing || operator.
11538
543bf33d
AT
115392013-02-05 Andreas Tobler <andreast@fgznet.ch>
11540
11541 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11542
dc18f110
AT
115432013-02-04 Andreas Tobler <andreast@fgznet.ch>
11544
11545 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11546 * configure.host: Add powerpc*-*-freebsd* target.
11547 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11548 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11549 * config/powerpc/fbsd.mh: New file.
11550
b3ac9c77
SDJ
115512013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11552 Denys Vlasenko <dvlasenk@redhat.com>
11553 Pedro Alves <palves@redhat.com>
11554
11555 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11556 (struct elf_internal_linux_prpsinfo): Forward declare.
11557 * gdbarch.h, gdbarch.c: Regenerate.
11558 * linux-tdep.c: Include `cli/cli-utils.h'.
11559 (linux_fill_prpsinfo): New function.
11560 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11561 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11562 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11563 depending on gdbarch pointer bitness.
11564 * ppc-linux-tdep.c: Include elf-bfd.h.
11565 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11566 on 32-bit.
11567
176eb98c
MS
115682013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11569 Marcus Shawcroft <marcus.shawcroft@arm.com>
11570 Nigel Stephens <nigel.stephens@arm.com>
11571 Yufeng Zhang <yufeng.zhang@arm.com>
11572
11573 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11574
cf0dbd6f
MS
115752013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11576 Marcus Shawcroft <marcus.shawcroft@arm.com>
11577 Nigel Stephens <nigel.stephens@arm.com>
11578 Yufeng Zhang <yufeng.zhang@arm.com>
11579
11580 * aarch64-newlib-tdep.c: New file.
11581 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11582 aarch64*-*-elf.
11583 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11584 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11585 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11586 * osabi.c (gdb_osabi_names): Add "Newlib".
11587
1ae3db19
MS
115882013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11589 Marcus Shawcroft <marcus.shawcroft@arm.com>
11590 Nigel Stephens <nigel.stephens@arm.com>
11591 Yufeng Zhang <yufeng.zhang@arm.com>
11592
11593 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11594 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11595 * aarch64-linux-tdep.c: New file.
11596 * aarch64-linux-tdep.h: New file.
11597 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11598 * configure.tgt: Add aarch64-none-linux-gnu.
11599
07b287a0
MS
116002013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11601 Marcus Shawcroft <marcus.shawcroft@arm.com>
11602 Nigel Stephens <nigel.stephens@arm.com>
11603 Yufeng Zhang <yufeng.zhang@arm.com>
11604
11605 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11606 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11607 (ALLDEPFILES): Add aarch64-tdep.c.
11608 * aarch64-tdep.c: New file.
11609 * aarch64-tdep.h: New file.
11610 * configure.tgt: Add AArch64.
11611 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11612 (aarch64-expedite): New definition.
11613 * features/aarch64-core.xml: New file.
11614 * features/aarch64-fpu.xml: New file.
11615 * features/aarch64-without-fpu.c: New file (generated).
11616 * features/aarch64-without-fpu.xml: New file.
11617 * features/aarch64.c: New file (generated).
11618 * features/aarch64.xml: New file.
11619 * regformats/aarch64-without-fpu.dat: New file (generated).
11620 * regformats/aarch64.dat: New file (generated).
11621
0f1b18ab
JK
116222013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11623
11624 * contrib/expect-read1.c: New file.
11625 * contrib/expect-read1.sh: New file.
11626
233d95b5
JK
116272013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11628
11629 * dwarf2read.c (file_file_name): New function with code from
11630 file_full_name.
11631 (file_full_name): Move most of the code to file_file_name.
11632 (macro_start_file): Rename variable full_name to file_name and use
11633 file_file_name for it. Add comp_dir parameter to new_macro_table.
11634 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11635 macro_source_file->filename access by macro_source_fullname call.
11636 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11637 caller.
11638 * macrotab.c (struct macro_table): New field comp_dir.
11639 (macro_include): New variables link_fullname and source_fullname.
11640 Replace any macro_source_file->filename access by macro_source_fullname
11641 call.
11642 (macro_lookup_inclusion): Remove the partial filenames checking code.
11643 (check_for_redefinition): New variables source_fullname and
11644 found_key_fullname. Replace any macro_source_file->filename access by
11645 macro_source_fullname call.
11646 (macro_undef): New variables source_fullname and key_fullname. Replace
11647 any macro_source_file->filename access by macro_source_fullname call.
11648 (macro_lookup_definition): New variables retval and source_fullname.
11649 Replace any macro_source_file->filename access by macro_source_fullname
11650 call.
11651 (foreach_macro): New variable key_fullname. Replace any
11652 macro_source_file->filename access by macro_source_fullname call.
11653 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11654 macro_source_file->filename access by macro_source_fullname call.
11655 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11656 (macro_source_fullname): New function.
11657 * macrotab.h (struct macro_source_file): Extent the filename field
11658 comment.
11659 (new_macro_table): New parameter comp_dir, add a comment for it.
11660 (macro_source_fullname): new declaration.
11661
da235a7c
JK
116622013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11663
11664 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11665 this_real_name to outer block. Use it also for
11666 compare_filenames_for_search.
11667 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11668 with dw2_get_real_path for file_matcher, considering also
11669 BASENAMES_MAY_DIFFER.
11670 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11671
fbd9ab74
JK
116722013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11673
11674 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11675 to the file_matcher parameter. Pass 0 to it.
11676 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11677 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11678 NULL psymtab_to_fullname result.
11679 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11680 an expected filename instead.
11681 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11682 file_matcher parameter. Call also psymtab_to_fullname, after newly
11683 considering BASENAMES_MAY_DIFFER.
11684 * source.c (rewrite_source_path): Remove static.
11685 * source.h (rewrite_source_path): New declaration.
11686 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11687 the expand_symtabs_matching field. Comment it.
11688 * symtab.c (file_matches): New function comment. Add parameter
11689 basenames, implement it.
11690 (search_symbols_file_matches): Add basenames parameter. Update the
11691 file_matches caller.
11692 (search_symbols): Match FILES also against symtab_to_fullname.
11693 Optimize it for BASENAMES_MAY_DIFFER.
11694
56d397a3
JK
116952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11696
11697 * source.c (print_source_lines_base): Print for TUI also "fullname".
11698 * tui/tui-data.c (init_content_element): Change tui_locator_element
11699 field to full_name.
11700 * tui/tui-data.h (struct tui_locator_element): Likewise.
11701 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11702 tui_update_locator_filename calls to tui_update_locator_fullname.
11703 Replace symtab->filename refererence by symtab_to_fullname call.
11704 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11705 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11706 field to full_name. Replace symtab->filename refererence by
11707 symtab_to_fullname call.
11708 (tui_show_symtab_source): Rename parameter to fullname. Change
11709 tui_locator_element field to full_name.
11710 * tui/tui-stack.c: Include source.h.
11711 (tui_set_locator_filename): Rename the declaration to ...
11712 (tui_set_locator_fullname): ... here. Rename its parameter to
11713 fullname, updates its comment.
11714 (tui_set_locator_info): Rename its parameter to fullname.
11715 (tui_set_locator_filename): Rename the definition to ...
11716 (tui_set_locator_fullname): ... here. Rename its parameter to
11717 fullname, updates its comment. Change tui_locator_element field to
11718 full_name.
11719 (tui_set_locator_info): Rename its parameter to fullname.
11720 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11721 (tui_update_locator_filename): Rename to ...
11722 (tui_update_locator_fullname): ... here. Rename callee to
11723 tui_set_locator_fullname.
11724 (tui_show_frame_info): Replace symtab->filename refererence by
11725 symtab_to_fullname call.
11726 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11727 (tui_update_locator_fullname): ... here.
11728 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11729 tui_update_locator_fullname. Replace symtab->filename refererence by
11730 symtab_to_fullname call.
11731 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11732 Rename the callee to tui_update_locator_fullname.
11733 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11734
05cba821
JK
117352013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11736
11737 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11738 by symtab_to_filename_for_display calls.
11739 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11740 (clear_command): New variable sal_fullname, initialize it. Replace
11741 compare_filenames_for_search by filename_cmp with sal_fullname.
11742 (say_where, update_static_tracepoint): Replace symtab->filename
11743 refererences by symtab_to_filename_for_display calls.
11744 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11745 Likewise.
11746 * dwarf2read.c: Include source.h.
11747 (fixup_go_packaging): Replace symtab->filename refererences by
11748 symtab_to_filename_for_display calls.
11749 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11750 Replace symtab->filename refererences by symtab_to_filename_for_display
11751 calls.
11752 (create_sals_line_offset, convert_linespec_to_sals): New variable
11753 fullname, initialize it, replace symtab->filename reference by the
11754 variable.
11755 * linux-fork.c: Include source.h.
11756 (info_checkpoints_command): Replace symtab->filename refererences by
11757 symtab_to_filename_for_display calls.
11758 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11759 by symtab_to_filename_for_display calls.
11760 * mdebugread.c: Include source.h.
11761 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11762 symtab_to_filename_for_display calls.
11763 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11764 (mi_cmd_file_list_exec_source_files): Likewise.
11765 * printcmd.c: Include source.h.
11766 (build_address_symbolic): Replace symtab->filename refererences by
11767 symtab_to_filename_for_display calls.
11768 * psymtab.c (partial_map_symtabs_matching_filename)
11769 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11770 with psymtab_to_fullname.
11771 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11772 by symtab_to_filename_for_display calls.
11773 (stpy_get_filename): New variable filename, initialize it, use instead
11774 of symtab->filename refererences.
11775 (salpy_str): Make variable filename const char *. Replace
11776 symtab->filename refererences by symtab_to_filename_for_display calls.
11777 * skip.c: Include source.h and filenames.h.
11778 (skip_file_command): Remove const from the symtab variable. Replace
11779 symtab->filename refererences by symtab_to_fullname call.
11780 (function_name_is_marked_for_skip): New variables searched_for_fullname
11781 and fullname. Use them to search also with symtab's fullname.
11782 * source.c (find_source_lines): Replace symtab->filename refererences
11783 by symtab_to_filename_for_display calls.
11784 (print_source_lines_base): New variable filename, use it instead of
11785 symtab->filename. Replace symtab->filename refererences by
11786 symtab_to_filename_for_display calls.
11787 (line_info, forward_search_command): Replace symtab->filename
11788 refererences by symtab_to_filename_for_display calls.
11789 (reverse_search_command): Replace symtab->filename refererences by
11790 symtab_to_filename_for_display calls. New variable filename for it.
11791 * stack.c (frame_info): Likewise.
11792 * symmisc.c: Include source.h.
11793 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11794 (maintenance_info_symtabs): Replace symtab->filename refererences by
11795 symtab_to_filename_for_display calls.
11796 * symtab.c (iterate_over_some_symtabs): Call
11797 compare_filenames_for_search also with symtab_to_fullname.
11798 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11799 symtab->filename refererences by symtab_to_filename_for_display calls.
11800 (find_line_symtab): Replace symtab->filename refererences by
11801 symtab_to_filename_for_display calls.
11802 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11803 (print_symbol_info): Make the last parameter const char *. New
11804 variable s_filename. Use it in the function.
11805 (symtab_symbol_info): Make the last_filename variable const char *.
11806 Replace symtab->filename refererences by symtab_to_filename_for_display
11807 calls.
11808 (rbreak_command): New variable fullname. Use it. Replace
11809 symtab->filename refererence by symtab_to_filename_for_display call.
11810 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11811 (print_one_static_tracepoint_marker): Replace symtab->filename
11812 refererences by symtab_to_filename_for_display calls.
11813 * tui/tui-source.c (tui_set_source_content): New variables filename and
11814 s_filename. Replace symtab->filename refererences by this variable.
11815 Replace other symtab->filename refererences by
11816 symtab_to_filename_for_display calls.
11817
1b56eb55
JK
118182013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11819 Jan Kratochvil <jan.kratochvil@redhat.com>
11820
11821 Add a new variable that controls a way in which filenames are
11822 displayed.
11823 * NEWS (set filename-display): New entry.
11824 * source.c (filename_display_basename, filename_display_relative)
11825 (filename_display_absolute, filename_display_kind_names)
11826 (filename_display_string, show_filename_display_string)
11827 (symtab_to_filename_for_display): New.
11828 (_initialize_source): Added initialization of 'filename-display'
11829 variable.
11830 * source.h (symtab_to_filename_for_display): Added declaration.
11831 * stack.c (print_frame): Added new variable and calling of a new
11832 function and condition with this variable. Changed third argument of
11833 calling of a function.
11834
aa079c93
JK
118352013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11836
11837 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11838 Rename field reference filename to fullname.
11839 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11840 fullname. New comment for it.
11841 * tui/tui-source.c (tui_set_source_content): Rename field reference
11842 filename to fullname. Initialize field by symtab_to_fullname now.
11843 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11844 reference filename to fullname. Use symtab_to_fullname during
11845 comparison.
11846
652a8996
JK
118472013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11848
11849 Code cleanup.
11850 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11851 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11852 filename to fullname. Rename variable this_name to this_fullname.
11853 Lowercase FILENAME_CMP call.
11854 (dw2_find_symbol_file): New comment for the returned string.
11855 (dwarf2_gdb_index_functions): Rename the function to
11856 dw2_expand_symtabs_with_fullname.
11857 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11858 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11859 fullname.
11860 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11861 * symfile.h (struct quick_symbol_functions): Rename field
11862 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11863 parameter filename to fullname. Document returned string meaning for
11864 find_symbol_file.
11865 * symtab.c (find_line_symtab): Rename the called function to
11866 expand_symtabs_with_fullname.
11867
af529f8f
JK
118682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11869
11870 Code cleanup.
11871 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11872 call of filename_cmp with compare_filenames_for_search.
11873 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11874 is_abs, unify the call of FILENAME_CMP with
11875 compare_filenames_for_search. New gdb_asserts for real_path and name.
11876 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11877 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11878 * symfile.h (struct quick_symbol_functions): Extend the comment for
11879 map_symtabs_matching_filename.
11880 * symtab.c (compare_filenames_for_search): Remove the function comment
11881 relative path requirement. Handle absolute filenames, with a comment.
11882 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11883 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11884 real_path and name. Unify the call of compare_filenames_for_search
11885 with FILENAME_CMP.
11886 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11887
2f202fde
JK
118882013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11889
11890 Code cleanup.
11891 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11892 source_file references by symtab field references. Remove variables
11893 sal and fullname.
11894 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11895 (clear_command, say_where): Replace bp_location field source_file
11896 references by symtab field references.
11897 (bp_location_dtor): Remove the source_file reference.
11898 (update_static_tracepoint): Replace bp_location field source_file
11899 references by symtab field references.
11900 (breakpoint_free_objfile): New function.
11901 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11902 Replace the field source_file by field symtab, extend its comment.
11903 (breakpoint_free_objfile): New declaration.
11904 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11905 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11906 field source_file references by symtab field references.
11907
f5b95b50
JK
119082013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11909
11910 Replace xfullpath calls by gdb_realpath calls.
11911 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11912 function comment.
11913 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11914 Remove it from the iterate_over_some_symtabs call.
11915 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11916 Remove it from the dw2_map_expand_apply calls, remove a block handling
11917 it.
11918 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11919 Remove it from the iterate_over_some_symtabs call.
11920 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11921 Remove it from the partial_map_expand_apply calls, remove a block
11922 handling it. Drop gdb_realpath call and cleanups from the real_path
11923 handling.
11924 * source.c (openp): Drop the comment part about xfullpath. Replace
11925 xfullpath calls by gdb_realpath calls.
11926 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11927 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11928 from method map_symtabs_matching_filename and its comment.
11929 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11930 gdb_realpath call.
11931 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11932 remove it also from the function comment, remove a block handling it.
11933 Drop gdb_realpath call and cleanups from the real_path handling.
11934 (iterate_over_symtabs): Drop variable full_path and its use.
11935 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11936 * utils.c (xfullpath): Remove.
11937 * utils.h (xfullpath): Remove.
11938
d78489bf
AT
119392013-02-01 Andreas Tobler <andreast@fgznet.ch>
11940
11941 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11942 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11943 (ALLDEPFILES): Add ppc64-tdep.c.
11944 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11945 ppc64-tdep.o to gdb_target_obs.
11946 * ppc64-tdep.h: New file.
11947 * ppc64-tdep.c: New file.
11948 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11949 ppc-linux-tdep.c to here.
11950 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11951 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11952 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11953 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11954 from ppc-linux-tdep.c to here.
11955 (ppc64_convert_from_func_ptr_addr): Rename from
11956 ppc64_linux_convert_from_func_ptr_addr to
11957 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11958 here.
11959 * rs6000-tdep.c:
11960 (read_insn): Move from ppc-linux-tdep.c to here.
11961 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11962 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11963 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11964 Removed above functions.
11965 (ppc_linux_init_abi): Adjust.
11966
8db60374
AR
119672013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11968
11969 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11970
f2e5f4ce
AR
119712013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11972
11973 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11974
c1f7d745
PA
119752013-02-01 Pedro Alves <palves@redhat.com>
11976
11977 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11978 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11979
8a92335b
JK
119802013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11981
11982 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11983 files with no separate debug info.
11984 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11985 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11986 only for files with no separate debug info.
11987
8eacb197
TT
119882013-01-31 Tom Tromey <tromey@redhat.com>
11989
11990 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11991 change type.
11992 (struct jit_program_space_data): Rename from jit_inferior_data.
11993 Update comments.
11994 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11995 Change return type. Attach data to program space.
11996 (jit_program_space_data_cleanup): Rename from
11997 jit_inferior_data_cleanup; change argument type.
11998 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11999 change type.
12000 (jit_register_code): Update.
12001 (jit_update_inferior_cache): Remove.
12002 (jit_breakpoint_deleted): Get jit data from the location's program
12003 space.
12004 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12005 'ps_data', change type.
12006 (jit_inferior_init, jit_breakpoint_re_set_internal)
12007 (jit_event_handler): Update.
12008 (free_objfile_data): Get data from objfile's program space.
12009 (_initialize_jit): Update.
12010
f25c0135
TT
120112013-01-31 Tom Tromey <tromey@redhat.com>
12012
12013 PR gdb/13987:
12014 * jit.c (struct jit_inferior_data) <cached_code_address,
12015 jit_breakpoint>: New fields.
12016 (jit_breakpoint_re_set_internal): Fix logging. Only create
12017 breakpoint if cached address has changed.
12018 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12019 functions.
12020 (_initialize_jit): Register breakpoint deleted observer.
12021
974a734b
AR
120222013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12023
12024 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12025 (save_infcall_suspend_state): Ifdef out unused inf.
12026 (restore_infcall_suspend_state): Ifdef out unused inf.
12027 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12028 (jit_frame_sniffer): Remove unused inf_data.
12029
df54f8eb
AR
120302013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12031
12032 * c-exp.y (classify_inner_name): Remove unused type.
12033 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12034 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12035 need_escape.
12036 (c_get_string): Remove unused kind.
12037 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12038
5799c0b9
AR
120392013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12040
12041 * charset.c (intermediate_encoding): Remove unused i.
12042 * completer.c (signal_completer): Remove unused i.
12043 * continuations.c (discard_my_continuations_1): Remove unused
12044 continuation_ptr.
12045 * corelow.c (core_close): Remove unuseD name.
12046 (get_core_siginfo): Remove unused pid.
12047 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12048 i, cps.
12049 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12050 (loclist_describe_location): Remove unused first.
12051 * event-top.c (command_line_handler): Remove unused got_eof.
12052 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12053 (resize_section_table): Remove unused old_value.
12054 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12055 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12056 * i386-tdep.c (i386_process_record): Remove unused rex.
12057 * infcmd.c (get_return_value): Remove unused uiout.
12058 * jv-lang.c (type_from_class): Remove unused is_array.
12059 * jv-valprint.c (java_val_print): Remove unused i.
12060 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12061 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12062 * m2-typeprint.c (m2_print_type): Remove unused code.
12063 * macroexp.c (get_character_constant): Remove unused body_start.
12064 (macro_stringify): Remove unused result.
12065 * objc-lang.c (find_methods): Remove unused gdbarch.
12066 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12067 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12068 * stack.c (print_frame_args): Remove unused summary.
12069 * thread.c (thread_apply_command): Remove unused p.
12070 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12071 * valops.c (search_struct_method): Remove unused skip.
12072 * valprint.c (generic_val_print): Remove unused byte_order.
12073 * varobj.c (varobj_update): Remove unused changed.
12074 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12075 (alias_command): Remove unused c.
12076 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12077 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12078 format.
12079 (mi_cmd_data_write_memory): Remove unused word_format.
12080 (mi_cmd_data_write_memory_bytes): Remove unused r.
12081 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12082 p_start, p_end.
12083 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12084 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12085 line_width.
12086
c656bca5
AR
120872013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12088
12089 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12090 * symtab.c (iterate_over_symtabs): Remove unused s.
12091 (find_pc_sect_symtab): Remove unused pspAce.
12092 (find_pc_sect_line): Remove unused alt_symtab.
12093 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12094 (completion_list_add_name): Remove unused newsize.
12095
7078baeb
TT
120962013-01-31 Tom Tromey <tromey@redhat.com>
12097
12098 PR c++/14998:
12099 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12100 TYPE_CODE_FUNC.
12101
c2e8b827
AR
121022013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12103
12104 * target.c (target_read_string): Remove unused origlen.
12105
0e43993a
AR
121062013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12107
12108 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12109 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12110 * ax-general.c (ax_print): Remove unused is_float.
12111 * blockframe.c (block_innermost_frame): Remove unused start, end.
12112 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12113
765a97ab
AR
121142013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12115
12116 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12117 (svr4_read_so_list): Remove unused lmo.
12118 * solib-target.c (solib_target_relocate_section_addresses): Remove
12119 unused flags.
12120
a99dad3d
TT
121212013-01-30 Tom Tromey <tromey@redhat.com>
12122
12123 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12124
3bff1ecd
TT
121252013-01-30 Tom Tromey <tromey@redhat.com>
12126
12127 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12128 * utils.c (gnu_debuglink_crc32): Remove.
12129 * utils.h (gnu_debuglink_crc32): Don't declare.
12130
7d455152
TT
121312013-01-30 Tom Tromey <tromey@redhat.com>
12132
12133 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12134 (read_structure_type, read_enumeration_type): Remove cast.
12135
abee88f2
TT
121362013-01-30 Tom Tromey <tromey@redhat.com>
12137
12138 * dwarf2read.c (read_namespace_type): Remove cast.
12139 (read_typedef): Likewise.
12140
8d9878a4
TT
121412013-01-29 Tom Tromey <tromey@redhat.com>
12142
12143 * dwarf2read.c (free_dwo_file): Remove assert.
12144
a543d2a9
TT
121452013-01-29 Tom Tromey <tromey@redhat.com>
12146
12147 * value.c (deprecated_set_value_modifiable): Remove.
12148 * value.h (deprecated_set_value_modifiable): Remove.
12149
bed911e5
DE
121502013-01-28 Doug Evans <dje@google.com>
12151
12152 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12153 to addresses from dwo files.
12154
28c64fc2
SCR
121552013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12156
12157 * valops.c (find_overload_match): Remove unused argument 'lax'.
12158 * value.h: Remove unused argument 'lax' from the declaration of
12159 find_overload_match.
12160 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12161 to find_overload_match.
12162 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12163 argument to find_overload_match.
12164
4d4ec4e5
TT
121652013-01-25 Tom Tromey <tromey@redhat.com>
12166
12167 * dwarf2read.c (processing_has_namespace_info): Remove.
12168 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12169 (process_die, read_func_scope, dwarf2_start_symtab)
12170 (new_symbol_full): Update.
12171
195a3f6c
TT
121722013-01-25 Tom Tromey <tromey@redhat.com>
12173
12174 * cp-namespace.c (cp_set_block_scope): Remove.
12175 * cp-support.h (cp_set_block_scope): Remove.
12176 * dbxread.c: Include block.h.
12177 (cp_set_block_scope): New function.
12178 (process_one_symbol): Update.
12179 * dwarf2read.c (read_func_scope): Use block_set_scope.
12180
8ba0730a
PA
121812013-01-25 Pedro Alves <palves@redhat.com>
12182
12183 * remote.c (add_current_inferior_and_thread): Tweak comment.
12184
12aaed36
TT
121852013-01-25 Tom Tromey <tromey@redhat.com>
12186
12187 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12188 (cp_add_using_directive): Add 'copy_names' argument.
12189 * cp-support.h (cp_add_using_directive): Update.
12190 (struct using_direct) <import_src, import_dest, alias,
12191 declaration>: Now const.
12192 * dwarf2read.c (read_import_statement): Use obconcat.
12193 Don't copy names passed to cp_add_using_directive.
12194
7fc75ca7
TT
121952013-01-25 Tom Tromey <tromey@redhat.com>
12196
12197 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12198
3405876a
PA
121992013-01-25 Pedro Alves <palves@redhat.com>
12200
12201 * remote.c (stop_reply_extract_thread): New.
12202 (add_current_inferior_and_thread): New parameter 'wait_status'.
12203 Handle it.
12204 (remote_start_remote): Pass wait status to
12205 add_current_inferior_and_thread.
12206 (extended_remote_run): Update comment.
12207 (extended_remote_create_inferior_1): Pass wait status to
12208 add_current_inferior_and_thread.
12209
8954db33
AB
122102013-01-25 Andrew Burgess <aburgess@broadcom.com>
12211 Ulrich Weigand <uweigand@de.ibm.com>
12212
12213 * valarith.c (value_vector_widen): New function for replicating a
12214 scalar into a vector.
12215 (value_binop): Use value_vector_widen to widen scalar to vector
12216 rather than casting, this better matches gcc C behaviour.
12217 * valops.c (value_casst): Update logic for casting between vector
12218 types, and for casting from scalar to vector, try to match gcc C
12219 behaviour.
12220 * value.h (value_vector_widen): Declare.
12221 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12222 function, handle special case for casting scalar to vector.
12223 (opencl_relop): Use opencl_value_cast.
12224 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12225 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12226 in order to use opencl_value_cast.
12227
843b20dc
YQ
122282013-01-25 Yao Qi <yao@codesourcery.com>
12229
12230 * event-loop.c: Include "queue.h".
12231 (gdb_event_p): New typedef.
12232 (DECLARE_QUEUE_P): Use.
12233 (DEFINE_QUEUE_P): Use.
12234 (async_queue_event): Remove.
12235 (gdb_event_xfree): New.
12236 (initialize_event_loop): New.
12237 (process_event): Use QUEUE macros.
12238 (event_queue): Remove.
12239 (gdb_wait_for_event): Caller update.
12240 (check_async_event_handlers): Likewise.
12241 (poll_timers): Likewise.
12242 * event-loop.h (initialize_event_loop): Declare.
12243 * event-loop.c (gdb_event_xfree): New.
12244 * top.c (gdb_init): Call initialize_event_loop.
12245
20ad8856
YQ
122462013-01-25 Yao Qi <yao@codesourcery.com>
12247
12248 * event-loop.c (async_queue_event): Remove one parameter
12249 'position'. Remove code handling 'position' == TAIL.
12250 (gdb_wait_for_event): Caller update.
12251 (check_async_event_handlers): Caller update.
12252 (poll_timers): Caller update.
12253 * event-loop.h (enum queue_position): Remove.
12254
3bbbe775
MK
122552013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12256
12257 * MAINTAINERS: Update my email.
12258
a87d9ac4
YQ
122592013-01-25 Yao Qi <yao@codesourcery.com>
12260
12261 * main.c (print_gdb_help): Remove "--epoch" from the help
12262 message.
12263
2077afdd
TD
122642013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12265
12266 * symtab.c (skip_prologue_using_sal): Consider a file
12267 change the same as an increased line number
12268
63da4037
TD
122692013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12270
30e8ee25 12271 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12272
45e6c716
TT
122732013-01-24 Tom Tromey <tromey@redhat.com>
12274
12275 * ada-lang.h (ada_decode_symbol): Make return type const.
12276 * ada-lang.c (ada_decode_symbol): Likewise.
12277
b1ae631a
DE
122782013-01-23 Doug Evans <dje@google.com>
12279
12280 * linespec.c (find_linespec_symbols): Make static.
12281
55a78401
SDJ
122822013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12283
12284 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12285 type on float conversion for complex type.
12286
bea883fd
SCR
122872013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12288
12289 Add a new class gdb.Architecture which exposes GDB's
12290 internal representation of architecture via GDB Python API.
12291 * Makefile.in: Add entries corresponding to the new file
12292 python/py-arch.c.
12293 * NEWS (Python Scripting): Add entries for the new class
12294 gdb.Architecture and the new method gdb.Frame.architecture.
12295 * python/py-arch.c: Implement gdb.Architecture class.
12296 * python/py-frame.c (frapy_arch): Implement the method
12297 gdb.Frame.architecture().
12298 (frame_object_methods): Add 'architecture' to the method table.
12299 * python/python-internal.h: Add declarations of new utility
12300 functions.
12301 * python/python.c (_initialize_python): Initialize
12302 gdb.Architecture class.
12303
796a7ff8
DE
123042013-01-23 Doug Evans <dje@google.com>
12305
12306 Work around binutils/15021.
12307 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12308 type_unit_group out of union s. All uses updated.
12309 (read_index_from_section): Watch for index version 8.
12310 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12311 an imported symtab.
12312 (write_psymtabs_to_index): Increment version number to 8.
12313
0928e93d
PA
123142013-01-22 Pedro Alves <palves@redhat.com>
12315
12316 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12317 user-visible.
12318
9c97429f
PA
123192013-01-22 Pedro Alves <palves@redhat.com>
12320
12321 * annotate.c (annotate_breakpoints_changed): Rename to ...
12322 (annotate_breakpoints_invalid): ... this. Make static.
12323 (breakpoint_changed): Adjust.
12324 (_initialize_annotate): Always install the observers. Install a
12325 "breakpoint_created" observer.
12326 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12327 * breakpoint.c (set_breakpoint_condition)
12328 (breakpoint_set_commands, do_map_commands_command)
12329 (init_raw_breakpoint, clear_command, set_ignore_count)
12330 (enable_breakpoint_disp): No longer call
12331 annotate_breakpoints_changed.
12332
bd00c694
PA
123332013-01-22 Pedro Alves <palves@redhat.com>
12334
12335 * annotate.c: Include "inferior.h".
12336 (frames_invalid_emitted)
12337 (breakpoints_invalid_emitted): New globals.
12338 (async_background_execution_p): New function.
12339 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12340 emitting the annotation if it has already been emitted.
12341 (annotate_display_prompt): New function.
12342 * annotate.h (annotate_display_prompt): New declaration.
12343 * event-top.c: Include annotate.h.
12344 (display_gdb_prompt): Call annotate_display_prompt.
12345
187d10dd
PA
123462013-01-22 Pedro Alves <palves@redhat.com>
12347
12348 * annotate.c (ignore_count_changed): Delete.
12349 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12350 (annotate_ignore_count_change): Delete.
12351 (annotate_stopped): Don't emit a delayed breakpoints-changed
12352 annotation.
12353 * annotate.h (annotate_ignore_count_change): Delete.
12354 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12355 annotate_ignore_count_change.
12356
d84cf7eb
TT
123572013-01-22 Tom Tromey <tromey@redhat.com>
12358
12359 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12360 require_rvalue for a register location.
12361
8f1d5693
MK
123622013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12363
12364 * breakpoint.c (print_one_breakpoint_location): Add MI
12365 field 'thread-groups' when printing a breakpoint.
12366 (output_thread_groups): New function.
12367
aa6199c6
SCR
123682013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12369
12370 * python/lib/gdb/commands/explore.py
12371 (CompoundExplorer.explore_expr): Correct the name of a method
12372 being invoked.
12373 (ExploreTypeCommand.invoke): Add a missing 'return'.
12374
d2afef13
TT
123752013-01-21 Tom Tromey <tromey@redhat.com>
12376
12377 * gdb_obstack.h (obconcat): Move declaration here, from...
12378 * symfile.h (obconcat): ... here.
12379 * gdb_obstack.c: New file.
12380 (obconcat): Move from...
12381 * symfile.c (obconcat): ... here.
12382 * Makefile.in (SFILES): Add gdb_obstack.c.
12383 (COMMON_OBS): Add gdb_obstack.o.
12384
10f0c4bb
TT
123852013-01-21 Tom Tromey <tromey@redhat.com>
12386
12387 * symfile.h (obsavestring): Don't declare.
12388 * symfile.c (obsavestring): Remove.
12389 * ada-exp.y: Use obstack_copy0, not obsavestring.
12390 * ada-lang.c: Use obstack_copy0, not obsavestring.
12391 * coffread.c: Use obstack_copy0, not obsavestring.
12392 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12393 * dbxread.c: Use obstack_copy0, not obsavestring.
12394 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12395 * jit.c: Use obstack_copy0, not obsavestring.
12396 * mdebugread.c: Use obstack_copy0, not obsavestring.
12397 * psymtab.c: Use obstack_copy0, not obsavestring.
12398 * stabsread.c: Use obstack_copy0, not obsavestring.
12399 * xcoffread.c: Use obstack_copy0, not obsavestring.
12400
86f62fd7
TT
124012013-01-21 Tom Tromey <tromey@redhat.com>
12402
12403 * dwarf2read.c (fixup_go_packaging): Save package name
12404 on objfile obstack.
12405 * gdbtypes.c (init_type): Don't copy name.
12406
15d034d0
TT
124072013-01-21 Tom Tromey <tromey@redhat.com>
12408
12409 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12410 const.
12411 (struct attribute) <u.str>: Now const.
12412 (struct fnfieldlist) <name>: Now const.
12413 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12414 (partial_die_parent_scope): Make return type const.
12415 (partial_die_full_name, add_partial_symbol): Update.
12416 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12417 'name' const.
12418 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12419 (read_file_scope, read_func_scope, dwarf2_add_field)
12420 (dwarf2_add_member_fn, read_structure_type)
12421 (process_enumeration_scope, read_array_type, read_module_type)
12422 (read_base_type, read_subrange_type): Update.
12423 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12424 (new_symbol_full, guess_full_die_structure_name): Update.
12425 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12426 (dwarf2_name): Return const type.
12427 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12428 const.
12429
748e18ae
TT
124302013-01-21 Tom Tromey <tromey@redhat.com>
12431
12432 * gdbtypes.c (init_type): Make 'name' const.
12433 * gdbtypes.h (init_type): Update.
12434
46212e0b
TT
124352013-01-21 Tom Tromey <tromey@redhat.com>
12436
12437 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12438 (start_symtab): Make 'name' and 'dirname' const. Use
12439 set_last_source_file.
12440 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12441 (last_source_file): Define. Now static.
12442 (set_last_source_file, get_last_source_file): New functions.
12443 * buildsym.h (last_source_file): Don't declare.
12444 (start_symtab): Update.
12445 (set_last_source_file, get_last_source_file): Declare.
12446 * coffread.c (complete_symtab): Use set_last_source_file.
12447 (coff_end_symtab): Likewise.
12448 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12449 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12450 set_last_source_file.
12451 (process_one_symbol): Use get_last_source_file.
12452 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12453 (psymtab_to_symtab_1): Use get_last_source_file.
12454 * xcoffread.c (process_linenos): Use get_last_source_file.
12455 (complete_symtab): Use set_last_source_file.
12456 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12457 (scan_xcoff_symtab): Use set_last_source_file.
12458
9d2ceabe
TT
124592013-01-21 Tom Tromey <tromey@redhat.com>
12460
12461 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12462 (symbol_set_names): Remove casts. Handle field const-ness.
12463
cfc594ee
TT
124642013-01-21 Tom Tromey <tromey@redhat.com>
12465
12466 * dwarf2read.c (new_symbol_full): Remove cast.
12467 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12468 * symtab.h (symbol_set_demangled_name): Update.
12469
5484b13a
TT
124702013-01-21 Tom Tromey <tromey@redhat.com>
12471
12472 * main.c (captured_main): Call bfd_init.
12473
1605ef26
TT
124742013-01-21 Tom Tromey <tromey@redhat.com>
12475
12476 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12477 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12478 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12479 * NEWS: Update.
12480
3b74cdc3
JK
124812013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12482
12483 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12484
5a352474
JK
124852013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12486
12487 Fix gdb.fortran/common-block.exp crash in PIE mode.
12488 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12489 LOC_COMMON_BLOCK.
12490 * f-valprint.c (info_common_command_for_block): Expect
12491 LOC_COMMON_BLOCK in gdb_assert.
12492 * symtab.h (struct general_symbol_info): Update comment for the
12493 common_block member.
12494 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12495 (enum address_class): New member LOC_COMMON_BLOCK.
12496
c60797fd
DB
124972013-01-18 David Blaikie <dblaikie@gmail.com>
12498
12499 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12500
46f35228
TT
125012013-01-18 Tom Tromey <tromey@redhat.com>
12502
12503 PR c++/14999:
12504 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12505 Call require_rvalue.
12506
257e7a09
YQ
125072013-01-18 Yao Qi <yao@codesourcery.com>
12508
12509 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12510 (dbx_read_symtab): New declaration.
12511 (dbx_psymtab_to_symtab): Delete.
12512 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12513 Rename parameter PST to SELF. Exchanged two parameters.
12514 (start_psymtab): Caller update.
12515 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12516 (dwarf2_read_symtab): New declaration.
12517 (dwarf2_psymtab_to_symtab): Delete.
12518 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12519 Rename parameter PST to SELF. Exchanged two parameters.
12520 (create_partial_symtab): Caller update.
12521 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12522 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12523 Rename parameter PST to SELF. Exchanged two parameters.
12524 (parse_partial_symbols, new_psymtab): Caller update.
12525 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12526 two parameters.
12527 * psymtab.c (psymtab_to_symtab): Caller update.
12528 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12529 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12530 Rename parameter PST to SELF. Exchanged two parameters.
12531 (xcoff_start_psymtab): Caller update.
12532
0de5618e
YQ
125332013-01-18 Yao Qi <yao@codesourcery.com>
12534
12535 * infrun.c (proceed): Rename local variable 'oneproc' to
12536 'force_step'.
12537
5c04624b
DE
125382013-01-17 Doug Evans <dje@google.com>
12539
848e3e78
DE
12540 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12541 (dw2_build_type_unit_groups): Delete. All uses updated.
12542
5c04624b
DE
12543 * symtab.h (struct symbol_search): Add comment.
12544
d84fca2c
JK
125452013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12546
12547 * symtab.c (compare_filenames_for_search): New comment for
12548 HAS_DRIVE_SPEC.
12549
6108433d
TT
125502013-01-17 Tom Tromey <tromey@redhat.com>
12551
12552 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12553
c89ffd86
JK
125542013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12555
12556 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12557 initialize it by existing make_cleanup. Call new do_cleanups.
12558
db2b2972
TT
125592013-01-17 Tom Tromey <tromey@redhat.com>
12560
12561 * cp-abi.c (cp_abi_completer): New function.
12562 (_initialize_cp_abi): Set completer for "set cp-abi".
12563
be7d37a2
TT
125642013-01-17 Tom Tromey <tromey@redhat.com>
12565
12566 * mem-break.c: Remove obsolete comment.
12567 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12568
c9fb1240
SD
125692012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12570
12571 * jit.c (jit_reader_load_command): Interpret the jit reader name
12572 as an absolute path if it begins with a forward slash.
12573
db334a01
SD
125742012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12575
12576 PR gdb/14550
12577
12578 * jit.c (finalize_symtab): Ensure that only the global block has a
12579 NULL superblock.
12580
7d928dac
PA
125812013-01-17 Pedro Alves <palves@redhat.com>
12582
12583 * acinclude.m4: Include ../config/plugins.m4,
12584 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12585 * Makefile.in (aclocal_m4_deps): Update.
12586 * aclocal.m4: Renegerate.
12587
fb8cf7c5
DE
125882013-01-16 Doug Evans <dje@google.com>
12589
12590 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12591
ab04a2af
TT
125922013-01-16 Pedro Alves <palves@redhat.com>
12593 Tom Tromey <tromey@redhat.com>
12594
12595 PR cli/7221:
12596 * NEWS: Add "catch signal".
12597 * breakpoint.c (base_breakpoint_ops): No longer static.
12598 (bpstat_explains_signal): New function.
12599 (init_catchpoint): No longer static.
12600 (base_breakpoint_explains_signal): New function.
12601 (base_breakpoint_ops): Initialize new field.
12602 * breakpoint.h (enum bpstat_signal_value): New.
12603 (struct breakpoint_ops) <explains_signal>: New field.
12604 (bpstat_explains_signal): Remove macro, declare as function.
12605 (base_breakpoint_ops, init_catchpoint): Declare.
12606 * break-catch-sig.c: New file.
12607 * inferior.h (signal_catch_update): Declare.
12608 * infrun.c (signal_catch): New global.
12609 (handle_syscall_event): Update for change to
12610 bpstat_explains_signal.
12611 (handle_inferior_event): Likewise. Always handle random signals
12612 via bpstats.
12613 (signal_cache_update): Check signal_catch.
12614 (signal_catch_update): New function.
12615 (_initialize_infrun): Initialize signal_catch.
12616 * Makefile.in (SFILES): Add break-catch-sig.c.
12617 (COMMON_OBS): Add break-catch-sig.o.
12618
8ac3646f
TT
126192013-01-16 Tom Tromey <tromey@redhat.com>
12620
12621 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12622 (print_one_catch_solib, print_one_catch_syscall)
12623 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12624 "catch-type".
12625
5a18e302
YQ
126262013-01-16 Yao Qi <yao@codesourcery.com>
12627
12628 * printcmd.c (current_display_number): Make it static.
12629
3f01d0d0
YQ
126302013-01-16 Yao Qi <yao@codesourcery.com>
12631
12632 * infcmd.c (step_once): Don't check '!single_inst' as it was
12633 checked before.
12634
1ed59174
JK
126352013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12636
12637 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12638
44478ab3
TT
126392013-01-14 Tom Tromey <tromey@redhat.com>
12640
12641 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12642 set command.
12643 * command.h (add_setshow_string_noescape_cmd): Update.
12644 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12645 (complete_set_gnutarget): New function.
12646 (_initialize_core): Set the "set gnutarget" completer.
12647
06d66ee9
TT
126482013-01-14 Tom Tromey <tromey@redhat.com>
12649
12650 PR symtab/14442:
12651 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12652 (c_type_print_modifier): Likewise.
12653 * dwarf2read.c (read_tag_restrict_type): New function.
12654 (read_type_die_1): Handle DW_TAG_restrict_type.
12655 * gdbtypes.c (make_restrict_type): New function.
12656 (recursive_dump_type): Handle TYPE_RESTRICT.
12657 * gdbtypes.h (enum type_flag_values): Renumber.
12658 (enum type_instance_flag_value): Add
12659 TYPE_INSTANCE_FLAG_RESTRICT.
12660 (TYPE_RESTRICT): New macro.
12661 (make_restrict_type): Declare.
12662
c9bf0622
TT
126632013-01-14 Tom Tromey <tromey@redhat.com>
12664
12665 PR symtab/14931:
12666 * psymtab.c (struct psymtab_state): New.
12667 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12668 functions.
12669 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12670 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12671
44d594fd
PA
126722013-01-14 Richard Sharman <richard_sharman@mitel.com>
12673 Pedro Alves <palves@redhat.com>
12674
12675 PR remote/14786
12676
12677 * remote.c (remote_threads_info): Make a copy of the reply from
12678 qfThreadInfo and use that instead of rs->buf.
12679
442e4d9c
YQ
126802013-01-14 Yao Qi <yao@codesourcery.com>
12681
12682 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12683 (dbx_psymtab_to_symtab): Likewise.
12684 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12685 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12686 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12687
5b12a61c
JK
126882013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12689
12690 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12691 make_cleanup_restore_current_language. Call set_language. Move
12692 OLD_CHAIN and INNER_CHAIN cleanups.
12693 * utils.c (do_restore_current_language)
12694 (make_cleanup_restore_current_language): New functions.
12695 * utils.h (make_cleanup_restore_current_language): New declaration.
12696
f0a4b570
JK
126972013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12698
12699 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12700 non-existing files.
12701
57b3c00c
JK
12702 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12703 non-existing files if FILENAME is already absolute.
12704
daefa854
JK
127052013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12706
12707 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12708 fputs_filtered. Append trailing newline.
12709
ca9c6ee2
YQ
127102013-01-11 Yao Qi <yao@codesourcery.com>
12711 Stan Shebs <stan@codesourcery.com>
12712
12713 * psymtab.c (init_psymbol_list): Clarify the comment.
12714
f28045c2
YQ
127152013-01-11 Yao Qi <yao@codesourcery.com>
12716
12717 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12718 (update_dprintf_command_list): Assert that 'printf_line' is
12719 non-null. Remove condition check.
12720
da5132d3
JK
127212013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12722
12723 Code cleanup.
12724 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12725 type const char *.
12726 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12727 const char *.
12728 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12729
843e694d
AG
127302013-01-09 Anthony Green <green@moxielogic.com>
12731
12732 * cp-abi.c (cplus_print_vtable): Don't return value from void
12733 function.
12734 * ada-lang.c (re_set_catch_assert): Ditto.
12735
da51c347
DE
127362013-01-09 Doug Evans <dje@google.com>
12737
12738 * symfile.h (quick_symbol_functions): Delete member
12739 pre_expand_symtabs_matching. All uses removed.
12740 * dwarf2read.c (dw2_lookup_symbol): Implement.
12741 (dw2_do_expand_symtabs_matching): Delete.
12742 (dw2_pre_expand_symtabs_matching): Delete.
12743 (struct dw2_symtab_iterator): New type.
12744 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12745 (dw2_expand_symtabs_for_function): Rewrite.
12746 (dwarf2_gdb_index_functions): Update.
12747 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12748 (psym_functions): Update.
12749
b2259038
TT
127502013-01-09 Tom Tromey <tromey@redhat.com>
12751
12752 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12753 * configure: Rebuild.
12754 * configure.ac: Add somread.o to the build if BFD has SOM
12755 support.
12756 * somread.c: Include som/aout.h, not syms.h.
12757 (som_symtab_read): Use som_external_symbol_dictionary_record.
12758 Unpack records manually.
12759 (_initialize_somread): Declare.
12760
bdad4180
MF
127612012-01-08 Mike Frysinger <vapier@gentoo.org>
12762
12763 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12764 Cast return_address to 64bits.
12765
03cdf680
HZ
127662013-01-08 Hui Zhu <hui_zhu@mentor.com>
12767
12768 * printcmd.c: Remove define of function output_command.
12769 * tracepoint.c: Remove extern of function output_command.
12770 * valprint.h: (output_command): New extern.
12771
8a808554
TT
127722013-01-07 Tom Tromey <tromey@redhat.com>
12773
12774 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12775 Remove.
12776 (objc_language_defn): Use c_printchar, c_printstr,
12777 c_emit_char.
12778
e93a8774
TT
127792013-01-07 Tom Tromey <tromey@redhat.com>
12780
12781 PR cli/7719:
12782 * NEWS: Update.
12783 * ada-valprint.c (printstr, print_field_values): Remove
12784 "inspect_it" code.
12785 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12786 code.
12787 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12788 code.
12789 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12790 * main.c (captured_main): Remove "epoch" argument.
12791 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12792 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12793 * p-valprint.c (pascal_object_print_value_fields): Remove
12794 "inspect_it" code.
12795 * printcmd.c (print_command_1): Remove 'inspect' argument.
12796 (print_command, call_command): Update.
12797 (inspect_command): Remove.
12798 (_initialize_printcmd): Make "inspect" an alias for "print".
12799 * top.c (epoch_interface): Remove.
12800 * top.h (epoch_interface): Remove.
12801 * valprint.c (user_print_options): Update.
12802 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12803 * valprint.h (struct value_print_options) <inspect_it>: Remove
12804 field.
12805
128062013-01-04 Tom Tromey <tromey@redhat.com>
12807
12808 * valprint.h (read_string): Add 'extern'.
12809
b967eb24
JB
128102013-01-07 Joel Brobecker <brobecker@adacore.com>
12811
12812 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12813 used to decide whether to define darwin_read_dyld_info or not.
12814
78a8b30e
PM
128152013-01-03 Pierre Muller <muller@sourceware.org>
12816
12817 * main.c (relocate_gdb_directory): Avoid calling stat function
12818 if DIR is empty.
12819
50da2f25
YQ
128202013-01-03 Yao Qi <yao@codesourcery.com>
12821
12822 * psymtab.c (fixup_psymbol_section): Update declaration.
12823 (fixup_psymbol_section): Remove code returning value.
12824
e7e8980f
YQ
128252013-01-03 Yao Qi <yao@codesourcery.com>
12826
12827 * symtab.h: Remove some out of date comments.
12828 (enum exception_event_kind): Move it ...
12829 * breakpoint.c: ... here.
12830
569283d4
MF
128312013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12832
9f9d9a96 12833 PR gdb/14405
569283d4
MF
12834 * darwin-nat.c (darwin_read_dyld_info): Only build if
12835 TASK_DYLD_INFO_COUNT is defined.
12836 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12837 TASK_DYLD_INFO_COUNT is defined.
12838
2e36fbea
TT
128392013-01-02 Tom Tromey <tromey@redhat.com>
12840
12841 * symfile.h (struct ecoff_debug_hack): Remove.
12842 * objfiles.c: Don't include mdebugread.h.
12843
4f05add4
TT
128442013-01-02 Tom Tromey <tromey@redhat.com>
12845
12846 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12847 * configure.ac: Check for Mach-O support in BFD. Update
12848 CONFIG_OBS.
12849 * configure: Rebuild.
12850
def63ff0
TT
128512013-01-02 Tom Tromey <tromey@redhat.com>
12852
12853 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12854 * configure.ac: Use GDB_AC_CHECK_BFD.
12855 * configure: Rebuild.
12856
60c5dd93
MK
128572013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12858
12859 * MAINTAINERS: Update my email.
12860
6e58437e
JB
128612013-01-01 Joel Brobecker <brobecker@adacore.com>
12862
12863 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12864
627fe805
JB
128652013-01-01 Joel Brobecker <brobecker@adacore.com>
12866
12867 * rs6000-nat.c (bss_data_overlap): New function.
12868 (vmap_symtab): Use it to adjust the .bss section's offset.
12869
28e7fd62
JB
128702013-01-01 Joel Brobecker <brobecker@adacore.com>
12871
12872 Update year range in copyright notice of all files.
12873
e93a8774 128742013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12875
12876 * top.c (print_gdb_version): Update copyright year.
12877
72b20e9c 12878For older changes see ChangeLog-2012.
c906108c
SS
12879\f
12880Local Variables:
12881mode: change-log
12882left-margin: 8
12883fill-column: 74
12884version-control: never
57da7796 12885coding: utf-8
c906108c 12886End:
This page took 2.169698 seconds and 4 git commands to generate.