Add -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
20e1ca3b
PA
12013-11-29 Pedro Alves <palves@redhat.com>
2
3 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
4
8b4f3082
PA
52013-11-29 Pedro Alves <palves@redhat.com>
6
7 * breakpoint.c (build_target_condition_list): Release previous
8 conditions.
9 (build_target_command_list): Release previous commands.
10 (bp_location_dtor): Release target conditions and commands.
11 * remote.c (remote_add_target_side_condition): Don't release
12 conditions.
13 (remote_add_target_side_commands): Don't release commands.
14
9f713294
YQ
152013-11-29 Yao Qi <yao@codesourcery.com>
16 Pedro Alves <palves@redhat.com>
17
18 * dcache.c (dcache_read_line): Use current_target.beneath
19 instead of &current_target.
20 * target.c (memory_xfer_partial_1): Factor code out to ...
21 (raw_memory_xfer_partial): ... it. New function.
22 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
23 is TARGET_OBJECT_RAW_MEMORY.
24
4cb0213d
DE
252013-11-28 Doug Evans <xdje42@gmail.com>
26
27 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
28 breakpoint_object. All uses updated.
29 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
30 breakpoint_object. All uses updated.
31 * python.c (*): All uses of breakpoint_object updated.
32 * python.h (*): All uses of breakpoint_object updated.
33 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
34 * python/py-finishbreakpoint.c (*): Ditto.
35
d344e670
DE
362013-11-28 Doug Evans <xdje42@gmail.com>
37
d729aae0 38 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
39 * configure: Regenerate.
40
eebc056c
AB
412013-11-28 Andrew Burgess <aburgess@broadcom.com>
42 Pedro Alves <palves@redhat.com>
43
44 * valprint.c (value_check_printable): If the value is entirely
45 unavailable, print a single "<unavailable>" instead of printing
46 all subfields.
47
a7300869
PA
482013-11-28 Pedro Alves <palves@redhat.com>
49
50 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
51 Add "set debug frame" output.
52 (frame_stop_reason_symbol_string): New function.
53
50fd528a
PA
542013-11-28 Pedro Alves <palves@redhat.com>
55
56 * frame-unwind.c (default_frame_unwind_stop_reason): Return
57 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
58 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
59
5de51581
PA
602013-11-28 Pedro Alves <palves@redhat.com>
61
62 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
63 set the unwind stop reason to UNWIND_OUTERMOST, not
64 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
65
739cb10c
PA
662013-11-28 Pedro Alves <palves@redhat.com>
67
68 * frame.c (frame_unwind_register): Say the register was "not
69 saved" instead of "optimized out".
70
514c0aa6 712013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 72
514c0aa6 73 PR 16152
92a021de 74 * configure: Rebuild.
514c0aa6 75 * configure.ac: Tighten cygwin detection check.
92a021de 76
908fa2aa
PA
772013-11-27 Pedro Alves <palves@redhat.com>
78
79 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
80 register in the previous frame's arch.
81
6bd273ae
PA
822013-11-27 Pedro Alves <palves@redhat.com>
83
84 * frame-unwind.c (frame_unwind_got_optimized): Return
85 an lval_register value instead of a not_lval value.
86
f6c01fc5
AB
872013-11-27 Andrew Burgess <aburgess@broadcom.com>
88
89 * frame.c: Include "valprint.h".
90 (frame_unwind_register_value): Use value_optimized_out.
91 * value.c (value_fetch_lazy): Likewise.
92
4f14910f
AB
932013-11-26 Andrew Burgess <aburgess@broadcom.com>
94
95 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
96
15859968
TT
972013-11-26 Tom Tromey <tromey@redhat.com>
98
99 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
100 2013-11-22.
101
244ec0da
WT
1022013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
103
104 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
105 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
106 (HAS_MPX): New macro.
107 (HAS_AVX): New macro.
108 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
109
f7e3ecae
KS
1102013-11-25 Keith Seitz <keiths@redhat.com>
111
112 PR c++/14819
113 * c-exp.y (classify_inner_name): If no matching symbol was
114 found, try looking up the token as a base class.
115 Likewise if a constructor was found.
116 * cp-namespace.c (find_type_baseclass_by_name): New function.
117 * cp-support.h (find_type_baseclass_by_name): Declare.
118 * valops.c (value_struct_elt_for_reference): If we get
119 a non-static field, try to get a value based on the
120 current instance, if any.
121
283f7163
YQ
1222013-11-24 Yao Qi <yao@codesourcery.com>
123
124 * disasm.c (dis_asm_read_memory): Call target_read_code
125 instead of target_read_memory.
126
29453a14
YQ
1272013-11-24 Yao Qi <yao@codesourcery.com>
128
129 * NEWS: Add note on new "set code-cache" option.
130 * target-dcache.c (code_cache_enabled_1): New variable.
131 (code_cache_enabled): New variable.
132 (show_code_cache, set_code_cache): New function.
133 (code_cache_enabled_p): New function.
134 (_initialize_target_dcache): Register command.
135 * target-dcache.h (code_cache_enabled_p): Declare.
136 * target.c (memory_xfer_partial_1):Handle
137 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
138 (target_read_code): New function.
139 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
140 New.
141 (target_read_code): Declare.
142
0fb14d8f
YQ
1432013-11-24 Yao Qi <yao@codesourcery.com>
144
145 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
146 (stack_cache_enabled_1): ... this. New variable.
147 (stack_cache_enabled_p): Rename to ...
148 (stack_cache_enabled): ... this. New variable.
149 (set_stack_cache_enabled_p): Rename to ...
150 (set_stack_cache): ... this. Update caller.
151 (show_stack_cache_enabled_p): Rename to ...
152 (show_stack_cache): ... this. Update caller.
153 (stack_cache_enabled): Rename to ...
154 (stack_cache_enabled_p): ... this. Update caller.
155 (_initialize_target_dcache): Replace "data cache" with
156 "target memory cache".
157 * target-dcache.h (stack_cache_enabled): Remove declaration.
158 (stack_cache_enabled_p): Add declaration.
159
a12361b9
DE
1602013-11-23 Doug Evans <xdje42@gmail.com>
161
162 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
163 superfluous.
164
1e1d6920
DE
1652013-11-23 Doug Evans <xdje42@gmail.com>
166
167 * python/py-frame.c (frapy_block): Fix error message text.
168
1e9c71b8
DE
1692013-11-23 Doug Evans <xdje42@gmail.com>
170
171 * cli/cli-script.c (multi_line_command_p): New function.
172 (recurse_read_control_structure, read_command_lines_1): Call it.
173 (execute_control_command): Consistently have a blank line between
174 each case.
175
f380848e
SA
1762013-11-22 Sterling Augustine <saugustine@google.com>
177
38e1f2a7 178 PR gdb/16196:
f380848e
SA
179 * valprint.c (read_string): Set new variable fetchlen based on
180 fetchlimit and size. Use it in call to partial_memory_read.
181 Update comment.
182
da2b2fdf
TT
1832013-11-22 Tom Tromey <tromey@redhat.com>
184
185 PR backtrace/16155:
186 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
187 the return address column is unspecified.
188
6eeee81c
TT
1892013-11-22 Tom Tromey <tromey@redhat.com>
190 Pedro Alves <palves@redhat.com>
191
192 PR backtrace/16155
193 * value.c (value_fetch_lazy): Internal error if
194 get_frame_register_value returns the same register.
195
194cca41
PA
1962013-11-22 Pedro Alves <palves@redhat.com>
197 Tom Tromey <tromey@redhat.com>
198
199 * frame.c (frame_stash_add): Now returns whether a frame with the
200 same ID was already known.
201 (compute_frame_id): New function, factored out from get_frame_id.
202 (get_frame_id): No longer lazilly compute the frame id here.
203 (get_prev_frame_if_no_cycle): New function. Detects wider stack
204 cycles.
205 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
206 and checking for stack cycles here.
207
33f8fe58
PA
2082013-11-22 Pedro Alves <palves@redhat.com>
209
210 PR 16155
211 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
212 this frame and the new previous frame, not between this frame and
213 the next frame.
214
1ec56e88
PA
2152013-11-22 Pedro Alves <palves@redhat.com>
216
217 PR 16155
218 * dwarf2-frame.c (struct dwarf2_frame_cache)
219 <checked_tailcall_bottom, entry_cfa_sp_offset,
220 entry_cfa_sp_offset_p>: New fields.
221 (dwarf2_frame_cache): Adjust to use the new cache fields instead
222 of locals. Don't call dwarf2_tailcall_sniffer_first here.
223 (dwarf2_frame_prev_register): Call it here, but only once.
224
ca092b61
DE
2252013-11-21 Doug Evans <xdje42@gmail.com>
226
227 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
228 (type_equality_entry): Move here from python/py-type.c.
229 (type_equality_entry_d): Ditto.
230 (compare_maybe_null_strings, check_types_equal): Ditto.
231 (check_types_worklist, types_deeply_equal): Ditto.
232 * gdbtypes.h (types_deeply_equal): Declare.
233 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
234 (typy_richcompare): Update.
235
7c245c24
JB
2362013-11-20 Joel Brobecker <brobecker@adacore.com>
237
238 * python/py-value.c (is_intlike): Delete.
239 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
240 by use of is_integral_type.
241 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
242 by use of is_integral_type and check for TYPE_CODE_PTR.
243
8986e351
TT
2442013-11-20 Tom Tromey <tromey@redhat.com>
245
246 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
247 strerror module.
248 * gnulib/aclocal.m4: Update.
249 * gnulib/config.in: Update.
250 * gnulib/configure: Update.
251 * gnulib/import/Makefile.am: Update.
252 * gnulib/import/Makefile.in: Update.
253 * gnulib/import/errno.in.h: Remove.
254 * gnulib/import/intprops.h: Remove.
255 * gnulib/import/m4/errno_h.m4: Remove.
256 * gnulib/import/m4/gnulib-cache.m4: Update.
257 * gnulib/import/m4/gnulib-comp.m4: Update.
258 * gnulib/import/m4/strerror.m4: Remove.
259 * gnulib/import/m4/sys_socket_h.m4: Remove.
260 * gnulib/import/strerror-override.c: Remove.
261 * gnulib/import/strerror-override.h: Remove.
262 * gnulib/import/strerror.c: Remove.
263 * gnulib/update-gnulib.sh: Update.
264
6b1141e3
YQ
2652013-11-20 Yao Qi <yao@codesourcery.com>
266
267 * target-dcache.c (target_dcache_get_or_init): Call
268 set_address_space_data if 'dcache' is NULL.
269
60650f2e
WT
2702013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
271
272 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
273
09748966
WT
2742013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
275
276 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
277 * data-directory/Makefile.in: Copy bond_register.py to the right path
278 to be initialized at gdb startup.
09748966 279
e43e105e
WT
2802013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
281
282 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
283 Add MPX registers.
284 (amd64_linux_read_description): Add initialization for MPX and
285 AVX independently.
286 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
287 (amd64_linux_gregset_reg_offset): Add MPX registers.
288 (amd64_linux_core_read_description): Add initialization for MPX
289 registers.
290 (_initialize_amd64_linux_tdep): Initialize MPX targets.
291 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
292 register on the list.
293 (tdesc_amd64_mpx_linux) Add new target for MPX.
294 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
295 (amd64_mpx_names): MPX register names.
296 (amd64_init_abi): Add MPX register while initializing the ABI.
297 (_initialize_amd64_tdep): Initialize MPX targets.
298 * amd64-tdep.h (amd64_regnum): Add MPX registers.
299 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
300
1dbcd68c
WT
3012013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
302
303 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
304 registers on the range of registers to be read from
305 xsave buffer.
306 (i386_linux_read_description): Add case for MPX.
307 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
308 (i386_linux_gregset_reg_offset): Add MPX registers.
309 (i386_linux_core_read_description): Initialize also MPX.
310 (_initialize_i386_linux_tdep): Add mpx initialization.
311 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
312 mpx_register_names.
313 (i386_regnum): Add MPX registers.
314 (I386_MPX_NUM_REGS): New macro.
315 (i386_bnd_regnum_p): New function.
316 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
317 number of registers to be the number of BNDSTATUS.
318 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
319 * i386-tdep.c: Include features/i386/i386-mpx.c.
320 (i386_mpx_names): Add MPX register names array.
321 (i386_bnd_names): Add bnd pseudo register names array.
322 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
323 registers.
324 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
325 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
326 registers.
327 (i386_bnd_type): New function.
328 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
329 register types.
330 (i386_pseudo_register_read_into_value): Add bnd case.
331 (i386_pseudo_register_write): Add bnd pseudo registers.
332 (i386_register_reggroup_p): Add MPX register to the group all.
333 (i386_validate_tdesc_p): Add MPX to the target description
334 validation.
335 (i386_pseudo_register_name): Add bnd pseudo registers.
336 (i386_gdbarch_init): Add MPX for architecture initialization.
337 (_initia_initialize_i386_tdep): Add mpx initialization.
338 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
339 XSAVE buffer.
340 (XSAVE_MPX_ADDR): New macro.
341 (i387_supply_xsave): Add MPX case.
342 (i387_collect_xsave): Add MPX case.
343 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
344 (I387_BNDCFGU_REGNUM): New macro.
345 (I387_NUM_MPX_REGS): New macro.
346 (I387_NUM_BND_REGS): New macro.
347 (I387_NUM_MPX_CTRL_REGS): New macro.
348 (I387_MPXEND_REGNUM): New macro.
349 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
350 (I386_XSTATE_BNDCFG): Likewise.
351 (I386_XSTATE_MPX_MASK): Likewise.
352 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
353 (I386_XSTATE_BNDREGS_SIZE): New macro.
354 (I386_XSTATE_BNDCFG_SIZE): Likewise.
355 (I386_XSTATE_SIZE): Adapt for MPX.
356 (I386_XSTATE_MAX_SIZE): Likewise.
357
ccc42043
WT
3582013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
359
360 * features/i386/Makefile: Adapts for using MPX registers.
361 * features/i386/32bit-mpx.xml: New file.
362 * features/i386/64bit-mpx.xml: Likewise.
363 * features/i386/amd64-mpx-linux.c: Likewise.
364 * features/i386/amd64-mpx-linux.xml: Likewise.
365 * features/i386/amd64-mpx.c: Likewise.
366 * features/i386/amd64-mpx.xml: Likewise.
367 * features/i386/i386-mpx-linux.c: Likewise.
368 * features/i386/i386-mpx-linux.xml: Likewise.
369 * features/i386/i386-mpx.c: Likewise.
370 * features/i386/i386-mpx.xml: Likewise.
371 * regformats/i386/amd64-mpx-linux.dat: New file.
372 * regformats/i386/amd64-mpx.dat: Likewise.
373 * regformats/i386/i386-mpx-linux.dat: Likewise.
374 * regformats/i386/i386-mpx.dat: Likewise.
375
57803a3c
WT
3762013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
377
378 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
379 Modified logic of creating a bitfield to be in sync with
380 tdesc_gdb_type.
381
2b59118e
WN
3822013-11-20 Will Newton <will.newton@linaro.org>
383
384 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
385 error message.
386
b26dfc9a
YQ
3872013-11-20 Yao Qi <yao@codesourcery.com>
388
389 * progspace.h (struct address_space_data): Declare.
390 * target-dcache.c: Include "progspace.h".
391 (target_dache): Remove.
392 (target_dcache_aspace_key): New.
393 (target_dcache_cleanup): New function.
394 (target_dcache_init_p): Get data through
395 target_dcache_aspace_key.
396 (target_dcache_invalidate): Likewise.
397 (target_dcache_get): Likewise.
398 (target_dcache_get_or_init): Likewise.
399 (_initialize_target_dcache): Initialize
400 target_dcache_aspace_key.
401
3a8356ff
YQ
4022013-11-20 Yao Qi <yao@codesourcery.com>
403
404 * progspace.c (struct address_space): Update comments.
405 <REGISTRY_FIELDS>: New fields.
406 DEFINE_REGISTRY for address_space.
407 (new_address_space): Call address_space_alloc_data.
408 (free_address_space): Call address_space_free_data.
409 * progspace.h: Use DECLARE_REGISTRY.
410
68c765e2
YQ
4112013-11-20 Yao Qi <yao@codesourcery.com>
412
413 * Makefile.in (SFILES):Add target-dcache.c.
414 (HFILES_NO_SRCDIR): Add target-dcache.h.
415 (COMMON_OBS): Add target-dcache.o.
416 * dcache.c: Remove inclusion to "target.h". Include
417 "target-dcache.h".
418 * memattr.c: Include "target-dcache.h".
419 * top.c: Likewise.
420 * tracepoint.c: Likewise.
421 * target.c: (stack_cache_enabled_p_1): Move to
422 target-dcache.c.
423 (stack_cache_enabled_p): Likewise.
424 (set_stack_cache_enabled_p): Likewise.
425 (show_stack_cache_enabled_p): Likewise.
426 (target_dcache, target_dcache_init_p): Likewise.
427 (target_dcache_invalidate): Likewise.
428 (target_dcache_get, target_dcache_get_or_init): Likewise.
429 (memory_xfer_partial_1): Call function stack_cache_enabled.
430 (initialize_target): Move code to target-dcache.c.
431 * target.h (target_dcache_invalidate): Move to
432 target-dcache.h.
433 (target_dcache_get): Likewise.
434 * target-dcache.c: New.
435 * target-dcache.h: New.
436
f2de9785
YQ
4372013-11-20 Yao Qi <yao@codesourcery.com>
438
439 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
440 it is initialized.
441
2a2f9fe4
YQ
4422013-11-20 Yao Qi <yao@codesourcery.com>
443
444 * dcache.c (last_cache): Remove.
445 (dcache_free, dcache_init): Update.
446 (dcache_update):
447 (dcache_print_line): Add parameter 'dcache'. Replace
448 'target_dcache' with 'dcache'.
449 (dcache_info): Move code to dcache_info_1. Call
450 'dcache_info_1'.
451 (dcache_info_1): New function.
452 (set_dcache_size): Call target_dcache_invalidate.
453 (set_dcache_line_size): Call target_dcache_invalidate.
454 * target.c (target_dcache_init_p): New function.
455 (target_dcache_invalidate): Check target_dcache_init_p first.
456 (target_dcache_get, target_dcache_get_or_init): New function.
457 (memory_xfer_partial_1): Adjust.
458 (initialize_target): Don't initialize 'target_dcache'.
459 * target.h (struct dcache_struct): Declare.
460 (target_dcache_get): Declare.
461
8ab91b96
YQ
4622013-11-19 Yao Qi <yao@codesourcery.com>
463
464 * varobj.c (varobj_get_type): Fix typo.
465
df7752b0
JB
4662013-11-19 Joel Brobecker <brobecker@adacore.com>
467
468 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
469
4a0a886a
JB
4702013-11-19 Joel Brobecker <brobecker@adacore.com>
471
472 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
473 "stat.h".
474
53ce3c39
TT
4752013-11-18 Tom Tromey <tromey@redhat.com>
476
477 * common/gdb_stat.h: Remove.
478 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
479 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
480 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
481 * corefile.c: Use sys/stat.h, not gdb_stat.h.
482 * ctf.c: Use sys/stat.h, not gdb_stat.h.
483 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
484 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
485 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
486 * exec.c: Use sys/stat.h, not gdb_stat.h.
487 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
488 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
489 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
490 * jit.c: Use sys/stat.h, not gdb_stat.h.
491 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
492 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
493 * main.c: Use sys/stat.h, not gdb_stat.h.
494 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
495 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
496 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
497 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
498 * procfs.c: Use sys/stat.h, not gdb_stat.h.
499 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
500 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
501 * remote.c: Use sys/stat.h, not gdb_stat.h.
502 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
503 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
504 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
505 * source.c: Use sys/stat.h, not gdb_stat.h.
506 * symfile.c: Use sys/stat.h, not gdb_stat.h.
507 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
508 * symtab.c: Use sys/stat.h, not gdb_stat.h.
509 * top.c: Use sys/stat.h, not gdb_stat.h.
510 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
511
09607c9e
TT
5122013-11-18 Tom Tromey <tromey@redhat.com>
513
514 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
515 sys_stat.
516 * gnulib/aclocal.m4: Update.
517 * gnulib/config.in: Update.
518 * gnulib/configure: Update.
519 * gnulib/import/Makefile.am: Update.
520 * gnulib/import/Makefile.in: Update.
521 * gnulib/import/m4/gnulib-cache.m4: Update.
522 * gnulib/import/m4/gnulib-comp.m4: Update.
523 * gnulib/import/m4/sys_stat_h.m4: New.
524 * gnulib/import/m4/time_h.m4: New.
525 * gnulib/import/sys_stat.in.h: New.
526 * gnulib/import/time.in.h: New.
527
4ff70b84
TT
5282013-11-18 Tom Tromey <tromey@redhat.com>
529
530 * configure: Rebuild.
531 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
532
3447c057
TT
5332013-11-18 Tom Tromey <tromey@redhat.com>
534
535 * configure: Rebuild.
536 * configure.ac: Don't check for unistd.h.
537
0080a2f6
TT
5382013-11-18 Tom Tromey <tromey@redhat.com>
539
540 * configure: Rebuild.
541 * configure.ac: Don't check for stdlib.h
542 * defs.h: Include stdlib.h unconditionally.
543
161d1bec
TT
5442013-11-18 Tom Tromey <tromey@redhat.com>
545
546 * config.in: Rebuild.
547 * configure: Rebuild.
548 * configure.ac: Don't check for stddef.h.
549 * defs.h: Unconditionally include stddef.h. Remove duplicate
550 inclusion.
551
2978b111
TT
5522013-11-18 Tom Tromey <tromey@redhat.com>
553
554 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
555 * common/gdb_dirent.h: Remove.
556 * common/filestuff.c: Use dirent.h.
557 * common/linux-osdata.c: Use dirent.h.
558 (NAMELEN): Define.
559 * config.in: Rebuild.
560 * configure: Rebuild.
561 * configure.ac: Don't use AC_HEADER_DIRENT.
562 * linux-fork.c: Use dirent.h
563 * linux-nat.c: Use dirent.h.
564 * nto-procfs.c: Use dirent.h.
565 * procfs.c: Use dirent.h.
566
e26b6bb0
TT
5672013-11-18 Tom Tromey <tromey@redhat.com>
568
569 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
570 * gnulib/aclocal.m4: Update.
571 * gnulib/config.in: Update.
572 * gnulib/configure: Update.
573 * gnulib/import/Makefile.am: Update.
574 * gnulib/import/Makefile.in: Update.
575 * gnulib/import/dirent.in.h: New.
576 * gnulib/import/m4/dirent_h.m4: New.
577 * gnulib/import/m4/gnulib-cache.m4: Update.
578 * gnulib/import/m4/gnulib-comp.m4: Update.
579
a3d08894
TT
5802013-11-18 Tom Tromey <tromey@redhat.com>
581
582 * configure: Rebuild.
583 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
584 strings.h.
585
0e9f083f
TT
5862013-11-18 Tom Tromey <tromey@redhat.com>
587
588 * common/gdb_string.h: Remove.
589 * aarch64-tdep.c: Use string.h, not gdb_string.h.
590 * ada-exp.y: Use string.h, not gdb_string.h.
591 * ada-lang.c: Use string.h, not gdb_string.h.
592 * ada-lex.l: Use string.h, not gdb_string.h.
593 * ada-typeprint.c: Use string.h, not gdb_string.h.
594 * ada-valprint.c: Use string.h, not gdb_string.h.
595 * aix-thread.c: Use string.h, not gdb_string.h.
596 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
597 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
598 * alpha-nat.c: Use string.h, not gdb_string.h.
599 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
600 * alpha-tdep.c: Use string.h, not gdb_string.h.
601 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
602 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
603 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
604 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
605 * amd64-nat.c: Use string.h, not gdb_string.h.
606 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
607 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
608 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
609 * arch-utils.c: Use string.h, not gdb_string.h.
610 * arm-linux-nat.c: Use string.h, not gdb_string.h.
611 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
612 * arm-tdep.c: Use string.h, not gdb_string.h.
613 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
614 * armbsd-tdep.c: Use string.h, not gdb_string.h.
615 * armnbsd-nat.c: Use string.h, not gdb_string.h.
616 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
617 * armobsd-tdep.c: Use string.h, not gdb_string.h.
618 * avr-tdep.c: Use string.h, not gdb_string.h.
619 * ax-gdb.c: Use string.h, not gdb_string.h.
620 * ax-general.c: Use string.h, not gdb_string.h.
621 * bcache.c: Use string.h, not gdb_string.h.
622 * bfin-tdep.c: Use string.h, not gdb_string.h.
623 * breakpoint.c: Use string.h, not gdb_string.h.
624 * build-id.c: Use string.h, not gdb_string.h.
625 * buildsym.c: Use string.h, not gdb_string.h.
626 * c-exp.y: Use string.h, not gdb_string.h.
627 * c-lang.c: Use string.h, not gdb_string.h.
628 * c-typeprint.c: Use string.h, not gdb_string.h.
629 * c-valprint.c: Use string.h, not gdb_string.h.
630 * charset.c: Use string.h, not gdb_string.h.
631 * cli-out.c: Use string.h, not gdb_string.h.
632 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
633 * cli/cli-decode.c: Use string.h, not gdb_string.h.
634 * cli/cli-dump.c: Use string.h, not gdb_string.h.
635 * cli/cli-interp.c: Use string.h, not gdb_string.h.
636 * cli/cli-logging.c: Use string.h, not gdb_string.h.
637 * cli/cli-script.c: Use string.h, not gdb_string.h.
638 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
639 * cli/cli-utils.c: Use string.h, not gdb_string.h.
640 * coffread.c: Use string.h, not gdb_string.h.
641 * common/common-utils.c: Use string.h, not gdb_string.h.
642 * common/filestuff.c: Use string.h, not gdb_string.h.
643 * common/linux-procfs.c: Use string.h, not gdb_string.h.
644 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
645 * common/signals.c: Use string.h, not gdb_string.h.
646 * common/vec.h: Use string.h, not gdb_string.h.
647 * core-regset.c: Use string.h, not gdb_string.h.
648 * corefile.c: Use string.h, not gdb_string.h.
649 * corelow.c: Use string.h, not gdb_string.h.
650 * cp-abi.c: Use string.h, not gdb_string.h.
651 * cp-support.c: Use string.h, not gdb_string.h.
652 * cp-valprint.c: Use string.h, not gdb_string.h.
653 * cris-tdep.c: Use string.h, not gdb_string.h.
654 * d-lang.c: Use string.h, not gdb_string.h.
655 * dbxread.c: Use string.h, not gdb_string.h.
656 * dcache.c: Use string.h, not gdb_string.h.
657 * demangle.c: Use string.h, not gdb_string.h.
658 * dicos-tdep.c: Use string.h, not gdb_string.h.
659 * disasm.c: Use string.h, not gdb_string.h.
660 * doublest.c: Use string.h, not gdb_string.h.
661 * dsrec.c: Use string.h, not gdb_string.h.
662 * dummy-frame.c: Use string.h, not gdb_string.h.
663 * dwarf2-frame.c: Use string.h, not gdb_string.h.
664 * dwarf2loc.c: Use string.h, not gdb_string.h.
665 * dwarf2read.c: Use string.h, not gdb_string.h.
666 * elfread.c: Use string.h, not gdb_string.h.
667 * environ.c: Use string.h, not gdb_string.h.
668 * eval.c: Use string.h, not gdb_string.h.
669 * event-loop.c: Use string.h, not gdb_string.h.
670 * exceptions.c: Use string.h, not gdb_string.h.
671 * exec.c: Use string.h, not gdb_string.h.
672 * expprint.c: Use string.h, not gdb_string.h.
673 * f-exp.y: Use string.h, not gdb_string.h.
674 * f-lang.c: Use string.h, not gdb_string.h.
675 * f-typeprint.c: Use string.h, not gdb_string.h.
676 * f-valprint.c: Use string.h, not gdb_string.h.
677 * fbsd-nat.c: Use string.h, not gdb_string.h.
678 * findcmd.c: Use string.h, not gdb_string.h.
679 * findvar.c: Use string.h, not gdb_string.h.
680 * fork-child.c: Use string.h, not gdb_string.h.
681 * frame.c: Use string.h, not gdb_string.h.
682 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
683 * frv-tdep.c: Use string.h, not gdb_string.h.
684 * gdb.c: Use string.h, not gdb_string.h.
685 * gdb_bfd.c: Use string.h, not gdb_string.h.
686 * gdbarch.c: Use string.h, not gdb_string.h.
687 * gdbtypes.c: Use string.h, not gdb_string.h.
688 * gnu-nat.c: Use string.h, not gdb_string.h.
689 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
690 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
691 * go-exp.y: Use string.h, not gdb_string.h.
692 * go-lang.c: Use string.h, not gdb_string.h.
693 * go32-nat.c: Use string.h, not gdb_string.h.
694 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
695 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
696 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
697 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
698 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
699 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
700 * i386-linux-nat.c: Use string.h, not gdb_string.h.
701 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
702 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
703 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
704 * i386-tdep.c: Use string.h, not gdb_string.h.
705 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
706 * i386gnu-nat.c: Use string.h, not gdb_string.h.
707 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
708 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
709 * i387-tdep.c: Use string.h, not gdb_string.h.
710 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
711 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
712 * inf-child.c: Use string.h, not gdb_string.h.
713 * inf-ptrace.c: Use string.h, not gdb_string.h.
714 * inf-ttrace.c: Use string.h, not gdb_string.h.
715 * infcall.c: Use string.h, not gdb_string.h.
716 * infcmd.c: Use string.h, not gdb_string.h.
717 * inflow.c: Use string.h, not gdb_string.h.
718 * infrun.c: Use string.h, not gdb_string.h.
719 * interps.c: Use string.h, not gdb_string.h.
720 * iq2000-tdep.c: Use string.h, not gdb_string.h.
721 * irix5-nat.c: Use string.h, not gdb_string.h.
722 * jv-exp.y: Use string.h, not gdb_string.h.
723 * jv-lang.c: Use string.h, not gdb_string.h.
724 * jv-typeprint.c: Use string.h, not gdb_string.h.
725 * jv-valprint.c: Use string.h, not gdb_string.h.
726 * language.c: Use string.h, not gdb_string.h.
727 * linux-fork.c: Use string.h, not gdb_string.h.
728 * linux-nat.c: Use string.h, not gdb_string.h.
729 * lm32-tdep.c: Use string.h, not gdb_string.h.
730 * m2-exp.y: Use string.h, not gdb_string.h.
731 * m2-typeprint.c: Use string.h, not gdb_string.h.
732 * m32c-tdep.c: Use string.h, not gdb_string.h.
733 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
734 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
735 * m32r-rom.c: Use string.h, not gdb_string.h.
736 * m32r-tdep.c: Use string.h, not gdb_string.h.
737 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
738 * m68k-tdep.c: Use string.h, not gdb_string.h.
739 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
740 * m68klinux-nat.c: Use string.h, not gdb_string.h.
741 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
742 * m88k-tdep.c: Use string.h, not gdb_string.h.
743 * macrocmd.c: Use string.h, not gdb_string.h.
744 * main.c: Use string.h, not gdb_string.h.
745 * mdebugread.c: Use string.h, not gdb_string.h.
746 * mem-break.c: Use string.h, not gdb_string.h.
747 * memattr.c: Use string.h, not gdb_string.h.
748 * memory-map.c: Use string.h, not gdb_string.h.
749 * mep-tdep.c: Use string.h, not gdb_string.h.
750 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
751 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
752 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
753 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
754 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
755 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
756 * mi/mi-console.c: Use string.h, not gdb_string.h.
757 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
758 * mi/mi-interp.c: Use string.h, not gdb_string.h.
759 * mi/mi-main.c: Use string.h, not gdb_string.h.
760 * mi/mi-parse.c: Use string.h, not gdb_string.h.
761 * microblaze-rom.c: Use string.h, not gdb_string.h.
762 * microblaze-tdep.c: Use string.h, not gdb_string.h.
763 * mingw-hdep.c: Use string.h, not gdb_string.h.
764 * minidebug.c: Use string.h, not gdb_string.h.
765 * minsyms.c: Use string.h, not gdb_string.h.
766 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
767 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
768 * mips-tdep.c: Use string.h, not gdb_string.h.
769 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
770 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
771 * mipsread.c: Use string.h, not gdb_string.h.
772 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
773 * mn10300-tdep.c: Use string.h, not gdb_string.h.
774 * monitor.c: Use string.h, not gdb_string.h.
775 * moxie-tdep.c: Use string.h, not gdb_string.h.
776 * mt-tdep.c: Use string.h, not gdb_string.h.
777 * nbsd-tdep.c: Use string.h, not gdb_string.h.
778 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
779 * nto-procfs.c: Use string.h, not gdb_string.h.
780 * nto-tdep.c: Use string.h, not gdb_string.h.
781 * objc-lang.c: Use string.h, not gdb_string.h.
782 * objfiles.c: Use string.h, not gdb_string.h.
783 * opencl-lang.c: Use string.h, not gdb_string.h.
784 * osabi.c: Use string.h, not gdb_string.h.
785 * osdata.c: Use string.h, not gdb_string.h.
786 * p-exp.y: Use string.h, not gdb_string.h.
787 * p-lang.c: Use string.h, not gdb_string.h.
788 * p-typeprint.c: Use string.h, not gdb_string.h.
789 * parse.c: Use string.h, not gdb_string.h.
790 * posix-hdep.c: Use string.h, not gdb_string.h.
791 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
792 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
793 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
794 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
795 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
796 * printcmd.c: Use string.h, not gdb_string.h.
797 * procfs.c: Use string.h, not gdb_string.h.
798 * prologue-value.c: Use string.h, not gdb_string.h.
799 * python/py-auto-load.c: Use string.h, not gdb_string.h.
800 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
801 * ravenscar-thread.c: Use string.h, not gdb_string.h.
802 * regcache.c: Use string.h, not gdb_string.h.
803 * registry.c: Use string.h, not gdb_string.h.
804 * remote-fileio.c: Use string.h, not gdb_string.h.
805 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
806 * remote-mips.c: Use string.h, not gdb_string.h.
807 * remote-sim.c: Use string.h, not gdb_string.h.
808 * remote.c: Use string.h, not gdb_string.h.
809 * reverse.c: Use string.h, not gdb_string.h.
810 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
811 * ser-base.c: Use string.h, not gdb_string.h.
812 * ser-go32.c: Use string.h, not gdb_string.h.
813 * ser-mingw.c: Use string.h, not gdb_string.h.
814 * ser-pipe.c: Use string.h, not gdb_string.h.
815 * ser-tcp.c: Use string.h, not gdb_string.h.
816 * ser-unix.c: Use string.h, not gdb_string.h.
817 * serial.c: Use string.h, not gdb_string.h.
818 * sh-tdep.c: Use string.h, not gdb_string.h.
819 * sh64-tdep.c: Use string.h, not gdb_string.h.
820 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
821 * skip.c: Use string.h, not gdb_string.h.
822 * sol-thread.c: Use string.h, not gdb_string.h.
823 * solib-dsbt.c: Use string.h, not gdb_string.h.
824 * solib-frv.c: Use string.h, not gdb_string.h.
825 * solib-osf.c: Use string.h, not gdb_string.h.
826 * solib-spu.c: Use string.h, not gdb_string.h.
827 * solib-target.c: Use string.h, not gdb_string.h.
828 * solib.c: Use string.h, not gdb_string.h.
829 * somread.c: Use string.h, not gdb_string.h.
830 * source.c: Use string.h, not gdb_string.h.
831 * sparc-nat.c: Use string.h, not gdb_string.h.
832 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
833 * sparc-tdep.c: Use string.h, not gdb_string.h.
834 * sparc64-tdep.c: Use string.h, not gdb_string.h.
835 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
836 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
837 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
838 * spu-linux-nat.c: Use string.h, not gdb_string.h.
839 * spu-multiarch.c: Use string.h, not gdb_string.h.
840 * spu-tdep.c: Use string.h, not gdb_string.h.
841 * stabsread.c: Use string.h, not gdb_string.h.
842 * stack.c: Use string.h, not gdb_string.h.
843 * std-regs.c: Use string.h, not gdb_string.h.
844 * symfile.c: Use string.h, not gdb_string.h.
845 * symmisc.c: Use string.h, not gdb_string.h.
846 * symtab.c: Use string.h, not gdb_string.h.
847 * target.c: Use string.h, not gdb_string.h.
848 * thread.c: Use string.h, not gdb_string.h.
849 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
850 * tilegx-tdep.c: Use string.h, not gdb_string.h.
851 * top.c: Use string.h, not gdb_string.h.
852 * tracepoint.c: Use string.h, not gdb_string.h.
853 * tui/tui-command.c: Use string.h, not gdb_string.h.
854 * tui/tui-data.c: Use string.h, not gdb_string.h.
855 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
856 * tui/tui-file.c: Use string.h, not gdb_string.h.
857 * tui/tui-layout.c: Use string.h, not gdb_string.h.
858 * tui/tui-out.c: Use string.h, not gdb_string.h.
859 * tui/tui-regs.c: Use string.h, not gdb_string.h.
860 * tui/tui-source.c: Use string.h, not gdb_string.h.
861 * tui/tui-stack.c: Use string.h, not gdb_string.h.
862 * tui/tui-win.c: Use string.h, not gdb_string.h.
863 * tui/tui-windata.c: Use string.h, not gdb_string.h.
864 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
865 * typeprint.c: Use string.h, not gdb_string.h.
866 * ui-file.c: Use string.h, not gdb_string.h.
867 * ui-out.c: Use string.h, not gdb_string.h.
868 * user-regs.c: Use string.h, not gdb_string.h.
869 * utils.c: Use string.h, not gdb_string.h.
870 * v850-tdep.c: Use string.h, not gdb_string.h.
871 * valarith.c: Use string.h, not gdb_string.h.
872 * valops.c: Use string.h, not gdb_string.h.
873 * valprint.c: Use string.h, not gdb_string.h.
874 * value.c: Use string.h, not gdb_string.h.
875 * varobj.c: Use string.h, not gdb_string.h.
876 * vax-tdep.c: Use string.h, not gdb_string.h.
877 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
878 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
879 * windows-nat.c: Use string.h, not gdb_string.h.
880 * xcoffread.c: Use string.h, not gdb_string.h.
881 * xml-support.c: Use string.h, not gdb_string.h.
882 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
883 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
884
63ce7108
TT
8852013-11-18 Tom Tromey <tromey@redhat.com>
886
887 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
888 and strstr.
889 * gnulib/aclocal.m4: Update.
890 * gnulib/config.in: Update.
891 * gnulib/configure: Update.
892 * gnulib/import/Makefile.am: Update.
893 * gnulib/import/Makefile.in: Update.
894 * gnulib/import/errno.in.h: New.
895 * gnulib/import/intprops.h: New.
896 * gnulib/import/m4/errno_h.m4: New.
897 * gnulib/import/m4/gnulib-cache.m4: Update.
898 * gnulib/import/m4/gnulib-comp.m4: Update.
899 * gnulib/import/m4/strerror.m4: New.
900 * gnulib/import/m4/strstr.m4: New.
901 * gnulib/import/m4/sys_socket_h.m4: New.
902 * gnulib/import/strerror-override.c: New.
903 * gnulib/import/strerror-override.h: New.
904 * gnulib/import/strerror.c: New.
905 * gnulib/import/strstr.c: New.
906
a7c11ee1
TT
9072013-11-18 Tom Tromey <tromey@redhat.com>
908
909 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
910 multiple lines.
911
d0b5971a
JM
9122013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
913
914 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
915 * sparc-tdep.h: And its prototype.
916
917 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
918 function.
919 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
920
4b4589ad
PA
9212013-11-18 Pedro Alves <palves@redhat.com>
922
923 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
924 use unpack_pointer.
925
422ad5c2
JB
9262013-11-18 Joel Brobecker <brobecker@adacore.com>
927
928 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
929 to -list-features output.
930
b1370418
JB
9312013-11-17 Joel Brobecker <brobecker@adacore.com>
932
933 * dwarf2expr.h (struct dwarf_expr_context_funcs)
934 <read_addr_from_reg>: Renames "read_reg".
935 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
936 Adjust comment.
937 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
938 Use read_addr_from_reg in place of read_reg.
939 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
940 in place of read_reg.
941 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
942 dwarf_expr_read_reg.
943 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
944 with dwarf_expr_read_addr_from_reg.
945 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
946 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
947 needs_frame_read_addr_from_reg.
948
6ea71545
JK
9492013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
950
951 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
952
19a1b230
AA
9532013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
954
955 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
956 NULL.
957
805e1f19
TT
9582013-11-15 Tom Tromey <tromey@redhat.com>
959
960 PR c++/16117:
961 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
962 (classify_name): Likewise. Prefer a field of "this" over a
963 filename.
964 (classify_inner_name, yylex): Update.
965
0acf8b65
JB
9662013-11-15 Joel Brobecker <brobecker@adacore.com>
967
968 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
969 Extend the documentation a bit.
970 <get_reg_value>: New field.
971 * dwarf2loc.c (dwarf_expr_get_reg_value)
972 (needs_frame_get_reg_value): New functions.
973 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
974 callback.
975 * dwarf2-frame.c (get_reg_value): New function.
976 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
977 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
978 Use new callback to compute result_val.
979
ef1bc9e7
AM
9802013-11-15 Alan Modra <amodra@gmail.com>
981
982 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
983 (ppc64_desc_entry_point): ..this. Update comments here and at
984 call points.
985 (ppc64_standard_linkage1, ppc64_standard_linkage2,
986 ppc64_standard_linkage3): Update comments.
987 (ppc64_standard_linkage4, ppc64_standard_linkage5,
988 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
989 patterns.
990 (ppc64_standard_linkage4_target): New function.
991 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
992 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
993 nop match. Fix comment wrap.
994
36fa8042
PA
9952013-11-14 Pedro Alves <palves@redhat.com>
996
997 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
998 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
999
4f5d7f63
PA
10002013-11-14 Pedro Alves <palves@redhat.com>
1001
1002 * infrun.c (struct execution_control_state)
1003 <stepped_after_stopped_by_watchpoint>: New field.
1004 (get_inferior_stop_soon): New function.
1005 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1006 moved to struct execution_control_state -- adjust. Use
1007 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1008 new function.
1009 (handle_signal_stop): New function, factored out from
1010 handle_inferior_event.
1011
47591c29
PA
10122013-11-14 Pedro Alves <palves@redhat.com>
1013
1014 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1015 return a boolean.
1016 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1017 boolean.
1018 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1019 Adjust to return a boolean.
1020 * breakpoint.h (enum bpstat_signal_value): Delete.
1021 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1022 (bpstat_explains_signal): Likewise.
1023 * infrun.c (handle_inferior_event) <random signal checks>:
1024 bpstat_explains_signal now returns a boolean - adjust. No longer
1025 consider hiding signals.
1026
bac7d97b
PA
10272013-11-14 Pedro Alves <palves@redhat.com>
1028
1029 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1030 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1031 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1032 BPSTAT_SIGNAL_HIDE.
1033 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1034 instead of BPSTAT_SIGNAL_HIDE.
1035 * infrun.c (handle_inferior_event): Rework random signal checks.
1036
ce12b012
PA
10372013-11-14 Pedro Alves <palves@redhat.com>
1038
1039 * infrun.c (struct execution_control_state): Remove
1040 'random_signal' field.
1041 (handle_syscall_event): Use bpstat_causes_stop instead of
1042 bpstat_explains_signal. Don't set ecs->random_signal.
1043 (handle_inferior_event): New 'random_signal' local.
1044 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1045 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1046 bpstat_explains_signal. Don't set ecs->random_signal.
1047 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1048 ecs->random_signal.
1049
05ba8510
PA
10502013-11-14 Pedro Alves <palves@redhat.com>
1051
1052 * infrun.c (handle_inferior_event): Move comment from the
1053 function's body to the function's description, adjusted.
1054
5c09a2c5
PA
10552013-11-14 Pedro Alves <palves@redhat.com>
1056
1057 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1058 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1059 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1060 case.
1061
91822956
TT
10622013-11-14 Tom Tromey <tromey@redhat.com>
1063
1064 * python/py-linetable.c (ltpy_has_line)
1065 (ltpy_get_all_source_lines): Fix loop termination condition.
1066
403cb6b1
JB
10672013-11-14 Joel Brobecker <brobecker@adacore.com>
1068
1069 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1070 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1071 PARSE->LANGUAGE during command execution, if set.
1072 * mi/mi-parse.c: Add "language.h" #include.
1073 (mi_parse): Add parsing of "--language" command option.
1074
1075 * NEWS: Add entry mentioning the new "--language" command option.
1076
b5be8ce0
JB
10772013-11-14 Pedro Alves <palves@redhat.com>
1078 Joel Brobecker <brobecker@adacore.com>
1079
1080 * cli/cli-utils.h (extract_arg_const): Add declaration.
1081 * cli/cli-utils.c (extract_arg_const): New function.
1082 (extract_arg): Reimplement using extract_arg_const.
1083
671afef6
JB
10842013-11-14 Joel Brobecker <brobecker@adacore.com>
1085
1086 * language.h: Add "symtab.h" #include.
1087
6c1b0f7b
DE
10882013-11-13 Doug Evans <xdje42@gmail.com>
1089
1090 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1091 specific breakpoints, don't evaluate breakpoint condition if
1092 different thread.
1093
74921315
KS
10942013-11-13 Keith Seitz <keiths@redhat.com>
1095
248ace2e 1096 PR c++/7935
74921315
KS
1097 PR c++/10541
1098 * cp-support.c (insepct_type): Add support for substituting
1099 namespace aliases, too.
1100 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1101 for DW_TAG_imported_declaration.
1102 (add_partial_symbol): Likewise.
1103 (process_die): Handle namespace aliases with
1104 read_namespace_alias.
1105 (die_needs_namespace): Add DW_TAG_imported_declaration.
1106 (read_namespace_alias): New function.
1107 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1108 (new_symbol_full): Handle DW_TAG_imported_declaration.
1109
793156e6
KS
11102013-11-13 Keith Seitz <keiths@redhat.com>
1111
1112 * p-exp.y (uptok): Make first parameter const.
1113 (yylex): Make `tokstart' and `tokptr' const.
1114 Don't copy the lexer input to a temporary buffer.
1115 Make `p' const.
1116 Remove const workaround for parse_escape.
1117 Create a temporary buffer for a convenience variable instead
1118 of doing in-place modification of the input.
1119 If a match is found with a different case from the input,
1120 do not change the input at all.
1121 Use `tmp' to construct the resultant stoken instead of
1122 `tokstart'.
1123
c42bd95a
DE
11242013-11-13 Doug Evans <xdje42@gmail.com>
1125
1126 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1127
93973826
JB
11282013-11-13 Joel Brobecker <brobecker@adacore.com>
1129
1130 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1131 entry with "ada-exceptions".
1132
846060df
JB
11332013-11-13 Joel Brobecker <brobecker@adacore.com>
1134
1135 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1136 after re-initialization of OBJFILE's obstack.
1137
5efd1b2b 11382013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1139
1140 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1141 bs->stop != 0 on entry. Update function comment. Simplify early
1142 exit for frame mismatch. Reindent rest of function.
1143
ee7615e1
AA
11442013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1145
1146 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1147 NULL.
1148
8943b874
DE
11492013-11-12 Doug Evans <dje@google.com>
1150
1151 Work around gold/15646.
1152 * dwarf2read.c (read_index_from_section): Update comment.
1153 (struct dw2_symtab_iterator): New member global_seen.
1154 (dw2_symtab_iter_init): Initialize it.
1155 (dw2_symtab_iter_next): Skip duplicate global symbols.
1156 (dw2_expand_symtabs_matching): Ditto.
1157
a8a9844d
JB
11582013-11-12 Joel Brobecker <brobecker@adacore.com>
1159
1160 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1161 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1162 command.
1163 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1164 (mi_cmd_info_ada_exceptions): New function.
1165 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1166
778865d3
JB
11672013-11-12 Joel Brobecker <brobecker@adacore.com>
1168
1169 * ada-lang.h: #include "vec.h".
1170 (struct ada_exc_info): New.
1171 (ada_exc_info): New typedef.
1172 (DEF_VEC_O(ada_exc_info)): New vector.
1173 (ada_exceptions_list): Add declaration.
1174 * ada-lang.c (ada_is_exception_sym)
1175 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1176 (sort_remove_dups_ada_exceptions_list)
1177 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1178 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1179 (ada_exceptions_list_1, ada_exceptions_list)
1180 (info_exceptions_command): New function.
1181 (_initialize_ada_language): Add "info exception" command.
1182
bc79de95
PM
11832013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1184
1185 PR python/15629
1186 * NEWS: Add linetable feature.
1187 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1188 * python/py-linetable.c: New file.
1189 * python/py-symtab.c (stpy_get_linetable): New function.
1190 * python/python-internal.h (symtab_to_linetable_object): Declare.
1191 (gdbpy_initialize_linetable): Ditto.
1192 * python/python.c (_initialize_python): Call
1193 gdbpy_initialize_linetable.
1194
2df4d1d5
JB
11952013-11-11 Joel Brobecker <brobecker@adacore.com>
1196
1197 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1198 the documentation of fields "except_string" and "condition".
1199 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1200 CONDITION on the heap before passing it to
1201 create_ada_exception_catchpoint.
1202 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1203 CONDITION.
1204
99c1d451
TT
12052013-11-11 Tom Tromey <tromey@redhat.com>
1206
1207 * config.in, configure: Rebuild.
1208 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1209
8ca5801b
JB
12102013-11-11 Joel Brobecker <brobecker@adacore.com>
1211
1212 * remote-sim.c (gdbsim_detach): Break declaration into
1213 shorter lines. No code change.
1214
7a06d430
EBM
12152013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1216
1217 * remote-sim.c (gdbsim_detach): Fix prototype.
1218
73be47f5
DE
12192013-11-08 Doug Evans <dje@google.com>
1220
1221 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1222 (create_debug_types_hash_table): Only print debugging messages for
1223 each TU if dwarf2-read >= 2.
1224 (process_queue): Ditto.
1225 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1226 Update doc string.
1227
a18d8f10
TT
12282013-11-08 Tom Tromey <tromey@redhat.com>
1229
1230 * configure: Rebuild.
1231 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1232
9467110b
TT
12332013-11-08 Tom Tromey <tromey@redhat.com>
1234
1235 * configure, config.in: Rebuild.
1236 * configure.ac: Remove unused configury.
1237
69706679
TT
12382013-11-08 Tom Tromey <tromey@redhat.com>
1239
1240 * m32c-tdep.c: Use gdb_string.h.
1241
9b4bea72
TT
12422013-11-08 Tom Tromey <tromey@redhat.com>
1243
1244 * configure, config.in: Rebuild.
1245 * configure.ac: Remove all link.h-related checks.
1246
3266f10b
TT
12472013-11-08 Tom Tromey <tromey@redhat.com>
1248
1249 * acinclude.m4: Include common.m4.
1250 * common/common.m4: New file.
1251 * configure, config.in: Rebuild.
1252 * configure.ac: Use GDB_AC_COMMON.
1253
db0fec5c
DE
12542013-11-08 Doug Evans <dje@google.com>
1255
1256 * NEWS: Mention that "set debug symtab-create" now accepts a
1257 verbosity level.
1258 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1259 to set the symtab's primary flag.
1260 * jit.c (finalize_symtab): Ditto.
1261 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1262 * symfile.c (allocate_symtab): Only print debugging messages for
1263 symtab_create_debug levels 2 and higher.
1264 * symtab.c (symtab_create_debug): Change type to unsigned int.
1265 (set_symtab_primary): New function.
1266 (_initialize_symtab): Change "set debug symtab-create" to a
1267 zuinteger option.
1268 * symtab.h (set_symtab_primary): Declare.
1269 (symtab_create_debug): Update decl.
1270
52554a0e
TT
12712013-11-08 Tom Tromey <tromey@redhat.com>
1272
1273 * aix-thread.c (aix_thread_detach): Update.
1274 * corelow.c (core_detach): Update.
1275 * darwin-nat.c (darwin_detach): Update.
1276 * dec-thread.c (dec_thread_detach): Update.
1277 * gnu-nat.c (gnu_detach): Update.
1278 * go32-nat.c (go32_detach): Update.
1279 * inf-ptrace.c (inf_ptrace_detach): Update.
1280 * inf-ttrace.c (inf_ttrace_detach): Update.
1281 * linux-fork.c (linux_fork_detach): Update.
1282 * linux-fork.h (linux_fork_detach): Update.
1283 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1284 local for const-correctness.
1285 * linux-thread-db.c (thread_db_detach): Update.
1286 * monitor.c (monitor_detach): Update.
1287 * nto-procfs.c (procfs_detach): Update.
1288 * procfs.c (procfs_detach): Update.
1289 * record.c (record_detach): Update.
1290 * record.h (record_detach): Update.
1291 * remote-m32r-sdi.c (m32r_detach): Update.
1292 * remote-mips.c (mips_detach): Update.
1293 * remote-sim.c (gdbsim_detach): Update.
1294 * remote.c (remote_detach_1, remote_detach)
1295 (extended_remote_detach): Update.
1296 * sol-thread.c (sol_thread_detach): Update.
1297 * target.c (target_detach): Make "args" const.
1298 (init_dummy_target): Update.
1299 * target.h (struct target_ops) <to_detach>: Make argument const.
1300 (target_detach): Likewise.
1301 * windows-nat.c (windows_detach): Update.
1302
204b5331
DE
13032013-11-07 Doug Evans <dje@google.com>
1304
1305 PR 11786
1306 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1307 and align fields for PT_GNU_RELRO segments.
1308
92e32e33
PM
13092013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1310
ef1bc9e7
AM
1311 PR python/15747
1312 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1313
f76c27b5
PM
13142013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1315
1316 * NEWS: Document Python temporary breakpoint support.
1317 * python/py-breakpoint.c (bppy_get_temporary): New function.
1318 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1319 to temporary if True.
1320
d52cd232
JM
13212013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1322
1323 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1324 removed to allow analyzing unconditional branch instructions
1325 with PC-relative offsets of zero.
1326
fa4d0c40
YQ
13272013-11-07 Yao Qi <yao@codesourcery.com>
1328
1329 * mi/mi-cmd-var.c: Include "language.h".
1330 (mi_cmd_var_info_expression): Get language name from
1331 language_defn.
1332 * varobj.c (varobj_language_string): Remove.
1333 (variable_language): Remove declaration.
1334 (languages): Remove.
1335 (varobj_get_language): Change the type of return value.
1336 (variable_language): Remove.
1337 * varobj.h (enum varobj_languages): Remove.
1338 (varobj_language_string): Remove declaration.
1339 (varobj_get_language): Update declaration.
1340
6abde28f
YQ
13412013-11-07 Yao Qi <yao@codesourcery.com>
1342
1343 * language.h (struct language_defn) <la_natural_name>: New
1344 field.
1345 * ada-lang.c (ada_language_defn): Initialize field
1346 'la_natural_name'.
1347 * c-lang.c (c_language_defn): Likewise.
1348 (cplus_language_defn, asm_language_defn): Likewise.
1349 * d-lang.c (d_language_defn): Likewise.
1350 * f-lang.c (f_language_defn): Likewise.
1351 * go-lang.c (go_language_defn): Likewise.
1352 * jv-lang.c (java_language_defn): Likewise.
1353 * language.c (unknown_language_defn ): Likewise.
1354 (auto_language_defn): Likewise.
1355 * m2-lang.c (m2_language_defn): Likewise.
1356 * objc-lang.c (objc_language_defn): Likewise.
1357 * opencl-lang.c (opencl_language_defn): Likewise.
1358 * p-lang.c (pascal_language_defn): Likewise.
1359
27cd387b
YQ
13602013-11-07 Yao Qi <yao@codesourcery.com>
1361
1362 * language.c (language_str): Return const char *.
1363 (add_language): Add const to 'language_names'
1364 * language.h (struct language_defn) <la_name>: Add const.
1365 (language_str: Update declaration.
1366
6682d959
AA
13672013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1368
1369 * s390-linux-nat.c (s390_read_description): Consider the TE field
1370 in the HWCAP for determining 'have_regset_tdb'.
1371
b9502d3f
WN
13722013-11-06 Will Newton <will.newton@linaro.org>
1373
1374 PR gdb/12866
1375 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1376 values. (read_partial_die): Likewise.
1377
840da61a
MB
13782013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1379
1380 PR cli/16122
1381 * top.c (command_line_input): Unify interactivity tests to use
1382 input_from_terminal_p.
1383 * event-top.c (command_line_handler): Likewise.
1384
7636ccf9
YQ
13852013-11-06 Yao Qi <yao@codesourcery.com>
1386
1387 * Makefile.in (check-perf): New target.
1388
12b27276
WN
13892013-11-05 Will Newton <will.newton@linaro.org>
1390
1391 PR gdb/7670
1392 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1393 (arm_print_float_info): Likewise.
1394
67c059c2
AB
13952013-11-04 Anton Blanchard <anton@samba.org>
1396
1397 * target.c (memory_xfer_partial): Cap write to 4KB.
1398
0569175e
TSD
13992013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1400
1401 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1402 probe scan even when the arch provides no get_longjmp_target.
1403
b18e90f5
PA
14042013-10-31 Pedro Alves <palves@redhat.com>
1405
1406 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1407 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1408 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1409 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1410 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1411 <bpstat handling>: If the bpstat chain wants the signal to be
1412 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1413 GDB_SIGNAL_TRAP.
1414
638aa5a1
AB
14152013-10-31 Andrew Burgess <aburgess@broadcom.com>
1416
1417 * breakpoint.c (update_watchpoint): Update error message and add
1418 an additional error message.
1419
0e5fae36
UW
14202013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1421
1422 * s390-tdep.h: Rename to...
1423 * s390-linux-tdep.h: ...here.
1424 * s390-tdep.c: Rename to...
1425 * s390-linux-tdep.c: ...here. Adjust #include.
1426 * s390-nat.c: Rename to...
1427 * s390-linux-nat.c: ...here. Adjust #include.
1428 * config/s390/s390.mh: Rename to...
1429 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1430 s390-linux-nat.o.
1431 * configure.host: Reflect host rename "s390" -> "linux".
1432 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1433 * Makefile.in (ALL_TARGET_OBS): Likewise.
1434 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1435 s390-linux-tdep.h.
1436 (ALLDEPFILES): Reflect rename of .c files.
1437
34201ae3
UW
14382013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1439
1440 * s390-nat.c: Whitespace cleanup.
1441 * s390-tdep.c: Likewise.
1442 * s390-tdep.h: Remove empty line at end of file.
1443
e17aaa33
MR
14442013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1445
1446 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1447 siginfo_size.
1448
aee17e42
TT
14492013-10-29 Tom Tromey <tromey@redhat.com>
1450
1451 * utils.c (reg): Move undefinition...
1452 * gdb_curses.h: ... here. Update comment to mention AIX.
1453
9ac69859
NB
14542013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1455
1456 * exec.h (add_target_sections_of_objfile): New declaration.
1457 * exec.c (add_target_sections_of_objfile): New function.
1458 * symfile.c (add_symbol_file_command): Update current target sections.
1459 (remove_symbol_file_command): New command.
1460 (symfile_free_objfile): New function.
1461 (_initialize_symfile): Register observer for free_objfile events.
1462 * NEWS: Add description of the remove-symbol-file command.
1463 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1464 * objfiles.c (free_objfile): Notify free_objfile.
1465 (is_addr_in_objfile): New function.
1466 * objfiles.h (is_addr_in_objfile): New declaration.
1467 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1468 events instead of solib_unloaded events.
1469 (_initialize_printcmd): Register observer for free_objfile instead
1470 of solib_unloaded notifications.
1471 * solib.c (remove_user_added_objfile): New function.
1472 (_initialize_symfile): Add remove-symbol-file.
1473
f69d9aef
AB
14742013-10-29 Andrew Burgess <aburgess@broadcom.com>
1475
1476 * infcmd.c (default_print_one_register_info): Use val_print to
1477 print all values even optimized out or unavailable ones. Don't
1478 try to print a raw form of optimized out or unavailable values.
1479
487ad57c
YQ
14802013-10-29 Yao Qi <yao@codesourcery.com>
1481
1482 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1483 parameter 'arg' instead of from program_space_data.
1484 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1485 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1486 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1487 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1488 * inflow.c (inflow_inferior_data_cleanup): Get data from
1489 parameter 'arg' instead of inferior_data.
1490 * registry.h: Add comments.
1491
3c4797ba
PA
14922013-10-28 Pedro Alves <palves@redhat.com>
1493
1494 * breakpoint.c (watchpoints_triggered)
1495 <!target_stopped_data_address>: Hardcode return 1.
1496
cdaa5b73
PA
14972013-10-28 Pedro Alves <palves@redhat.com>
1498
1499 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1500 level and reindent.
1501
94c57d6a
PA
15022013-10-28 Pedro Alves <palves@redhat.com>
1503
1504 * infrun.c (process_event_stop_test): New function, factored out
1505 from handle_inferior_event.
1506 (handle_inferior_event): 'process_event_stop_test' is now a
1507 function instead of a goto label -- adjust.
1508
fcf3daef
PA
15092013-10-28 Pedro Alves <palves@redhat.com>
1510
1511 * infrun.c (handle_inferior_event): Move process_event_stop_test
1512 goto label to the else branch of the ecs->random_signal check,
1513 along with FRAME and GDBARCH re-fetching.
1514
c447ac0b
PA
15152013-10-28 Pedro Alves <palves@redhat.com>
1516
1517 * infrun.c (switch_back_to_stepped_thread): New function, factored
1518 out from handle_inferior_event.
1519 (handle_inferior_event): Adjust to call
1520 switch_back_to_stepped_thread. Call it also at the tail of the
1521 random signal handling, and return, instead of also handling
1522 random signals just before the stepping tests.
1523
f05e4c11
PA
15242013-10-28 Pedro Alves <palves@redhat.com>
1525
1526 * infrun.c (clear_stop_func): Delete.
1527 (handle_inferior_event): Don't call clear_stop_func and don't
1528 clear 'ecs->random_signal'.
1529
ca20d462
YQ
15302013-10-27 Yao Qi <yao@codesourcery.com>
1531
1532 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1533 (varobj_create, varobj_get_path_expr): Update.
1534 (varobj_value_has_mutated, varobj_update): Likewise.
1535 (create_child_with_value, new_root_variable): Likewise.
1536 (number_of_children, name_of_variable): Likewise.
1537 (value_of_child, my_value_of_variable): Likewise.
1538 (varobj_value_is_changeable_p): Likewise.
1539
a53b64ea
YQ
15402013-10-25 Yao Qi <yao@codesourcery.com>
1541
1542 * language.h (struct lang_varobj_ops): Declare.
1543 (struct language_defn) <la_varobj_ops>: New field.
1544 * ada-lang.c: Include "varobj.h"
1545 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1546 ada_varobj_ops.
1547 * c-lang.c: Include "varobj.h"
1548 (c_language_defn): Initialize field 'la_varobj_ops' with
1549 c_varobj_ops.
1550 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1551 cplus_varobj_ops.
1552 (asm_language_defn): Initialize field 'la_varobj_ops' with
1553 default_varobj_ops.
1554 (minimal_language_defn): Likewise.
1555 * d-lang.c (d_language_defn): Likewise.
1556 * f-lang.c (f_language_defn): Likewise.
1557 * go-lang.c (go_language_defn): Likewise.
1558 * m2-lang.c (m2_language_defn): Likewise.
1559 * objc-lang.c (objc_language_defn): Likewise.
1560 * opencl-lang.c (opencl_language_defn): Likewise.
1561 * p-lang.c (pascal_language_defn): Likewise.
1562 * language.c (unknown_language_defn): Likewise.
1563 (auto_language_defn): Likewise.
1564 (local_language_defn): Likewise.
1565 * jv-lang.c (java_language_defn): Initialize field
1566 'la_varobj_ops' with java_varobj_ops.
1567 * varobj.c (varobj_create): Update.
1568 * varobj.h (default_varobj_ops): Define macro.
1569
686d4def
PA
15702013-10-25 Pedro Alves <palves@redhat.com>
1571
1572 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1573 static field value.
1574 (cp_print_static_field): If the value is entirely optimized out,
1575 print <optimized out> here.
1576 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1577 static field value.
1578 * p-valprint.c (pascal_object_print_static_field): If the value is
1579 entirely optimized out, print <optimized out> here.
1580 * valops.c (do_search_struct_field)
1581 (value_struct_elt_for_reference): No longer handle a NULL static
1582 field value.
1583 * value.c (value_static_field): Return an optimized out value
1584 instead of NULL.
1585
6c177e28
YQ
15862013-10-25 Yao Qi <yao@codesourcery.com>
1587
1588 * remote.c (remote_traceframe_info): Return early if
1589 traceframe is not selected.
1590
98322bfa
YQ
15912013-10-25 Yao Qi <yao@codesourcery.com>
1592
1593 * tracepoint.c (traceframe_fun): Remove.
1594 (traceframe_sal): Remove.
1595 (set_traceframe_context): Add local variables.
1596
6ba1f115
JB
15972013-10-25 Joel Brobecker <brobecker@adacore.com>
1598
1599 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1600 and parameter name.
1601
bbe769cc
MR
16022013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1603
1604 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1605 failure from register information collection.
1606
72ee4495 16072013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1608
1609 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1610 member.
1611 (linux_corefile_thread_callback): Update accordingly.
1612 (linux_make_corefile_notes): Likewise.
1613
98882a26
PA
16142013-10-24 Pedro Alves <palves@redhat.com>
1615
1616 * NEWS (New options): Mention set/show startup-with-shell.
1617 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1618 instead of 3.
1619 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1620 startup-with-shell'.
1621 (show_startup_with_shell): New function.
1622 (_initialize_fork_child): Register the set/show startup-with-shell
1623 commands.
1624 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1625 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1626 * procfs.c (procfs_init_inferior): Remove comment.
1627 * infcmd.c (startup_with_shell): New global.
1628 * inferior.h (startup_with_shell): Declare global.
1629 (STARTUP_WITH_SHELL): Delete.
1630 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1631
c9737c08
PA
16322013-10-23 Pedro Alves <palves@redhat.com>
1633
1634 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1635 * common/signals.c: Include "gdb_assert.h".
1636 (signals): New field 'symbol'.
1637 (SET): Use the 'symbol' parameter.
1638 (gdb_signal_to_symbol_string): New function.
1639 * infrun.c (handle_inferior_event) <random signal>: In debug
1640 output, print the random signal enum as string in addition to its
1641 number.
1642 * target/waitstatus.c (target_waitstatus_to_string): Print the
1643 signal's enum value as string instead of the (POSIX) signal name.
1644
f60db4f0
GB
16452013-10-23 Gary Benson <gbenson@redhat.com>
1646
1647 PR 16013
1648 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1649 from 32 to 18. Adjusted fscanf format string accordingly.
1650 (Avoids leaving cmd unterminated.)
1651 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1652 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1653 that local_address and remote_address will not overflow.
1654 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1655 leaving dependencies unterminated. Parse size as "%u" to match
1656 definition.
1657
6d3e7a94
PA
16582013-10-22 Pedro Alves <palves@redhat.com>
1659
1660 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1661 set ecs->random signal.
1662
42ec045f
PA
16632013-10-22 Pedro Alves <palves@redhat.com>
1664
1665 * infrun.c (keep_going): Update comments.
1666
16672013-10-22 Pedro Alves <palves@redhat.com>
1668
1669 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1670 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1671
16722013-10-22 Pedro Alves <palves@redhat.com>
1673
1674 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1675 GDB_EXC_BAD_ACCESS.
1676 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1677 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1678 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1679 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1680 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1681 (GDB_SIGNAL_LAST): Change description string.
1682 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1683 Adjust to signal renaming.
1684 * darwin-nat.c (darwin_decode_message): Likewise.
1685
c8fde1b1
JM
16862013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1687
1688 * MAINTAINERS (Write After Approval): Add myself to the list.
1689
e8369a73
AB
16902013-10-18 Andrew Burgess <aburgess@broadcom.com>
1691
1692 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1693 forced off, downgrade them to software watchpoints if possible,
1694 and error out if not possible.
1695 (watch_command_1): Move watchpoint type selection closer to
1696 watchpoint creation, and extend the comments.
1697
776f04fa
PA
16982013-10-18 Pedro Alves <palves@redhat.com>
1699
1700 PR gdb/16062
1701 * infrun.c (handle_inferior_event): Keep going if we got a random
1702 signal we should not stop for, instead of falling through to the
1703 step tests.
1704
0c6faab5
YQ
17052013-10-18 Yao Qi <yao@codesourcery.com>
1706
1707 * c-varobj.c (cplus_number_of_children): Fix indentation.
1708
50b34a18
TT
17092013-10-17 Tom Tromey <tromey@redhat.com>
1710
1711 PR gdb/15995:
1712 * printcmd.c (printcmd): Call gdb_flush.
1713
5c4c8a59
TT
17142013-10-17 Tom Tromey <tromey@redhat.com>
1715
1716 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1717 (elf_locate_sections): Update.
1718
c4124bf1
YQ
17192013-10-17 Yao Qi <yao@codesourcery.com>
1720
1721 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1722 * ada-varobj.c: Remove the include of ada-varobj.h.
1723 (ada_varobj_get_number_of_children): Declare.
1724 (ada_varobj_get_name_of_child): Make it static.
1725 (ada_varobj_get_path_expr_of_child): Likewise.
1726 (ada_varobj_get_value_of_child): Likewise.
1727 (ada_varobj_get_type_of_child): Likewise.
1728 (ada_varobj_get_value_of_array_variable): Likewise.
1729 * ada-varobj.h: Remove.
1730
99ad9427
YQ
17312013-10-17 Yao Qi <yao@codesourcery.com>
1732
1733 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1734 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1735 * ada-varobj.c: Include "varobj.h".
1736 (ada_number_of_children): New. Moved from varobj.c.
1737 (ada_name_of_variable, ada_name_of_child): Likewise.
1738 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1739 (ada_type_of_child, ada_value_of_variable): Likewise.
1740 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1741 (ada_varobj_ops): New.
1742 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1743 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1744 * gdbtypes.h (get_target_type): Declare.
1745 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1746 "ada-lang.h".
1747 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1748 (ANONYMOUS_UNION_NAME): Likewise.
1749 (get_type, get_value_type, get_target_type): Remove declarations.
1750 (value_get_print_value, varobj_value_get_print_value): Likewise.
1751 (c_number_of_children, c_name_of_variable): Likewise.
1752 (c_name_of_child, c_path_expr_of_child): Likewise.
1753 (c_value_of_child, c_type_of_child): Likewise.
1754 (c_value_of_variable, cplus_number_of_children): Likewise.
1755 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1756 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1757 (cplus_value_of_child, cplus_type_of_child): Likewise.
1758 (cplus_value_of_variable, java_number_of_children): Likewise.
1759 (java_name_of_variable, java_name_of_child): Likewise.
1760 (java_path_expr_of_child, java_value_of_child): Likewise.
1761 (java_type_of_child, java_value_of_variable): Likewise.
1762 (ada_number_of_children, ada_name_of_variable): Likewise.
1763 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1764 (ada_value_of_child, ada_type_of_child): Likewise.
1765 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1766 (ada_value_has_mutated): Likewise.
1767 (struct language_specific): Move it to varobj.h.
1768 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1769 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1770 Callers update.
1771 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1772 Make it extern.
1773 (is_anonymous_child): Move it to c-varobj.c and rename to
1774 varobj_is_anonymous_child. Caller update.
1775 (get_type): Move it to c-varobj.c.
1776 (get_value_type): Rename it varobj_get_value_type. Make it
1777 extern.
1778 (get_target_type): Move it gdbtypes.c.
1779 (varobj_formatted_print_options): New function.
1780 (value_get_print_value): Rename it to
1781 varobj_value_get_print_value and make it extern.
1782 (varobj_value_is_changeable_p): Make it extern.
1783 (adjust_value_for_child_access): Move it to c-varobj.c.
1784 (default_value_is_changeable_p): Rename it to
1785 varobj_default_value_is_changeable_p. Make it extern.
1786 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1787 (c_name_of_child, c_path_expr_of_child): Likewise.
1788 (c_value_of_child, c_type_of_child): Likewise.
1789 (c_value_of_variable, cplus_number_of_children): Likewise.
1790 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1791 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1792 (cplus_value_of_child, cplus_type_of_child): Likewise.
1793 (cplus_value_of_variable): Likewise.
1794 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1795 (java_name_of_child, java_path_expr_of_child): Likewise.
1796 (java_value_of_child, java_type_of_child): Likewise.
1797 (java_value_of_variable): Likewise.
1798 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1799 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1800 (ada_value_of_child, ada_type_of_child): Likewise.
1801 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1802 (ada_value_has_mutated): Likewise.
1803 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1804 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1805 (c_varobj_ops, cplus_varobj_ops): Declare.
1806 (java_varobj_ops, ada_varobj_ops): Declare.
1807 (varobj_default_value_is_changeable_p): Declare.
1808 (varobj_value_is_changeable_p): Declare.
1809 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1810 (varobj_get_path_expr_parent): Declare.
1811 (varobj_value_get_print_value): Declare.
1812 (varobj_formatted_print_options): Declare.
1813 (varobj_restrict_range): Declare.
1814
c8a62302
LM
18152013-10-17 Luis Machado <lgustavo@codesourcery.com>
1816
1817 * target/waitstatus.h (target_waitkind): Remove spurious
1818 character from the comments.
1819
eade6471
JB
18202013-10-17 Joel Brobecker <brobecker@adacore.com>
1821
1822 * gdbarch.sh (get_longjmp_target): Add method documentation.
1823 * gdbarch.h: Regenerate.
1824
5411b26c
TT
18252013-10-16 Tom Tromey <tromey@redhat.com>
1826
1827 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1828 label.
1829
87326c87
LM
18302013-10-16 Luis Machado <lgustavo@codesourcery.com>
1831
1832 * gcore.in: Call GDB using the full path to the gcore script.
1833 Error out if the GDB binary is not found.
1834
fd0a4d76
SDJ
18352013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1836
1837 PR gdb/16014
1838 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1839 sizeof.
1840
d92f7ee3
SDJ
18412013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1842
1843 PR gdb/16042
1844 * target.c (target_disable_btrace): Fix invalid return value for
1845 void function.
1846 (target_teardown_btrace): Likewise.
1847
bb5ce47a
YQ
18482013-10-14 Yao Qi <yao@codesourcery.com>
1849
1850 * varobj.c (struct varobj): Move most of the fields to
1851 varobj.h.
1852 (struct varobj_dynamic): New struct.
1853 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1854 (varobj_has_more): Likewise.
1855 (dynamic_varobj_has_child_method): Likewise.
1856 (update_dynamic_varobj_children): Likewise.
1857 (varobj_get_num_children): Likewise.
1858 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1859 (install_new_value_visualizer): Likewise.
1860 (install_new_value_visualizer, install_new_value): Likewise.
1861 (varobj_update, new_variable, free_variable): Likewise.
1862 (my_value_of_variable, value_get_print_value): Likewise.
1863 (install_visualizer): Change the type of parameter 'var' to
1864 'struct varobjd_dynamic *'. Callers update.
1865 * varobj.h (struct varobj): Moved from varobj.c.
1866 (struct varobj) <dynamic>: New field.
1867
0b76b0ce
SL
18682013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1869
1870 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1871 as the preferred name of r30.
1872 * nios2-linux-tdep.c (reg_offsets): Likewise.
1873 * features/nios2-cpu.xml: Likewise.
1874 * features/nios2-linux.c: Regenerated.
1875 * features/nios2.c: Regenerated.
1876 * regformats/nios2-linux.dat: Regenerated.
1877
4856b6bc
JK
18782013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1879
1880 Canonicalize directories for EXEC_FILENAME.
1881 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1882 exec_filename.
1883 * utils.c (gdb_realpath_keepfile): New function.
1884 * utils.h (gdb_realpath_keepfile): New declaration.
1885
9b557b58
DE
18862013-10-11 Doug Evans <dje@google.com>
1887
1888 * Makefile.in (GDBFLAGS): New variable.
1889 (run): New rule.
1890
ce13fade
JB
18912013-10-11 Joel Brobecker <brobecker@adacore.com>
1892
1893 * NEWS: Add entry documenting the new "-catch-assert" and
1894 "-catch-exception" GDB/MI commands.
1895
349774ef
JB
18962013-10-11 Joel Brobecker <brobecker@adacore.com>
1897
1898 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1899 "enabled".
1900 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1901 "enabled". Set B->ENABLE_STATE accordingly.
1902 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1903 ada-lang.c.
1904 (create_ada_exception_catchpoint): Add declaration.
1905 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1906 (create_ada_exception_catchpoint): Make non-static. Add new
1907 parameter "disabled". Use it in call to
1908 init_ada_exception_breakpoint.
1909 (catch_ada_exception_command): Add parameter "enabled" in call
1910 to create_ada_exception_catchpoint.
1911 (catch_assert_command): Likewise.
1912
1913 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1914 Add declarations.
1915 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1916 "catch-exception" commands.
1917 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1918 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1919
761269c8
JB
19202013-10-11 Joel Brobecker <brobecker@adacore.com>
1921
1922 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1923 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1924 of all its enumerates with "ada_". Update the rest of this
1925 file throughout.
1926
b4a5b78b
JB
19272013-10-11 Joel Brobecker <brobecker@adacore.com>
1928
1929 * ada-lang.c (ada_decode_exception_location): Delete.
1930 (create_ada_exception_catchpoint): Remove arguments "sal",
1931 "addr_string" and "ops". Add argument "ex_kind" instead.
1932 Adjust implementation accordingly, calling ada_exception_sal
1933 to get the entities it no longer gets passed as arguments.
1934 Document the function's arguments.
1935 (catch_ada_exception_command): Use catch_ada_exception_command_split
1936 instead of ada_decode_exception_location, and update call to
1937 create_ada_exception_catchpoint.
1938 (catch_ada_assert_command_split): Renames
1939 ada_decode_assert_location. Remove parameters "addr_string" and
1940 "ops", and now returns void. Adjust implementation accordingly.
1941 Update the function documentation.
1942 (catch_assert_command): Use catch_ada_assert_command_split
1943 instead of ada_decode_assert_location. Update call to
1944 create_ada_exception_catchpoint.
1945
7ad1d32c 19462013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1947
1948 * utils.h (perror_warning_with_name): Add declaration.
1949 * utils.c (perror_warning_with_name): New function.
1950 * cli/cli-cmds.c (source_script_with_search): Add call to
1951 perror_warning_with_name if from_tty is nul.
1952
7ad1d32c 19532013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1954
1955 * utils.c (perror_string): New function, extracted out of
1956 throw_perror_with_name.
1957 (throw_perror_with_name): Rework to use perror_string.
1958
bcc75809
YQ
19592013-10-11 Yao Qi <yao@codesourcery.com>
1960
1961 * remote.c (discard_pending_stop_replies_in_queue): Update
1962 declaration.
1963 (struct stop_reply) <rs>: New field.
1964 (remove_stop_reply_of_remote_state): New function.
1965 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1966 Callers update. Pass remove_stop_reply_of_remote_state to
1967 QUEUE_iterate.
1968 (remote_parse_stop_reply): Initialize field 'rs'.
1969
05feb193
WN
19702013-10-10 Will Newton <will.newton@linaro.org>
1971
1972 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1973 linux_init_abi.
1974
0d12017b
JB
19752013-10-10 Joel Brobecker <brobecker@adacore.com>
1976
1977 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1978 serial_baud_show_cmd.
1979 (_initialize_cli_cmds): Delete the code creating the
1980 "set/show remotebaud" commands.
1981 * serial.c (baud_rate): Move here from top.c.
1982 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1983 (_initialize_serial): Create "set/show serial baud" commands.
1984 Add "set/show remotebaud" command aliases.
1985 * top.c (baud_rate): Moved to serial.c.
1986 * NEWS: Document the new "set/show serial baud" commands,
1987 replacing "set/show remotebaud".
1988
578d3588
PA
19892013-10-09 Pedro Alves <palves@redhat.com>
1990
1991 * breakpoint.c (insert_bp_location): Use memory_error_message to
1992 build the memory error string.
1993 * c-lang.c: Include "gdbcore.h".
1994 (c_get_string): Use memory_error to throw error.
1995 (target_xfer_memory_error): Delete.
1996 (memory_error_message): New, factored out from
1997 target_xfer_memory_error.
1998 (memory_error): Change parameter type to target_xfer_error.
1999 Rewrite.
2000 (read_memory): Use memory_error instead of
2001 target_xfer_memory_error.
2002 * gdbcore.h: Include "target.h".
2003 (memory_error): Change parameter type to target_xfer_error.
2004 (memory_error_message): Declare function.
2005 * target.c (target_read_memory, target_read_stack)
2006 (target_write_memory, target_write_raw_memory): Return
2007 TARGET_XFER_E_IO on error. Adjust comments.
2008 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2009 instead of EIO.
2010 * target.h (target_read, target_insert_breakpoint)
2011 (target_remove_breakpoint): Adjust comments.
2012 * valprint.c (partial_memory_read): Rename parameter, and adjust
2013 comment.
2014 (val_print_string): Use memory_error_message to build the memory
2015 error string.
2016
c74e1ccf
JK
20172013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2018
2019 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2020 result variable. Rename variable fopen_e_ever_failed to
2021 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2022
915215be
PA
20232013-10-09 Pedro Alves <palves@redhat.com>
2024
2025 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2026 (monitor_write_memory_longlongs, monitor_write_memory_block):
2027 Constify 'myaddr' parameter.
2028 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2029 helper.
2030 (monitor_xfer_partial): New function.
2031 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2032 hook. Install a to_xfer_partial hook.
2033
acd13123
TT
20342013-10-09 Tom Tromey <tromey@redhat.com>
2035
2036 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2037 bfd_get_alt_debug_link_info.
2038
40135bb1
JK
20392013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2040
2041 New flag OBJF_NOT_FILENAME.
2042 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2043 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2044 allocate_objfile.
2045 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2046 symbol_file_add_from_bfd.
2047 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2048 allocate_objfile.
2049 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2050 NULL.
2051 * objfiles.h (OBJF_NOT_FILENAME): New.
2052
dc294be5
TT
20532013-10-08 Tom Tromey <tromey@redhat.com>
2054
2055 * Makefile.in (SFILES): Add build-id.c.
2056 (HFILES_NO_SRCDIR): Add build-id.h.
2057 * build-id.c: New file, largely from elfread.c. Modified
2058 most functions.
2059 * build-id.h: New file.
2060 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2061 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2062 Search for dwz file using build-id.
2063 * elfread.c (build_id_bfd_get, build_id_verify)
2064 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2065
db230ce3
JB
20662013-10-08 Joel Brobecker <brobecker@adacore.com>
2067
2068 * ada-lang.c (compare_names_with_case): Renamed from
2069 compare_names, adding a new parameter "casing" and its handling.
2070 New function documentation.
2071 (compare_names): New function, implemented using
2072 compare_names_with_case.
2073
6501c98a
JB
20742013-10-08 Joel Brobecker <brobecker@adacore.com>
2075
2076 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2077
84a1243b
TT
20782013-10-07 Tom Tromey <tromey@redhat.com>
2079
2080 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2081 demangled_names_hash.
2082 (free_objfile): Don't delete the demangled_names_hash.
2083 * objfiles.h (struct objfile_per_bfd_storage)
2084 <demangled_names_hash>: New field.
2085 (struct objfile) <demangled_names_hash>: Move to
2086 objfile_per_bfd_storage.
2087 * symfile.c (reread_symbols): Don't delete the
2088 demangled_names_hash.
2089 * symtab.c (create_demangled_names_hash): Update.
2090 (symbol_set_names): Update.
2091
1da77581
TT
20922013-10-07 Tom Tromey <tromey@redhat.com>
2093
2094 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2095 needs_relocations>: New fields.
2096 (gdb_bfd_requires_relocations): New function.
2097 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2098 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2099 the BFD needs relocations applied.
2100
46ecd527
PA
21012013-10-07 Pedro Alves <palves@redhat.com>
2102
2103 PR breakpoints/11568
2104 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2105 the thread list" instead of "gone".
2106
0c557179
SDJ
21072013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2108
2109 * NEWS: Mention new convenience variable $_exitsignal.
2110 * corelow.c (core_open): Reset exit convenience variables. Set
2111 $_exitsignal to the uncaught signal which generated the corefile.
2112 * infrun.c (handle_inferior_event): Reset exit convenience
2113 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2114 (clear_exit_convenience_vars): New function.
2115 * inferior.h (clear_exit_convenience_vars): New prototype.
2116
1cc47d81
YQ
21172013-10-06 Yao Qi <yao@codesourcery.com>
2118
2119 * varobj.h: Add comments to enum varobj_languages.
2120
73869dc2
DE
21212013-10-04 Doug Evans <dje@google.com>
2122
2123 Add support for DWP file format version 2.
2124 * NEWS: Mention support for DWP file format version 2.
2125 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2126 union of asection, containing_section. New fields virtual_offset
2127 and is_virtual. Change type of readin filed from int to char.
2128 (dwo_sections, dwo_file): Tweak comments.
2129 (dwp_v2_section_ids): New enum.
2130 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2131 str_offsets, types.
2132 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2133 All uses updated.
2134 (virtual_v2_dwo_sections): New struct.
2135 (dwp_hash_table): New fields version, nr_columns. Change type of
2136 section_pool field to a union.
2137 (dwp_file): New field version.
2138 (dwarf2_has_info): Check for virtual sections.
2139 (get_containing_section): New function.
2140 (get_section_bfd_owner, get_section_bfd_section): Call it.
2141 (dwarf2_locate_sections): Update.
2142 (dwarf2_section_empty_p): Update.
2143 (dwarf2_read_section): Handle virtual sections.
2144 (locate_dwz_sections): Update.
2145 (create_dwp_hash_table): Document and handle V2 format.
2146 (locate_v1_virtual_dwo_sections): Renamed from
2147 locate_virtual_dwo_sections and update. All callers updated.
2148 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2149 Delete arg htab. Rename arg section_index to unit_index.
2150 All callers updated.
2151 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2152 All uses updated.
2153 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2154 (lookup_dwo_unit_in_dwp): Add V2 support.
2155 (dwarf2_locate_dwo_sections): Update.
2156 (dwarf2_locate_common_dwp_sections): Renamed from
2157 dwarf2_locate_dwp_sections and update. All callers updated.
2158 (dwarf2_locate_v2_dwp_sections): New function.
2159 (open_and_init_dwp_file): Add V2 support.
2160 (read_str_index): New locals str_section, str_offsets_section.
2161
9a2c3737
PA
21622013-10-04 Pedro Alves <palves@redhat.com>
2163
2164 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2165 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2166 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2167 describing comments with references to ptid.h.
2168 * common/ptid.h: Remove intro description of constructors,
2169 accessors and predicates.
2170 (struct ptid): Reformat.
2171 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2172 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2173 describing comments.
2174
f5371440
JB
21752013-10-04 Joel Brobecker <brobecker@adacore.com>
2176
2177 * aix-thread.c (sync_threadlists): Add missing ')' in call
2178 to ptid_build.
2179
793e1c06
JB
21802013-10-04 Joel Brobecker <brobecker@adacore.com>
2181
2182 * procfs.c (procfs_init_inferior): Fix typo causing the build
2183 to fail.
2184
26f0edc1
JB
21852013-10-04 Joel Brobecker <brobecker@adacore.com>
2186
2187 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2188
5713b9b5
JB
21892013-10-04 Joel Brobecker <brobecker@adacore.com>
2190
2191 * mi/mi-main.c (run_one_inferior): Add function description.
2192 Make ARG a pointer to an integer whose value determines whether
2193 we should "run" or "start" the program.
2194 (mi_cmd_exec_run): Add handling of the "--start" option.
2195 Reject all other command-line options.
2196 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2197
f48ff2a7
YQ
21982013-10-04 Yao Qi <yao@codesourcery.com>
2199
2200 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2201 (struct notif_client) <pending_event>: Moved
2202 to struct remote_notif_state.
2203 <id>: New field.
2204 (struct remote_notif_state) <pending_event>: New field.
2205 (notif_event_xfree): Declare.
2206 * remote-notif.c (handle_notification): Adjust.
2207 (notif_event_xfree): New function.
2208 (do_notif_event_xfree): Call notif_event_xfree.
2209 (remote_notif_state_xfree): Call notif_event_xfree to free
2210 each element in field pending_event.
2211 * remote.c (discard_pending_stop_replies): Remove declaration.
2212 (discard_pending_stop_replies_in_queue): Declare.
2213 (remote_close): Call discard_pending_stop_replies_in_queue
2214 instead of discard_pending_stop_replies.
2215 (remote_start_remote): Adjust.
2216 (stop_reply_xfree): Call notif_event_xfree.
2217 (notif_client_stop): Adjust initialization.
2218 (remote_notif_remove_all): Rename it to ...
2219 (remove_stop_reply_for_inferior): ... this. Update comments.
2220 Don't check INF is NULL.
2221 (discard_pending_stop_replies): Return early if notif_state is
2222 NULL. Adjust. Don't check INF is NULL.
2223 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2224 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2225 (remote_wait_ns): Likewise.
2226
5965e028
YQ
22272013-10-04 Yao Qi <yao@codesourcery.com>
2228
2229 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2230 (notif_queue): Remove.
2231 (remote_notif_process): Add one parameter 'notif_queue'.
2232 Update comments. Callers update.
2233 (remote_async_get_pending_events_token): Remove.
2234 (remote_notif_register_async_event_handler): Remove.
2235 (remote_notif_unregister_async_event_handler): Remove.
2236 (handle_notification): Add parameter 'notif_queue'. Update
2237 comments. Callers update.
2238 (notif_xfree): Remove.
2239 (remote_notif_state_allocate): New function.
2240 (remote_notif_state_xfree): New function.
2241 (_initialize_notif): Remove code to allocate queue.
2242 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2243 (struct remote_notif_state): New.
2244 (handle_notification): Update declaration.
2245 (remote_notif_process): Likewise.
2246 (remote_notif_register_async_event_handler): Remove.
2247 (remote_notif_unregister_async_event_handler): Remove.
2248 (remote_notif_state_allocate): Declare.
2249 (remote_notif_state_xfree): Declare.
2250 * remote.c (struct remote_state) <notif_state>: New field.
2251 (remote_close): Don't call
2252 remote_notif_unregister_async_event_handler. Call
2253 remote_notif_state_xfree.
2254 (remote_open_1): Don't call
2255 remote_notif_register_async_event_handler. Call
2256 remote_notif_state_allocate.
2257
5e5ac9a5
YQ
22582013-10-04 Yao Qi <yao@codesourcery.com>
2259
2260 * varobj.c (create_child_with_value): Remove 'const' from the
2261 type of parameter 'name'.
2262 (varobj_add_child): Likewise.
2263 (install_dynamic_child): Remove 'const' from the type of
2264 parameter 'name'.
2265 (varobj_add_child): Likewise.
2266 (create_child_with_value): Likewise. Update comments. Don't
2267 duplicate 'name'.
2268 (update_dynamic_varobj_children): Duplicate 'name'
2269 and pass it to install_dynamic_child.
2270
06ab7b19
PM
22712013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2272
2273 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2274 conversion logic to occur after PyLong_Check. Comment on order
2275 change significance.
2276 * python/py-arch.c (archpy_disassemble): Comment on order of
2277 conversion for integers and longs.
2278
8ae377e8
PA
22792013-10-03 Pedro Alves <palves@redhat.com>
2280
2281 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2282 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2283 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2284 PTRACE_O_TRACEFORK is not supported.
2285 (linux_test_for_tracesysgood): New function.
2286 (linux_test_for_tracefork): New function, factored out from
2287 linux_check_ptrace_features, and also don't kill child_pid here.
2288
b1328b1b
TG
22892013-10-03 Tristan Gingold <gingold@adacore.com>
2290
2291 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2292 Remove verbose error reporting. Use detected state to
2293 thread_set_state call.
2294 (i386_darwin_dr_get): Fix return type. Remove verbose error
2295 report.
2296 Remove trailing spaces.
2297
901461f8
PA
22982013-10-02 Pedro Alves <palves@redhat.com>
2299
2300 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2301 val_print_optimized_out.
2302 * jv-valprint.c (java_print_value_fields): Likewise.
2303 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2304 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2305 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2306 new optimized out value.
2307 * findvar.c (address_from_register): Likewise.
2308 * frame.c (put_frame_register): Tweak error string to say the
2309 register was not saved, rather than optimized out.
2310 * infcmd.c (default_print_one_register_info): Adjust call to
2311 val_print_optimized_out. Use value_of_register instead of
2312 get_frame_register_value.
2313 * mi/mi-main.c (output_register): Use value_of_register instead of
2314 get_frame_register_value.
2315 * valprint.c (valprint_check_validity): Likewise.
2316 (val_print_optimized_out): New value parameter. If the value is
2317 lval_register, print <not saved> instead.
2318 (value_check_printable, val_print_scalar_formatted): Adjust calls
2319 to val_print_optimized_out.
2320 * valprint.h (val_print_optimized_out): New value parameter.
2321 * value.c (struct value) <optimized_out>: Extend comment.
2322 (error_value_optimized_out): New function.
2323 (require_not_optimized_out): Use it. Use a different string for
2324 lval_register values.
2325 * value.h (error_value_optimized_out): New declaration.
2326 * NEWS: Mention <not saved>.
2327
042a84d9
JB
23282013-10-02 Joel Brobecker <brobecker@adacore.com>
2329
2330 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2331 strcmp to compare two symtab filenames.
2332
6b9780fb
JB
23332013-10-02 Joel Brobecker <brobecker@adacore.com>
2334
2335 * symtab.c (search_symbols_equal): Delete.
2336 (sort_search_symbols_remove_dups): Replace call to
2337 search_symbols_equal by call to compare_search_syms,
2338 adjusting as necessary.
2339
751e7549
PM
23402013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2341
2342 PR python/15579
751e7549
PM
2343 * python/python.c: Document gdb.execute command in Python help.
2344
1efd7661
PM
23452013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2346
2347 * python/py-frame.c (frame_info_to_frame_object): Use
2348 gdbpy_convert_exception. Clean up Python object on failure.
2349
562fc849
PM
23502013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2351
2352 * python/lib/gdb/command/frame_filters.py
2353 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2354 (ShowFrameFilterPriority.invoke): Ditto.
2355
d7561cbb
KS
23562013-10-01 Keith Seitz <keiths@redhat.com>
2357
2358 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2359 (parse_linespec): Make 'argptr' const.
2360 Remove temporary cast of 'argptr' to const char **.
2361 (decode_line_full): Pass const pointer to parse_linespec.
2362 (decode_line_1): Likewise.
2363 (decode_objc): Make local variable 'new_argptr' const.
2364 (find_function_symbols): Remove temporary cast to char *
2365 to find_imps.
2366 * objc-lang.c (find_imps): Make argument 'method' const.
2367 Return const.
2368 * objc-lang.h (find_imps): Likewise.
2369
23702013-10-01 Keith Seitz <keiths@redhat.com>
2371
2372 * completer.c (skip_quoted_chars): Make all arguments const.
2373 Return const.
2374 (skip_quoted): Likewise.
2375 * completer.h (skip_quoted_chars): Likewise.
2376 (skip_quoted): Likewise.
2377 * defs.h (skip_quoted): Remove duplicate declaration.
2378 * jv-exp.y: Include completer.h.
2379 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2380 * p-exp.y: Include completer.h.
2381
23822013-10-01 Keith Seitz <keiths@redhat.com>
2383
2384 * c-exp.y (parse_number): Make first argument const.
2385 Make a copy of the input to manipulate.
2386 (c_parse_escape): Make first argument const.
2387 Make local variable 'tokptr' const.
2388 (parse_string_or_char): Make first two arguments const.
2389 (macro_original_text): Make const.
2390 (lex_one_token): Make local variable 'tokstart' const.
2391 Likewise for local variables named 'p'.
2392 Cast away const for struct stoken (temporary).
2393 * c-lang.h (c_parse_escpae): Make first argument const.
2394 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2395 const.
2396 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2397 var_string case.
2398 * f-exp.y (parse_number): Make first argument const.
2399 (match_string_literal): Make local variable 'tokstart'
2400 const.
2401 (yylex): Make local variable 'p' const.
2402 Cast away const for struct stoken (temporary).
2403 * go-exp.y (parse_number): Make first argument const.
2404 (parse_string_or_char): Likewise.
2405 Make local variable 'tokstart' const.
2406 (lex_one_token): Likewise for numerous locals called 'p'.
2407 Cast away const for struct stoken (temporary).
2408 * jv-exp.y (parse_number): Make first argument const.
2409 Make local variables 'tokstart' and 'tokptr' const.
2410 Cast away const for call to skip_quoted (temporary).
2411 (yylex): Make local variable 'p' const.
2412 Cast away const for struct stoken (temporary).
2413 * m2-exp.y (parse_number): Make local variable 'p' const.
2414 (yylex): Likewise for 'tokstart'.
2415 Cast away const for struct stoken (temporary).
2416 Make local variable 'p' const.
2417 * macroexp.c (get_character_constant): Pass a const string
2418 to c_parse_escape.
2419 (get_string_literal): Likewise.
2420 (macro_expand_next): Make first argument const.
2421 Cast away const for init_shared_buffer.
2422 * macroexp.h (macro_expand_next): Make first argument const.
2423 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2424 Pass a const string to c_parse_escape.
2425 Make local variables 'p' and 'namestart' const.
2426 * parse.c (lexptr): Make const.
2427 (prev_lexptr): Likewise.
2428 (find_template_name_end): Return const.
2429 Make argument const, too.
2430 (parse_exp_in_context): Make first argument const.
2431 Remove the entire const_hack.
2432 (parse_exp_in_context_1): Make first argument const.
2433 * parser-defs.h (find_template_name_end): Return const.
2434 Make argument const, too.
2435 (lexptr): Make const.
2436 (prev_lexptr): Likewise.
2437 * utils.c (parse_escape): Make second argument const.
2438 * utils.h (parse_escape): Likewise.
2439
24402013-10-01 Keith Seitz <keiths@redhat.com>
2441
2442 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2443 is now const.
2444 (block_lookup): Make 'raw_name' and 'name' const.
2445 * ada-lex.l (processString): Update for struct stoken.ptr.
2446 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2447 (operator_stoken): Likewise.
2448 (lex_one_token): Remove temporary cast to char * for
2449 'yylval.sval.ptr'.
2450 * f-exp.y (yylex): Likewise.
2451 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2452 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2453 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2454 'yylval.sval.ptr'.
2455 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2456 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2457 * linespec.c (struct ls_parser): Make 'stream' const.
2458 (find_parameter_list_end): Make argument 'input' and local
2459 variable 'p' const.
2460 (linespec_lexer_lex_string): Make local variables 'start' and
2461 'p' const.
2462 Use skip_spaces_const instead of skip_spaces.
2463 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2464 const.
2465 (parse_linespec): Temporarily cast 'argptr' to const for
2466 'parser->lexer.stream'.
2467 * m2-exp.y (yylex): Remove temporary cast to char * for
2468 'yylval.sval.ptr'.
2469 * objc-lang.c (add_msglist): Make local variable 'p' const.
2470 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2471 (exp : STRING): Make 'sp' const.
2472 (parse_number): Make argument 'p' const.
2473 * parser-defs.h (struct stoken): Make 'ptr' const.
2474
193a8eac
DE
24752013-10-01 Doug Evans <dje@google.com>
2476
2477 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2478
2213e2be
YQ
24792013-10-01 Yao Qi <yao@codesourcery.com>
2480
2481 * varobj.c (c_value_of_root): Remove declaration.
2482 (cplus_value_of_root, java_value_of_root): Likewise.
2483 (ada_value_of_root): Likewise.
2484 (struct language_specific) <value_of_root>: Remove.
2485 (languages): Update initialization.
2486 (check_scope): Move earlier.
2487 (c_value_of_root): Move earlier and rename to ...
2488 (value_of_root_1): ... this.
2489 (value_of_root): Caller update.
2490 (cplus_value_of_root, java_value_of_root): Remove.
2491 (ada_value_of_root): Remove.
2492
c573f273
YQ
24932013-10-01 Yao Qi <yao@codesourcery.com>
2494
2495 * varobj.c (varobj_format_string): Remove "unknown".
2496 (languages): Remove the first element.
2497 * varobj.h (enum varobj_languages): Remove vlang_c.
2498
56250258
YQ
24992013-10-01 Yao Qi <yao@codesourcery.com>
2500
2501 * varobj.c (struct language_specific) <language>: Remove.
2502 (languages): Update the initialization.
2503
29f9ebfa
YQ
25042013-10-01 Yao Qi <yao@codesourcery.com>
2505
2506 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2507 "solib-target.h". Include "windows-tdep.h".
2508 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2509 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2510 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2511 windows-tdep.o to gdb_target_obs.
2512
64870a42
YQ
25132013-10-01 Yao Qi <yao@codesourcery.com>
2514
2515 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2516 "solib-target.h".
2517 (amd64_windows_init_abi): Don't call set_solib_ops and
2518 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2519 windows_init_abi instead.
2520 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2521 "solib-target.h".
2522 (i386_cygwin_init_abi): Don't call set_solib_ops,
2523 set_gdbarch_has_dos_based_file_system and
2524 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2525 windows_init_abi instead.
2526 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2527 (windows_init_abi): New function.
2528 (windows_iterate_over_objfiles_in_search_order): Make it
2529 static.
2530 * windows-tdep.h (windows_init_abi): Declare.
2531 (windows_iterate_over_objfiles_in_search_order): Remove
2532 declaration.
2533
0aebdefa
JB
25342013-10-01 Jerome Guitton <guitton@adacore.com>
2535
2536 Checked in by Joel Brobecker <brobecker@adacore.com>
2537 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2538 incomplete dictionnary instead of None in case of missing
2539 environment variables.
2540 (elinos_init): in case of an incomplete environment, best
2541 effort to load system libraries instead of abort.
2542
1c8e84b0
JB
25432013-10-01 Joel Brobecker <brobecker@adacore.com>
2544
2545 * ada-lang.c (ada_has_this_exception_support): Ignore
2546 mst_solib_trampoline minimal symbols.
2547
61d82a0d
TG
25482013-09-30 Tristan Gingold <gingold@adacore.com>
2549
2550 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2551 hardware watchpoint.
2552 (i386_darwin_dr_set): Support 32 and 64 bit states.
2553 (i386_darwin_dr_get): Likewise.
2554 (i386_darwin_dr_set_control): Make static.
2555 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2556 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2557
dfd4cc63
LM
25582013-09-30 Luis Machado <lgustavo@codesourcery.com>
2559
2560 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2561 Replace TIDGET with ptid_get_lwp.
2562 Replace GET_LWP with ptid_get_lwp.
2563 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2564 Replace BUILD_THREAD with ptid_build.
2565 Replace BUILD_LWP with ptid_build.
2566 Replace PIDGET with ptid_get_pid.
2567 Replace TIDGET with ptid_get_lwp.
2568 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2569 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2570 Replace TIDGET with ptid_get_lwp.
2571 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2572 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2573 Replace TIDGET with ptid_get_lwp.
2574 Replace GET_LWP with ptid_get_lwp.
2575 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2576 * auxv.c: Likewise.
2577 * breakpoint.c: Likewise.
2578 * common/ptid.c (ptid_is_pid): Condense check for
2579 null_ptid and minus_one_ptid.
2580 (ptid_lwp_p): New function.
2581 (ptid_tid_p): New function.
2582 * common/ptid.h: Update comments for accessors.
2583 (ptid_lwp_p): New prototype.
2584 (ptid_tid_p): New prototype.
2585 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2586 * gcore.c: Replace PIDGET with ptid_get_pid.
2587 * gdbthread.h: Likewise.
2588 * gnu-nat.c: Likewise.
2589 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2590 Replace TIDGET with ptid_get_lwp.
2591 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2592 * hppanbsd-nat.c: Likewise.
2593 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2594 Replace TIDGET with ptid_get_lwp.
2595 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2596 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2597 * infcmd.c: Likewise.
2598 * inferior.h: Likewise.
2599 * inflow.c: Likewise.
2600 * infrun.c: Likewise.
2601 * linux-fork.c: Likewise.
2602 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2603 Replace GET_PID with ptid_get_pid.
2604 Replace is_lwp with ptid_lwp_p.
2605 Replace GET_LWP with ptid_get_lwp.
2606 Replace BUILD_LWP with ptid_build.
2607
5b4e221c
MF
26082013-09-28 Mike Frysinger <vapier@gentoo.org>
2609
2610 * common/linux-btrace.c: Move sys/syscall.h out of the
2611 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2612 Also check for SYS_perf_event_open before attempting to buid.
2613
57d63ce2
DE
26142013-09-27 Doug Evans <dje@google.com>
2615
19ac8c2e
DE
2616 * dwarf2read.c (dwarf2_section_info): Add comment.
2617 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2618 All uses updated.
2619 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2620 (dwarf2_read_section): Delete unused local "header". Add section
2621 name to error message.
2622 (create_dwo_in_dwp): Tweak comment.
2623 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2624
a32a8923
DE
2625 * dwarf2read.c (die_reader_specs): Tweak comment.
2626 (get_section_bfd_owner, get_section_bfd_section): New functions.
2627 (get_section_name, get_section_file_name): New functions.
2628 (get_section_id, get_section_flags): New functions.
2629 (*): Use new functions to access section fields.
2630
57d63ce2
DE
2631 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2632 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2633 arg "htab". All callers updated.
2634 (create_debug_types_hash_table): Remove redundant copy of
2635 abbrev_section.
2636 (create_dwo_in_dwp): Tweak comments.
2637 (read_str_index): Tweak comment. Record dwarf form name in static
2638 local.
2639
3736004f
PA
26402013-09-27 Pedro Alves <palves@redhat.com>
2641
2642 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2643 (remote_filename_p): Add comment.
2644 * remote.c (remote_filename_p): Adjust to use
2645 REMOTE_SYSROOT_PREFIX.
2646 * solib.c (solib_find): When deciding whether we need to add a
2647 directory separator, check whether the sysroot is "remote:"
2648 instead of checking whether the patch has a drive spec. Add
2649 comments.
2650
5b5596ff
PA
26512013-09-27 Pedro Alves <palves@redhat.com>
2652
2653 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2654 Delete fields.
2655 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2656 directly.
2657
b5eef7aa
JK
26582013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2659
2660 Fix set debug frame output.
2661 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2662 SENTINEL_FRAME entry lower to match enum frame_type order.
2663
5b856f36
PM
26642013-09-26 Pierre Muller <muller@sourceware.org>
2665
2666 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2667 AMD64_R15_REGNUM when a register index is expected.
2668 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2669 Substitute in array.
2670 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2671 (amd64_push_arguments): Substitute in integer_regnum array.
2672
ade7ed9e
DE
26732013-09-25 Doug Evans <dje@google.com>
2674
d3e81981
DE
2675 * objfiles.c (allocate_objfile): Move comment to better place.
2676
8fb8eb5c
DE
2677 New option "set debug symfile on".
2678 * NEWS: Mention "set debug symfile".
2679 * Makefile.in (SFILES): Add symfile-debug.c.
2680 (COMMON_OBS): Add symfile-debug.o.
2681 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2682 objfile's symbol functions.
2683 * objfiles.h (objfile_set_sym_fns): Declare.
2684 * symfile-debug.c: New file.
2685 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2686 objfile's symbol functions.
2687 (reread_symbols): Ditto.
2688
c256e171
DE
2689 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2690 All uses updated.
2691 (add_symtab_fns): Update prototype.
2692 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2693 (registered_sym_fns): ... this.
2694 (symtab_fns): Update.
2695 (add_symtab_fns): New arg "flavour". All callers updated.
2696 (find_sym_fns): Rewrite to use new sym_fns registry.
2697
f56ce883
DE
2698 * symfile.h (struct sym_fns): Add "objfile" argument to
2699 sym_read_linetable. All uses updated.
2700
20c681d1
DE
2701 * symtab.c (domain_name, search_domain_name): New functions.
2702 * symtab.h (domain_name, search_domain_name): Declare.
2703
ade7ed9e
DE
2704 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2705 map_matching_symbols so objfile is first. All uses updated.
2706 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2707 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2708
7d760051
UW
27092013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2710
2711 PR shlibs/8882
2712 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2713 link map entries.
2714
020f7036
DE
27152013-09-24 Doug Evans <dje@google.com>
2716
2717 * objfiles.c (free_objfile): Move comment.
2718
598402f0
JB
27192013-09-24 Joel Brobecker <brobecker@adacore.com>
2720
2721 * ada-exp.y (string_to_operator): Delete.
2722 (dummy_string_to_ada_operator): Delete.
2723
bf4d6c1c
JB
27242013-09-24 Joel Brobecker <brobecker@adacore.com>
2725
2726 Revert:
2727 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2728 amd64-tdep.c.
2729 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2730 call_dummy_integer_regs, and classify.
2731 * amd64-tdep.h (amd64_classify): Add declaration.
2732 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2733 (amd64_reg_class): Delete, moved to i386-tdep.h.
2734 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2735 Replace call to amd64_classify by call to tdep->classify.
2736 (amd64_push_arguments): Get the list of registers to use for
2737 passing integer parameters from the gdbarch tdep structure,
2738 rather than using a hardcoded one. Replace calls to amd64_classify
2739 by calls to tdep->classify.
2740 (amd64_push_dummy_call): Get the register number used for
2741 the "hidden" argument from tdep->call_dummy_integer_regs.
2742 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2743 and tdep->call_dummy_integer_regs. Set tdep->classify.
2744
849e9755
JB
27452013-09-24 Joel Brobecker <brobecker@adacore.com>
2746
2747 Revert:
2748 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2749 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2750 where tdep->memory_args_by_pointer is non-zero.
2751
c1459fd6
JB
27522013-09-24 Joel Brobecker <brobecker@adacore.com>
2753
2754 Revert:
2755 * i386-tdep.h (struct gdbarch_tdep): Add new field
2756 integer_param_regs_saved_in_caller_frame.
2757 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2758 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2759
20c2e3e0
JB
27602013-09-24 Joel Brobecker <brobecker@adacore.com>
2761
874440b8 2762 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2763 (amd64_windows_classify): Delete.
2764 (amd64_windows_passed_by_integer_register)
2765 (amd64_windows_passed_by_xmm_register)
2766 (amd64_windows_passed_by_pointer)
2767 (amd64_windows_adjust_args_passed_by_pointer)
2768 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2769 (amd64_windows_push_dummy_call): New functions.
2770 (amd64_windows_init_abi): Remove setting of
2771 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2772 tdep->classify, tdep->memory_args_by_pointer and
2773 tdep->integer_param_regs_saved_in_caller_frame.
2774 Add call to set_gdbarch_push_dummy_call.
2775
82bf32bc
JK
27762013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2777
2778 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2779 objfile->original_name.
2780
24ba069a
JK
27812013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2782
2783 Pass down original filename for objfile.
2784 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2785 * elfread.c (elf_symfile_read): Likewise.
2786 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2787 longer set ORIGINAL_NAME.
2788 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2789 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2790 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2791 symbol_file_add_from_bfd call.
2792 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2793 (macho_check_dsym): Add parameter filenamep. Change function comment.
2794 Set *filenamep.
2795 (macho_symfile_read): New variable dsym_filename. Update
2796 macho_check_dsym call. Use it for symbol_file_add_separate.
2797 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2798 it. Use it for objfile->original_name.
2799 (objfile_name): Return OBFD's filename, if available.
2800 * objfiles.h (allocate_objfile): Add new parameter name.
2801 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2802 * symfile-mem.c (symbol_file_add_from_memory): Update
2803 symbol_file_add_from_bfd call.
2804 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2805 comment for it.
2806 (symbol_file_add_with_addrs): New parameter name, add function comment
2807 for it. Remove variable name. Update allocate_objfile call.
2808 (symbol_file_add_separate): New parameter name, add function comment
2809 for it. Update symbol_file_add_with_addrs call.
2810 (symbol_file_add_from_bfd): New parameter name. Update
2811 symbol_file_add_with_addrs call.
2812 (symbol_file_add): Update symbol_file_add_from_bfd call.
2813 (reread_symbols): New variable original_name. Save
2814 objfile->original_name by it.
2815 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2816 second parameter.
2817
4262abfb
JK
28182013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2819
2820 Code cleanup: Add objfile_name accessor function.
2821 * ada-lang.c (is_known_support_routine): Use objfile_name.
2822 * auto-load.c (source_gdb_script_for_objfile)
2823 (auto_load_objfile_script): Likewise.
2824 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2825 * dbxread.c (dbx_symfile_read): Likewise.
2826 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2827 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2828 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2829 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2830 (lookup_dwp_signatured_type, lookup_dwo_unit)
2831 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2832 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2833 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2834 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2835 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2836 (read_subrange_type, load_partial_dies, read_partial_die)
2837 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2838 (die_containing_type, build_error_marker_type, lookup_die_type)
2839 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2840 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2841 (get_DW_AT_signature_type, write_psymtabs_to_index)
2842 (save_gdb_index_command): Likewise.
2843 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2844 Likewise.
2845 * expprint.c (dump_subexp_body_standard): Likewise.
2846 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2847 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2848 original_name.
2849 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2850 obj_name, use objfile_name for it, use the variable.
2851 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2852 Use objfile_name.
2853 * machoread.c (macho_symtab_read, macho_check_dsym)
2854 (macho_symfile_relocate): Likewise.
2855 * maint.c (maintenance_translate_address): Likewise.
2856 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2857 * minsyms.c (install_minimal_symbols): Likewise.
2858 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2859 original_name.
2860 (filter_overlapping_sections): Use objfile_name.
2861 (objfile_name): New function.
2862 * objfiles.h (struct objfile): Rename field name to original_name.
2863 (objfile_name): New prototype.
2864 * printcmd.c (sym_info, address_info): Use objfile_name.
2865 * probe.c (parse_probes, collect_probes, compare_probes)
2866 (info_probes_for_ops): Likewise.
2867 * progspace.c (clone_program_space): Likewise.
2868 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2869 (maintenance_info_psymtabs): Likewise.
2870 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2871 (source_section_scripts): Likewise.
2872 * python/py-objfile.c (objfpy_get_filename): Likewise.
2873 * python/py-progspace.c (pspy_get_filename): Likewise.
2874 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2875 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2876 * solib.c (solib_read_symbols): Likewise.
2877 * stabsread.c (scan_file_globals): Likewise.
2878 * stap-probe.c (handle_stap_probe): Likewise.
2879 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2880 (find_separate_debug_file_by_debuglink): Likewise.
2881 (reread_symbols): Likewise. Use the objfile field name renamed to
2882 original_name.
2883 (allocate_symtab): Use objfile_name.
2884 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2885 (dump_objfile, dump_msymbols, dump_symtab_1)
2886 (maintenance_print_msymbols, maintenance_print_objfiles)
2887 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2888 * target.c (target_translate_tls_address, target_info): Likewise.
2889 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2890 objfile_name.
2891
4721dc18
JK
28922013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2893
2894 Code cleanup.
2895 * probe.c (parse_probes): Rename variable objfile_name to
2896 objfile_namestr.
2897
a61d6db8
JK
28982013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2899
2900 Remove solib-sunos.c.
2901 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2902 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2903 * objfiles.c (rt_common_objfile): Remove.
2904 (free_objfile): Remove rt_common_objfile comparison.
2905 * objfiles.h (rt_common_objfile): Remove.
2906 * solib-sunos.c: Remove.
2907 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2908
2659903b
JK
29092013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2910
2911 Remove a.out NetBSD and OpenBSD hosts.
2912 * NEWS (Removed native configurations): New.
2913 * config/arm/nbsdaout.mh: Remove.
2914 * config/i386/nbsdaout.mh: Remove.
2915 * config/i386/obsdaout.mh: Remove.
2916 * config/m68k/nbsdaout.mh: Remove.
2917 * config/sparc/nbsdaout.mh: Remove.
2918 * config/vax/nbsdaout.mh: Remove.
2919 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2920 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2921 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2922 error.
2923 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2924 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2925 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2926
f60e2d5c
TT
29272013-09-23 Tom Tromey <tromey@redhat.com>
2928
2929 * linespec.c (struct minsym_and_objfile): Remove.
2930 (minsym_and_objfile_d): Remove.
2931 (struct linespec, struct collect_info, linespec_parse_basic)
2932 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2933 (compare_msymbols, find_method, find_function_symbols)
2934 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2935 (add_minsym, search_minsyms_for_name): Update.
2936
d3eaaf66
AB
29372013-09-23 Andrew Burgess <aburgess@broadcom.com>
2938
2939 * regcache.c: Add include of valprint.h.
2940 (dump_endian_bytes): Delete.
2941 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2942
2cc762b5
AB
29432013-09-23 Andrew Burgess <aburgess@broadcom.com>
2944
2945 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2946
96181529
PA
29472013-09-19 Pedro Alves <palves@redhat.com>
2948
2949 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2950 breakpoints.
2951
9b3f3ee6
TS
29522013-09-19 Pedro Alves <palves@redhat.com>
2953 Thomas Schwinge <thomas@codesourcery.com>
2954 Yue Lu <hacklu.newborn@gmail.com>
2955
2956 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2957 Take a gdb_byte pointer instead of a char pointer.
2958
2959 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2960 gnu_xfer_partial helper.
2961 (gnu_xfer_partial): New function.
2962 (gnu_target): Don't install a deprecated_xfer_memory hook.
2963 Install a to_xfer_partial hook.
2964
69150c3d
JK
29652013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2966
2967 Constification.
2968 * main.c (captured_main): Replace catch_command_errors by
2969 catch_command_errors_const. Twice.
2970 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2971 (symbol_file_add): Make name parameter const.
2972 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2973 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2974 variable name. Change their usage accordingly.
2975 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2976 const.
2977 (symbol_file_add_main): Make args parameter const.
2978
086850b2
UW
29792013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2980 Ulrich Weigand <uweigand@de.ibm.com>
2981
2982 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2983 of c_value member.
2984 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2985
ca08a94c 29862013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2987 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2988
2989 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2990 (gnu_create_inferior)
2991 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2992 (set_sig_thread_cmd): Use the lwpid field of ptids to
2993 store/extract thread ids instead of the tid field.
2994 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2995
e4c6a2c4
AB
29962013-09-18 Andrew Burgess <aburgess@broadcom.com>
2997
2998 * infcmd.c (default_print_one_register_info): Add detection of
2999 optimized out values.
3000 (default_print_registers_info): Switch to using
3001 get_frame_register_value.
3002
58c48e72
MM
30032013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3004
3005 * infrun.c (handle_inferior_event): Check if we know the
3006 function start address before setting a resume breakpoint.
3007
c8d37639
PA
30082013-09-18 Pedro Alves <palves@redhat.com>
3009
3010 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3011 minus_one_ptid instead of looking at the ptid's tid field and
3012 comparing that to -1.
3013
71926e28
AB
30142013-09-18 Andrew Burgess <aburgess@broadcom.com>
3015
3016 * main.h (get_gdb_program_name): Remove extra whitespace.
3017
c88a1531
AB
30182013-09-18 Andrew Burgess <aburgess@broadcom.com>
3019
3020 * main.h (get_gdb_program_name): Add declaration.
3021 * main.c (get_gdb_program_name): Add definition.
3022
4390d890
DE
30232013-09-17 Doug Evans <dje@google.com>
3024
3025 * dwarf2read.c: Move definitions of complaint functions to after
3026 forward declarations of local functions.
3027
49fa26b0
PA
30282013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3029 Pedro Alves <palves@redhat.com>
3030
3031 PR gdb/11568
3032 * breakpoint.c (remove_threaded_breakpoints): New function.
3033 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3034 as thread_exit observer.
3035
08d72866
PA
30362013-09-17 Pedro Alves <palves@redhat.com>
3037
3038 PR gdb/15911
3039 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3040 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3041 * corelow.c (core_open):
3042 * frame.h (print_stack_frame, print_frame_info): New
3043 'set_current_sal' parameter.
3044 * infcmd.c (finish_command, kill_command): Adjust call to
3045 print_stack_frame.
3046 * inferior.c (inferior_command): Likewise.
3047 * infrun.c (normal_stop): Likewise.
3048 * linux-fork.c (linux_fork_context): Likewise.
3049 * record-full.c (record_full_goto_entry, record_full_restore):
3050 Likewise.
3051 * remote-mips.c (common_open): Likewise.
3052 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3053 Use it.
3054 (print_frame_info): New 'set_current_sal' parameter. Set the last
3055 displayed sal depending on the new paremeter instead of looking at
3056 print_what.
3057 (backtrace_command_1, select_and_print_frame, frame_command)
3058 (current_frame_command, up_command, down_command): Adjust call to
3059 print_stack_frame.
3060 * thread.c (print_thread_info, restore_selected_frame)
3061 (do_captured_thread_select): Adjust call to print_stack_frame.
3062 * tracepoint.c (tfind_1): Likewise.
3063 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3064 (mi_cmd_stack_info_frame): Likewise.
3065 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3066 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3067
6bc305f5
SDJ
30682013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3069
3070 * value.c (isvoid_internal_fn): Replace "parameter" with
3071 "argument".
3072
0a7cfe2c
SS
30732013-09-16 Stan Shebs <stan@codesourcery.com>
3074
3075 * README: Update references to writing code for GDB.
3076 * configure.ac (build_warnings): Remove obsolete comment.
3077 * configure: Regenerate.
3078 * gdbarch.sh: Remove references to gdbint.texinfo.
3079 * gdbarch.h: Regenerate.
3080 * gdbtypes.c (objfile_type): Remove comments referencing internals
3081 manual and D10V.
3082
a280dbd1
SDJ
30832013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3084
3085 * NEWS: Mention new convenience function $_isvoid.
3086 * value.c (isvoid_internal_fn): New function.
3087 (_initialize_values): Add new convenience function $_isvoid.
3088
04a83fee
PM
30892013-09-16 Pierre Muller <muller@sourceware.org>
3090
3091 * arm-linux-tdep.c: Add "elf/common.h" header.
3092 Remove AT_HWCAP macro definintion as it is provided in
3093 added include file.
3094 * s390-tdep.c: Remove system header <elf.h>
3095 Add "elf/common.h" header for AT_HWCAP definition.
3096 (s390_core_read_description): Use correct CORE_ADDR
3097 for hwcap local variable used as third parameter
3098 of function target_auxv_search.
3099
88505fac
PM
31002013-09-14 Pierre Muller <muller@sourceware.org>
3101 Tom Tromey <tromey@redhat.com>
3102 Pedro Alves <palves@redhat.com>
3103
3104 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3105 mode if operating system doesn't know O_CLOEXEC.
3106
d3846e71
JK
31072013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3108
3109 Code cleanup.
3110 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3111 inner block.
3112
4ac33720
UW
31132013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3114
3115 * NEWS: Mention TDB support.
3116 * features/s390-tdb.xml: New file.
3117 * features/s390-te-linux64.xml: New file.
3118 * features/s390x-te-linux64.xml: New file.
3119 * features/Makefile (WHICH): Add new tdescs above.
3120 (s390-te-linux64-expedite): Set.
3121 (s390x-te-linux64-expedite): Set.
3122 * features/s390-te-linux64.c: New file (generated).
3123 * features/s390x-te-linux64.c: New file (generated).
3124 * regformats/s390-te-linux64.dat: New file (generated).
3125 * regformats/s390x-te-linux64.dat: New file (generated).
3126 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3127 (HWCAP_S390_TE): Likewise.
3128 (S390_TDB_DWORD0_REGNUM): Likewise.
3129 (S390_TDB_DWORD0_REGNUM): Likewise.
3130 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3131 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3132 (S390_TDB_ATIA_REGNUM): Likewise.
3133 (S390_TDB_R0_REGNUM): Likewise.
3134 (S390_TDB_R1_REGNUM): Likewise.
3135 (S390_TDB_R2_REGNUM): Likewise.
3136 (S390_TDB_R3_REGNUM): Likewise.
3137 (S390_TDB_R4_REGNUM): Likewise.
3138 (S390_TDB_R5_REGNUM): Likewise.
3139 (S390_TDB_R6_REGNUM): Likewise.
3140 (S390_TDB_R7_REGNUM): Likewise.
3141 (S390_TDB_R8_REGNUM): Likewise.
3142 (S390_TDB_R9_REGNUM): Likewise.
3143 (S390_TDB_R10_REGNUM): Likewise.
3144 (S390_TDB_R11_REGNUM): Likewise.
3145 (S390_TDB_R12_REGNUM): Likewise.
3146 (S390_TDB_R13_REGNUM): Likewise.
3147 (S390_TDB_R14_REGNUM): Likewise.
3148 (S390_TDB_R15_REGNUM): Likewise.
3149 (S390_NUM_REGS): Increase.
3150 (S390_IS_TDBREGSET_REGNUM): New macro.
3151 (s390_regmap_tdb): Declare.
3152 (s390_sizeof_tdbregset): Define.
3153 (tdesc_s390_te_linux64): Declare.
3154 (tdesc_s390x_te_linux64): Likewise.
3155 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3156 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3157 (s390_regmap_tdb): New regmap.
3158 (s390_supply_tdb_regset): New function.
3159 (s390_tdb_regset): New regset.
3160 (s390_linux64v2_regset_sections): Add TDB regset to list.
3161 (s390x_linux64v2_regset_sections): Likewise.
3162 (s390_regset_from_core_section): Recognize TDB core note section.
3163 (s390_core_read_description): If HWCAP indicates TE support,
3164 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3165 (s390_gdbarch_init): Handle TDB regset.
3166 (_initialize_s390_tdep): Initialize new tdescs.
3167 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3168 (have_regset_tdb): New variable.
3169 (s390_native_supply): Support register invalidation.
3170 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3171 (check_regset): Treat ENODATA as "regset exists".
3172 (s390_linux_fetch_inferior_registers): Add TDB.
3173 (s390_read_description): Check for TDB existence and select
3174 appropriate tdesc.
3175 * gdbserver/Makefile.in (clean): Add removal of new makefile
3176 targets.
3177 (s390-te-linux64.c): New makefile target.
3178 (s390x-te-linux64.c): Likewise.
3179 * gdbserver/configure.srv (srv_regobj): Append new objects
3180 s390-te-linux64.o and s390x-te-linux64.o.
3181 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3182 s390x-te-linux64.xml, and s390-tdb.xml.
3183 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3184 declaration.
3185 (tdesc_s390_te_linux64): Likewise.
3186 (init_registers_s390x_te_linux64): Likewise.
3187 (tdesc_s390x_te_linux64): Likewise.
3188 (s390_check_regset): Treat ENODATA as "regset exists".
3189 (s390_arch_setup): Add TDB regset support.
3190 (initialize_low_arch): Initialize registers for new tdescs.
3191
2ccd1468
UW
31922013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3193
3194 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3195 (S390_IS_FPREGSET_REGNUM): New macro.
3196 * s390-tdep.c (s390_dwarf_regmap): Make const.
3197 (regnum_is_gpr_full): New function for replacing repeated code.
3198 (s390_pseudo_register_name): Use it.
3199 (s390_pseudo_register_type): Likewise.
3200 (s390_pseudo_register_read): Likewise.
3201 (s390_pseudo_register_write): Likewise.
3202 (s390_unwind_pseudo_register): Likewise.
3203 (s390_regmap_gregset): New format for regmap.
3204 (s390x_regmap_gregset): Likewise.
3205 (s390_regmap_fpregset): Likewise.
3206 (s390_regmap_upper): Likewise.
3207 (s390_regmap_last_break): Likewise.
3208 (s390_regmap_system_call): Likewise.
3209 (s390_supply_regset): Adjust to new regmap format.
3210 (s390_collect_regset): Likewise.
3211 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3212 (s390_native_collect): Likewise.
3213 (supply_gregset): Likewise.
3214 (fill_gregset): Likewise.
3215 (supply_fpregset): Likewise.
3216 (fill_fpregset): Likewise.
3217 (fetch_regset): Likewise.
3218 (store_regset): Likewise.
3219 (s390_linux_fetch_inferior_registers): Likewise.
3220 (s390_linux_fetch_inferior_registers): Likewise.
3221
1aa4cd77
AP
32222013-09-12 Andrew Pinski <apinski@cavium.com>
3223
3224 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3225
d91fab15
UW
32262013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3227
3228 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3229
5a5d8ead
AB
32302013-09-09 Andrew Burgess <aburgess@broadcom.com>
3231
3232 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3233
1385f66c
PA
32342013-09-06 Pedro Alves <palves@redhat.com>
3235
3236 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3237 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3238 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3239 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3240 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3241 gdb_stdlog.
3242
146ec4db
PA
32432013-09-06 Pedro Alves <palves@redhat.com>
3244
3245 * remote-sim.c (dump_mem): Constify buf parameter.
3246 gdbsim_xfer_inferior_memory): Rename to ...
3247 (gdbsim_xfer_memory): ... this. Adjust interface as
3248 target_xfer_partial helper.
3249 (gdbsim_xfer_partial): New function.
3250 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3251 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3252
fcde0081
PA
32532013-09-06 Pedro Alves <palves@redhat.com>
3254
3255 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3256 host_address_to_string, and send debug output to gdb_stdlog.
3257
749c8b38
RW
32582013-09-06 Ricard Wanderlof <ricardw@axis.com>
3259
3260 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3261 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3262 gdb_target_obs for cris target.
3263 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3264 (cris_gdbarch_init): Move calls to
3265 set_gdbarch_fetch_tls_load_module_address and
3266 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3267 Add call to gdbarch_init_osabi.
3268 * cris-linux-tdep.c: New file.
3269 * cris-tdep.h: New file.
3270
43df09d9
AB
32712013-09-06 Andrew Burgess <aburgess@broadcom.com>
3272
3273 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3274 to deprecated_init_ui_hook.
3275
4d09c5b4
AB
32762013-09-06 Andrew Burgess <aburgess@broadcom.com>
3277
3278 * cli/cli-interp.c (_initialize_cli_interp): Add a
3279 command_loop_proc to interp_procs.
3280 * event-top.c (cli_command_loop): Change signature to match
3281 interp_command_loop_ftype.
3282 * event-top.h (cli_command_loop): Same.
3283 * interps.c (interp_new): Require every interpreter to have a
3284 command_loop_proc.
3285 (current_interp_command_loop): Just call the command_loop_proc on
3286 the current interpreter.
3287 * tui/tui-interp.c (_initialize_tui_interp): Add a
3288 command_loop_proc to interp_procs.
3289
8eb3d7b6
RW
32902013-09-06 Ricard Wanderlof <ricardw@axis.com>
3291
3292 * cris-tdep.c (cris_gdbarch_init): Add call to
3293 get_gdbarch_fetch_tls_load_module_address.
3294
18b3c2f5
RW
32952013-09-06 Ricard Wanderlof <ricardw@axis.com>
3296
3297 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3298 (cris_elf_gregset_t): Rename from elf_gregset_t.
3299 (crisv32_elf_gregset_t): Adjust.
3300 (cris_supply_gregset, fetch_core_registers): Adjust.
3301
dc8636ef
RW
33022013-09-06 Ricard Wanderlof <ricardw@axis.com>
3303
3304 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3305
257e6d53
AB
33062013-09-05 Andrew Burgess <aburgess@broadcom.com>
3307
1581d8a7 3308 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3309 references in comments.
1581d8a7 3310 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3311 deprecated_command_loop_hook.
3312 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3313 setup.
1581d8a7 3314 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3315
7c33b57c
PA
33162013-09-05 Pedro Alves <palves@redhat.com>
3317
3318 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3319 local is now int instead of ULONGEST. Print it with %d
3320 instead of paddress.
3321
9f8edbd5
TG
33222013-09-05 Tristan Gingold <gingold@adacore.com>
3323
3324 * MAINTAINERS: Remove avr maintainership.
3325
d5b495b4
PA
33262013-09-05 Pedro Alves <palves@redhat.com>
3327
3328 * findvar.c (value_of_register): Rework in terms of
3329 value_of_register_lazy.
3330
40b91786
MB
33312013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3332
3333 * symfile.c (add_symbol_file_command): Remove trailing
3334 whitespaces and blank line after comment.
3335
6eed1678
PA
33362013-09-05 Pedro Alves <palves@redhat.com>
3337
3338 * tui/tui-regs.c (tui_register_format): Don't look at the
3339 register's name here. Return string representing register
3340 value instead of storing it in the data element.
3341 (tui_get_register): Compare register string representations
3342 instead of register value states and contents.
3343
8eb6bda2
PA
33442013-09-05 Pedro Alves <palves@redhat.com>
3345
3346 PR tui/15933
3347 * tui/tui-regs.c (tui_show_registers): Show registers of the
3348 selected frame, not the current frame.
3349
48b1f08c
RW
33502013-09-05 Ricard Wanderlof <ricardw@axis.com>
3351
3352 * MAINTAINERS (Write After Approval): Add myself to the list.
3353
89e63ee4
DE
33542013-09-04 Doug Evans <dje@google.com>
3355
3356 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3357 (queue_and_load_dwo_tu): New function.
3358 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3359 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3360 Make dependent_cu optional.
3361 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3362 and an older .gdb_index is in use, queue and load all its TUs too.
3363
492c0ab7
JK
33642013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3365
3366 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3367 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3368 variable search_flags.
3369 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3370 (OPF_RETURN_REALPATH): ... here.
3371 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3372 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3373 call. Twice.
3374 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3375 openp call.
3376 * solib.c (solib_find): Likewise. Four times.
3377 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3378 in the function comment and for the realpath_fptr variable.
3379 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3380 (find_and_open_source): Likewise. Twice.
3381 * symfile.c (symfile_bfd_open): Likewise, also twice.
3382
23a44de8
DE
33832013-09-04 Doug Evans <dje@google.com>
3384
3385 * progspace.c (save_current_space_and_thread): Remove unnecessary
3386 call to save_current_inferior.
3387
47061676
AB
33882013-09-04 Andrew Burgess <aburgess@broadcom.com>
3389
3390 * sh64-tdep.c (sh64_do_register): Return after printing message
3391 about unavailable register contents.
3392
41dc8db8
MB
33932013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3394 Pedro Alves <palves@redhat.com>
3395
3396 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3397 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3398 options and collapse into single conditional branch.
41dc8db8 3399
07107ca6
LM
34002013-09-03 Luis Machado <lgustavo@codesourcery.com>
3401
a7ea61cf 3402 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3403 detach_fork.
3404 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3405 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3406 * inferior.h (detach_fork): Remove.
3407 * infrun.c (detach_fork): Adjust comment and make it
3408 static.
3409 (follow_fork): Pass detach_fork parameter to
3410 target_follow_fork.
3411 * linux-nat.c (linux_child_follow_fork): New parameter
3412 detach_fork.
3413 * target.c (target_follow_fork): New parameter detach_fork.
3414 Pass detach_fork as parameter and print its value.
3415 * target.h (struct target_ops) <to_follow_fork>: New int
3416 parameter.
3417 (target_follow_fork): New parameter detach_fork.
3418
3bec2768
JB
34192013-09-03 Joel Brobecker <brobecker@adacore.com>
3420
3421 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3422 Replace sec->bfd by sec->the_bfd_section->owner.
3423
c01cbb3d
YQ
34242013-09-03 Yao Qi <yao@codesourcery.com>
3425
3426 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3427 from linux_has_shared_address_space.
3428 (linux_has_shared_address_space): Call linux_is_uclinux.
3429 * linux-tdep.h (linux_is_uclinux): Declare.
3430 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3431 linux_is_uclinux.
3432
7b00db47
YQ
34332013-09-03 Yao Qi <yao@codesourcery.com>
3434
3435 * config/djgpp/fnchange.lst: Remove entry of
3436 i386-interix-nat.c and i386-interix-tdep.c.
3437 * configure.ac: Remove '*-*-interix*'.
3438 * configure: Re-generated.
3439 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3440 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3441 obsolete comments.
3442 * osabi.c (gdb_osabi_names): Remove "Interix".
3443
0f9741f2
YQ
34442013-09-03 Yao Qi <yao@codesourcery.com>
3445
3446 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3447
1e038f67
MM
34482013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3449
3450 * record.h (record_print_flag) <record_print_src_line,
3451 record_print_insn_range>: Rename into ...
3452 (record_print_flag) <record_print_src_line,
3453 record_print_insn_range>: ... this. Update all users.
3454
9e52adf9
PM
34552013-09-02 Pierre Muller <muller@sourceware.org>
3456
3457 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3458 error code.
3459
a2388568
PM
34602013-09-02 Pierre Muller <muller@sourceware.org>
3461
3462 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3463 by use of plongest function.
3464
9058cc3a
TG
34652013-09-02 Tristan Gingold <gingold@adacore.com>
3466
3467 * NEWS: Add entry mentioning support for native Windows x64
3468 SEH data.
3469
3470 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3471 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3472 (struct amd64_windows_frame_cache): New struct.
3473 (amd64_windows_w2gdb_regnum): New global.
3474 (pc_in_range, amd64_windows_frame_decode_epilogue)
3475 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3476 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3477 (amd64_windows_frame_this_id): New functions.
3478 (amd64_windows_frame_unwind): New static global.
3479 (amd64_windows_skip_prologue): New function.
3480 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3481 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3482 with amd64_windows_skip_prologue.
3483
3161820b 34842013-08-30 Joel Brobecker <brobecker@adacore.com>
3485
3486 GDB 7.6.1 released.
3487
02457c76
PA
34882013-08-30 Pedro Alves <palves@redhat.com>
3489
3490 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3491 SRC_AND_LOC.
3492
e0162910
PA
34932013-08-30 Pedro Alves <palves@redhat.com>
3494
3495 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3496 warning text.
3497
6391ce51
PA
34982013-08-30 Pedro Alves <palves@redhat.com>
3499
3500 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3501 Adjust arguments to print_stack_frame.
3502
d1da0587
PA
35032013-08-30 Pedro Alves <palves@redhat.com>
3504
3505 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3506
adfd8245
PA
35072013-08-30 Pedro Alves <palves@redhat.com>
3508
3509 * frame.h (show_and_print_stack_frame): Delete declaration.
3510
96d9056e
PM
35112013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3512
3513 PR python/15461
96d9056e
PM
3514 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3515 (archpy_name): Check for valid architecture.
3516 (archpy_disassemble): Ditto.
3517
11cb8762
JB
35182013-08-29 Joel Brobecker <brobecker@adacore.com>
3519
3520 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3521 instead of "long long" in call to ptrace64.
3522
1af12a7d
AB
35232013-08-29 Andrew Burgess <aburgess@broadcom.com>
3524
3525 * mi/mi-interp.c (mi_command_loop): Change signature to match
3526 interp_command_loop_ftype.
3527 (mi1_command_loop): Remove.
3528 (mi2_command_loop): Remove.
3529 (mi3_command_loop): Remove.
3530 (mi_interpreter_resume): Remove setting of
3531 deprecated_command_loop_hook.
3532 (_initialize_mi_interp): Set mi_command_loop as the command loop
3533 callback.
3534
acc900c2
SA
35352013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3536
3537 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3538 value_type.
3539
548b762d
SA
35402013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3541
3542 * value.c (allocate_value_contents): Make static.
3543 * value.h (allocate_value_contents): Remove prototype.
3544
08039c9e
SA
35452013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3546
3547 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3548 of assembling value via allocate_value_lazy and attribute setter.
3549 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3550 assembling value via allocate_value_lazy and attribute setter.
3551 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3552 assembling value via allocate_value_lazy and attribute setter.
3553
314c7de9
SA
35542013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3555
3556 * value.c (value_from_contents_and_address): Replace allocate_value and
3557 memcpy with value_from_contents.
3558
8f28f522
PM
35592013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3560
3561 * python/py-framefilter.c (py_print_frame): Remove usage of
3562 PyString_AsString. Use python_string_to_host_string instead.
3563 Refactor function to work with a string as a new allocation
3564 instead of a pointer.
3565 (py_print_frame): Ditto.
3566 * python/lib/gdb/frames.py (return_list): Cain iterators together
3567 instead of adding them as a list.
3568 (_sort_list): Call return_list, and remove duplicate code.
3569 (execute_frame_filters): Convert iterator to a list with list().
3570 * python/lib/gdb/command/frame_filters.py
3571 (SetFrameFilterPriority._set_filter_priority): Convert priority
3572 attribute to an integer.
3573 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3574 wrapper function __next__.
3575 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3576 define as "str".
3577
8ee002df
PM
35782013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3579
3580 PR python/15752
8ee002df
PM
3581 * python/py-framefilter.c (apply_frame_filter): Check
3582 gdb_python_initialized. Exit if the Python frame-filter code
3583 cannot be initialized.
3584
af4c453a
PM
35852013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3586
3587 PR cli/15842
af4c453a
PM
3588 * top.c (print_gdb_version): Remove erroneous newline after help
3589 text.
3590
bf8793bb
YQ
35912013-08-29 Yao Qi <yao@codesourcery.com>
3592
3593 * varobj.c (install_dynamic_child): Remove trailing space.
3594 Add one blank line after variable declaration.
3595
1f0c4988
JK
35962013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3597
3598 PR gdb/15415
3599 * corefile.c (get_exec_file): Use exec_filename.
3600 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3601 * exec.c (exec_close): Free EXEC_FILENAME.
3602 (exec_file_attach): New variable canonical_pathname. Use
3603 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3604 EXEC_FILENAME.
3605 * exec.h (exec_filename): New.
3606 * inferior.c (print_inferior, inferior_command): Use
3607 PSPACE_EXEC_FILENAME.
3608 * mi/mi-main.c (print_one_inferior): Likewise.
3609 * progspace.c (clone_program_space, print_program_space): Likewise.
3610 * progspace.h (struct program_space): New field pspace_exec_filename.
3611 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3612 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3613
59ee9f94
WN
36142013-08-28 Will Newton <will.newton@linaro.org>
3615
3616 * common/linux-ptrace.c: Include stdint.h unconditionally.
3617
c8a2a419
JK
36182013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 Code cleanup.
3621 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3622
ffa4ac95
YQ
36232013-08-28 Yao Qi <yao@codesourcery.com>
3624 Pedro Alves <palves@redhat.com>
3625
3626 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3627 instead of stdio_fileopen.
3628 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3629 .Call stderr_fileopen instead of stdio_fileopen.
3630 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3631 [__MINGW32__] (stderr_file_fputs): New function.
3632 (stderr_fileopen): New function.
3633 * ui-file.h (stderr_fileopen): Declare.
3634
69d751e3
DE
36352013-08-27 Doug Evans <dje@google.com>
3636
3637 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3638 (struct dwarf2_per_cu_data): Ditto.
3639 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3640 (process_imported_unit_die): Ditto.
3641 (follow_die_sig_1): Simplify assert.
3642
44f38867
PA
36432013-08-27 Pedro Alves <palves@redhat.com>
3644
3645 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3646 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3647 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3648 windows_xfer_memory directly.
3649 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3650
d28d46b5
PA
36512013-08-27 Pedro Alves <palves@redhat.com>
3652
3653 * darwin-nat.c (darwin_xfer_memory): Delete.
3654 (_initialize_darwin_inferior): Don't install a
3655 deprecated_xfer_memory method.
3656
6211c335
YQ
36572013-08-27 Pedro Alves <pedro@codesourcery.com>
3658 Yao Qi <yao@codesourcery.com>
3659
3660 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3661 (parse_no_frames_option): Remove.
3662 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3663 (mi_cmd_stack_list_args): Adjust.
3664 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3665 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3666 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3667 Caller update.
3668 (list_args_or_locals): New parameter 'skip_unavailable'.
3669 Handle it.
3670 * valprint.c (scalar_type_p): Rename to ...
3671 (val_print_scalar_type_p): ... this. Make extern.
3672 (val_print, value_check_printable): Adjust.
3673 * valprint.h (val_print_scalar_type_p): Declare.
3674 * value.c (value_entirely_unavailable): New function.
3675 * value.h (value_entirely_unavailable): Declare.
3676
3677 * NEWS: Mention the new option "--skip-unavailable" to MI
3678 commands '-stack-list-locals', '-stack-list-arguments' and
3679 '-stack-list-variables'.
3680
242f1fd7
YQ
36812013-08-27 Yao Qi <yao@codesourcery.com>
3682
3683 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3684 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3685 options.
3686 * mi/mi-getopt.c (mi_getopt): Remove.
3687 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3688 'error_on_unknown'.
3689 (mi_getopt): Call mi_getopt_1.
3690 (mi_getopt_silent): New.
3691 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3692
260b681b
DE
36932013-08-26 Doug Evans <dje@google.com>
3694
779bd270
DE
3695 PR symtab/15885
3696 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3697 .gdb_index is in use.
3698 * symfile.c (reread_symbols): Reset objfile->sf.
3699
52e260a3
DE
3700 * NEWS: Document "mt print objfiles" now takes optional regexp.
3701 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3702 regexp of objfiles to print.
3703 (_initialize_symmisc): Update doc string for "mt print objfiles".
3704
260b681b
DE
3705 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3706 missing debug info checks.
3707
a85c52f2
UW
37082013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3709 Ulrich Weigand <uweigand@de.ibm.com>
3710
3711 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3712 line tables generated by XLC compiled binaries.
3713
4f00dda3
DE
37142013-08-23 Doug Evans <dje@google.com>
3715
db68bbae
DE
3716 * symmisc.c (dump_symtab): Delete prototype.
3717 (dump_msymbols, dump_objfile): Ditto.
3718 (maintenance_info_symtabs): Mark as dont_repeat.
3719 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3720
4f00dda3
DE
3721 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3722 debugging printf to better location.
3723
23d577b0
PA
37242013-08-23 Pedro Alves <palves@redhat.com>
3725
3726 * target.c (target_read_live_memory): Change type of 'ret' local
3727 to LONGEST.
3728
00d84524
PA
37292013-08-23 Pedro Alves <palves@redhat.com>
3730
3731 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3732 (remote_read_bytes): Change return type to LONGEST, and adjust to
3733 return a target_xfer_error on error.
3734 (remote_xfer_memory): Delete.
3735 (remote_flash_write): Change type of 'ret' local to LONGEST.
3736 (remote_xfer_partial, remote_xfer_partial): Adjust.
3737 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3738
1ed3ee94
PM
37392013-08-23 Pierre Muller <muller@sourceware.org>
3740
3741 ARI fix: Push # directives to start of line.
3742 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3743
9eaabc75
MW
37442013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3745
3746 PR gdb/15501
3747 * breakpoint.c (enable_command, disable_command): Iterate over
3748 all specified breakpoint locations.
3749
101158d9
LM
37502013-08-22 Luis Machado <lgustavo@codesourcery.com>
3751
3752 * common/linux-ptrace.c (linux_fork_to_function): Push #
3753 directives to the start of the line.
3754 (linux_check_ptrace_features): Fix warning message to use
3755 the "_" markup.
3756
96d7229d
LM
37572013-08-22 Luis Machado <lgustavo@codesourcery.com>
3758
3759 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3760 nat/linux-waitpid.h.
3761 (linux-waitpid.o): New object file rule.
3762 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3763 (current_ptrace_options): Moved from linux-nat.c.
3764 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3765 parameters.
3766 (linux_fork_to_function): New function.
3767 (linux_grandchild_function): Likewise.
3768 (linux_child_function): Likewise.
3769 (linux_check_ptrace_features): New function, heavily
3770 based on linux-nat.c:linux_test_for_tracefork.
3771 (linux_enable_event_reporting): New function.
3772 (ptrace_supports_feature): Likewise.
3773 (linux_supports_tracefork): Likewise.
3774 (linux_supports_traceclone): Likewise.
3775 (linux_supports_tracevforkdone): Likewise.
3776 (linux_supports_tracesysgood): Likewise.
3777 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3778 gdbserver/linux-low.c.
3779 (linux_enable_event_reporting): New declaration.
3780 (linux_supports_tracefork): Likewise.
3781 (linux_supports_traceclone): Likewise.
3782 (linux_supports_tracevforkdone): Likewise.
3783 (linux_supports_tracesysgood): Likewise.
3784 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3785 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3786 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3787 * config/arm/linux.mh (NATDEPFILES): Likewise.
3788 * config/i386/linux.mh (NATDEPFILES): Likewise.
3789 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3790 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3791 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3792 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3793 * config/mips/linux.mh (NATDEPFILES): Likewise.
3794 * config/pa/linux.mh (NATDEPFILES): Likewise..
3795 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3796 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3797 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3798 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3799 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3800 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3801 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3802 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3803 ptrace's 4th argument's types.
3804 Check the type of PTRACE_TYPE_ARG4.
3805 * configure: Regenerate.
3806 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3807 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3808 (linux_supports_tracefork_flag): Remove.
3809 (linux_supports_tracesysgood_flag): Likewise.
3810 (linux_supports_tracevforkdone_flag): Likewise.
3811 (current_ptrace_options): Moved to
3812 common/linux-ptrace.c.
3813 (linux_tracefork_child): Remove.
3814 (my_waitpid): Remove.
3815 (linux_test_for_tracefork): Renamed to
3816 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3817 (linux_test_for_tracesysgood): Remove.
3818 (linux_supports_tracesysgood): Remove.
3819 (linux_supports_tracefork): Remove.
3820 (linux_supports_tracevforkdone): Remove.
3821 (linux_enable_tracesysgood): Remove.
3822 (linux_enable_event_reporting): Remove.
3823 (linux_init_ptrace): New function.
3824 (linux_child_post_attach): Call linux_init_ptrace.
3825 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3826 (linux_child_follow_fork): Call linux_supports_tracefork
3827 and linux_supports_tracevforkdone.
3828 (linux_child_insert_fork_catchpoint): Call
3829 linux_supports_tracefork.
3830 (linux_child_insert_vfork_catchpoint): Likewise.
3831 (linux_child_set_syscall_catchpoint): Call
3832 linux_supports_tracesysgood.
3833 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3834 * nat/linux-nat.h: New file.
3835 * nat/linux-waitpid.c: New file.
3836 * nat/linux-waitpid.h: New file.
3837
9f948660
SDJ
38382013-08-22 Samuel Bronson <naesten@gmail.com>
3839
3840 ARM Linux support for `catch syscall'.
3841 * syscalls/arm-linux.py: New file.
3842 * syscalls/arm-linux.xml: Likewise.
3843 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3844 (arm_linux_init_abi): Register the new function and syscall xml file.
3845 * data-directory/Makefile.in: Install the new syscall xml file.
3846 * NEWS: Brag about this.
3847
6be7b56e
PA
38482013-08-22 Pedro Alves <palves@redhat.com>
3849
3850 PR gdb/15871
3851 * corefile.c (target_xfer_memory_error): New function.
3852 (memory_error): Defer EIO to target_memory_error.
3853 (read_memory): Use target_xfer_partial, and handle finer-grained
3854 target xfer errors.
3855 * target.c (target_xfer_error_to_string): New function.
3856 (memory_xfer_partial_1): If memory is known to be
3857 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3858 (target_xfer_partial): Make extern.
3859 * target.h (enum target_xfer_error): New enum.
3860 (target_xfer_error_to_string): Declare function.
3861 (target_xfer_partial): Declare function.
3862 (struct target_ops) <xfer_partial>: Adjust describing comment.
3863
bcbec14e
AM
38642013-08-22 Alan Modra <amodra@gmail.com>
3865
3866 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3867 * configure.tgt: Likewise as targets.
3868
fc474241
DE
38692013-08-20 Doug Evans <dje@google.com>
3870
3871 * buildsym.c (subfile_stack): Move here from buildsym.h.
3872 (pending_macros): Ditto.
3873 (get_macro_table): New function.
3874 (buildsym_init): Initialize subfile_stack.
3875 * coffread.c (type_vector,type_vector_length): Moved here from
3876 buildsym.h.
3877 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3878 (coff_symtab_read): Use it.
3879 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3880 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3881 with call to get_macro_table.
3882 * stabsread.c (type_vector,type_vector_length): Moved here from
3883 buildsym.h.
3884 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3885 * buildsym.h (get_macro_table): Declare.
3886
bec71544
TT
38872013-08-20 Tom Tromey <tromey@redhat.com>
3888
3889 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3890 Update.
3891 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3892
0002ad5f
DE
38932013-08-20 Doug Evans <dje@google.com>
3894
3895 * blockframe.c: Remove #include "psymtab.h".
3896 * cp-support.c: Ditto.
3897 * source.c: Ditto.
3898 * stack.c: Ditto.
3899
df302446
TT
39002013-08-20 Tom Tromey <tromey@redhat.com>
3901
3902 PR python/15816:
3903 * exceptions.h (return_mask): Now an enum.
3904 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3905 enum constants.
3906
df6d5441
TT
39072013-08-20 Tom Tromey <tromey@redhat.com>
3908
3909 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3910 get_objfile_arch.
3911 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3912 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3913 * jit.c (jit_object_close_impl): Update.
3914 * jv-lang.c (get_dynamics_objfile): Update.
3915 * linespec.c (add_minsym): Use get_dynamics_objfile.
3916 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3917 (allocate_objfile): Don't initialize 'gdbarch' field.
3918 (get_objfile_arch): Update.
3919 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3920 moved from...
3921 (struct objfile) <gdbarch>: ... here. Remove.
3922 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3923 get_objfile_arch.
3924 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3925
f5aee5ee
AM
39262013-08-20 Alan Modra <amodra@gmail.com>
3927
3928 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3929 for IBM long double nan and inf.
3930 (floatformat_is_negative, floatformat_classify,
3931 floatformat_mantissa): Similarly.
3932 (floatformat_ieee_single, floatformat_ieee_double,
3933 floatformat_ieee_quad, floatformat_arm_ext,
3934 floatformat_ia64_spill): Delete unused vars.
3935 (_initialize_doublest): Delete unused function.
3936 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3937 little-endian variants of floatformat_ibm_long_double.
3938
33b60d58 39392013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3940
33b60d58
LM
3941 * Makefile.in (SFILES): Remove common/target-common.c and
3942 add target/waitstatus.c.
3943 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3944 target/resume.h, target/wait.h and target/waitstatus.h.
3945 (COMMON_OBS): Remove target-common.o and add
3946 waitstatus.o.
3947 (target-common.o): Remove.
3948 (waitstatus.o): New target object file.
3949 * common/target-common.c: Move contents to
3950 target/waitstatus.c and remove.
3951 * common/target-common.h: Move contents to other files and
3952 remove.
3953 (enum resume_kind: Move to target/resume.h.
3954 (TARGET_WNOHANG): Move to target/wait.h.
3955 (enum target_waitkind): Move to target/waitstatus.h.
3956 (struct target_waitstatus): Likewise.
3957 * target.h: Do not include target-common.h and
3958 include target/resume.h, target/wait.h and
3959 target/waitstatus.h.
3960 * target/resume.h: New file.
3961 * target/wait.h: New file.
3962 * target/waitstatus.h: New file.
3963 * target/waitstatus.c: New file.
3964
12696c10
PA
39652013-08-19 Pedro Alves <palves@redhat.com>
3966
3967 * linux-nat.c (linux_test_for_tracefork)
3968 (linux_test_for_tracesysgood, linux_child_follow_fork)
3969 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3970 (linux_nat_wait_1): Extend comment.
3971 (linux_async_pipe): Add comment.
3972
ba89f962
KB
39732013-08-15 Kevin Buettner <kevinb@redhat.com>
3974
3975 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3976 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3977 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3978 Update to account for fact that PC is now a pseudo-register.
3979 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3980 cases for RL78_PC_REGNUM.
3981
35ab155d
MB
39822013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3983
3984 PR cli/15841
3985 * top.c (quit_force): Skip writing history file
3986 if input is not from terminal.
3987
0d031856
TT
39882013-08-14 Tom Tromey <tromey@redhat.com>
3989
3990 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3991 resultthreadlist>: New fields.
3992 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3993 (remote_get_threadlist, remote_threadlist_iterator): Use
3994 new fields. Remove static variables.
3995
ee154bee
TT
39962013-08-14 Tom Tromey <tromey@redhat.com>
3997
3998 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3999 remote_watch_data_address>: New fields.
4000 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4001 (process_stop_reply, remote_wait_as)
4002 (remote_check_watch_resources, remote_stopped_data_address): Update.
4003
88b496c3
TT
40042013-08-14 Tom Tromey <tromey@redhat.com>
4005
4006 * remote.c (struct remote_state) <async_client_callback,
4007 async_client_context>: New fields.
4008 (async_client_callback, async_client_context): Remove.
4009 (remote_async_serial_handler, remote_async): Update.
4010
2f65bcb7
TT
40112013-08-14 Tom Tromey <tromey@redhat.com>
4012
4013 * remote.c (sizeof_pkt): Remove.
4014 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4015
b80fafe3
TT
40162013-08-14 Tom Tromey <tromey@redhat.com>
4017
4018 * remote.c (struct remote_state) <use_threadinfo_query,
4019 use_threadextra_query>: New fields.
4020 (remote_threads_info, remote_threads_extra_info)
4021 (remote_open_1): Update.
4022
8e88304f
TT
40232013-08-14 Tom Tromey <tromey@redhat.com>
4024
4025 * remote.c (struct remote_state) <finished_object,
4026 finished_annex, finished_offset>: New fields.
4027 (remote_read_qxfer): Use remote_state fields; remove static
4028 variables.
4029
280ceea3
TT
40302013-08-14 Tom Tromey <tromey@redhat.com>
4031
4032 * remote.c (struct remote_state) <last_sent_step>:
4033 New field.
4034 (last_sent_step): Remove.
4035 (remote_resume, remote_wait_as): Update.
4036
b73be471
TT
40372013-08-14 Tom Tromey <tromey@redhat.com>
4038
4039 * remote.c (struct remote_state) <last_sent_signal>:
4040 New field.
4041 (last_sent_signal): Remove.
4042 (new_remote_state, remote_resume, remote_wait_as): Update.
4043
5e4a05c4
TT
40442013-08-14 Tom Tromey <tromey@redhat.com>
4045
4046 * remote.c (struct remote_state) <last_program_signals_packet>:
4047 New field.
4048 (last_program_signals_packet): Remove.
4049 (remote_program_signals, remote_open_1): Update.
4050
747dc59d
TT
40512013-08-14 Tom Tromey <tromey@redhat.com>
4052
4053 * remote.c (struct remote_state) <last_pass_packet>:
4054 New field.
4055 (last_pass_packet): Remove.
4056 (remote_pass_signals, remote_open_1): Update.
4057
262e1174
TT
40582013-08-14 Tom Tromey <tromey@redhat.com>
4059
4060 * remote.c (struct remote_state) <remote_traceframe_number>:
4061 New field.
4062 (remote_traceframe_number): Remove.
4063 (new_remote_state, remote_open_1, set_remote_traceframe)
4064 (remote_trace_find): Update.
4065
47f8a51d
TT
40662013-08-14 Tom Tromey <tromey@redhat.com>
4067
4068 * remote.c (struct remote_state) <general_thread, continue_thread>:
4069 New fields.
4070 (general_thread, continue_thread): Remove.
4071 (record_currthread, set_thread, set_general_process)
4072 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4073 (extended_remote_mourn_1): Update.
4074
5d93a237
TT
40752013-08-14 Tom Tromey <tromey@redhat.com>
4076
4077 * remote.c (struct remote_state) <remote_desc>: New field.
4078 (remote_desc): Remove.
4079 (remote_threads_info, remote_threads_extra_info, remote_close)
4080 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4081 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4082 (remote_hostio_send_command, remote_file_put, remote_file_get)
4083 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4084 (remote_async, remote_new_objfile, set_range_stepping): Update.
4085
cf792862
TT
40862013-08-14 Tom Tromey <tromey@redhat.com>
4087
4088 * remote.c (remote_state): Now a pointer.
4089 (get_remote_state_raw): Update.
4090 (new_remote_state): New function.
4091 (_initialize_remote): Use new_remote_state.
4092
dc473cfb
TT
40932013-08-14 Tom Tromey <tromey@redhat.com>
4094
4095 * remote.c (remote_protocol_features): Now const.
4096
85ec6ce7
TT
40972013-08-14 Tom Tromey <tromey@redhat.com>
4098
4099 * remote.c (crc32_table, crc32): Remove.
4100 (remote_verify_memory): Use xcrc32.
4101
73033f12
SDJ
41022013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4103
4104 * value.h (create_internalvar_type_lazy): Adjust prototype
4105 declaration.
4106
5c30d39a
AB
41072013-08-13 Andrew Burgess <aburgess@broadcom.com>
4108
4109 * common/format.c (parse_format_string): Don't allow '#' flag for
4110 pointer arguments in format string.
4111
1a66331e
PM
41122013-08-13 Pierre Muller <muller@sourceware.org>
4113
fde605f3 4114 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4115 if rl_get_screen_size did not return useful values.
4116
b4013987
AA
41172013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4118
4119 PR breakpoints/15117
4120 * linespec.c (linespec_parse_basic): Check for convenience
4121 variable or history value while parsing.
4122
959b6a66
SDJ
41232013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4124
4125 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4126 AVR.
4127 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4128 different signals between the generic Linux kernel implementation
4129 and AVR's.
4130 (avr_linux_gdb_signal_from_target): Delete.
4131 (avr_linux_gdb_signal_to_target): Delete.
4132 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4133
24a55014
DE
41342013-08-09 Doug Evans <dje@google.com>
4135
4136 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4137 entries.
4138
eb14d406
SDJ
41392013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4140
4141 * linux-tdep.c: Define enum with generic signal numbers.
4142 (linux_gdb_signal_from_target): New function.
4143 (linux_gdb_signal_to_target): Likewise.
4144 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4145 methods to the functions above.
4146 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4147 (linux_gdb_signal_to_target): Likewise.
4148 * alpha-linux-tdep.c: Define new enum with signals different
4149 from generic Linux kernel.
4150 (alpha_linux_gdb_signal_from_target): New function.
4151 (alpha_linux_gdb_signal_to_target): Likewise.
4152 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4153 with the functions mentioned above.
4154 * avr-tdep.c: Define enum with differences between Linux kernel
4155 and AVR signals.
4156 (avr_linux_gdb_signal_from_target): New function.
4157 (avr_linux_gdb_signal_to_target): Likewise.
4158 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4159 the functions mentioned above.
4160 * sparc-linux-tdep.c: Define enum with differences between SPARC
4161 and generic Linux kernel signal numbers.
4162 (sparc32_linux_gdb_signal_from_target): New function.
4163 (sparc32_linux_gdb_signal_to_target): Likewise.
4164 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4165 to the functions defined above.
4166 * xtensa-linux-tdep.c: Define enum with differences between
4167 Xtensa and Linux kernel generic signals.
4168 (xtensa_linux_gdb_signal_from_target): New function.
4169 (xtensa_linux_gdb_signal_to_target): Likewise.
4170 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4171 to the functions defined above.
4172 * mips-linux-tdep.c: Define enum with differences between
4173 signals in MIPS and Linux kernel generic ones.
4174 (mips_gdb_signal_to_target): New function.
4175 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4176 only different signals from the Linux kernel generic.
4177 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4178 the functions defined above.
4179 * mips-linux-tdep.h (enum mips_signals): Remove.
4180
156d08c8
PA
41812013-08-09 Pedro Alves <palves@redhat.com>
4182
4183 * avr-tdep.c (XMALLOC): Delete macro.
4184 * cli/cli-dump.c (XMALLOC): Delete macro.
4185
db229724
PA
41862013-08-09 Pedro Alves <palves@redhat.com>
4187
4188 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4189 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4190 (fopen_with_cleanup, add_dump_command): Make static.
4191 * cli/cli-dump.h: Delete file.
4192 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4193 cli/cli-dump.h.
4194
3f12a589
PA
41952013-08-09 Pedro Alves <palves@redhat.com>
4196
4197 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4198 error message.
4199
c718be47
PA
42002013-08-09 Pedro Alves <palves@redhat.com>
4201
156d08c8 4202 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4203 error message.
4204
1e351ed1
PA
42052013-08-09 Pedro Alves <palves@redhat.com>
4206
4207 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4208 (gcore_command): Use tilde_expand here, and when showing the
4209 filename to the user, show the expanded version.
4210
1ed8d800
YQ
42112013-08-09 Yao Qi <yao@codesourcery.com>
4212
4213 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4214 'entryval' is set.
4215
47ecca85
PA
42162013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4217
4218 * gcore.c (create_gcore_bfd): Use tilde_expand.
4219
82a0a75f
YQ
42202013-08-08 Yao Qi <yao@codesourcery.com>
4221
4222 * frame.h (read_frame_local): Declare.
4223 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4224 read_frame_local.
4225 * stack.c (read_frame_local): New.
4226
5c4aa40b
YQ
42272013-08-08 Yao Qi <yao@codesourcery.com>
4228
4229 * mi/mi-cmd-stack.c: Update comments to function
4230 list_args_or_locals.
4231
b93601f3
TT
42322013-08-07 Tom Tromey <tromey@redhat.com>
4233
4234 PR symtab/15028:
4235 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4236 (process_psymtab_comp_unit_reader): Use it.
4237 (process_psymtab_comp_unit): Update. Add "pretend_language"
4238 argument.
4239 (dwarf2_build_psymtabs_hard): Update.
4240 (scan_partial_symbols): Pass CU's language to
4241 process_psymtab_comp_unit.
4242
fa760f46
TT
42432013-08-07 Tom Tromey <tromey@redhat.com>
4244
4245 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4246 (dwarf2_gdb_index_functions): Update.
4247 * psymtab.c (find_symbol_file_from_partial): Remove.
4248 (psym_functions): Update.
4249 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4250 Remove.
4251
bf6d8a91
TT
42522013-08-07 Tom Tromey <tromey@redhat.com>
4253
4254 * symfile.c (set_initial_language): Look up "main" symbol
4255 and use its language.
4256 * symtab.c (find_main_filename): Remove.
4257 * symtab.h (find_main_filename): Remove.
4258
f9125b6c
TT
42592013-08-07 Tom Tromey <tromey@redhat.com>
4260
4261 * dwarf2read.c (recursively_compute_inclusions): Add
4262 "immediate_parent" argument. Set symtab's "user" field
4263 if not set.
4264 (compute_symtab_includes): Update.
4265
fdbb204b
TT
42662013-08-07 Tom Tromey <tromey@redhat.com>
4267
4268 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4269 when adding label symbols.
4270
49de1690
UW
42712013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4272 Ulrich Weigand <uweigand@de.ibm.com>
4273
4274 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4275 * configure.host (powerpc64-*-aix*): Likewise.
4276
b08ee99f
UW
42772013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4278 Ulrich Weigand <uweigand@de.ibm.com>
4279
4280 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4281 is defined.
4282 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4283 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4284 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4285 * configure.ac: Check for ptrace64.
4286 * configure, config.in: Regenerate.
4287
fecf803e
UW
42882013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4289 Ulrich Weigand <uweigand@de.ibm.com>
4290
4291 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4292 Call ptrace64 instead of ptrace if defined.
4293 Add macro addr_ptr to take care of ptrace address argument.
4294 (pdc_read_regs): Likewise.
4295 (pdc_write_regs): Likewise.
4296 (aix_thread_resume): Likewise.
4297 (fetch_regs_kernel_thread): Likewise.
4298 (store_regs_kernel_thread): Likewise.
4299
3bb5e4a8
AB
43002013-08-07 Anton Blanchard <anton@samba.org>
4301
4302 * MAINTAINERS: Add myself to Write After Approval.
4303
12070676
TT
43042013-08-05 Tom Tromey <tromey@redhat.com>
4305
4306 * aix-thread.c (_initialize_aix_thread): Use
4307 complete_target_initialization.
4308 * bsd-uthread.c (_initialize_bsd_uthread): Use
4309 complete_target_initialization.
4310 * dec-thread.c (_initialize_dec_thread): Use
4311 complete_target_initialization.
4312 * ravenscar-thread.c (_initialize_ravenscar): Use
4313 complete_target_initialization.
4314 * sol-thread.c (_initialize_sol_thread): Use
4315 complete_target_initialization.
4316 * spu-multiarch.c (_initialize_spu_multiarch): Use
4317 complete_target_initialization.
4318
7c7b6655
TT
43192013-08-05 Tom Tromey <tromey@redhat.com>
4320
4321 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4322 * ada-lang.c (ada_lookup_simple_minsym): Return
4323 bound_minimal_symbol.
4324 * ada-lang.h (ada_lookup_simple_minsym): Update.
4325 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4326 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4327 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4328 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4329 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4330 * minsyms.c (msymbol_objfile): Remove.
4331 (lookup_minimal_symbol_internal): New function, from
4332 lookup_minimal_symbol.
4333 (lookup_minimal_symbol): Rewrite using
4334 lookup_minimal_symbol_internal.
4335 (lookup_bound_minimal_symbol): New function.
4336 * minsyms.h (msymbol_objfile): Remove.
4337 (lookup_bound_minimal_symbol): Declare.
4338 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4339 * parse.c (write_exp_msymbol): Change parameter to a
4340 bound_minimal_symbol.
4341 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4342 * parser-defs.h (write_exp_msymbol): Update.
4343 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4344 * symfile.c (simple_read_overlay_table): Use
4345 lookup_bound_minimal_symbol.
4346 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4347 (search_symbols): Likewise.
4348 (print_msymbol_info): Take a bound_minimal_symbol argument.
4349 (symtab_symbol_info, rbreak_command): Update.
4350 * symtab.h (struct symbol_search) <msymbol>: Change type
4351 to bound_minimal_symbol.
4352 * valops.c (find_function_in_inferior): Use
4353 lookup_bound_minimal_symbol.
4354 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4355
934b9bac
JK
43562013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4357
4358 Code cleanup.
4359 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4360 to ...
4361 (async_cleanup_sigint_signal_handler): ... this.
4362 (initialize_sigint_signal_handler): Remove declaration.
4363 (handle_remote_sigint): Rename the declaration to ...
4364 (async_handle_remote_sigint): ... this.
4365 (handle_remote_sigint_twice): Rename the declaration to ...
4366 (async_handle_remote_sigint_twice): ... this.
4367 (async_remote_interrupt, async_remote_interrupt_twice)
4368 (remote_interrupt): Remove the declarations.
4369 (remote_interrupt_twice): Rename the declaration ...
4370 (sync_remote_interrupt_twice): ... this.
4371 (sigint_remote_twice_token): Rename the variable to ...
4372 (async_sigint_remote_twice_token): ... this.
4373 (sigint_remote_token): Rename the variable to ...
4374 (async_sigint_remote_token): ... this.
4375 (initialize_sigint_signal_handler): Rename the function to ...
4376 (async_initialize_sigint_signal_handler): ... this. Update the name
4377 inside.
4378 (handle_remote_sigint): Rename the function to ...
4379 (async_handle_remote_sigint): ... this. Update the names inside.
4380 (handle_remote_sigint_twice): Rename the function to ...
4381 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4382 (cleanup_sigint_signal_handler): Rename the function to ...
4383 (async_cleanup_sigint_signal_handler): ... this.
4384 (remote_interrupt): Rename the function to ...
4385 (sync_remote_interrupt): this. Update the names inside.
4386 (remote_interrupt_twice): Rename the function to ...
4387 (sync_remote_interrupt_twice): this. Update the names inside.
4388 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4389 (_initialize_remote): Update the names inside.
4390
3a1115a0
TT
43912013-08-02 Tom Tromey <tromey@redhat.com>
4392
4393 PR symtab/15719:
4394 * breakpoint.c (update_watchpoint, watchpoint_check)
4395 (watch_command_1): Update.
4396 * eval.c (fetch_subexp_value): Add "preserve_errors"
4397 parameter.
4398 * ppc-linux-nat.c (check_condition): Update.
4399 * value.h (fetch_subexp_value): Update.
4400
58b19776
AB
44012013-08-02 Andrew Burgess <aburgess@broadcom.com>
4402
4403 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4404 add_file_handler.
4405
ec94af83
DE
44062013-08-01 Doug Evans <dje@google.com>
4407
7ee85ab1
DE
4408 PR symtab/15691
4409 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4410 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4411 Add assert of sig_entry->dwo_unit == NULL.
4412 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4413 had already been read.
4414 (read_signatured_type): Set per_cu.tu_read.
4415
b846d303
DE
4416 PR symtab/15695
4417 * valops.c (value_struct_elt): Add missing call to check_typedef.
4418 (value_find_oload_method_list): Ditto.
4419
b52109bc
DE
4420 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4421 effectively, struct symbol_search **.
4422 (make_cleanup_free_search_symbols): Change arg to struct
4423 symbol_search **. All callers updated.
4424 (compare_search_syms): Compare symtab file name and block as well.
4425 (search_symbols_equal): New function.
4426 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4427 New args new_head, new_tail. Result is now void. Remove dups after
4428 sorting the symbols.
4429 (search_symbols): Sort all found symbols once, after all have been
4430 found, and remove duplicates. Simplify cleanup tracking of result.
4431 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4432
ec94af83
DE
4433 Further workarounds for binutils/15021.
4434 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4435 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4436 Watch for duplicate symtabs coming from type units.
4437 (compute_symtab_includes): Update call to
4438 recursively_compute_inclusions. Build vector of included symtabs
4439 instead of per_cus.
4440 * symtab.h (symtab_ptr): New typedef.
4441 (DEF_VEC_P (symtab_ptr)): New VEC type.
4442 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4443 instead.
4444
b2ae85cf
AB
44452013-08-01 Andrew Burgess <aburgess@broadcom.com>
4446
4447 * cli/cli-script.c (script_from_file): Remove use of
4448 error_pre_print.
4449 * main.c (captured_main): Remove use of error_pre_print and
4450 quit_pre_print.
4451 * utils.c (error_pre_print, quit_pre_print): Remove.
4452 * utils.h (error_pre_print, quit_pre_print): Likewise.
4453
645eab03
YQ
44542013-08-01 Yao Qi <yao@codesourcery.com>
4455
4456 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4457 with mi_getopt.
4458 (mi_cmd_stack_list_variables): Likewise.
4459
16f92dd4
AB
44602013-07-31 Andrew Burgess <aburgess@broadcom.com>
4461
4462 * exceptions.c (deprecated_throw_reason): Remove.
4463 * exceptions.h (deprecated_throw_reason): Remove.
4464
13f78033
AB
44652013-07-31 Andrew Burgess <aburgess@broadcom.com>
4466
4467 * remote-mips.c (mips_error): Replace use of
4468 deprecated_throw_reason with throw_verror. Use the error message
4469 passed to mips_error as the error message for throw_verror.
4470
039e3c22
AB
44712013-07-31 Andrew Burgess <aburgess@broadcom.com>
4472
4473 * monitor.c (monitor_interrupt_query): Replace use of
4474 deprecated_throw_reason with quit.
4475 * nto-procfs.c (interrupt_query): Likewise.
4476 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4477 * remote-mips.c (mips_kill): Likewise.
4478 * remote.c (interrupt_query): Likewise.
4479
8150913b
AB
44802013-07-31 Andrew Burgess <aburgess@broadcom.com>
4481
4482 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4483 with call to fatal.
4484
de74e63a
YQ
44852013-07-31 Pedro Alves <pedro@codesourcery.com>
4486 Yao Qi <yao@codesourcery.com>
4487
4488 * tracepoint.c (trace_dump_command): Select the current frame.
4489
247f5c4f
DE
44902013-07-30 Doug Evans <dje@google.com>
4491
4492 * dwarf2read.c (process_queue): Add type signature to debug output.
4493
11b4b7cc
AB
44942013-07-30 Andrew Burgess <aburgess@broadcom.com>
4495
4496 * value.c (value_fetch_lazy): Mark optimized out values as such
4497 rather than raising an error.
4498
b0c54aa5
AB
44992013-07-30 Andrew Burgess <aburgess@broadcom.com>
4500
4501 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4502 before checking which bits of the parent, not the child, value are
4503 valid.
4504
97c85fc6
MB
45052013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4506
4507 PR gdb/15715
4508 * top.c: Include "filenames.h".
4509 (set_history_filename): New function.
4510 (init_main): Install it as set hook of the "set history filename"
4511 command.
4512
ff39bb5e
SA
45132013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4514
4515 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4516 attribute parameter.
4517 (dwarf2_const_value_data): Constify struct attribute parameter.
4518 (dwarf2_const_value): Constify struct attribute parameter.
4519 (dwarf2_const_value_attr): Constify struct attribute parameter.
4520 (lookup_die_type): Constify struct attribute parameter.
4521 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4522 (follow_die_ref_or_sig): Constify struct attribute parameter.
4523 (follow_die_ref): Constify struct attribute parameter.
4524 (follow_die_sig): Constify struct attribute parameter.
4525 (get_DW_AT_signature_type): Constify struct attribute parameter.
4526 (get_type_unit_group): Constify struct attribute parameter.
4527 (fill_in_loclist_baton): Constify struct attribute parameter.
4528 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4529 (type_unit_group): Constify struct attribute parameter.
4530
6e5a29e1
SA
45312013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4532
4533 * dwarf2read.c (attr_form_is_block): Make argument const.
4534 (attr_form_is_section_offset): Make argument const.
4535 (attr_form_is_constant): Make argument const.
4536 (attr_form_is_ref): Make argument const.
4537
7771576e
SA
45382013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4539
4540 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4541 All uses updated.
4542 (attr_form_is_ref): Moved below attr_form_is_constant.
4543
a94e8645
DE
45442013-07-29 Doug Evans <dje@google.com>
4545
bb5291d0
DE
4546 * main.c (captured_command_loop): Tweak comment.
4547
b5419e49
DE
4548 * target.c (target_async_permitted_1): Fix comment.
4549
b2d23133
DE
4550 * symtab.c (iterate_over_some_symtabs): Add comment.
4551
a94e8645
DE
4552 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4553
7a60ad40
YQ
45542013-07-27 Yao Qi <yao@codesourcery.com>
4555
4556 * NEWS: Mention that GDBserver now supports hardware
4557 watchpoints on the MIPS GNU/Linux target.
4558
aaee2056
YQ
45592013-07-27 Yao Qi <yao@codesourcery.com>
4560
4561 * Makefile.in (HFILES_NO_SRCDIR): Add
4562 common/mips-linux-watch.h.
4563 (mips-linux-watch.o): New rule.
4564 * common/mips-linux-watch.c: New.
4565 * common/mips-linux-watch.h: New.
4566 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4567 * mips-linux-nat.c: Include mips-linux-watch.h.
4568 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4569 to common/mips-linux-watch.h.
4570 (MAX_DEBUG_REGISTER): Likewise.
4571 (enum pt_watch_style): Likewise.
4572 (struct mips32_watch_regs): Likewise.
4573 (struct mips64_watch_regs): Likewise.
4574 (struct pt_watch_regs): Likewise.
4575 (struct mips_watchpoint): Likewise.
4576 (mips_linux_watch_get_irw_mask): Move to
4577 common/mips-linux-watch.c.
4578 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4579 (mips_linux_watch_get_watchlo): Likewise.
4580 (mips_linux_watch_set_watchlo): Likewise.
4581 (mips_linux_watch_get_watchhi): Likewise.
4582 (mips_linux_watch_set_watchhi): Likewise.
4583 (mips_linux_read_watch_registers): Likewise.
4584 (mips_linux_watch_type_to_irw): Likewise.
4585 (mips_linux_stopped_data_address, fill_mask): Likewise.
4586 (mips_linux_watch_try_one_watch): Likewise.
4587 (mips_linux_watch_populate_regs): Likewise.
4588
b3436450
YQ
45892013-07-27 Yao Qi <yao@codesourcery.com>
4590
4591 * mips-linux-nat.c (get_irw_mask): Rename to ...
4592 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4593 'set' to 'n'. Update function comment. All callers changed.
4594 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4595 function comment. All callers changed.
4596 (get_num_valid): Rename to ...
4597 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4598 'set' to 'n'. Update function comment. All callers changed.
4599 (get_watchlo): Rename to ...
4600 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4601 'set' to 'n'. Update function comment. All callers changed.
4602 (set_watchlo): Rename to ...
4603 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4604 'set' to 'n'. Update function comment. All callers changed.
4605 (get_watchhi): Rename to ...
4606 (mips_linux_watch_get_watchhi): ... this. Update function
4607 comment. All callers changed.
4608 (set_watchhi): Rename to ...
4609 (mips_linux_watch_set_watchhi): ... this. Update function
4610 comment. All callers changed.
4611 (mips_linux_read_watch_registers): Update function comment.
4612 Add new parameters 'lwpid', 'watch_readback', and
4613 'watch_readback_valid'. Update.
4614 (type_to_irw): Rename to ...
4615 (mips_linux_watch_type_to_irw): ... this. Update function
4616 comment. All callers changed.
4617 (fill_mask): Update function comment.
4618 (try_one_watch): Rename to ...
4619 (mips_linux_watch_try_one_watch): ... this. Change the type
4620 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4621 (populate_regs_from_watches): Rename to ...
4622 (mips_linux_watch_populate_regs): ... this. Add parameter
4623 'current_watches'. All callers changed.
4624
9be14b81
YQ
46252013-07-27 Yao Qi <yao@codesourcery.com>
4626
4627 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4628 the code.
4629 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4630 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4631 (struct pt_watch_regs): Likewise.
4632 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4633 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4634 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4635 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4636 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4637
de6f69ad
YQ
46382013-07-27 Yao Qi <yao@codesourcery.com>
4639
4640 * breakpoint.h: Include break-common.h.
4641 (enum target_hw_bp_type): Move to ...
4642 * common/break-common.h: ... here. New.
4643
6f64ef53
PA
46442013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4645
4646 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4647 process group regardless of having tty on stdin.
4648
6107e809
DE
46492013-07-25 Doug Evans <dje@google.com>
4650
4651 * linux-fork.h (detach_fork): Delete.
4652
7fdc1521
TT
46532013-07-25 Tom Tromey <tromey@redhat.com>
4654
4655 PR remote/15256, PR remote/15266:
4656 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4657 * monitor.c (monitor_detach): Use unpush_target.
4658 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4659 * remote-mips.c (mips_detach): Use unpush_target. Don't
4660 call mips_close.
4661 * remote-sim.c (gdbsim_detach): Use unpush_target.
4662 * target.c (pop_target): Remove.
4663 (pop_all_targets_above): Don't call target_close.
4664 (target_close): Assert that the target is unpushed.
4665 * target.h (pop_target): Don't declare.
4666 * tracepoint.c (tfile_open): Use unpush_target.
4667
c22a2b88
TT
46682013-07-25 Tom Tromey <tromey@redhat.com>
4669
4670 * linux-thread-db.c (init_thread_db_ops): Call
4671 complete_target_initialization.
4672 (_initialize_thread_db): Don't call add_target.
4673 * target.c (complete_target_initialization): New function.
4674 (add_target_with_completer): Call it.
4675 * target.h (complete_target_initialization): Declare.
4676
cbb6aada
MK
46772013-07-25 Mark Kettenis <kettenis@gnu.org>
4678
4679 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4680 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4681 (HPPANBSD_SIZEOF_GREGS): New define.
4682 (hppaobsd_supply_gregset): Handle additional registers.
4683 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4684 we provide more registers now.
4685 (hppabsd_supply_gregset): Supply additional registers.
4686 (hppabsd_collect_gregset): Collect additional registers.
4687
17767988
MK
46882013-07-25 Mark Kettenis <kettenis@gnu.org>
4689
4690 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4691 (hppabsd_dwarf2_frame_init_reg): New function.
4692 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4693
fdc8aae8
AB
46942013-07-25 Andrew Burgess <aburgess@broadcom.com>
4695
4696 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4697 'z' format code. Remove error for optimized out values, standard
4698 code will handle these fine.
4699
6fbe845e
AB
47002013-07-25 Andrew Burgess <aburgess@broadcom.com>
4701
4702 * NEWS: Mention new 'z' formatter.
4703 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4704 (_initialize_printcmd): Mention 'z' formatter in help text of the
4705 'x' command.
4706
3373342d
MR
47072013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4708
4709 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4710 formatting.
4711
25f9533e
SDJ
47122013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4713
4714 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4715 interface can evaluate arguments. Fallback to the old mode if it
4716 cannot.
4717 (create_exception_master_breakpoint): Likewise.
4718 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4719 (struct sym_probe_fns elf_probe_fns): Export function above to the
4720 probe interface.
4721 * probe.c (can_evaluate_probe_arguments): New function.
4722 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4723 function pointer.
4724 (can_evaluate_probe_arguments): New function prototype.
4725 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4726 probe interface can evaluate arguments. Fallback to the old mode
4727 if it cannot.
4728 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4729 interface can evaluate arguments. Warning the user if it cannot.
4730 (stap_can_evaluate_probe_arguments): New function.
4731 (struct probe_ops stap_probe_ops): Export function above to the
4732 probe interface.
4733 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4734 New function pointer.
4735
3360c0bf
LM
47362013-07-24 Luis Machado <lgustavo@codesourcery.com>
4737
4738 * Makefile.in (SFILES): Add common/target-common.c.
4739 Add common/target-common.h to headers.
4740 (COMMON_OBS): Add target-common.o.
4741 (target-common.o): New target.
4742 * linux-nat.h (resume_kind): Move to common/target-common.h.
4743 * target.c (target_waitstatus_to_string): Move to
4744 common/target-common.c.
4745 * target.h: Include target-common.h.
4746 (target_waitkind): Move to common/target-common.h.
4747 (target_waitstatus): Likewise.
4748 (TARGET_WNOHANG): Likewise.
4749 * common/target-common.c: New file.
4750 * common/target-common.h: New file.
4751
6656a72d
DE
47522013-07-24 Doug Evans <dje@google.com>
4753
4754 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4755 a warning.
4756
6df81a63
YQ
47572013-07-23 Yao Qi <yao@codesourcery.com>
4758
4759 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4760 parameter 'gdbarch'.
4761 (i386_stack_tramp_frame_sniffer): Caller update.
4762 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4763 parameter 'gdbarch' and 'target'.
4764 (i386_linux_core_read_description): Caller update.
4765 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4766 Likewise.
4767 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4768 declaration.
4769
365156ad
TT
47702013-07-23 Tom Tromey <tromey@redhat.com>
4771
4772 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4773 2013-07-22.
4774
046ac79f
JK
47752013-07-22 Doug Evans <dje@google.com>
4776
4777 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4778 * exec.c (exec_close): Update call to remove_target_sections.
4779 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4780 * solib.c (update_solib_list): Ditto.
4781 (reload_shared_libraries_1): Ditto.
4782 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4783 * target.h (struct target_section): Rename key to owner.
4784 All uses updated.
046ac79f 4785
29b2cc46
TT
47862013-07-22 Tom Tromey <tromey@redhat.com>
4787
4788 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4789
d1160018
TT
47902013-07-22 Tom Tromey <tromey@redhat.com>
4791
4792 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4793 Simplify cleanup handling.
4794
2f324bf6
TT
47952013-07-22 Tom Tromey <tromey@redhat.com>
4796
4797 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4798 on all return paths.
4799
e23b9d6e
UW
48002013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4801
4802 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4803 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4804 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4805
1cf55f60
PM
48062013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4807
4808 * top.c (print_gdb_version): Add help, apropos description and
4809 url to online documentation.
4810
fa876972
HZ
48112013-07-19 Hui Zhu <hui@codesourcery.com>
4812
4813 PR gdb/15692
4814 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4815
1527aea8
YQ
48162013-07-19 Yao Qi <yao@codesourcery.com>
4817
4818 * target.c (update_current_target): Change the default action
4819 of 'to_traceframe_info' from tcomplain to return_zero.
4820 * target.h (struct target_ops) <to_traceframe_info>: Add more
4821 comments.
4822 * valops.c (read_value_memory): Call
4823 traceframe_available_memory unconditionally.
4824
886f230e
YQ
48252013-07-18 Yao Qi <yao@codesourcery.com>
4826
4827 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4828 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4829 symbol without prefix. If found, set its type to
4830 'mst_solib_trampoline'.
4831
16419bae
DE
48322013-07-17 Doug Evans <dje@google.com>
4833
e7045703
DE
4834 * NEWS: Mention "set print raw frame-arguments".
4835 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4836 * stack.c (print_raw_frame_arguments): New static global.
4837 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4838 (_initialize_stack): New command "set/show print raw frame-arguments".
4839 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4840 (set_print_raw, show_print_raw): New functions.
4841 (_initialize_valprint): New prefix command "set/show print raw".
4842 * valprint.h (value_print_options): Improve comments.
4843
453e48a5
DE
4844 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4845 of all *list variables.
4846
16419bae
DE
4847 * gdbcmd.h (togglelist): Delete.
4848 * cli/cli-cmds.c (togglelist): Delete.
4849 (init_cmd_lists): Update.
4850 * cli/cli-cmds.h (togglelist): Delete.
4851
626f2d1c
TT
48522013-07-17 Tom Tromey <tromey@redhat.com>
4853
4854 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4855 dwarf2_per_objfile.
4856
57e6060e
DE
48572013-07-16 Doug Evans <dje@google.com>
4858
4859 * nto-tdep.c (nto_relocate_section_addresses): Update,
4860 target_section.bfd deleted.
4861 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4862 * s390-tdep.c (s390_load): Ditto.
4863 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4864
5ea5559b
AB
48652013-07-16 Andrew Burgess <aburgess@broadcom.com>
4866
4867 * common/format.c (parse_format_string): Add checks for NULL
4868 character before calling strchr.
4869
2b2848e2
DE
48702013-07-16 Doug Evans <dje@google.com>
4871
2c571006
DE
4872 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4873 temp_pathname argument.
4874 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4875 when opening the file fails.
4876
2b2848e2
DE
4877 * target.h (struct target_section): Delete member bfd.
4878 All users updated to use the_bfd_section->owner instead.
4879 * exec.c (add_to_section_table): Assert bfd is expected value.
4880 Remove initialization of target_section.bfd.
4881 (remove_target_sections): Update.
4882 (section_table_available_memory): Update.
4883 (section_table_xfer_memory_partial): Update.
4884 (print_section_info): Update.
4885 (exec_set_section_address): Update.
4886 * record-full.c (record_full_core_xfer_partial): Update.
4887 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4888 * solib-target.c (solib_target_relocate_section_addresses): Update.
4889 * symfile.c (build_section_addr_info_from_section_table): Update.
4890 * target.c (memory_xfer_live_readonly_partial): Update.
4891 (memory_xfer_partial_1): Update.
4892
926bf92d
UW
48932013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4894
4895 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4896 now available for embedded (BookE) and server (BookS) processors,
4897 correct mentions of 'booke' and adjust comments accordingly in order to
4898 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4899 (have_ptrace_booke_interface): Rename function and variable
4900 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4901 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4902 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4903 'hwdebug_point_cmp'. Update all uses.
4904 (booke_find_thread_points_by_tid): Rename function
4905 'booke_find_thread_points_by_tid' to
4906 'hwdebug_find_thread_points_by_tid'. Update all uses.
4907 (booke_insert_point): Rename function 'booke_insert_point' to
4908 'hwdebug_insert_point'. Update all uses.
4909 (booke_remove_point): Rename function 'booke_remove_point' to
4910 'hwdebug_remove_point'. Update all uses.
4911
d929bc19
MR
49122013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4913
4914 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4915 numbers with enum values.
4916
054e8d9e
AA
49172013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4918
4919 PR threads/13217
4920 * thread.c (thread_apply_all_command): Check for valid threads
4921 and thread count.
4922 (thread_array_cleanup): New struct.
4923 (set_thread_refcount): New function.
4924
cf006359
AB
49252013-07-11 Andrew Burgess <aburgess@broadcom.com>
4926
4927 * infcmd.c (default_print_one_register_info): Reuse function
4928 print_hex_chars.
4929
94e36acc
TT
49302013-07-10 Tom Tromey <tromey@redhat.com>
4931
4932 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4933 (ada-exp.o): New target.
4934
915dd369
SDJ
49352013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4936
4937 * mt-tdep.c (mt_registers_info): Call
4938 get_no_prettyformat_print_options instead of
4939 get_raw_print_options (regression by last patch from Doug
4940 Evans).
4941
eca07816
JB
49422013-07-09 Pedro Alves <palves@redhat.com>
4943
4944 Checked in by Joel Brobecker <brobecker@adacore.com>.
4945 * ada-lang.c (coerce_unspec_val_to_type): Use
4946 value_optimized_out_const.
4947 * value.c (value_optimized_out_const): New function.
4948 * value.h (value_optimized_out_const): New declaration.
4949
2a998fc0
DE
49502013-07-09 Doug Evans <dje@google.com>
4951
4952 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4953 Enum values rename as well. All uses updated.
4954 * valprint.h (value_print_options): Rename member pretty to
4955 pretty format. Rename member prettyprint_arrays to
4956 prettyformat_arrays. Rename member prettyprint_structs to
4957 prettyformat_structs. All uses updated.
4958 (get_no_prettyformat_print_options): Renamed from
4959 get_raw_print_options.
4960 * valprint.c (get_no_prettyformat_print_options): Renamed from
4961 get_raw_print_options. All callers updated.
4962 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4963 All callers updated.
4964 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4965 All callers updated.
4966 (_initialize_valprint): Improve help text for "set print pretty" and
4967 "set print arrays".
4968
466c1fca
AB
49692013-07-09 Andrew Burgess <aburgess@broadcom.com>
4970
4971 * value.c (value_bits_valid): Revert previous change, and change
4972 by Pedro on 2013-07-04, due to regressions in
4973 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4974
ad0f0303
AB
49752013-07-08 Andrew Burgess <aburgess@broadcom.com>
4976 Pedro Alves <palves@redhat.com>
4977
4978 * value.c (value_bits_valid): If the value is not lval_computed
4979 or has no check validity handler then the answer is the
4980 optimized_out flag, otherwise defer to the handler.
4981
b187bec1
EZ
49822013-07-06 Eli Zaretskii <eliz@gnu.org>
4983
48d1d6f5
EZ
4984 * top.c (print_gdb_configuration): Explain in output of
4985 --configuration what does "relocatable" mean.
4986
b187bec1
EZ
4987 * main.c (print_gdb_help): Regroup options in the --help text.
4988 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4989 the relevant discussions.
4990
52d361e1
YQ
49912013-07-06 Yao Qi <yao@codesourcery.com>
4992
4993 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4994 Remove parameter 'lsal'.
4995 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4996 to inner block. Caller update.
4997 (base_breakpoint_create_breakpoints_sal): Update.
4998 (bkpt_create_breakpoints_sal): Likewise.
4999 (tracepoint_create_breakpoints_sal): Likewise.
5000 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5001 element 0 of vector 'canonical->sals'.
5002
e1ec1b42
LM
50032013-07-05 Luis Machado <lgustavo@codesourcery.com>
5004
5005 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5006 register number instead of the pseudo register one.
5007 (rs6000_dwarf2_reg_to_regnum): Likewise.
5008
7195e6f0
PA
50092013-07-04 Pedro Alves <palves@redhat.com>
5010
5011 * findvar.c (value_of_register): Use allocate_optimized_out_value
5012 if the register has been optimized out, instead of
5013 set_value_optimized_out.
5014 * frame-unwind.c (frame_unwind_got_optimized): Use
5015 allocate_optimized_out_value.
5016
58722cac
PA
50172013-07-04 Pedro Alves <palves@redhat.com>
5018
5019 * value.c (value_bits_valid): If the value is not lval_computed,
5020 or doesn't have a check_validity hook, assume the value is entirely
5021 valid.
5022
691a26f5
AB
50232013-07-04 Andrew Burgess <aburgess@broadcom.com>
5024
5025 * stack.c (read_frame_arg): No longer fetch lazy values.
5026 * value.c (value_optimized_out): If the value is not already
5027 marked optimized out, and is lazy then fetch it.
5028 (value_primitive_field): Move optimized out check to later in the
5029 function, after we have loaded any lazy values.
5030 (value_fetch_lazy): Use optimized out flag directly rather than
5031 calling optimized_out method.
5032
a58e2656
AB
50332013-07-04 Andrew Burgess <aburgess@broadcom.com>
5034
5035 * valops.c: Don't include "user-regs.h".
5036 (value_fetch_lazy): Moved to value.c.
5037 * value.c: Include "user-regs.h".
5038 (value_fetch_lazy): Moved from valops.c.
5039
bd885420
YQ
50402013-07-04 Yao Qi <yao@codesourcery.com>
5041
5042 Revert:
5043 2013-06-27 Yao Qi <yao@codesourcery.com>
5044
5045 * common/create-version.sh: Update comments. Handle the case
5046 that TARGET_ALIAS is empty.
5047
17ef446e
PA
50482013-07-03 Pedro Alves <palves@redhat.com>
5049
5050 * Makefile.in (config.status): Depend on development.sh.
5051 (aclocal_m4_deps): Add libmcheck.m4.
5052 * acinclude.m4: Include libmcheck.m4.
5053 * configure.ac: Source development.sh instead of setting
5054 'development' here. --enable-libmcheck/--disable-libmcheck code
5055 factored out to GDB_AC_LIBMCHECK. Run it.
5056 * development.sh: New file.
5057 * libmcheck.m4: New file.
5058 * configure: Regenerate.
5059
ac6dd50f
TT
50602013-07-02 Tom Tromey <tromey@redhat.com>
5061
5062 * contrib/ari/update-web-ari.sh: Update for version.in change.
5063
bd1df410
TT
50642013-07-02 Tom Tromey <tromey@redhat.com>
5065
5066 * common/ptid.h: Comment fixes.
5067
4db1a1dc
TT
50682013-07-01 Tom Tromey <tromey@redhat.com>
5069
5070 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5071 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5072 (dwarf2_read_index, create_all_comp_units): Update.
5073
dd9aa048
TT
50742013-07-01 Tom Tromey <tromey@redhat.com>
5075
5076 * configure.ac (build_warnings): Add -Wold-style-definition.
5077 * configure: Rebuild.
5078 * machoread.c (_initialize_machoread): Use "(void)".
5079 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5080 use "(void)".
5081
44d100c3
TT
50822013-07-01 Tom Tromey <tromey@redhat.com>
5083
5084 * configure.ac (build_warnings): Add -Wold-style-declaration.
5085 * configure: Rebuild.
5086 * dsrec.c (make_srec): Use "static const", not "const static".
5087 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5088 not "const static".
5089 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5090 Use "static const", not "const static".
5091 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5092 not "const static".
5093 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5094 not "const static".
5095 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5096 not "const static".
5097 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5098 not "const static".
5099 (v850_dbtrap_breakpoint_from_pc): Likewise.
5100 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5101 not "const static".
5102
2945b807
TT
51032013-07-01 Tom Tromey <tromey@redhat.com>
5104
5105 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5106 * configure: Rebuild.
5107
d8d2a3ee
PA
51082013-07-01 Pedro Alves <palves@redhat.com>
5109
5110 * defs.h: Include "pathmax.h".
5111 * utils.c: Don't include sys/param.h.
5112 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5113 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5114 instead of MAXPATHLEN.
5115 * solib-sunos.c: Don't include sys/param.h.
5116 * xcoffread.c: Don't include sys/param.h.
5117 * bsd-kvm.c: Don't include sys/param.h.
5118 * darwin-nat.c: Don't include sys/param.h.
5119 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5120 * darwin-nat-info.c: Don't include sys/param.h.
5121 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5122 MAXPATHLEN.
5123 * i386obsd-nat.c: Don't include sys/param.h.
5124 * inf-child.c: Don't include sys/param.h.
5125 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5126 * linux-fork.c: Don't include sys/param.h.
5127 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5128 * linux-nat.c: Don't include sys/param.h.
5129 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5130 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5131 * m68klinux-nat.c: Don't include sys/param.h.
5132 * nbsd-nat.c: Don't include sys/param.h.
5133 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5134 * ppc-linux-nat.c: Don't include sys/param.h.
5135 * rs6000-nat.c: Don't include sys/param.h.
5136 * spu-linux-nat.c. Don't include sys/param.h.
5137 * windows-nat.c: Don't include sys/param.h.
5138 * xtensa-linux-nat.c: Don't include sys/param.h.
5139 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5140
38ec2207
PA
51412013-07-01 Pedro Alves <palves@redhat.com>
5142
5143 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5144 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5145 * gnulib/aclocal.m4: Regenerate.
5146 * gnulib/config.in: Regenerate.
5147 * gnulib/configure: Regenerate.
5148 * gnulib/import/pathmax.h: New file.
5149 * gnulib/import/Makefile.am: Regenerate.
5150 * gnulib/import/Makefile.in: Regenerate.
5151 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5152 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5153 * gnulib/import/m4/pathmax.m4: New file.
5154
e655c1a2
PA
51552013-07-01 Pedro Alves <palves@redhat.com>
5156
5157 * configure.ac (GDBINIT): Define, depending on host.
5158 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5159 * top.c (PATH_MAX): Delete fallback definition.
5160 (GDBINIT_FILENAME): Delete.
5161 (gdbinit): Reimplement as const char array set to the GDBINIT
5162 string constant.
5163 * top.h (gdbinit): Make const.
5164 * configure, config.in: Regenerate.
5165
50dd9793
PA
51662013-07-01 Pedro Alves <palves@redhat.com>
5167
5168 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5169 * cli/cli-cmds.h (source_script): Likewise.
5170 * exceptions.c (catch_command_errors_const): New function.
5171 * exceptions.h (catch_command_errors_const): Declare.
5172 * main.c (get_init_files): Make parameters const, and adjust.
5173 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5174 'local_gdbinit' locals const. Adjust to use
5175 catch_command_errors_const.
5176 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5177 'local_gdbinit' locals const.
5178
bc7dea8d
PA
51792013-07-01 Pedro Alves <palves@redhat.com>
5180
5181 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5182 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5183 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5184 <unistd.h>.
5185
8839a007
PA
51862013-07-01 Pedro Alves <palves@redhat.com>
5187
5188 Import the "unistd" gnulib module.
5189 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5190 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5191 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5192 import/m4/unistd_h.m4.
5193 * gnulib/aclocal.m4: Renenerate.
5194 * gnulib/config.in: Renenerate.
5195 * gnulib/configure: Renenerate.
5196 * gnulib/import/Makefile.am: Renenerate.
5197 * gnulib/import/Makefile.in: Renenerate.
5198 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5199 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5200 * gnulib/import/m4/off_t.m4: New file.
5201 * gnulib/import/m4/ssize_t.m4: New file.
5202 * gnulib/import/m4/sys_types_h.m4: New file.
5203 * gnulib/import/m4/unistd_h.m4: New file.
5204 * gnulib/import/sys_types.in.h: New file.
5205 * gnulib/import/unistd.c: New file.
5206 * gnulib/import/unistd.in.h: New file.
5207
8c0da261
PA
52082013-07-01 Pedro Alves <palves@redhat.com>
5209
5210 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5211 defined instead of checking HAVE_UNISTD_H.
5212
3574124b
PA
52132013-07-01 Pedro Alves <palves@redhat.com>
5214
5215 Reimport gnulib from scratch.
5216 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5217 import/m4/onceonly.m4.
5218 * gnulib/aclocal.m4: Renegerate.
5219 * gnulib/config.in: Renegerate.
5220 * gnulib/configure: Renegerate.
5221 * gnulib/import/Makefile.in: Renegerate.
5222 * gnulib/import/extra/update-copyright: Renegerate.
5223 * gnulib/import/m4/onceonly.m4: Delete.
5224
702dc4fd
PA
52252013-07-01 Pedro Alves <palves@redhat.com>
5226
5227 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5228
47e1ce27
JK
52292013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5230
5231 Code cleanup.
5232 * remote.c (async_remote_interrupt_twice): Make it static.
5233 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5234
e82839d4
SDJ
52352013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5236
5237 * ia64-linux-tdep.c: Include <ctype.h>.
5238 (ia64_linux_stap_is_single_operand): New function.
5239 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5240
d6c2da54
TT
52412013-06-28 Tom Tromey <tromey@redhat.com>
5242
5243 * Makefile.in (version.c): Use version.in, not
5244 common/version.in.
5245 * common/create-version.sh: Likewise.
5246 * common/version.in: Move...
5247 * version.in: ...here.
5248
74da6f00
PA
52492013-06-28 Pedro Alves <palves@redhat.com>
5250
5251 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5252 here.
5253 * utils.h (pagination_enabled): Declare.
5254
d32dc48e
PA
52552013-06-28 Pedro Alves <palves@redhat.com>
5256
5257 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5258 Move higher up in file.
5259
0edd9e3b
TT
52602013-06-28 Tom Tromey <tromey@redhat.com>
5261
5262 * tracepoint.c (deprecated_readline_begin_hook)
5263 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5264 declare.
5265
4eb59108
PA
52662013-06-28 Pedro Alves <palves@redhat.com>
5267
5268 PR tui/14880
5269 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5270 checking if they're available.
5271 * value.c (value_available_contents_eq): Change comment.
5272 * value.h (value_available_contents_eq): Expand comment.
5273
97b17156
TT
52742013-06-27 Tom Tromey <tromey@redhat.com>
5275
5276 * target.c (find_run_target): Remove.
5277 * target.h (find_run_target): Remove.
5278
6a3bfc5c
TT
52792013-06-27 Tom Tromey <tromey@redhat.com>
5280
5281 * corelow.c (core_gdbarch): Now static.
5282
c9ef825d
TT
52832013-06-27 Tom Tromey <tromey@redhat.com>
5284
5285 * target.c (target_struct_index): Remove.
5286
e5823f1c
PA
52872013-06-27 Pedro Alves <palves@redhat.com>
5288
5289 * infrun.c: Remove comment describing the 'stepping over runtime
5290 loader dynamic symbol resolution code' mechanism; moved to
5291 gdbint.texinfo.
5292
97f8dd09
PA
52932013-06-27 Pedro Alves <palves@redhat.com>
5294
5295 * exceptions.c (catch_command_errors): Remove spurious space.
5296 * exceptions.h (catch_command_errors): Second parameter is "arg",
5297 not "command".
5298
02b1871e
YQ
52992013-06-27 Yao Qi <yao@codesourcery.com>
5300
5301 * common/create-version.sh: Update comments. Handle the case
5302 that TARGET_ALIAS is empty.
5303
bb1b1cf1
PA
53042013-06-26 Pedro Alves <palves@redhat.com>
5305
5306 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5307 comment.
5308
7b624e71
PA
53092013-06-26 Pedro Alves <palves@redhat.com>
5310
5311 * infrun.c: Update comments on stepping over runtime loader
5312 dynamic symbol resolution code.
5313
74e5a346
SDJ
53142013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5315
5316 * ax-gdb.h (union exp_element): Forward declare.
5317 * parser-defs.h: Include expression.h.
5318
a2fb2cee
MR
53192013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5320
5321 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5322
cdba14e0
DK
53232013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5324
5325 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5326
f30aa5af
DK
53272013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5328
5329 Fix trace-status to output proper start-time and stop-time.
5330 * tracepoint.c (trace_status_command): Fix type of printf arg to
5331 prevent improper type conversion.
5332 (trace_status_mi): Likewise.
5333
1aee363c
MR
53342013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5335
5336 * mips-tdep.c (mips_next_pc): Fix a typo.
5337
3356937a
MR
53382013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5339
5340 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5341
dc673c81
YQ
53422013-06-26 Pedro Alves <pedro@codesourcery.com>
5343 Yao Qi <yao@codesourcery.com>
5344
5345 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5346 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5347 * mi/mi-main.c (print_variable_or_computed): New function.
5348 (mi_cmd_trace_frame_collected): New function.
5349 * tracepoint.c (find_trace_state_variable_by_number): New.
5350 (struct traceframe_info): Move to tracepoint.h
5351 (struct collection_list): Likewise.
5352 (do_collect_symbol): Include locals and arguments in the
5353 collected variables list.
5354 (clear_collection_list): Clear wholly collected variables list
5355 and computed variables list.
5356 (append_exp): New function.
5357 (encode_actions_1): Include variables in the wholly
5358 collected variables list. Include memory ranges and
5359 full-fledged expressions in the computed expressions list.
5360 (encode_actions): Move some code to ...
5361 Return the cleanup chain.
5362 (encode_actions_rsp): ... here. New function.
5363 (get_traceframe_location, get_traceframe_info): Remove static.
5364 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5365 (struct collection_list): Moved from tracepoint.c. Add two
5366 new fields 'wholly_collected' and 'computed'.
5367 (find_trace_state_variable_by_number): Declare.
5368 (encode_actions): Adjust declaration.
5369 (encode_actions_rsp): Declare.
5370 (get_traceframe_info, get_traceframe_location): Declare.
5371
5372 * NEWS: Mention new MI command -trace-frame-collected.
5373
28a93511
YQ
53742013-06-26 Pedro Alves <pedro@codesourcery.com>
5375 Yao Qi <yao@codesourcery.com>
5376
5377 * ctf.c (ctf_traceframe_info): Push trace state variables
5378 present in the trace data into the traceframe info object.
5379 * breakpoint.c (DEF_VEC_I): Remove.
5380 * common/filestuff.c (DEF_VEC_I): Likewise.
5381 * dwarf2loc.c (DEF_VEC_I): Likewise.
5382 * mi/mi-main.c (DEF_VEC_I): Likewise.
5383 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5384 * features/traceframe-info.dtd: Add tvar element and its
5385 attributes.
5386 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5387 (build_traceframe_info): Push trace state variables present in
5388 the trace data into the traceframe info object.
5389 (traceframe_info_start_tvar): New function.
5390 (tvar_attributes): New.
5391 (traceframe_info_children): Add "tvar" element.
5392 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5393
5394 * NEWS: Mention the change in GDB and GDBserver.
5395
ddacd3c8
YQ
53962013-06-26 Pedro Alves <pedro@codesourcery.com>
5397 Yao Qi <yao@codesourcery.com>
5398
5399 * tracepoint.c (trace_dump_command): Move code to ...
5400 (get_traceframe_location): ... here. New.
5401
05796b35
YQ
54022013-06-26 Pedro Alves <pedro@codesourcery.com>
5403 Yao Qi <yao@codesourcery.com>
5404
5405 * tracepoint.c (trace_dump_command): GDB emits an error
5406 instead of a warning when a traceframe is not selected.
5407
cbfa3b61
YQ
54082013-06-26 Pedro Alves <pedro@codesourcery.com>
5409 Yao Qi <yao@codesourcery.com>
5410
5411 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5412 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5413 in collection_list.
5414 (do_clear_collection_list, init_collection_list): New.
5415 (encode_actions): Add local variables 'tracepoint_list' and
5416 'stepping_list'. Call init_collection_list and make cleanup
5417 which calls do_clear_collection_list. Don't call
5418 clear_collection_list.
5419 (_initialize_tracepoint): Delete references to
5420 'tracepoint_list' and 'stepping_list'.
5421
6e2048d3
TT
54222013-06-25 Tom Tromey <tromey@redhat.com>
5423
5424 * common/create-version.sh (date): Use "$", not "$$" in sed
5425 expression.
5426
42059f0e
KB
54272013-06-25 Kevin Buettner <kevinb@redhat.com>
5428
5429 * NEWS (New targets): Add entry for TI MSP430.
5430
a0743c90
YQ
54312013-06-25 Yao Qi <yao@codesourcery.com>
5432
5433 * remote.c (remote_start_remote): Move code to upload tsv
5434 earlier.
5435
9d6e6e84
HZ
54362013-06-25 Yao Qi <yao@codesourcery.com>
5437 Hui Zhu <hui@codesourcery.com>
5438 Pedro Alves <palves@redhat.com>
5439
5440 PR breakpoints/15075
5441 PR breakpoints/15434
5442 * breakpoint.c (bpstat_stop_status): Call
5443 b->ops->after_condition_true.
5444 (update_dprintf_command_list): Don't append "continue" command
5445 to the command list of dprintf breakpoint.
5446 (base_breakpoint_after_condition_true): New function.
5447 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5448 (dprintf_after_condition_true): New function.
5449 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5450 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5451
586cf749
KB
54522013-06-24 Kevin Buettner <kevinb@redhat.com>
5453
5454 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5455 (ALLDEPFILES): Add msp430-tdep.c.
5456 * configure.tgt (msp430*-*-elf): New target.
5457 * msp430-tdep.c: New file.
5458
1bbce132
MR
54592013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5460
5461 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5462 microMIPS synthetic symbols.
5463
3e5d3a5a
MR
54642013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5465
5466 * objfiles.h (pc_in_section): New prototype.
5467 (in_plt_section): Remove name argument, replace prototype with
5468 static inline function.
5469 * mips-tdep.h: Include "objfiles.h".
5470 (in_mips_stubs_section): New function.
5471 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5472 in_solib_call_trampoline member.
5473 (hppa_in_solib_call_trampoline): Remove name argument.
5474 * objfiles.c (pc_in_section): New function.
5475 (in_plt_section): Remove function.
5476 * mips-linux-tdep.c: Include "objfiles.h".
5477 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5478 name argument. Return 1 rather than the low 16-bit halfword of
5479 any instruction examined.
5480 (mips_linux_in_dynsym_resolve_code): Update
5481 mips_linux_in_dynsym_stub call accordingly.
5482 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5483 rather than an equivalent hand-coded sequence.
5484 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5485 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5486 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5487 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5488 in_opd_section.
5489 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5490 on call to tdep->in_solib_call_trampoline.
5491 (hppa_in_solib_call_trampoline): Remove name argument, update
5492 according to in_plt_section change.
5493 (hppa_skip_trampoline_code): Update according to in_plt_section
5494 change.
5495 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5496 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5497 Likewise.
5498 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5499 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5500 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5501 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5502 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5503 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5504 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5505 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5506 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5507 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5508 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5509 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5510 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5511
b9b26a16
JB
55122013-06-24 Joel Brobecker <brobecker@adacore.com>
5513
5514 * common/create-version.sh: Fix expansion of $host_alias
5515 and $target_alias in generation of HOST_NAME and TARGET_NAME
5516 (resp.).
5517
01208463
TT
55182013-06-24 Tom Tromey <tromey@redhat.com>
5519
5520 * common/create-version.sh: New file.
5521 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5522 create-version.sh.
5523 (HFILES_NO_SRCDIR): Use common/version.h.
5524 * version.in: Move to ...
5525 * common/version.in: ... here. Replace date with "DATE".
5526 * version.h: Move to ...
5527 * common/version.h: ... here.
5528
bb6b9a5e
JB
55292013-06-21 Joel Brobecker <brobecker@adacore.com>
5530
5531 * gdb/gnulib/Makefile.in: Update date in copyright header.
5532 * gdb/gnulib/configure.ac: Ditto.
5533 * gdb/gnulib/update-gnulib.sh: Ditto.
5534
c3b18ee7
JB
55352013-06-21 Joel Brobecker <brobecker@adacore.com>
5536
5537 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5538 "gdb/gnulib/import".
5539
85d3b769
WN
55402013-06-21 Will Newton <will.newton@linaro.org>
5541
5542 * doublest.c (ldfrexp): Remove function.
5543 (convert_doublest_to_floatformat): Call frexpl instead of
5544 ldfrexp.
5545
88b48903
WN
55462013-06-21 Will Newton <will.newton@linaro.org>
5547
5548 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5549 * gnulib/aclocal.m4: Regenerate.
5550 * gnulib/config.in: Regenerate.
5551 * gnulib/configure: Regenerate.
5552 * gnulib/import/Makefile.am: Update.
5553 * gnulib/import/Makefile.in: Update.
5554 * gnulib/import/m4/gnulib-cache.m4: Update.
5555 * gnulib/import/m4/gnulib-comp.m4: Update.
5556 * gnulib/import/float+.h: Import.
5557 * gnulib/import/float.c: Import.
5558 * gnulib/import/float.in.h: Import.
5559 * gnulib/import/fpucw.h: Import.
5560 * gnulib/import/frexp.c: Import.
5561 * gnulib/import/frexpl.c: Import.
5562 * gnulib/import/isnan.c: Import.
5563 * gnulib/import/isnand-nolibm.h: Import.
5564 * gnulib/import/isnand.c: Import.
5565 * gnulib/import/isnanl-nolibm.h: Import.
5566 * gnulib/import/isnanl.c: Import.
5567 * gnulib/import/itold.c: Import.
5568 * gnulib/import/m4/exponentd.m4: Import.
5569 * gnulib/import/m4/exponentl.m4: Import.
5570 * gnulib/import/m4/float_h.m4: Import.
5571 * gnulib/import/m4/fpieee.m4: Import.
5572 * gnulib/import/m4/frexp.m4: Import.
5573 * gnulib/import/m4/frexpl.m4: Import.
5574 * gnulib/import/m4/isnand.m4: Import.
5575 * gnulib/import/m4/isnanl.m4: Import.
5576 * gnulib/import/m4/math_h.m4: Import.
5577 * gnulib/import/math.c: Import.
5578 * gnulib/import/math.in.h: Import.
5579
4353c9e6
JK
55802013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5581
5582 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5583 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5584 signature_INTEL_edx comparisons.
5585
e3e06db3
DE
55862013-06-20 Doug Evans <dje@google.com>
5587
6ac97d4c
DE
5588 symtab/15652
5589 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5590 All callers updated.
5591 (open_dwp_file): If we can't find the dwp file, search the basename
5592 in debug-file-directory.
5593
93417882
DE
5594 * dwarf2read.c (struct dwp_file): Fix comment.
5595 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5596
e3e06db3
DE
5597 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5598 better.
5599
0878d0fa
YQ
56002013-06-20 Yao Qi <yao@codesourcery.com>
5601
5602 * breakpoint.c (create_breakpoint): Fix code indentation.
5603
023fa29b
YQ
56042013-06-20 Yao Qi <yao@codesourcery.com>
5605
5606 * breakpoint.c (create_breakpoints_sal_default): Remove
5607 parameter 'lsal'. Update declaration.
5608 (bkpt_create_breakpoints_sal): Caller update.
5609 (tracepoint_create_breakpoints_sal): Likewise.
5610
c898adb7
YQ
56112013-06-20 Pedro Alves <pedro@codesourcery.com>
5612 Yao Qi <yao@codesourcery.com>
5613
5614 * NEWS: Mention the new option '--skip-unavailable' of command
5615 -data-list-register-values.
5616 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5617 --skip-unavailable option. Adjust to use output_register.
5618 (output_register): Add new 'skip_unavailable' parameter.
5619 Handle it.
5620
4d157a3d
MF
56212013-06-19 Mike Frysinger <vapier@gentoo.org>
5622
5623 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5624 common/i386-gcc-cpuid.h.
5625 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5626 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5627 Copy the latest version from upstream gcc.
5628 * common/linux-btrace.c: Include i386-cpuid.h.
5629 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5630 call to i386_cpuid.
5631 (cpu_supports_btrace): Likewise.
5632 * go32-nat.c: Include i386-cpuid.h.
5633 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5634
1ce4db08
DE
56352013-06-19 Doug Evans <dje@google.com>
5636
5637 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5638 (get_section_index): Ditto.
5639
0e4777df
TT
56402013-06-19 Tom Tromey <tromey@redhat.com>
5641
5642 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5643 "dprintf" help.
5644
3190f0c6
DE
56452013-06-18 Doug Evans <dje@google.com>
5646
5647 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5648 before using it.
5649 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5650 Move test of cu_index closer to use. Print complaint if cu_index
5651 is bad.
5652
8b89a20a
JB
56532013-06-18 Joel Brobecker <brobecker@adacore.com>
5654
5655 * machoread.c (oso_vector): Delete this global.
5656 (macho_register_oso): Add new parameter "oso_vector_ptr".
5657 Use it instead of the "oso_vector" global.
5658 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5659 (macho_symfile_read): Use a local oso_vector, to be free'ed
5660 at the end of this function, in place of the old "oso_vector"
5661 global. Update various function calls accordingly. Use one
5662 single cleanup chain for the entire function.
5663
59b0c7c1
JB
56642013-06-18 Joel Brobecker <brobecker@adacore.com>
5665
937c708c 5666 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5667 DWARF2_PER_OBJFILE by uses of DATA instead.
5668
427cd150
TT
56692013-06-18 Tom Tromey <tromey@redhat.com>
5670
5671 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5672 argument.
5673 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5674 Special case signals other than GDB_SIGNAL_TRAP.
5675 (explains_signal_watchpoint): New function.
5676 (base_breakpoint_explains_signal): Add 'sig' argument.
5677 (initialize_breakpoint_ops): Set 'explains_signal' method for
5678 watchpoints.
5679 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5680 signal argument.
5681 (bpstat_explains_signal): Likewise.
5682 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5683
2d57700b
TT
56842013-06-18 Tom Tromey <tromey@redhat.com>
5685
5686 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5687
ac475191
TT
56882013-06-18 Tom Tromey <tromey@redhat.com>
5689
5690 * python/python.c (finish_python_initialization): Decref
5691 'pythondir' on failure path as well.
5692
5bd1ef56
TT
56932013-06-18 Tom Tromey <tromey@redhat.com>
5694
5695 PR symtab/15391:
5696 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5697 after taking bits_to_skip into account. Sign extend byte_offset.
5698 * utils.h (gdb_sign_extend): Declare.
5699 * utils.c (gdb_sign_extend): New function.
5700
92fac807
JK
57012013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5702
5703 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5704
2d503272
PM
57052013-06-17 Pierre Muller <muller@sourceware.org>
5706
5707 * corelow.c (core_open): Print GDB signal name instead of target
5708 signal number.
5709
6916fd98
MF
57102013-06-17 Mike Frysinger <vapier@gentoo.org>
5711
5712 * .gitignore: Add /gcore.
5713
9c02c129
DE
57142013-06-13 Doug Evans <dje@google.com>
5715
5716 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5717 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5718
d0548fa2
PM
57192013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5720
5721 * stack.c (backtrace_command_1): Fix indentation.
5722
22128028
JB
57232013-06-11 Joel Brobecker <brobecker@adacore.com>
5724
5725 * window-nat.c (thread_rec): Add missing empty line after
5726 local variable declaration.
5727
2ed3e009
JB
57282013-06-11 Joel Brobecker <brobecker@adacore.com>
5729
5730 * windows-nat.c (thread_rec): Revert format used to print
5731 error code returned by SuspendThread from %d back to %u.
5732
0c3d84be
JB
57332013-06-11 Joel Brobecker <brobecker@adacore.com>
5734
5735 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5736 ID in debug trace.
5737 (get_windows_debug_event): Likewise, for all debug traces.
5738
80e88e1a
JB
57392013-06-11 Joel Brobecker <brobecker@adacore.com>
5740
5741 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5742 warning message.
5743
1edebdbf
YQ
57442013-06-08 Pedro Alves <pedro@codesourcery.com>
5745 Yao Qi <yao@codesourcery.com>
5746
5747 * mi/mi-main.c (get_register): Remove declaration.
5748 (output_register): Declare.
5749 (mi_cmd_data_list_register_values): Remove local variable
5750 'tuple_cleanup'. Move some code into output_register.
5751 (get_register): Renamed to ...
5752 (output_register): ... this. Output the register's
5753 "number" ui_out tuple here.
5754
47d48711
PA
57552013-06-07 Pedro Alves <palves@redhat.com>
5756
5757 * darwin-nat.c: Fix formating in copyright header.
5758 * darwin-nat.h: Likewise.
5759 * gnu-nat.c: Likewise.
5760 * machoread.c: Likewise.
5761
3aee8918
PA
57622013-06-07 Pedro Alves <palves@redhat.com>
5763
5f2b57b5 5764 PR server/14823
3aee8918
PA
5765 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5766 static. Output a global target description pointer.
5767 (init_registers_${name}): Adjust to initialize a
5768 target description structure.
5769
fe8400b4
WN
57702013-06-07 Will Newton <will.newton@linaro.org>
5771
5772 * printcmd.c (build_address_symbolic): Call
5773 gdbarch_addr_bits_remove for text minimal symbols.
5774
20df6206
WN
57752013-06-07 Will Newton <will.newton@linaro.org>
5776
5777 * MAINTAINERS: Add myself to Write After Approval.
5778
aef525cb
YQ
57792013-06-07 Yao Qi <yao@codesourcery.com>
5780
5781 * tracepoint.c (start_tracing): Move code to ...
5782 (trace_reset_local_state): ... here. New.
5783 (disconnect_tracing): Don't call set_current_traceframe,
5784 set_tracepoint_num, and set_traceframe_context. Call
5785 trace_reset_local_state instead.
5786 (tfile_close): Call trace_reset_local_state.
5787 * ctf.c (ctf_close): Likewise.
5788 * remote.c (remote_close): Likewise.
5789 * tracepoint.h (trace_reset_local_state): Declare.
5790
d2415c6c
DE
57912013-06-06 Doug Evans <dje@google.com>
5792
5793 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5794 and fix header docs.
5795
69fc87c2
DE
57962013-06-05 Doug Evans <dje@google.com>
5797 Keith Seitz <keiths@redhat.com>
5798
5799 PR 15519
5800 * cp-namespace.c (find_symbol_in_baseclass): Call
5801 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5802 Check result of call to lookup_symbol_static.
5803 Call lookup_static_symbol_aux unconditionally.
5804 Call check_typedef on base types before accessing them.
5805 (cp_lookup_nested_symbol): Fix comment.
5806
a513d1e8
LM
58072013-06-05 Luis Machado <lgustavo@codesourcery.com>
5808
5809 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5810 minimal symbols pointing to function descriptors.
5811
351a6f02
TT
58122013-06-05 Tom Tromey <tromey@redhat.com>
5813
5814 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5815
5e1b953b 58162013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5817 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5818
5819 * remote.c (remote_wait_as): Restore signal handler before returning
5820 when GDB gets a notification.
5821
f9e14852
GB
58222013-06-04 Gary Benson <gbenson@redhat.com>
5823
8445cbf1 5824 PR 2328
f9e14852
GB
5825 * breakpoint.h (handle_solib_event): Moved function declaration
5826 to solib.h.
5827 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5828 (bpstat_stop_status): Pass new argument to handle_solib_event.
5829 * solib.h (update_solib_breakpoints): New function declaration.
5830 (handle_solib_event): Moved function declaration from
5831 breakpoint.h.
5832 * solib.c (update_solib_breakpoints): New function.
5833 (handle_solib_event): Moved function from breakpoint.c.
5834 Updated to call solib_ops->handle_event if not NULL.
5835 * solist.h (target_so_ops): New fields "update_breakpoints" and
5836 "handle_event".
5837 * infrun.c (set_stop_on_solib_events): New function.
5838 (_initialize_infrun): Use the above for "set
5839 stop-on-solib-events".
5840 (handle_inferior_event): Pass new argument to handle_solib_event.
5841 * solib-svr4.c (probe.h): New include.
5842 (svr4_free_library_list): New forward declaration.
5843 (probe_action): New enum.
5844 (probe_info): New struct.
5845 (probe_info): New static variable.
5846 (NUM_PROBES): New definition.
5847 (svr4_info): New fields "using_xfer", "probes_table" and
5848 "solib_list".
5849 (free_probes_table): New function.
5850 (free_solib_list): New function.
5851 (svr4_pspace_data_cleanup): Free probes table and solib list.
5852 (svr4_copy_library_list): New function.
5853 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5854 (svr4_read_so_list): New parameter "prev_lm".
5855 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5856 (svr4_current_sos): New function.
5857 (probe_and_action): New struct.
5858 (hash_probe_and_action): New function.
5859 (equal_probe_and_action): Likewise.
5860 (register_solib_event_probe): Likewise.
5861 (solib_event_probe_at): Likewise.
5862 (solib_event_probe_action): Likewise.
5863 (solist_update_full): Likewise.
5864 (solist_update_incremental): Likewise.
5865 (disable_probes_interface_cleanup): Likewise.
5866 (svr4_handle_solib_event): Likewise.
5867 (svr4_update_solib_event_breakpoint): Likewise.
5868 (svr4_update_solib_event_breakpoints): Likewise.
5869 (svr4_create_solib_event_breakpoints): Likewise.
5870 (enable_break): Free probes table before creating breakpoints.
5871 Use svr4_create_solib_event_breakpoints to create breakpoints.
5872 (svr4_solib_create_inferior_hook): Free the solib list.
5873 (_initialize_svr4_solib): Initialise
5874 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5875
ced63ec0
GB
58762013-06-04 Gary Benson <gbenson@redhat.com>
5877
5878 * target.h (target_ops): New field
5879 "to_augmented_libraries_svr4_read".
5880 (target_augmented_libraries_svr4_read): New macro.
5881 * target.c (update_current_target): Handle
5882 to_augmented_libraries_svr4_read.
5883 * remote.c (remote_state): New field
5884 "augmented_libraries_svr4_read".
5885 (remote_augmented_libraries_svr4_read_feature): New function.
5886 (remote_protocol_features): Add entry for
5887 "augmented-libraries-svr4-read".
5888 (remote_augmented_libraries_svr4_read): New function.
5889 (init_remote_ops): Initialize
5890 remote_ops.to_augmented_libraries_svr4_read.
5891
7f91dbec
GB
58922013-06-04 Gary Benson <gbenson@redhat.com>
5893
5894 * NEWS: Update.
5895
607ece04
GB
58962013-06-04 Gary Benson <gbenson@redhat.com>
5897
5898 * objfiles.h (inhibit_section_map_updates): New function
5899 declaration.
5900 (resume_section_map_updates): Likewise.
5901 (resume_section_map_updates_cleanup): Likewise.
5902 * objfiles.c (objfile_pspace_info): Removed field
5903 "objfiles_changed_p". New fields "new_objfiles_available",
5904 "section_map_dirty" and "inhibit_updates".
5905 (allocate_objfile): Set new_objfiles_available.
5906 (free_objfile): Set section_map_dirty.
5907 (objfile_relocate1): Likewise.
5908 (in_plt_section): Likewise.
5909 (find_pc_section): Update the conditions under which the
5910 section map will be updated.
5911 (inhibit_section_map_updates): New function.
5912 (resume_section_map_updates): Likewise.
5913 (resume_section_map_updates_cleanup): Likewise.
5914
9ee6a5ac
GB
59152013-06-04 Gary Benson <gbenson@redhat.com>
5916
5917 * probe.h (get_probe_argument_count): New declaration.
5918 (evaluate_probe_argument): Likewise.
5919 * probe.c (get_probe_argument_count): New function.
5920 (evaluate_probe_argument): Likewise.
5921 (probe_safe_evaluate_at_pc): Use the above new functions.
5922
845d4708
AM
59232013-06-04 Alan Modra <amodra@gmail.com>
5924
5925 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5926 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5927 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5928 target mem reads on optional insns.
5929 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5930 ppc_insns_match_pattern calls.
5931 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5932 Add match for power7 thread safety insns, and new order of
5933 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5934 invocation in comment, and update rest of comment.
5935 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5936 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5937 (ppc64_standard_linkage2_target): Update insn offsets.
5938 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5939 stubs first. Update calls.
5940
404e278f
YQ
59412013-06-04 Yao Qi <yao@codesourcery.com>
5942
5943 * solib.c (solib_find): Don't need dir separator if path has
5944 drive spec.
5945
f6aea118
JB
59462013-06-03 Joel Brobecker <brobecker@adacore.com>
5947
5948 Revert (indirectly causes a SIGSEGV):
5949 * machoread.c (macho_symfile_read): Assign first cleanup to
5950 'back_to'.
5951
87967e27
YQ
59522013-06-03 Yao Qi <yao@codesourcery.com>
5953
5954 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5955 mi-parse.c. Make them static.
5956 (mi_all_values): Likewise.
5957 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5958 mi_parse_print_values. Make it external.
5959 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5960 Remove the declarations.
5961 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5962 * mi/mi-parse.h (mi_parse_print_values): Declare.
5963 * mi/mi-cmd-stack.c: Include mi-parse.h.
5964 (parse_print_values): Remove
5965 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5966 of parse_print_values.
5967 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5968
3ca73e0c
YQ
59692013-05-31 Pedro Alves <pedro@codesourcery.com>
5970 Yao Qi <yao@codesourcery.com>
5971
5972 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5973 (encode_actions): Move code to ...
5974 (all_tracepoint_actions_and_cleanup): ... here. New.
5975 (trace_dump_command): Likewise.
5976
4e993a19
TT
59772013-05-30 Tom Tromey <tromey@redhat.com>
5978
5979 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5980
e3b76b4f
TT
59812013-05-30 Tom Tromey <tromey@redhat.com>
5982
5983 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5984 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5985 'old_chain' argument. Add 'parser_result' argument.
5986 (gdb_xml_create_parser_and_cleanup): Remove old version.
5987 (gdb_xml_parse_quick): Update.
5988 (xml_process_xincludes): Update.
5989 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5990 declare.
5991
db26349c
TT
59922013-05-30 Tom Tromey <tromey@redhat.com>
5993
5994 * probe.c (collect_probes): Check arguments for NULL before
5995 calling compile_rx_or_error.
5996 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5997 Remove NULL return.
5998
77f9e713
TT
59992013-05-30 Tom Tromey <tromey@redhat.com>
6000
6001 * infrun.c (adjust_pc_after_break): Introduce an outer null
6002 cleanup.
6003
45475de7
TT
60042013-05-30 Tom Tromey <tromey@redhat.com>
6005
6006 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6007
ac5007fd
TT
60082013-05-30 Tom Tromey <tromey@redhat.com>
6009
6010 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6011 for 'old_chain'. Do not check 'head' before processing
6012 cleanups.
6013
cd82eddc
TT
60142013-05-30 Tom Tromey <tromey@redhat.com>
6015
6016 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6017 "cleanup_tuple".
6018
57cee33a
TT
60192013-05-30 Tom Tromey <tromey@redhat.com>
6020
6021 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6022 inner scope. Unconditionally call do_cleanups.
6023
795d915c
TT
60242013-05-30 Tom Tromey <tromey@redhat.com>
6025
6026 * source.c (find_and_open_source): Call do_cleanups.
6027
1fc3cf4a
TT
60282013-05-30 Tom Tromey <tromey@redhat.com>
6029
6030 * linux-thread-db.c (thread_db_load_search): Unconditionally
6031 call do_cleanups.
6032
e35ac9bf
TT
60332013-05-30 Tom Tromey <tromey@redhat.com>
6034
6035 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6036 for 'cleanup'; instead use a later one.
6037
f3300387
TT
60382013-05-30 Tom Tromey <tromey@redhat.com>
6039
6040 * python/py-breakpoint.c (bppy_get_commands): Use
6041 explicit, unconditional return.
6042 * python/py-frame.c (frapy_read_var): Likewise.
6043 * python/python.c (gdbpy_decode_line): Likewise.
6044
c27e16e3
TT
60452013-05-30 Tom Tromey <tromey@redhat.com>
6046
6047 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6048 do_cleanups on all return paths.
6049
5ae85e44
TT
60502013-05-30 Tom Tromey <tromey@redhat.com>
6051
6052 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6053
73b8d9da
TT
60542013-05-30 Tom Tromey <tromey@redhat.com>
6055
6056 * stabsread.c (read_struct_type): Call do_cleanups along
6057 all return paths.
6058
7d266584
MR
60592013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6060
6061 * mips-linux-tdep.c: Adjust formatting throughout.
6062
0f900f54
TT
60632013-05-30 Tom Tromey <tromey@redhat.com>
6064
6065 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6066 along all return paths.
6067
a991ac28
TT
60682013-05-30 Tom Tromey <tromey@redhat.com>
6069
6070 * symfile.c (find_separate_debug_file): Call do_cleanups
6071 along all return paths.
6072
1abaf042
TT
60732013-05-30 Tom Tromey <tromey@redhat.com>
6074
6075 * symtab.c (search_symbols): Introduce a null cleanup for
6076 'retval_chain'.
6077
edefe1da
TT
60782013-05-30 Tom Tromey <tromey@redhat.com>
6079
6080 * python/py-value.c (valpy_binop): Call do_cleanups before
6081 exiting loop.
6082
54f72dcc
TT
60832013-05-30 Tom Tromey <tromey@redhat.com>
6084
6085 * python/py-prettyprint.c (print_children): Remove extra
6086 do_cleanups call.
6087
af1c6971
TT
60882013-05-30 Tom Tromey <tromey@redhat.com>
6089
6090 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6091 all return paths.
6092
b862ce75
TT
60932013-05-30 Tom Tromey <tromey@redhat.com>
6094
6095 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6096 along all return paths.
6097
e12fefc8
TT
60982013-05-30 Tom Tromey <tromey@redhat.com>
6099
6100 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6101 call do_cleanups.
6102
4867f990
TT
61032013-05-30 Tom Tromey <tromey@redhat.com>
6104
6105 * varobj.c (c_value_of_root): Call do_cleanups along all
6106 return paths.
6107
4fd2d6af
TT
61082013-05-30 Tom Tromey <tromey@redhat.com>
6109
6110 * tracepoint.c (trace_dump_command): Unconditionally call
6111 do_cleanups.
6112
752eb8b4
TT
61132013-05-30 Tom Tromey <tromey@redhat.com>
6114
6115 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6116 do_cleanups earlier.
6117
e42d0aa5
TT
61182013-05-30 Tom Tromey <tromey@redhat.com>
6119
6120 * machoread.c (macho_symfile_read): Assign first cleanup to
6121 'back_to'.
6122
4bbc010a
TT
61232013-05-30 Tom Tromey <tromey@redhat.com>
6124
6125 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6126
b9635925
TT
61272013-05-30 Tom Tromey <tromey@redhat.com>
6128
6129 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6130
25f43500
TT
61312013-05-30 Tom Tromey <tromey@redhat.com>
6132
6133 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6134 call discard_cleanups.
6135 (inf_ptrace_attach): Likewise.
6136
d6a2e54a
TT
61372013-05-30 Tom Tromey <tromey@redhat.com>
6138
6139 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6140 return paths.
6141 (mips_initialize): Likewise.
6142 (common_open): Call do_cleanups.
6143
48be7c1b
TT
61442013-05-30 Tom Tromey <tromey@redhat.com>
6145
6146 * utils.c (internal_vproblem): Call do_cleanups.
6147
e61727ab
TT
61482013-05-30 Tom Tromey <tromey@redhat.com>
6149
6150 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6151
b81b921f
TT
61522013-05-30 Tom Tromey <tromey@redhat.com>
6153
6154 * cli/cli-script.c (setup_user_args): Don't return after error.
6155
fe48dfb1
TT
61562013-05-30 Tom Tromey <tromey@redhat.com>
6157
6158 * somread.c (som_symtab_read): Call do_cleanups.
6159
27833de7
TT
61602013-05-30 Tom Tromey <tromey@redhat.com>
6161
6162 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6163
5b3fca71
TT
61642013-05-30 Tom Tromey <tromey@redhat.com>
6165
6166 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6167 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6168 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6169 * source.c (show_substitute_path_command): Call do_cleanups.
6170 (unset_substitute_path_command, set_substitute_path_command):
6171 Likewise.
6172 * symfile.c (load_command): Call do_cleanups.
6173
af83e3f8
TT
61742013-05-30 Tom Tromey <tromey@redhat.com>
6175
6176 * contrib/cleanup_check.py: New file.
6177 * contrib/gcc-with-excheck: Add option parsing.
6178
564eac42
JB
61792013-05-30 Joel Brobecker <brobecker@adacore.com>
6180
6181 * windows-nat.c (windows_delete_thread): Add missing space
6182 in cast expression.
6183
47902076
HAQ
61842013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6185
6186 * inferior.c (top level): Include tilde.h.
6187 (add_inferior_command): Call tilde_expand on the value of 'exec'
6188 argument.
6189
23da373a
YQ
61902013-05-30 Pedro Alves <pedro@codesourcery.com>
6191 Yao Qi <yao@codesourcery.com>
6192
6193 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6194 Caller update.
6195 (encode_actions): Likewise.
6196 * remote.c (remote_download_tracepoint): Caller update.
6197 * tracepoint.h (encode_actions): Update declaration.
6198
a6e6f791
PA
61992013-05-30 Pedro Alves <palves@redhat.com>
6200
6201 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6202 pointer.
6203
36d25514
YQ
62042013-05-30 Yao Qi <yao@codesourcery.com>
6205
6206 * remote.c (remote_check_symbols): Remove unused parameter
6207 'objfile'.
6208 Declaration update.
6209 (remote_start_remote, remote_new_objfile): Caller update.
6210
62a813cc
YQ
62112013-05-30 Yao Qi <yao@codesourcery.com>
6212
6213 * mi/mi-cmds.c (mi_cmds): Define MI command
6214 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6215 DEF_MI_CMD_CLI.
6216
28439a30
PA
62172013-05-29 Pedro Alves <palves@redhat.com>
6218
6219 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6220 (remote_insert_watchpoint, remote_remove_watchpoint)
6221 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6222 (remote_verify_memory, compare_sections_command)
6223 (remote_search_memory): Set the general process/thread on the
6224 remote side.
6225
6ac1c082
PA
62262013-05-29 Pedro Alves <palves@redhat.com>
6227
6228 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6229 (_initialize_aarch64_tdep): Don't call
6230 initialize_tdesc_aarch64_without_fpu.
6231 * features/Makefile (WHICH): Remove reference to
6232 aarch64-without-fpu.
6233 * features/aarch64-without-fpu.c: Delete file.
6234 * regformats/aarch64-without-fpu.dat: Delete file.
6235
a73e3634
YQ
62362013-05-28 Yao Qi <yao@codesourcery.com>
6237
6238 * tracepoint.c (stringify_collection_list): Remove parameter
6239 'string'.
6240 (encode_actions): Caller update. Remove local variables.
6241
c0ea94eb
YQ
62422013-05-24 Yao Qi <yao@codesourcery.com>
6243
6244 * tracepoint.c (TFILE_PID): Remove.
6245 (tfile_open): Don't add thread and inferior.
6246 (tfile_close): Don't set 'inferior_ptid'. Don't call
6247 exit_inferior_silent.
6248 (tfile_thread_alive): Remove.
6249 (init_tfile_ops): Don't set field 'to_thread_alive' of
6250 tfile_ops.
6251
20d7f211
DE
62522013-05-23 Doug Evans <dje@google.com>
6253
6254 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6255
8658d16d
PA
62562013-05-23 Pedro Alves <palves@redhat.com>
6257
6258 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6259 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6260 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6261 Only define if HAVE_SOCKETS is defined.
6262 * configure.ac: Check for sys/socket.h.
6263 * config.in, configure: Regenerate.
6264
21aa081e
PA
62652013-05-23 Pedro Alves <palves@redhat.com>
6266
6267 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6268 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6269 printing uint32_t variables.
6270
c2d6af84
PA
62712013-05-23 Pedro Alves <palves@redhat.com>
6272
6273 * NEWS: Mention GDBserver range stepping support.
6274
c1e36e3e
PA
62752013-05-23 Yao Qi <yao@codesourcery.com>
6276 Pedro Alves <palves@redhat.com>
6277
6278 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6279 field.
6280 * infcmd.c (step_once, until_next_command): Enable range stepping.
6281 * infrun.c (displaced_step_prepare): Disable range stepping.
6282 (resume): Disable range stepping if stepping over a breakpoint or
6283 we have software watchpoints. If range stepping is enabled,
6284 assert the thread is in the stepping range.
6285 (clear_proceed_status_thread): Clear may_range_step.
6286 (handle_inferior_event): Disable range stepping as soon as we know
6287 the thread that hit the event. Re-enable it whenever we're going
6288 to step with a step range.
6289 * remote.c (struct vCont_action_support) <r>: New field.
6290 (use_range_stepping): New global.
6291 (remote_vcont_probe): Handle 'r' action.
6292 (append_resumption): Append an 'r' action if the thread may range
6293 step.
6294 (show_range_stepping): New function.
6295 (set_range_stepping): New function.
6296 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6297 'set range-stepping' and 'show range-stepping' commands.
6298 * NEWS: Mention range stepping, the new vCont;r action, and the
6299 new "set/show range-stepping" commands.
6300
d458bd84
PA
63012013-05-23 Yao Qi <yao@codesourcery.com>
6302 Pedro Alves <palves@redhat.com>
6303
6304 * remote.c (struct vCont_action_support): New struct.
6305 (struct remote_state) <support_vCont_t>: Remove field.
6306 <vCont_actions_support>: New field.
6307 (remote_vcont_probe, remote_stop_ns): Update.
6308
ce4c476a
PA
63092013-05-23 Yao Qi <yao@codesourcery.com>
6310 Pedro Alves <palves@redhat.com>
6311
6312 * gdbthread.h (pc_in_thread_step_range): New declaration.
6313 * thread.c (pc_in_thread_step_range): New function.
6314 * infrun.c (handle_inferior_event): Use it.
6315
ce70887a
JB
63162013-05-23 Joel Brobecker <brobecker@adacore.com>
6317
6318 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6319 of sprintf.
6320
55b87a52
KS
63212013-05-22 Keith Seitz <keiths@redhat.com>
6322
6323 * ada-lang.c (is_known_support_routine): Add explicit free of
6324 'func_name' from find_frame_funname.
6325 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6326 for func_name from find_frame_funname.
6327 * python/py-frame.c (frapy_name): Add explicit free of
6328 'name' from find_frame_funname.
6329 * stack.c (find_frame_funname): Add comment explaining that
6330 funcp must be freed by the caller.
6331 Return copy of symbol names instead of pointers.
6332 (print_frame): Add a cleanup for 'funname' from
6333 find_frame_funname.
6334 * stack.h (find_frame_funname): Remove "const" from
6335 'funname' parameter.
6336
5f2e6b00
TT
63372013-05-22 Tom Tromey <tromey@redhat.com>
6338
6339 PR c++/15401:
6340 * c-valprint.c (c_value_print): Use value_addr for
6341 references. Convert back to reference type with value_ref.
6342
d85c4847
EZ
63432013-05-22 Eli Zaretskii <eliz@gnu.org>
6344
6345 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6346 unloaded DLL, it will be done by handle_solib_event. See
6347 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6348 details.
6349
54eb231c
PM
63502013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6351
6352 * ui-out.c: Create typedef ui_out_level_p and define vector
6353 operations for that type.
6354 (struct ui_out): Use a vector instead of an array.
6355 (current_level): Return level from a vector.
6356 (push_level): Create a level in a vector.
6357 (pop_level): Delete a level in a vector.
6358 (ui_out_new): Create initial level zero level, and store in a
6359 vector.
6360 (ui_out_destroy): Add vector cleanup.
6361
ac90359c
PA
63622013-05-22 Pedro Alves <palves@redhat.com>
6363
6364 * python/python-internal.h (gdb_Py_DECREF): Tag with
6365 "ARI: editCase function".
6366
6dcc1893
PP
63672013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6368
6369 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6370
c8c735b9
PA
63712013-05-21 Pedro Alves <palves@redhat.com>
6372
6373 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6374 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6375 * python/py-utils.c (py_decref): Don't check for NULL before
6376 calling Py_DECREF.
6377
1915daeb
PA
63782013-05-21 Pedro Alves <palves@redhat.com>
6379
6380 * python/py-utils.c (py_decref): Remove extra braces.
6381 (gdb_pymodule_addobject): Remove extra braces.
6382 * python-internal.h (gdb_Py_DECREF): New static inline function.
6383 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6384
bd9673a4
PW
63852013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6386
6387 * breakpoints.c (detach_breakpoints): Do not
6388 detach breakpoints locations with loc_type bp_loc_other.
6389
ff6009d0
JK
63902013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6391
6392 Workaround Python 2.6.
6393 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6394 a block.
6395
3641da11
JK
63962013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6397
6398 Code cleanup: constification.
6399 * solib.c (solib_ops): Make return type and ops variable type const.
6400 (set_solib_ops): Make the new_ops parameter and ops variable const.
6401 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6402 (solib_add, solib_keep_data_in_core, clear_solib)
6403 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6404 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6405 const.
6406 * solib.h (set_solib_ops): Make the new_ops parameter const.
6407
776af39e
JB
64082013-05-21 Joel Brobecker <brobecker@adacore.com>
6409
6410 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6411 variable.
6412 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6413 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6414 (SYSTEM_GDBINIT_FILES): New variables.
6415 (all): Add stamp-system-gdbinit.
6416 (stamp-system-gdbinit): New rule.
6417 (clean-system-gdbinit, install-system-gdbinit)
6418 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6419 (install-only): Add dependency on install-system-gdbinit.
6420 (uninstall): Add dependency on uninstall-system-gdbinit.
6421 (clean): Add dependency on clean-system-gdbinit.
6422 * system-gdbinit/elinos.py: New file.
6423 * system-gdbinit/wrs-linux.py: New file.
6424
1509e573
JB
64252013-05-21 Joel Brobecker <brobecker@adacore.com>
6426
6427 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6428
c5867ab6
HZ
64292013-05-21 Hui Zhu <hui@codesourcery.com>
6430
6431 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6432 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6433 * mi/mi-cmd-break.c (ctype.h): New include.
6434 (gdb_obstack.h): New include.
6435 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6436 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6437 (mi_cmd_dprintf_insert): New.
6438 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6439 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6440
7d38e38f
TT
64412013-05-20 Tom Tromey <tromey@redhat.com>
6442
6443 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6444
97b77b39
TT
64452013-05-20 Tom Tromey <tromey@redhat.com>
6446
6447 * python/py-value.c (valpy_get_dynamic_type): Simplify
6448 dynamic_type assignment. Use Py_XINCREF.
6449
53e66479
TT
64502013-05-20 Tom Tromey <tromey@redhat.com>
6451
6452 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6453
dcf87832
TT
64542013-05-20 Tom Tromey <tromey@redhat.com>
6455
6456 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6457 (gdbpy_selected_frame): Move object-construction code
6458 out of TRY_CATCH.
6459
aa36459a
TT
64602013-05-20 Tom Tromey <tromey@redhat.com>
6461
6462 * python/py-arch.c (gdbpy_initialize_arch): Use
6463 gdb_pymodule_addobject.
6464 * python/py-block.c (gdbpy_initialize_blocks): Use
6465 gdb_pymodule_addobject.
6466 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6467 gdb_pymodule_addobject.
6468 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6469 gdb_pymodule_addobject.
6470 * python/py-event.c (gdbpy_initialize_event_generic): Use
6471 gdb_pymodule_addobject.
6472 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6473 gdb_pymodule_addobject.
6474 * python/py-evts.c (add_new_registry): Use
6475 gdb_pymodule_addobject.
6476 (gdbpy_initialize_py_events): Likewise.
6477 * python/py-finishbreakpoint.c
6478 (gdbpy_initialize_finishbreakpoints): Use
6479 gdb_pymodule_addobject.
6480 * python/py-frame.c (gdbpy_initialize_frames): Use
6481 gdb_pymodule_addobject.
6482 * python/py-function.c (gdbpy_initialize_functions): Use
6483 gdb_pymodule_addobject.
6484 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6485 gdb_pymodule_addobject.
6486 * python/py-infthread.c (gdbpy_initialize_thread): Use
6487 gdb_pymodule_addobject.
6488 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6489 gdb_pymodule_addobject.
6490 * python/py-param.c (gdbpy_initialize_parameters): Use
6491 gdb_pymodule_addobject.
6492 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6493 gdb_pymodule_addobject.
6494 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6495 gdb_pymodule_addobject.
6496 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6497 gdb_pymodule_addobject.
6498 * python/py-type.c (gdbpy_initialize_types): Use
6499 gdb_pymodule_addobject.
6500 * python/py-utils.c (gdb_pymodule_addobject): New function.
6501 * python/py-value.c (gdbpy_initialize_values): Use
6502 gdb_pymodule_addobject.
6503 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6504 * python/python.c (_initialize_python): Use
6505 gdb_pymodule_addobject.
6506
3d4a3c3e
TT
65072013-05-20 Tom Tromey <tromey@redhat.com>
6508
6509 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6510 * python/py-param.c (get_set_value, get_show_value): Use
6511 explicit decrefs.
6512 * python/python.c (start_type_printers, apply_type_printers):
6513 Use explicit decrefs.
6514
72ff8829
TT
65152013-05-20 Tom Tromey <tromey@redhat.com>
6516
6517 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6518 incref the module.
6519
02146ba5
TT
65202013-05-20 Tom Tromey <tromey@redhat.com>
6521
6522 * python/python.c (gdbpy_run_events): Decref the result
6523 of PyObject_CallObject.
6524
33ee792f
TT
65252013-05-20 Tom Tromey <tromey@redhat.com>
6526
6527 * python/py-symtab.c (set_sal): Use
6528 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6529 (symtab_and_line_to_sal_object): Update.
6530
fcb49fc8
TT
65312013-05-20 Tom Tromey <tromey@redhat.com>
6532
6533 * python/py-param.c (compute_enum_values): Decref 'item'.
6534
0646da15
TT
65352013-05-20 Tom Tromey <tromey@redhat.com>
6536
6537 * mi/mi-main.c: Include python-internal.h.
6538 (mi_cmd_list_features): Check gdb_python_initialized.
6539 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6540 (python_inferior_exit, python_new_objfile, add_thread_object)
6541 (delete_thread_object, py_free_inferior): Check
6542 gdb_python_initialized.
6543 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6544 gdb_python_initialized.
6545 * python/py-type.c (save_objfile_types): Check
6546 gdb_python_initialized.
6547 * python/python-internal.h (gdb_python_initialized): Declare.
6548 * python/python.c (ensure_python_env): Throw exception if
6549 Python not initialized.
6550 (before_prompt_hook, source_python_script_for_objfile)
6551 (start_type_printers, apply_type_printers,
6552 free_type_printers): Check gdb_python_initialized.
6553 * varobj.c (varobj_get_display_hint)
6554 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6555 (install_new_value_visualizer, varobj_set_visualizer)
6556 (value_get_print_value): Check gdb_python_initialized.
6557
999633ed
TT
65582013-05-20 Tom Tromey <tromey@redhat.com>
6559
6560 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6561 Check errors.
6562 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6563 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6564 Check errors.
6565 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6566 Check errors.
6567 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6568 Check errors.
6569 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6570 Check errors.
6571 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6572 init function to return 'int'.
6573 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6574 Return 'int'. Check errors.
6575 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6576 Check errors.
6577 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6578 Return 'int'. Check errors.
6579 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6580 Check errors.
6581 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6582 Check errors.
6583 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6584 Check errors.
6585 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6586 Check errors.
6587 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6588 Check errors.
6589 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6590 Check errors.
6591 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6592 Check errors.
6593 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6594 Check errors.
6595 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6596 Check errors.
6597 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6598 Check errors.
6599 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6600 Check errors.
6601 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6602 Check errors.
6603 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6604 Check errors.
6605 * python/python-internal.h (gdbpy_initialize_auto_load,
6606 gdbpy_initialize_values, gdbpy_initialize_frames,
6607 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6608 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6609 gdbpy_initialize_blocks, gdbpy_initialize_types,
6610 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6611 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6612 gdbpy_initialize_finishbreakpoints,
6613 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6614 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6615 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6616 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6617 gdbpy_initialize_signal_event,
6618 gdbpy_initialize_breakpoint_event,
6619 gdbpy_initialize_continue_event,
6620 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6621 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6622 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6623 * python/python.c (gdb_python_initialized): New global.
6624 (gdbpy_initialize_events): Return 'int'. Check errors.
6625 (_initialize_python): Check errors. Set
6626 gdb_python_initialized.
6627
18868860
TT
66282013-05-20 Tom Tromey <tromey@redhat.com>
6629
6630 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6631 Decref the reslut of PyObject_CallMethod.
6632
9f4ff0c2
TT
66332013-05-20 Tom Tromey <tromey@redhat.com>
6634
6635 * python/py-event.c (gdbpy_initialize_event_generic): Return
6636 early if PyType_Ready fails.
6637
0d3a2e8a
TT
66382013-05-20 Tom Tromey <tromey@redhat.com>
6639
6640 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6641 as 'default' in the switch.
6642
b86af38a
TT
66432013-05-20 Tom Tromey <tromey@redhat.com>
6644
6645 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6646 get_addr_from_python calls out of TRY_CATCH.
6647 (infpy_write_memory, infpy_search_memory): Likewise.
6648 * python/py-utils.c (get_addr_from_python): Return negative
6649 value on error. Use TRY_CATCH.
6650 * python/python-internal.h (get_addr_from_python): Use
6651 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6652
c127ec58
TT
66532013-05-20 Tom Tromey <tromey@redhat.com>
6654
6655 * python/py-event.c (evpy_emit_event): Decref the
6656 result of PyObject_CallFunctionObjArgs.
6657
ba327838
TT
66582013-05-20 Tom Tromey <tromey@redhat.com>
6659
6660 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6661 Correctly decref.
6662
d8191432
TT
66632013-05-20 Tom Tromey <tromey@redhat.com>
6664
6665 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6666
5d153bd1
TT
66672013-05-20 Tom Tromey <tromey@redhat.com>
6668
6669 * python/py-event.h (gdbpy_initialize_event_generic): Use
6670 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6671 * python/py-evts.c (add_new_registry): Use
6672 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6673 * python/python-internal.h
6674 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6675
56cc411c
TT
66762013-05-20 Tom Tromey <tromey@redhat.com>
6677
6678 * python/py-arch.c (archpy_disassemble): Update.
6679 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6680 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6681 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6682 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6683 macro.
6684 (GDB_PY_HANDLE_EXCEPTION): Update.
6685 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6686
8919e174
TT
66872013-05-20 Tom Tromey <tromey@redhat.com>
6688
6689 * python/python-internal.h (events_object_type): Remove.
6690
9b08f225
TT
66912013-05-20 Tom Tromey <tromey@redhat.com>
6692
f5aee5ee
AM
6693 * python/py-event.h (evpy_emit_event): Use
6694 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6695 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6696 New macro.
9b08f225 6697
f04010ff
TT
66982013-05-20 Tom Tromey <tromey@redhat.com>
6699
6700 * py-evtregistry.c (create_event_object): Decref
6701 eventregistry_object if PyList_New fails.
6702
3919fd96
TT
67032013-05-20 Tom Tromey <tromey@redhat.com>
6704
6705 * py-cmd.c (gdbpy_string_to_argv): Check result of
6706 PyList_New.
6707
0430e8cb
TT
67082013-05-20 Tom Tromey <tromey@redhat.com>
6709
6710 * python/python.c (before_prompt_hook): Add cleanup to
6711 decref 'hook'.
6712
764123e4
TT
67132013-05-20 Tom Tromey <tromey@redhat.com>
6714
6715 * python/py-function.c (fnpy_init): Decref result of
6716 PyObject_GetAttrString.
6717
634c58be
TT
67182013-05-20 Tom Tromey <tromey@redhat.com>
6719
6720 * python/py-threadevent.c (get_event_thread): Use
6721 CPYCHECKER_RETURNS_BORROWED_REF.
6722 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6723 New define.
6724 (pspace_to_pspace_object, objfile_to_objfile_object)
6725 (find_thread_object): Use it.
6726
62eec1a5
TT
67272013-05-20 Tom Tromey <tromey@redhat.com>
6728
6729 * python/py-arch.c (arch_object_type): Use
6730 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6731 * python/py-block.c (block_syms_iterator_object_type):
6732 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6733 * python/py-bpevent.c (breakpoint_event_object_type):
6734 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6735 * python/py-cmd.c (cmdpy_object_type): Use
6736 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6737 * python/py-continueevent.c (continue_event_object_type):
6738 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6739 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6740 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6741 * python/py-events.h (thread_event_object_type):
6742 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6743 * python/py-evtregistry.c (eventregistry_object_type): Use
6744 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6745 * python/py-exitedevent.c (exited_event_object_type):
6746 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6747 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6748 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6749 * python/py-function.c (fnpy_object_type): Use
6750 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6751 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6752 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6753 * python/py-infthread.c (thread_object_type): Use
6754 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6755 * python/py-lazy-string.c (lazy_string_object_type):
6756 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6757 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6758 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6759 * python/py-objfile.c (objfile_object_type): Use
6760 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6761 * python/py-param.c (parmpy_object_type):
6762 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6763 * python/py-progspace.c (pspace_object_type):
6764 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6765 * python/py-signalevent.c (signal_event_object_type):
6766 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6767 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6768 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6769 * python/py-type.c (type_object_type, field_object_type)
6770 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6771 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6772 define.
6773 (value_object_type, block_object_type, symbol_object_type)
6774 (event_object_type, stop_event_object_type, breakpoint_object_type)
6775 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6776
81ea8796
AT
67772013-05-20 Andreas Tobler <andreas@fgznet.ch>
6778
6779 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6780 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6781
a2ce51a0
DE
67822013-05-20 Doug Evans <dje@google.com>
6783
6784 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6785 For Fission.
6786 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6787 reading_dwo_directly.
6788 (struct signatured_type): New member dwo_unit.
6789 (struct die_reader_specs): New member comp_dir.
6790 (create_signatured_type_table_from_index): Use malloc for
6791 all_type_units instead of objfile's obstack.
6792 (create_all_type_units): Ditto.
6793 (fill_in_sig_entry_from_dwo_entry): New function.
6794 (add_type_unit): New function.
6795 (lookup_dwo_signatured_type): New function.
6796 (lookup_dwp_signatured_type): New function.
6797 (lookup_signatured_type): New arg cu. All callers updated.
6798 (init_cu_die_reader): Initialize comp_dir.
6799 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6800 Change assert of matching type signatures to call error on mismatch.
6801 (lookup_dwo_unit): Add assert.
6802 (init_tu_and_read_dwo_dies): New function.
6803 (init_cutu_and_read_dies): Call it.
6804 (build_type_unit_groups): Handle case of no type unit groups created.
6805 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6806 (lookup_dwo_cutu): Tweak complaint.
6807 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6808 (dwarf2_per_objfile_free): Free all_type_units.
6809
a25cd31f
JB
68102013-05-20 Joel Brobecker <brobecker@adacore.com>
6811
6812 * windows-nat.c (handle_unload_dll): Add missing empty line.
6813
4d804846
JB
68142013-05-20 Joel Brobecker <brobecker@adacore.com>
6815
6816 * dwarf2read.c (prototyped_function_p): New function.
6817 (read_subroutine_type): Use it.
6818
1c432e72
JB
68192013-05-20 Joel Brobecker <brobecker@adacore.com>
6820
6821 * rs6000-aix-tdep.c: De-indent some example code provided
6822 as a comment.
6823
4feebbdd
EBM
68242013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6825
6826 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6827 region is ok for a hardware watchpoint using the new ptrace interface
6828 on Power servers.
6829
7d0c9981
DE
68302013-05-17 Doug Evans <dje@google.com>
6831
6832 * NEWS: Mention new maintenance commands check-symtabs, and
6833 expand-symtabs, and renamed check-psymtabs.
6834 * psymtab.c (maintenance_check_psymtabs): Renamed from
6835 maintenance_check_symtabs. Only process already-expanded symbol
6836 tables.
6837 (_initialize_psymtab): Update.
6838 * symmisc.c (maintenance_check_symtabs): New function.
6839 (maintenance_expand_name_matcher): New function
6840 (maintenance_expand_file_matcher): New function
6841 (maintenance_expand_symtabs): New function.
6842 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6843 commands.
6844
6cbc7c3d
TT
68452013-05-17 Tom Tromey <tromey@redhat.com>
6846
6847 * python/py-inferior.c (infpy_read_memory): Don't call
6848 PyErr_SetString if PyObject_New fails.
6849 * python/py-frame.c (frame_info_to_frame_object): Don't call
6850 PyErr_SetString if PyObject_New fails.
6851
a48b32c0
L
68522013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6853
6854 * acinclude.m4: Add check for dlopen in libdl.
6855 * configure.ac: Ditto.
6856 * configure: Regenerate.
6857
3de661e6
PM
68582013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6859
6860 * frame.c (frame_stash): Convert to htab.
6861 (frame_addr_hash): New function.
6862 (frame_addr_hash_eq): New function.
6863 (frame_stash_create): Convert function to create
6864 a hash table.
6865 (frame_stash_add): Convert function to add an entry to a hash
6866 table.
6867 (frame_stash_find): Convert function to search the hash table.
6868 (frame_stash_invalidate): Convert function to empty the hash
6869 table.
6870 (get_frame_id): Only add to stash if a frame_id is created.
6871 (_initialize_frame): Call frame_stash_create.
6872
bb4168a9 68732013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6874
6875 * configure.ac: Ensure MIG is available when building for GNU Hurd
6876 hosts.
6877 * configure: Regenerate.
6878
d1be3247
JB
68792013-05-16 Joel Brobecker <brobecker@adacore.com>
6880
6881 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6882
b8fea896
JB
68832013-05-16 Joel Brobecker <brobecker@adacore.com>
6884
6885 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6886 all cleanups are done before returning from this function.
6887
af880d85
JB
68882013-05-15 Joel Brobecker <brobecker@adacore.com>
6889
6890 * utils.h: #include "exceptions.h".
6891 (enum errors): Remove partial declaration.
6892
356a5233
JB
68932013-05-15 Joel Brobecker <brobecker@adacore.com>
6894
6895 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6896 * gdbarch.h, gdbarch.c: Regenerate.
6897 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6898 handling.
6899
6900 * rs6000-aix-tdep.h: New file.
6901 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6902 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6903 "xml-utils.h".
6904 (struct field_info, struct ld_info_desc): New types.
6905 (ld_info32_desc, ld_info64_desc): New static constants.
6906 (struct ld_info): New type.
6907 (rs6000_aix_extract_ld_info): New function.
6908 (rs6000_aix_shared_library_to_xml): Likewise.
6909 (rs6000_aix_ld_info_to_xml): Likewise.
6910 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6911 (rs6000_aix_init_osabi): Add call to
6912 set_gdbarch_core_xfer_shared_libraries_aix.
6913 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6914 Remove "xml-utils.h" include.
6915 (LdInfo): Delete typedef.
6916 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6917 Delete macros.
6918 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6919 Adjust code accordingly.
6920 (rs6000_core_ldinfo): Delete, folded into
6921 rs6000_aix_core_xfer_shared_libraries_aix.
6922 (rs6000_xfer_shared_library): Delete.
6923 (rs6000_xfer_shared_libraries): Reimplement.
6924
742ce053
MM
69252013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6926
6927 * record.c (record_goto_cmdlist): New.
6928 (cmd_record_goto): Split into this ...
6929 (cmd_record_goto_begin): ... this
6930 (cmd_record_goto_end): ... and this.
6931 (_initialize_record): Change "record goto" to prefix command.
6932 Add commands for "record goto begin" and "record goto end".
6933 Add an alias for "record goto start" to "record goto begin".
6934
e93ba630
JK
69352013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6936
6937 * linespec.c (convert_linespec_to_sals): New comment for
6938 SOURCE_FILENAME assignment.
6939
5821aace
JK
69402013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6941
6942 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6943 internal_warning.
6944
a1b8c4cc
TT
69452013-05-14 Tom Tromey <tromey@redhat.com>
6946
6947 * eval.c (parse_and_eval_long): Make 'exp' const.
6948 * value.h (parse_and_eval_long): Update.
6949
23b3a2c3
TT
69502013-05-14 Tom Tromey <tromey@redhat.com>
6951
6952 * ui-file.c (gdb_fopen): Make arguments const.
6953 * ui-file.h (gdb_fopen): Make arguments const.
6954
ca623f82
TT
69552013-05-14 Tom Tromey <tromey@redhat.com>
6956
6957 * remote.c (remote_set_trace_notes): Make arguments const.
6958 * target.c (update_current_target): Update cast.
6959 * target.h (to_set_trace_notes): Make arguments const.
6960
503ebb2c
TT
69612013-05-14 Tom Tromey <tromey@redhat.com>
6962
6963 * go32-nat.c (go32_terminal_info): Make 'args' const.
6964 * inferior.h (child_terminal_info): Update.
6965 * inflow.c (child_terminal_info): Make 'args' const.
6966 * target.c (default_terminal_info): Make 'args' const.
6967 (debug_to_terminal_save_ours): Likewise.
6968 * target.h (struct target_ops) <to_terminal_info>: Make argument
6969 const.
6970
85e1311a
TT
69712013-05-13 Tom Tromey <tromey@redhat.com>
6972
6973 * gcore.c (create_gcore_bfd): Make 'filename' const.
6974 * gcore.h (create_gcore_bfd): Make 'filename' const.
6975 * record-full.c (record_full_save): Make 'recfilename' const.
6976 * target.c (target_save_record): Make 'filename' const.
6977 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6978 const.
6979 (target_save_record): Likewise.
6980
d62bfeaf
TT
69812013-05-13 Tom Tromey <tromey@redhat.com>
6982
f5aee5ee 6983 PR gdb/15338:
d62bfeaf
TT
6984 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6985 ranges section has been read.
6986
ac1ca910
TT
69872013-05-13 Tom Tromey <tromey@redhat.com>
6988
6989 PR exp/15364:
6990 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6991 STRUCTOP_PTR>: Return a not_lval value for
6992 EVAL_AVOID_SIDE_EFFECTS.
6993 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6994 for EVAL_AVOID_SIDE_EFFECTS.
6995
36d1c68c
JB
69962013-05-13 Joel Brobecker <brobecker@adacore.com>
6997
6998 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6999 floating point registers to register type before storing
7000 value.
7001 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7002 Likewise.
7003
21ff4686
TT
70042013-05-10 Joel Brobecker <brobecker@adacore.com>
7005 Tom Tromey <tromey@redhat.com>
7006
7007 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7008 New functions.
7009 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7010 Declare.
7011 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7012 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7013 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7014 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7015
d3685d60
TT
70162013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7017 Tom Tromey <tromey@redhat.com>
7018
7019 PR build/15414:
7020 * configure: Rebuild.
7021 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7022 with -Wno-format.
7023
eb9fe518
PA
70242013-05-10 Pedro Alves <palves@redhat.com>
7025
7026 * remote.c (_initialize_remote): Fix spelling of
7027 qXfer:traceframe-info:read packet in packet config command.
7028
9779ab84
PA
70292013-05-10 David Taylor <dtaylor@emc.com>
7030
7031 PR remote/15455
7032
7033 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7034 "QTro" at start of packet.
7035
060cfbef
JB
70362013-05-10 Joel Brobecker <brobecker@adacore.com>
7037
7038 * solib-aix.c (solib_aix_relocate_section_addresses):
7039 For the .bss section action, apply the same offset as
7040 the .data section.
7041
ab1c4e88
JB
70422013-05-10 Joel Brobecker <brobecker@adacore.com>
7043
7044 * solib-aix.c (solib_aix_relocate_section_addresses):
7045 Remove FIXME comment.
7046
c1357578
JB
70472013-05-10 Joel Brobecker <brobecker@adacore.com>
7048
7049 PR tdep/15420:
7050 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7051 New functions, directly copied from sparc-sol-thread.c.
7052 * sparc-sol-thread.c: Delete.
7053 * configure.ac: Remove code handling sparc-solaris-thread.c.
7054 * configure: Regenerate.
7055
1e611234
PM
70562013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7057
7058 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7059 filter logic.
7060 (backtrace_command): Add "no-filters" option parsing.
7061 (_initialize_stack): Alter help to reflect "no-filters" option.
7062 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7063 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7064 (py-frame.o): Add target
7065 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7066 filter files.
7067 * python/python.h: Add new frame filter constants, and flag enum.
7068 (apply_frame_filter): Add definition.
7069 * python/python.c (apply_frame_filter): New non-Python
7070 enabled function.
7071 * python/py-utils.c (py_xdecref): New function.
7072 (make_cleanup_py_xdecref): Ditto.
7073 * python/py-objfile.c: Declare frame_filters dictionary.
7074 (objfpy_dealloc): Add frame_filters dealloc.
7075 (objfpy_new): Initialize frame_filters attribute.
7076 (objfile_to_objfile_object): Ditto.
7077 (objfpy_get_frame_filters): New function.
7078 (objfpy_set_frame_filters): New function.
7079 * python/py-progspace.c: Declare frame_filters dictionary.
7080 (pspy_dealloc): Add frame_filters dealloc.
7081 (pspy_new): Initialize frame_filters attribute.
7082 (pspacee_to_pspace_object): Ditto.
7083 (pspy_get_frame_filters): New function.
7084 (pspy_set_frame_filters): New function.
7085 * python/py-framefilter.c: New file.
7086 * python/lib/gdb/command/frame_filters.py: New file.
7087 * python/lib/gdb/frames.py: New file.
7088 * python/lib/gdb/__init__.py: Initialize global frame_filters
7089 dictionary
7090 * python/lib/gdb/FrameDecorator.py: New file.
7091 * python/lib/gdb/FrameIterator.py: New file.
7092 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7093 * mi/mi-cmds.h: Declare.
7094 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7095 --no-frame-filter logic, and Python frame filter logic.
7096 (stack_enable_frame_filters): New function.
7097 (parse_no_frame_option): Ditto.
7098 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7099 filter logic.
7100 (mi_cmd_stack_list_locals): Ditto.
7101 (mi_cmd_stack_list_args): Ditto.
7102 (mi_cmd_stack_list_variables): Ditto.
7103 * NEWS: Add frame filter note.
7104
2cb9c859
DE
71052013-05-09 Doug Evans <dje@google.com>
7106
6bf667bb
DE
7107 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7108 All callers updated.
7109 (syms_from_objfile): Ditto. Make static.
7110 (symbol_file_add_with_addrs): Renamed from
7111 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7112 num_offsets. All callers updated.
7113 * symfile.h (syms_from_objfile): Delete.
7114
2cb9c859
DE
7115 * symfile.c (decrement_reading_symtab): Add assert.
7116 (increment_reading_symtab): Ditto.
7117
40aea477
JB
71182013-05-09 Joel Brobecker <brobecker@adacore.com>
7119
7120 * source.c (forward_search_command): Replace call to getc
7121 by call to fgetc.
7122 (reverse_search_command): Likewise.
7123
680d1742
DE
71242013-05-08 Doug Evans <dje@google.com>
7125
7126 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7127 matching test.
7128
17e760ae
JB
71292013-05-08 Joel Brobecker <brobecker@adacore.com>
7130
7131 * sol-thread.c (info_cb): Factorize the code a little.
7132
c0f5f490
JB
71332013-05-08 Joel Brobecker <brobecker@adacore.com>
7134
7135 * sol-thread.c (info_cb): Rework the output of the "maintenance
7136 info sol-threads" command a bit.
7137
5d74e061
JB
71382013-05-08 Joel Brobecker <brobecker@adacore.com>
7139
7140 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7141 Replace ti.ti_startfunc by ti.ti_pc.
7142
814a3ff7
JB
71432013-05-08 Joel Brobecker <brobecker@adacore.com>
7144
7145 * solib-aix.c (solib_aix_free_library_list): New function
7146 for the case where HAVE_LIBEXPAT is not defined.
7147
58ce7251
SDJ
71482013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7149
7150 PR breakpoints/15413:
7151 * breakpoint.c (condition_completer): Simplify the code to
7152 disconsider multiple locations of breakpoints when completing the
7153 "condition" command.
7154
be8b1ea6
PM
71552013-05-07 Pierre Muller <muller@sourceware.org>
7156
7157 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7158 instead of <sys/wait.h>.
7159
1e52bda6
PM
71602013-05-07 Pierre Muller <muller@sourceware.org>
7161
7162 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7163 trailing new line from warning message.
7164
27fd0c6b
PM
71652013-05-07 Pierre Muller <muller@sourceware.org>
7166
7167 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7168 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7169
e228ac87
JB
71702013-05-07 Joel Brobecker <brobecker@adacore.com>
7171
7172 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7173 error message (ARI fix).
7174
71752013-05-07 Joel Brobecker <brobecker@adacore.com>
7176
7177 * features/library-list-aix.dtd: Replace library-list by
7178 library-list-aix.
7179 * rs6000-nat.c: Replace library-list by library-list-aix
7180 throughout.
7181 * solib-aix.c: Likewise.
7182
71832013-05-07 Joel Brobecker <brobecker@adacore.com>
7184
7185 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7186 Renames TARGET_OBJECT_AIX_LIBRARIES.
7187 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7188 TARGET_OBJECT_LIBRARIES_AIX throughout.
7189 * solib-aix.c: Likwise.
7190
26a4dda9
YQ
71912013-05-07 Yao Qi <yao@codesourcery.com>
7192
7193 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7194 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7195
3582629f
YQ
71962013-05-07 Yao Qi <yao@codesourcery.com>
7197
7198 * solib-dsbt.c (enable_break): Declare.
7199 (dsbt_current_sos): Remove call to enable_break2.
7200 (enable_break2): Rename to enable_break. Set solib breakpoint
7201 on '_dl_debug_state'.
7202 (enable_break): Remove.
7203
aacbb8a5
LM
72042013-05-07 Luis Machado <lgustavo@codesourcery.com>
7205
7206 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7207 debug state prior to replicating existing hardware watchpoints or
7208 breakpoints.
7209
0c013353
JK
72102013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7211
7212 * gcore.c (gcore_create_callback): Ignore sections with
7213 separate_debug_objfile_backlink != NULL.
7214
a1217d97
SL
72152013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7216 Andrew Jenner <andrew@codesourcery.com>
7217 Chung-Lin Tang <cltang@codesourcery.com>
7218 Julian Brown <julian@codesourcery.com>
7219
7220 Based on the nios2-elf port from Altera Corporation.
7221
7222 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7223 nios2-linux-tdep.o.
7224 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7225 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7226 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7227 * nios2-tdep.h: New.
7228 * nios2-tdep.c: New.
7229 * nios2-linux-tdep.c: New.
7230 * features/Makefile (WHICH): Add nios2-linux.
7231 (nios2-linux-expedite): Set.
7232 * features/nios2-cpu.xml: New.
7233 * features/nios2.xml: New.
7234 * features/nios2-linux.xml: New.
7235 * features/nios2.c: New (autogenerated).
7236 * features/nios2-linux.c: New (autogenerated).
7237 * regformats/nios2-linux.dat: New (autogenerated).
7238 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7239 and commands.
7240
0892cb63
DE
72412013-05-06 Doug Evans <dje@google.com>
7242
3b7bacac
DE
7243 * symfile.c: Whitespace cleanup.
7244
0892cb63
DE
7245 * solist.h (struct target_so_ops): New member clear_so.
7246 * solib-svr4.c (svr4_clear_so): New function.
7247 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7248 * solib.c (clear_so): Renamed from free_so_symbols.
7249 All callers updated. Call target clear_so if it exists.
7250
40501e00
TT
72512013-05-06 Tom Tromey <tromey@redhat.com>
7252
7253 * ada-lang.c (ada_value_primitive_packed_val): Don't
7254 call value_incref.
7255 * value.c (set_value_parent): Incref the new parent and decref
7256 the old parent.
7257 (value_copy, value_primitive_field): Use set_value_parent.
7258
b6807d98
TT
72592013-05-06 Tom Tromey <tromey@redhat.com>
7260
7261 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7262 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7263 if needed.
7264 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7265 * dwarf2read.c (write_constant_as_bytes)
7266 (dwarf2_fetch_constant_bytes): New functions.
7267
3aef2284
TT
72682013-05-06 Tom Tromey <tromey@redhat.com>
7269
7270 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7271 parameters.
7272 (dwarf2_const_value_attr): Update.
7273
66f65e2b
TT
72742013-05-06 Tom Tromey <tromey@redhat.com>
7275
7276 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7277 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7278 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7279 Remove declaration.
7280
7919a973
TT
72812013-05-06 Tom Tromey <tromey@redhat.com>
7282
7283 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7284 objfile's obstack.
7285
a7bfba49
DE
72862013-05-06 Doug Evans <dje@google.com>
7287
3189cb12
DE
7288 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7289 * stabsread.h (process_one_symbol): Update declaration.
7290 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7291 * elfread.c (elf_symfile_relocate_probe): Ditto.
7292 * psymtab.c (relocate_psymtabs): Ditto.
7293 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7294 (objfile_relocate): Ditto.
7295 * objfiles.h (objfile_relocate): Update declaration.
7296 * symfile.c (relative_addr_info_to_section_offsets): Constify
7297 addrs parameter.
7298 (default_symfile_offsets): Ditto.
7299 (syms_from_objfile_1): Constify offsets parameter.
7300 (syms_from_objfile): Ditto.
7301 (symbol_file_add_with_addrs_or_offsets): Ditto.
7302 (symfile_map_offsets_to_segments): Constify data parameter.
7303 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7304 delta parameters of member relocate.
7305 (struct sym_probe_fns): Constify new_offsets,
7306 delta parameters of member sym_relocate_probe.
7307 (struct sym_fns): Constify section_addr_info parameter of member
7308 sym_offsets.
7309 (relative_addr_info_to_section_offsets): Update declaration.
7310 (default_symfile_offsets): Ditto.
7311 (syms_from_objfile): Ditto.
7312 (symfile_map_offsets_to_segments): Ditto.
7313
a7bfba49
DE
7314 * symfile.c (syms_from_objfile_1): Use correct section count when
7315 objfile->sf == NULL.
7316
5f8e0b8f
MF
73172013-05-06 Mike Frysinger <vapier@gentoo.org>
7318
7319 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7320
ea52d893
DE
73212013-05-06 Doug Evans <dje@google.com>
7322
7323 * psympriv.h (struct partial_symtab): Augment comment for member
7324 section_offsets.
7325
4d1eb6b4
JB
73262013-05-06 Joel Brobecker <brobecker@adacore.com>
7327
7328 Reimplement shared library support on ppc-aix...
7329 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7330 * features/library-list-aix.dtd: New file.
7331 * solib-aix.h, solib-aix.c: New file.
7332 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7333 (rs6000_find_toc_address_hook): Delete.
7334 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7335 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7336 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7337 "xml-utils.h".
7338 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7339 (vmap_symtab, fixup_breakpoints): Delete.
7340 (rs6000_xfer_shared_libraries): New function.
7341 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7342 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7343 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7344 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7345 (rs6000_xfer_shared_library): New function.
7346 (find_toc_address): Delete.
7347 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7348 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7349 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7350 before creating minimal symbol. Adjust function description
7351 accordingly.
7352 (scan_xcoff_symtab): Replace call to
7353 prim_record_minimal_symbol_and_info by call to
7354 record_minimal_symbol.
7355 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7356 around default_symfile_offsets.
7357 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7358 powerpc-aix targets.
7359 * config/rs6000/nm-rs6000.h: Delete.
7360 * config/powerpc/aix.mh (NAT_FILE): Delete.
7361 (NATDEPFILES): Remove xcoffsolib.o.
7362 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7363 (ALL_TARGET_OBS): Add solib-aix.o.
7364 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7365 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7366 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7367 * xcoffsolib.h, xcoffsolib.c: Delete.
7368
7369 * solib.c (reload_shared_libraries): Remove reference to
7370 SOLIB_CREATE_INFERIOR_HOOK.
7371 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7372 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7373 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7374 comment.
7375 * corelow.c (deprecated_core_resize_section_table): Delete.
7376 * exec.c: Remove include of xcoffsolib.h".
7377 (map_vmap, vmap): Delete.
7378 (exec_close_1): Remove references to vmap.
7379 (exec_file_attach): Remove vmap handling code, and reference
7380 to DEPRECATED_IBM6000_TARGET.
7381 (bfdsec_to_vmap): Delete.
7382 (exec_files_info): Remove block of code handling VMAP.
7383 * infcmd.c (post_create_inferior): Remove reference to
7384 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7385 * infrun.c (follow_exec): Remove reference to
7386 SOLIB_CREATE_INFERIOR_HOOK.
7387 * stack.c (print_frame): Remove reference to PC_SOLIB.
7388 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7389 (dsbt_relocate_main_executable): Likewise.
7390 * solib-frv.c (frv_current_sos): Likewise.
7391
0c4f667c
JB
73922013-05-06 Joel Brobecker <brobecker@adacore.com>
7393
7394 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7395 to target_write_memory and target_read_memory.
7396
726ce67c
JB
73972013-05-06 Joel Brobecker <brobecker@adacore.com>
7398
7399 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7400 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7401
c8c9911f
JB
74022013-05-06 Joel Brobecker <brobecker@adacore.com>
7403
7404 * darwin-nat.c: Replace all "%x" instances in format strings
7405 into "0x%x" throughout.
7406
fda184b6
JB
74072013-05-06 Joel Brobecker <brobecker@adacore.com>
7408
7409 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7410 gdb_assert by call to MACH_CHECK_ERROR.
7411 (darwin_attach_pid): Raise an error rather than a failed
7412 assertion when various system calls failed. Report a warning
7413 instead of raising a failed assertion when PREV_NOT is not NULL
7414 after call to mach_port_request_notification.
7415 (darwin_ptrace_me): Raise an error rather than a failed
7416 assertion when read returns nonzero.
7417
d1d69afb
JB
74182013-05-06 Joel Brobecker <brobecker@adacore.com>
7419
7420 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7421
dc90b24d
JK
74222013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7423
7424 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7425
faab9922
JK
74262013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7427
7428 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7429 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7430 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7431 a stale cleanup. Fix double free of NAME.
7432
e0ea48a0
EZ
74332013-05-04 Eli Zaretskii <eliz@gnu.org>
7434
7435 * windows-nat.c (windows_delete_thread): Accept an additional
7436 argument, the thread's exit code, and announce thread death when
7437 print_thread_events is non-zero and we are deleting a thread that
7438 is not the main thread.
7439 (get_windows_debug_event): Pass thread exit code to
7440 windows_delete_thread.
7441
83b2706a
KB
74422013-05-03 Kevin Buettner <kevinb@redhat.com>
7443
7444 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7445 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7446 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7447 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7448 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7449 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7450 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7451 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7452 (gdbarch_tdep): New struct.
7453 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7454 E_NUM_REGS.
7455 (v850e3v5_register_name): New function.
7456 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7457 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7458 code handling the struct return conventions for the RH850 ABI.
7459 Update all callers.
7460 (v850_eight_byte_align_p): New function.
7461 (v850_push_call_dummy): Push structs by value, not by reference
7462 for the RH850 ABI. Add support for eight byte alignment.
7463 (v850_dbtrap_breakpoint_from_pc): New function.
7464 (v850_gdbarch_init): Add ABI detection code. Register
7465 v850e3v5_register_name for the v850e3v5 architecture. Set the
7466 number of registers for v850e3v5. Register
7467 v850_dbtrap_breakpoint_from_pc as appropriate.
7468 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7469
d445b2f6
DE
74702013-05-03 Doug Evans <dje@google.com>
7471
7472 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7473 of bfd_count_sections.
7474 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7475 * symfile.c (default_symfile_offsets): Ditto.
7476 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7477 one entry, not bfd_count_sections entries.
7478
b3ce41ea
KB
74792013-05-03 Kevin Buettner <kevinb@redhat.com>
7480
7481 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7482 `save' and `restore' register groups. Don't include SPL
7483 or SPH in these groups.
7484 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7485 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7486 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7487 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7488 dwarf2_append_unwinders().
7489
96f7d3f1
PW
74902013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7491
7492 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7493 ignore SIGINT and SIGTRAP in case these internal signals are
7494 caught explicitely.
7495
b9dd1947
JB
74962013-05-01 Joel Brobecker <brobecker@adacore.com>
7497
7498 * darwin-nat.c (darwin_read_write_inferior): Change types
7499 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7500 of copy_count to "mach_msg_type_number_t".
7501 (darwin_read_dyld_info): Change type of parameter
7502 rdaddr to "gdb_byte *".
7503
4ca18a63
JB
75042013-05-01 Joel Brobecker <brobecker@adacore.com>
7505
7506 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7507 of &info->load_map from "char *" to "gdb_byte *".
7508
2b692d32
JB
75092013-05-01 Joel Brobecker <brobecker@adacore.com>
7510
7511 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7512 from "char *" to "gdb_byte *".
7513 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7514
a98c29a0
DE
75152013-04-30 Doug Evans <dje@google.com>
7516
6a506a2d
DE
7517 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7518 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7519 DWO stub. If DWO isn't found, just use stub.
7520 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7521
a98c29a0
DE
7522 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7523 calling init_cutu_and_read_dies.
7524
f92b06da
WT
75252013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7526
7527 * target-descriptions.c (maint_print_c_tdesc_cmd):
7528 Add case to parse structures as register types and
7529 bitfields.
7530
95eebdcc
WT
75312013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7532
7533 * MAINTAINERS (Write After Approval): Add myself to the list.
7534
019c1128
JB
75352013-04-30 Joel Brobecker <brobecker@adacore.com>
7536
7537 * sol-thread.c (rw_common): Change type of parameter "buf"
7538 to "gdb_byte *".
7539 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7540 rw_common to "gdb_byte *" instead of "char *".
7541
5812197c
JB
75422013-04-30 Joel Brobecker <brobecker@adacore.com>
7543
7544 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7545 of local variable msym to const struct bound_minimal_symbol.
7546 Adjust use accordingly.
7547 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7548
ecccb813
TS
75492013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7550
7551 * i386gnu-nat.c (CREG_OFFSET): New macro.
7552 (creg_offset): New array.
7553 (CREG_ADDR): Use creg_offset instead of reg_offset.
7554
f1d02dd4 75552013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7556
7557 * mep-tdep.c (mep_write_pc): Delete.
7558 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7559 Add call to set_gdbarch_pc_regnum.
7560
f1d02dd4 75612013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7562
7563 * common/filestuff.c: Replace #include <dirent.h> by
7564 #include "gdb_dirent.h".
7565
f1d02dd4 75662013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7567
7568 * common/filestuff.c: Replace #include <sys/stat.h> by
7569 #include "gdb_stat.h".
7570
b385a60d
PM
75712013-04-29 Pierre Muller <muller@sourceware.org>
7572
7573 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7574 editCase function rule.
7575 (get_DW_AT_signature_type): Likewise.
7576
d27b54ad
JB
75772013-04-29 Joel Brobecker <brobecker@adacore.com>
7578
7579 * m32r-tdep.c (m32r_write_pc): Delete.
7580 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7581 Add call to set_gdbarch_pc_regnum.
7582
47d21dc5
PM
75832013-04-29 Pierre Muller <muller@sourceware.org>
7584
7585 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7586
9056882e
JB
75872013-04-29 Joel Brobecker <brobecker@adacore.com>
7588
7589 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7590
7ee4732a
YQ
75912013-04-28 Yao Qi <yao@codesourcery.com>
7592
7593 * solib-dsbt.c (fetch_loadmap): Re-indent.
7594 (displacement_from_map, enable_break2): Likewise.
7595 (dsbt_relocate_section_addresses): Likewise.
7596
2260af53 75972013-04-26 Joel Brobecker <brobecker@adacore.com>
7598
7599 GDB 7.6 released.
7600
ff546935
TT
76012013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7602
7603 PR corefiles/14983:
7604 * dwarf2read.c (process_full_comp_unit): Always create a static
7605 block.
7606
40fb6c5e
HZ
76072013-04-25 Hui Zhu <hui@codesourcery.com>
7608
7609 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7610 to loc->cmd_bytecode.
7611
74e04d1c
DE
76122013-04-24 Doug Evans <dje@google.com>
7613
7614 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7615
3cf62c1d
KS
76162013-04-22 Keith Seitz <keiths@redhat.com>
7617
7618 * tracepoint.c (trace_save): Call the writer's start method.
7619
bf9e4d0c
MB
76202013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7621
7622 PR gdb/10462
7623 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7624 before argument.
7625
5d71132c
TT
76262013-04-23 Tom Tromey <tromey@redhat.com>
7627
7628 * common/filestuff.c: Check USE_WIN32API before including
7629 sys/socket.h.
7630 (HAVE_F_GETFD): New define.
7631 (mark_cloexec): Check HAVE_F_GETFD.
7632 (gdb_open_cloexec): Change 'mode' to unsigned long.
7633 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7634 (gdb_pipe_cloexec): Check HAVE_PIPE.
7635 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7636 long.
7637
a11cfd87
HZ
76382013-04-23 Hui Zhu <hui@codesourcery.com>
7639
7640 PR gdb/15293
a11cfd87
HZ
7641 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7642
2d9442cc
HZ
76432013-04-23 Hui Zhu <hui@codesourcery.com>
7644
7645 PR gdb/15165
2d9442cc
HZ
7646 * breakpoint.c (dprintf_print_recreate): New.
7647 (save_breakpoints): Let it not save dprintf commands.
7648 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7649
614c279d
TT
76502013-04-22 Tom Tromey <tromey@redhat.com>
7651
7652 PR gdb/7912:
7653 * Makefile.in (SFILES): Add filestuff.c
7654 (COMMON_OBS): Add filestuff.o.
7655 (filestuff.o): New target.
7656 * auto-load.c (auto_load_objfile_script_1): Use
7657 gdb_fopen_cloexec.
7658 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7659 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7660 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7661 * common/agent.c (gdb_connect_sync_socket): Use
7662 gdb_socket_cloexec.
7663 * common/filestuff.c: New file.
7664 * common/filestuff.h: New file.
7665 * common/linux-osdata.c (linux_common_core_of_thread)
7666 (command_from_pid, commandline_from_pid, print_source_lines)
7667 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7668 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7669 gdb_fopen_cloexec.
7670 * common/linux-procfs.c (linux_proc_get_int)
7671 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7672 * config.in, configure: Rebuild.
7673 * configure.ac: Don't check for sys/socket.h. Check for
7674 fdwalk, pipe2.
7675 * corelow.c (core_open): Use gdb_open_cloexec.
7676 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7677 * fork-child.c (fork_inferior): Call close_most_fds.
7678 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7679 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7680 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7681 Use gdb_fopen_cloexec.
7682 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7683 gdb_open_cloexec.
7684 (linux_async_pipe): Use gdb_pipe_cloexec.
7685 * remote-fileio.c (remote_fileio_func_open): Use
7686 gdb_open_cloexec.
7687 * remote.c (remote_file_put, remote_file_get): Use
7688 gdb_fopen_cloexec.
7689 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7690 close_most_fds.
7691 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7692 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7693 * solib.c (solib_find): Use gdb_open_cloexec.
7694 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7695 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7696 (tfile_open): Use gdb_open_cloexec.
7697 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7698 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7699 * xml-support.c (xml_fetch_content_from_file): Use
7700 gdb_fopen_cloexec.
7701 * main.c (captured_main): Call notice_open_fds.
7702
5fda2332
EBM
77032013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7704
7705 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7706 'char *' to 'gdb_byte *'.
7707 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7708 'gdb_byte'.
7709
eb6c553b
YQ
77102013-04-22 Yao Qi <yao@codesourcery.com>
7711
7712 * infrun.c: Fix typo in comment.
7713
9991b207
SDJ
77142013-04-22 Andrew Haley <aph@redhat.com>
7715
7716 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7717 instead of "long".
7718
8b4833e3
YQ
77192013-04-20 Yao Qi <yao@codesourcery.com>
7720
7721 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7722 'char *' to 'gdb_byte *'. Cast the return value of
7723 'bt_ctf_get_char_array' to 'gdb_byte *'.
7724
bd3f3b55
PA
77252013-04-19 Pedro Alves <palves@redhat.com>
7726
7727 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7728 -Wpointer-sign.
7729 * configure: Regenerate.
7730
c49e7f76
PA
77312013-04-19 Pedro Alves <palves@redhat.com>
7732
7733 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7734 'void *'.
7735
12ff8552
PA
77362013-04-19 Pedro Alves <palves@redhat.com>
7737
7738 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7739 Change type of 'myaddr' parameter to gdb_byte pointer.
7740 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7741 to 'long long' pointer instead of to 'unsigned long long'.
7742 (monitor_write_memory_block, monitor_read_memory_single)
7743 (monitor_read_memory): Change type of 'myaddr' parameter to
7744 gdb_byte pointer.
7745
9c37696b
PA
77462013-04-19 Pedro Alves <palves@redhat.com>
7747
7748 * record.c (validate_history_size): Make parameter 'setting'
7749 unsigned.
7750
a398505b
PA
77512013-04-19 Pedro Alves <palves@redhat.com>
7752
7753 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7754 to 'gdb_byte *'.
7755
9f8afa72
PA
77562013-04-19 Pedro Alves <palves@redhat.com>
7757
7758 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7759 local to int.
7760
c714b426
PA
77612013-04-19 Pedro Alves <palves@redhat.com>
7762
7763 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7764 * ada-tasks.c (read_fat_string_value): Likewise.
7765
507a579c
PA
77662013-04-19 Pedro Alves <palves@redhat.com>
7767
7768 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7769 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7770 'offset', and adjust.
7771
f9d83a0b
PA
77722013-04-19 Pedro Alves <palves@redhat.com>
7773
7774 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7775 (read_index_from_section): Add cast to 'char *'.
7776
745eb4fd
PA
77772013-04-19 Pedro Alves <palves@redhat.com>
7778
7779 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7780
db5be46f
PA
77812013-04-19 Pedro Alves <palves@redhat.com>
7782
7783 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7784
0f928d68
PA
77852013-04-19 Pedro Alves <palves@redhat.com>
7786
7787 * record-full.c (record_full_get_bookmark): Change local 'ret'
7788 type to char * and add cast to gdb_byte *.
7789 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7790 string.
7791 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7792
89f6d837
PA
77932013-04-19 Pedro Alves <palves@redhat.com>
7794
7795 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7796 * python/py-prettyprint.c (print_string_repr): Change type of
7797 'output' local to char *. Add cast to gdb_byte * in
7798 LA_PRINT_STRING call.
7799 (print_children): Change type of 'output' local to char *.
7800 * python/py-value.c (valpy_string): Add cast to const char * in
7801 PyUnicode_Decode call.
7802
ce6ec7d8
PA
78032013-04-19 Pedro Alves <palves@redhat.com>
7804
7805 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7806 and change its type to 'const char *'. Adjust.
7807 (mips_send_packet): Add cast to 'char *', and remove cast to
7808 'unsigned char *'.
7809 (mips_receive_packet): Remove cast to 'unsigned char *'.
7810 (mips_load_srec): Use bfd_byte.
7811 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7812 (pmon_checkset): Make 'value' parameter unsigned.
7813
fda0389f
PA
78142013-04-19 Pedro Alves <palves@redhat.com>
7815
7816 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7817
bc20a4af
PA
78182013-04-19 Pedro Alves <palves@redhat.com>
7819
7820 * remote.c (remote_write_bytes_aux, compare_sections_command)
7821 (remote_read_qxfer)
7822 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7823 (remote_hostio_readlink, remote_bfd_iovec_pread)
7824 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7825 binary buffer, and char when buffer is used as string.
7826 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7827 (trace_save, tfile_open, traceframe_walk_blocks)
7828 (tfile_fetch_registers): Likewise.
7829
c628b528
PA
78302013-04-19 Pedro Alves <palves@redhat.com>
7831
7832 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7833 buffer and size_t size. Adjust.
7834 * ser-base.h (ser_base_write): Adjust.
7835 * ser-go32.c (cnts): Change type to size_t.
7836 (dos_write): Change prototype -- take 'void *'
7837 buffer and size_t size. Adjust.
7838 (dos_info): Print elements of 'cnts' as unsigned long.
7839 * serial.c (serial_write): Likewise.
7840 * serial.h (serial_write): Adjust.
7841 (struct serial_ops) <write>: Change prototype -- take 'void *'
7842 buffer and size_t size. Adjust.
7843
51a5cd90
PA
78442013-04-19 Pedro Alves <palves@redhat.com>
7845
7846 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7847 gdb_byte *.
7848 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7849
a9933661
PA
78502013-04-19 Pedro Alves <palves@redhat.com>
7851
7852 * alpha-tdep.c (alpha_extract_return_value): Use
7853 regcache_cooked_read_unsigned to read 'v0'.
7854
19afdd07
PA
78552013-04-19 Pedro Alves <palves@redhat.com>
7856
7857 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7858 parameters 'at', 'as' and 'offset' to uint32_t.
7859
96b32e50
PA
78602013-04-19 Pedro Alves <palves@redhat.com>
7861
7862 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7863 'is64' to signed 'int'.
7864
eb1bd1fb
PA
78652013-04-19 Pedro Alves <palves@redhat.com>
7866
7867 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7868 parameter to int *.
7869
463920bf
PA
78702013-04-19 Pedro Alves <palves@redhat.com>
7871
7872 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7873 'insnbuf' buffer type to unsigned int[].
7874
70242eb1
PA
78752013-04-19 Pedro Alves <palves@redhat.com>
7876
7877 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7878
9d1dd0e2
PA
78792013-04-19 Pedro Alves <palves@redhat.com>
7880
7881 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7882 unsigned long *.
7883
44096aee
PA
78842013-04-19 Pedro Alves <palves@redhat.com>
7885
7886 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7887 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7888 UINT_MAX.
7889 * mips-tdep.c (heuristic_fence_post): Change type to int.
7890 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7891
e4286e57
PA
78922013-04-19 Pedro Alves <palves@redhat.com>
7893
7894 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7895 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7896 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7897
001f13d8
PA
78982013-04-19 Pedro Alves <palves@redhat.com>
7899
7900 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7901 it to get a string view of the byte buffer.
7902 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7903 type to gdb_byte *. Adjust.
7904 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7905 Change local to char *.
7906 * solib-darwin.c (find_program_interpreter): Change return type to
7907 char *. Adjust.
7908 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7909 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7910 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7911 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7912 * solib-svr4.c (find_program_interpreter): Change return type to
7913 char *. Adjust.
7914 (enable_break): Change local 'interp_name' to char *.
7915 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7916 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7917 (spu_pseudo_register_write_spu): Use char for string buffer.
7918 Adjust.
7919 (info_spu_event_command, info_spu_signal_command): Add casts to
7920 'char *'.
7921
948f8e3d
PA
79222013-04-19 Pedro Alves <palves@redhat.com>
7923
7924 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7925 gdb_byte[].
7926 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7927 * ada-lang.c (ada_value_assign): Use gdb_byte.
7928 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7929 (alphanbsd_sigtramp_offset): Use gdb_byte.
7930 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7931 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7932 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7933 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7934 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7935 * arm-tdep.c (arm_stub_unwind_sniffer)
7936 (arm_displaced_init_closure): Use gdb_byte.
7937 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7938 (arm_default_thumb_le_breakpoint)
7939 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7940 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7941 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7942 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7943 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7944 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7945 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7946 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7947 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7948 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7949 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7950 (cris_store_return_value, cris_extract_return_value): Use
7951 gdb_byte.
7952 (constraint): Change type of parameter to char * from signed
7953 char*. Use gdb_byte.
7954 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7955 of local buffer to gdb_byte *.
7956 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7957 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7958 (add_address_entry): Change type of local buffer to gdb_byte[].
7959 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7960 (frv_push_dummy_call): Use gdb_byte.
7961 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7962 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7963 (hppa_hpux_supply_save_state): Use gdb_byte.
7964 * hppa-tdep.c (hppa32_push_dummy_call)
7965 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7966 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7967 (slotN_contents, replace_slotN_contents): Change type of parameter
7968 to gdb_byte *.
7969 (fetch_instruction, ia64_pseudo_register_write)
7970 (ia64_register_to_value, ia64_value_to_register)
7971 (ia64_extract_return_value, ia64_store_return_value)
7972 (ia64_push_dummy_call): Use gdb_byte.
7973 * m32c-tdep.c (m32c_return_value): Remove cast.
7974 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7975 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7976 gdb_byte.
7977 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7978 * mn10300-tdep.c (mn10300_store_return_value)
7979 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7980 gdb_byte.
7981 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7982 (moxie_process_record): Remove casts.
7983 * ppc-ravenscar-thread.c (supply_register_at_address)
7984 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7985 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7986 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7987 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7988 * remote.c (compare_sections_command): Use gdb_byte.
7989 * score-tdep.c (score7_free_memblock): Change type of parameter to
7990 gdb_byte *.
7991 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7992 gdb_byte *. Use gdb_byte.
7993 (sh_push_dummy_call_fpu): Use gdb_byte.
7994 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7995 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7996 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7997 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7998 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7999 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8000 (sh64_store_return_value, sh64_register_convert_to_virtual):
8001 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8002 (sh64_pseudo_register_write): Use gdb_byte.
8003 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8004 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8005 buffer.
8006 (irix_current_sos): Use gdb_byte.
8007 * solib-som.c (som_current_sos): Use gdb_byte.
8008 * sparc-ravenscar-thread.c (supply_register_at_address)
8009 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8010 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8011 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8012 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8013 'gdb_byte *'.
8014 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8015 'gdb_byte *'.
8016 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8017 * xstormy16-tdep.c (xstormy16_extract_return_value)
8018 (xstormy16_store_return_value): Change parameter type to
8019 'gdb_byte *'. Adjust.
8020 (xstormy16_push_dummy_call): Use gdb_byte.
8021 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8022 (call0_analyze_prologue, execute_code): Use gdb_byte.
8023
433730c9
PA
80242013-04-19 Vladimir Kargov <kargov@gmail.com>
8025 Pedro Alves <palves@redhat.com>
8026
8027 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8028 value contents.
8029
ac9ec31b
DE
80302013-04-17 Doug Evans <dje@google.com>
8031
8032 * dwarf2read.c (struct signatured_type): New member type.
8033 (struct attribute): Replace member signatured_type with signature.
8034 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8035 (read_call_site_scope): Call follow_die_ref instead of
8036 follow_die_ref_or_sig.
8037 (read_structure_type): Rewrite handling of signatured types.
8038 (read_enumeration_type): Ditto.
8039 (read_attribute_value): Update.
8040 (build_error_marker_type): New function.
8041 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8042 Don't call error for bad types, just build an error marker type.
8043 (dump_die_shallow): Update.
8044 (follow_die_sig_1): Renamed from follow_die_sig.
8045 Don't call error for bad types, instead return NULL.
8046 (follow_die_sig): New function.
8047 (get_signatured_type, get_DW_AT_signature_type): New functions.
8048
e546e8bb
YZ
80492013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8050
8051 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8052 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8053 function.
e546e8bb 8054
ab116149
YQ
80552013-04-17 Yao Qi <yao@codesourcery.com>
8056
8057 * top.c (print_gdb_configuration): Print configure-time
8058 parameter on using libbabeltrace or not.
8059
488a42b8
PA
80602013-04-16 Pedro Alves <palves@redhat.com>
8061
8062 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8063
f5fb825b
PA
80642013-04-16 Pedro Alves <palves@redhat.com>
8065
85d494ea 8066 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8067 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8068
e1154999
PA
80692013-04-16 Pedro Alves <palves@redhat.com>
8070
8071 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8072 * common/glibc_thread_db.h: ... this new file ...
8073 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8074
e3b50a7f
PA
80752013-04-16 Will Newton <will.newton@gmail.com>
8076 Pedro Alves <palves@redhat.com>
8077
8078 PR build/11881
8079
8080 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8081 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8082 HAVE_THREAD_DB_H.
8083
1c2e4450
PA
80842013-04-16 Pedro Alves <palves@redhat.com>
8085 Eli Zaretskii <eliz@gnu.org>
8086
8087 * NEWS: Mention "set foo unlimited".
8088
4031ecc5
DE
80892013-04-15 Doug Evans <dje@google.com>
8090
19c3d4c9
DE
8091 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8092 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8093 (create_dwo_cu_reader): Renamed from
8094 create_dwo_debug_info_hash_table_reader.
8095 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8096 Remove support for multiple CUs in a DWO file.
8097 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8098
4031ecc5
DE
8099 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8100 instead of phex.
8101 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8102 (create_dwo_in_dwp): Ditto.
8103
b340913d
TT
81042013-04-15 Tom Tromey <tromey@redhat.com>
8105
8106 * NEWS: Move recent entries into "since 7.6" section.
8107
cc16e6c9
TT
81082013-04-15 Tom Tromey <tromey@redhat.com>
8109
8110 PR c++/13588:
8111 * NEWS: Update.
8112 * break-catch-throw.c (struct exception_catchpoint)
8113 <exception_rx, pattern>: New fields.
8114 (fetch_probe_arguments, dtor_exception_catchpoint)
8115 (check_status_exception_catchpoint)
8116 (print_one_detail_exception_catchpoint): New functions.
8117 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8118 Compile regular expression if needed.
8119 (extract_exception_regexp): New function.
8120 (catch_exception_command_1): Use extract_exception_regexp.
8121 (compute_exception): Use fetch_probe_arguments.
8122 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8123 and check_status fields.
8124 * cp-abi.c (cplus_typename_from_type_info): New function.
8125 * cp-abi.h (cplus_typename_from_type_info): Declare.
8126 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8127 * gdb_regex.h (compile_rx_or_error): Declare.
8128 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8129 comment.
8130 (init_gnuv3_ops): Set get_type_from_type_info field.
8131 * probe.c (compile_rx_or_error): Move...
8132 * utils.c (compile_rx_or_error): ... here.
8133
72f1fe8a
TT
81342013-04-15 Tom Tromey <tromey@redhat.com>
8135
8136 PR c++/15176:
8137 * NEWS: Update.
8138 * break-catch-throw.c (compute_exception): New function.
8139 (exception_funcs): New global.
8140 (_initialize_break_catch_throw): Create $_exception.
8141 * cp-abi.c (cplus_type_from_type_info): New function.
8142 * cp-abi.h (cplus_type_from_type_info): Declare.
8143 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8144 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8145 (gnuv3_get_type_from_type_info): New functions.
8146 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8147
fc4746a2
TT
81482013-04-15 Tom Tromey <tromey@redhat.com>
8149
8150 * break-catch-throw.c (struct exception_names): New.
8151 (exception_functions): Change type.
8152 (re_set_exception_catchpoint): Look for SDT probes.
8153
15a73f56
TT
81542013-04-15 Tom Tromey <tromey@redhat.com>
8155
8156 PR c++/10119:
8157 * break-catch-throw.c (exception_functions): New global.
8158 (gnu_v3_exception_catchpoint_ops): Move earlier.
8159 (struct exception_catchpoint): New.
8160 (classify_exception_breakpoint): Rewrite.
8161 (re_set_exception_catchpoint): New function.
8162 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8163 Allocate a struct exception_catchpoint.
8164 (catch_exception_command_1): Update.
8165 (initialize_throw_catchpoint_ops): Set 're_set' method.
8166
916703c0
TT
81672013-04-15 Tom Tromey <tromey@redhat.com>
8168
8169 * Makefile.in (SFILES): Add break-catch-throw.c
8170 (COMMON_OBS): Add break-catch-throw.o.
8171 * break-catch-throw.c: New file.
8172 * breakpoint.c: Move exception-catching code to new file.
8173 (ep_parse_optional_if_clause): No longer static.
8174 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8175
6e72ca20
TT
81762013-04-15 Tom Tromey <tromey@redhat.com>
8177
8178 PR c++/9065:
8179 * NEWS: Update.
8180 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8181 * c-exp.y (TYPEID): New token.
8182 (exp): Add new TYPEID productions.
8183 (ident_tokens): Add "typeid".
8184 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8185 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8186 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8187 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8188 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8189 case.
8190 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8191 (build_std_type_info_type, gnuv3_get_typeid_type)
8192 (gnuv3_get_typeid): New functions.
8193 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8194 new fields on ABI object.
8195 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8196 * std-operator.def (OP_TYPEID): New.
8197
715c6909
TT
81982013-04-15 Tom Tromey <tromey@redhat.com>
8199
8200 * elfread.c (elf_symtab_read): Install versioned symbol under
8201 unversioned name as well.
8202
8de20a37
TT
82032013-04-15 Tom Tromey <tromey@redhat.com>
8204
8205 PR c++/11990:
8206 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8207 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8208 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8209 (gdb_demangle): New function.
8210 * cp-support.h (gdb_demangle): Declare.
8211 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8212 (dwarf2_name): Use gdb_demangle.
8213 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8214 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8215 suffixes from name.
8216 (gnuv3_print_method_ptr): Use gdb_demangle.
8217 * jv-lang.c (java_demangle): Use gdb_demangle.
8218 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8219 * language.c (unk_lang_demangle): Use gdb_demangle.
8220 * symtab.c (symbol_find_demangled_name)
8221 (demangle_for_lookup): Use gdb_demangle.
8222
591f19e8
TT
82232013-04-15 Tom Tromey <tromey@redhat.com>
8224
8225 PR c++/12824:
8226 * NEWS: Update.
8227 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8228 New constant.
8229 (classify_exception_breakpoint): New function.
8230 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8231 (print_mention_exception_catchpoint)
8232 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8233 (catch_exception_command_1): Handle "rethrow" catchpoint.
8234 (catch_rethrow_command): New function.
8235 (_initialize_breakpoint): Add "catch rethrow" command.
8236
4d40cad2
PM
82372013-04-15 Pierre Muller <muller@sourceware.org>
8238
8239 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8240 set_gdbarch_write_pc as deprecated anymore.
8241
30bcb456
JB
82422013-04-15 Joel Brobecker <brobecker@adacore.com>
8243
8244 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8245 declarations.
8246
da9160e4
YQ
82472013-04-13 Yao Qi <yao@codesourcery.com>
8248
8249 * ctf.c (_initialize_ctf): Include "completer.h".
8250 Call add_target_with_completer instead of add_target.
8251
39ed5604
JK
82522013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8253
8254 Fix GDB regression related to PR binutils/14813.
8255 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8256 * minidebug.c (lzma_close): Add return value comment.
8257 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8258 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8259 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8260
82612013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8262
8263 * config.in: Regenerate.
8264
d521ce57
TT
82652013-04-12 Tom Tromey <tromey@redhat.com>
8266
8267 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8268 const.
8269 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8270 (struct die_reader_specs) <buffer>: Likewise.
8271 (die_reader_func_ftype): Make 'info_ptr' const.
8272 (struct line_header) <include_dirs, statement_program_start,
8273 statement_program_end>: Now const.
8274 (struct file_entry) <name>: Likewise.
8275 (struct partial_die_info) <sibling>: Likewise.
8276 (struct dwarf_block) <data>: Likewise.
8277 (dwarf2_read_section): Remove cast.
8278 (dwarf2_get_section_info): Make 'bufp' const.
8279 (read_index_from_section): Constify.
8280 (dw2_get_file_names_reader): Make 'info_ptr' const.
8281 (dw2_get_primary_filename_reader): Likewise.
8282 (read_comp_unit_head): Make 'info_ptr' and return type const.
8283 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8284 Likewise.
8285 (read_abbrev_offset): Constify.
8286 (dwarf2_create_include_psymtab): Make 'name' const.
8287 (create_debug_types_hash_table): Update.
8288 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8289 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8290 Constify.
8291 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8292 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8293 (read_comp_units_from_section): Constify.
8294 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8295 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8296 const.
8297 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8298 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8299 (create_dwp_hash_table, dwarf2_ranges_read)
8300 (dwarf2_record_block_ranges): Constify.
8301 (read_die_and_children, read_die_and_siblings_1)
8302 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8303 const.
8304 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8305 (abbrev_table_read_table): Constify.
8306 (load_partial_dies): Make 'info_ptr' const.
8307 (read_partial_die, read_attribute_value, read_attribute): Make
8308 'info_ptr' and return type const.
8309 (read_address, read_initial_length)
8310 (read_checked_initial_length_and_offset, read_offset)
8311 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8312 const.
8313 (read_direct_string): Make 'buf' and return type const.
8314 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8315 (read_indirect_string): Make return type const.
8316 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8317 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8318 'info_ptr' const.
8319 (read_str_index): Make return type const.
8320 (add_include_dir): Make 'include_dir' const.
8321 (add_file_name): Make 'name' const.
8322 (dwarf_decode_line_header): Constify.
8323 (psymtab_include_file_name): Make return type const.
8324 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8325 (dwarf2_start_subfile): Make 'filename' const.
8326 (dwarf2_const_value_attr): Make 'bytes' const.
8327 (read_signatured_type_reader): Make 'info_ptr' const.
8328 (decode_locdesc): Constify.
8329 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8330 const.
8331 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8332 'mac_end', and return type const.
8333 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8334 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8335 type const.
8336 (per_cu_header_read_in): Constify.
8337 * symfile.h (dwarf2_get_section_info): Update.
8338
d47a1bc1
TT
83392013-04-12 Tom Tromey <tromey@redhat.com>
8340
8341 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8342
6eaaf48b
EZ
83432013-04-12 Eli Zaretskii <eliz@gnu.org>
8344
fc4c25bf 8345 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8346 * top.c (print_gdb_configuration): New function, displays the
8347 details about GDB configure-time parameters.
8348 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8349 * cli/cli-cmds.c (show_configuration): New function.
8350 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8351 * main.c (captured_main) <print_configuration>: New static var.
8352 <long_options>: Use it.
8353 If --configuration was given, call print_gdb_configuration.
8354
b292c783
JK
83552013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8356 Pedro Alves <palves@redhat.com>
8357
8358 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8359 (generated_files): Add gcore.
8360 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8361 HAVE_NATIVE_GCORE_HOST.
8362 (gcore): New.
8363 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8364 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8365 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8366 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8367 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8368 Add HAVE_NATIVE_GCORE_HOST.
8369 * configure: Regenerate.
8370 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8371 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8372 AC_CONFIG_FILES for gcore.
8373 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8374 gdb_have_gcore.
8375 * gdb_gcore.sh: Rename to ...
8376 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8377 and GCORE_TRANSFORM_NAME substitutions.
8378
c96b3c4f
JK
8379 Fix parsing tabs in ${gdb_target_obs}.
8380 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8381
d6cb50a2
JK
83822013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8383
8384 * remote.c (unpush_and_perror): Add output message final dot.
8385
cf2cb5ec
YQ
83862013-04-11 Yao Qi <yao@codesourcery.com>
8387
8388 * tracepoint.c (tfile_interp_line): Fit parameters line and
8389 utpp in one line.
8390
07293be4
JB
83912013-04-10 Joel Brobecker <brobecker@adacore.com>
8392
8393 * solib.c (solib_map_sections): Remove code overwriting
8394 SO->SO_NAME with the bfd's filename.
8395
f81d1120
PA
83962013-04-10 Pedro Alves <palves@redhat.com>
8397
8398 * cli/cli-decode.c (integer_unlimited_completer): New function.
8399 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8400 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8401 completer.
8402 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8403 (is_unlimited_literal): New function.
8404 (do_set_command): Handle literal "unlimited" arguments.
8405 * frame.c (_initialize_frame) <set backtrace limit>: Document
8406 "unlimited".
8407 * printcmd.c (_initialize_printcmd) <set print
8408 max-symbolic-offset>: Add help text.
8409 * record-full.c (_initialize_record_full) <set record full
8410 insn-number-max>: Likewise.
8411 * record.c (_initialize_record) <set record
8412 instruction-history-size, set record function-call-history-size>:
8413 Add help text.
8414 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8415 help text.
8416 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8417 Likewise.
8418 * source.c (_initialize_source) <set listsize>: Add help text.
8419 * utils.c (initialize_utils) <set height, set width>: Likewise.
8420 <set pagination>: Mention "set height unlimited".
8421 * valprint.c (_initialize_valprint) <set print elements, set print
8422 repeats>: Document "unlimited".
8423
2f9d54cf
PA
84242013-04-10 Pedro Alves <palves@redhat.com>
8425
8426 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8427 instead of disconnect_tracing.
8428 * infcmd.c (detach_command, disconnect_command): Call
8429 query_if_trace_running. Adjust.
8430 * top.c: Include "tracepoint.h".
8431 (quit_target): Delete. Contents moved ...
8432 (quit_force): ... here. Wrap each stage of teardown in
8433 TRY_CATCH. Call disconnect_tracing before detaching.
8434
393fd4c3
YQ
84352013-04-10 Hui Zhu <hui@codesourcery.com>
8436 Yao Qi <yao@codesourcery.com>
8437
8438 * configure.ac: Check libbabeltrace is installed.
8439 * config.in: Regenerate.
8440 * configure: Regenerate.
8441 * Makefile.in (LIBBABELTRACE): New.
8442 (CLIBS): Add LIBBABELTRACE.
8443 * ctf.c: Include "exec.h".
8444 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8445 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8446 (ctf_save_metadata_header): Define new type aliases in
8447 metadata.
8448 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8449 in metadata. Start a new faked packet for trace status.
8450 (ctf_write_status): Write trace status to CTF.
8451 (ctf_write_uploaded_tsv): Write TSV to CTF.
8452 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8453 (ctf_write_definition_end): End the faked packet.
8454
8455 (ctx, ctf_iter, trace_dirname): New.
8456 (start_pos): New variable.
8457 (ctf_destroy, ctf_open_dir, ctf_open): New.
8458 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8459 macros.
8460 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8461 (ctf_fetch_registers, ctf_xfer_partial): New.
8462 (ctf_get_trace_state_variable_value): New.
8463 (ctf_get_tpnum_from_frame_event): New.
8464 (ctf_get_traceframe_address): New.
8465 (ctf_trace_find, ctf_has_stack): New.
8466 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8467 (ctf_get_trace_status, ctf_read_status): New.
8468 (_initialize_ctf): New.
8469 * tracepoint.c (get_tracepoint_number): New
8470 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8471 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8472 * tracepoint.h: ... here.
8473 (get_tracepoint_number): Declare it.
8474 (get_uploaded_tsv): Declare it.
8475
8476 * NEWS: Mention new configure option.
8477
5c2b4418
HZ
84782013-04-10 Pedro Alves <palves@redhat.com>
8479 Hui Zhu <hui@codesourcery.com>
8480
8481 * breakpoint.c (dprintf_re_set): New.
8482 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8483 to dprintf_re_set.
8484
a5c66735
JB
84852013-04-09 Joel Brobecker <brobecker@adacore.com>
8486
8487 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8488 Remove solib-svr4.o from the list.
8489
9e77999c
JB
84902013-04-09 Joel Brobecker <brobecker@adacore.com>
8491
8492 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8493 Use gdb_assert_not_reached instead of invalid boolean expression.
8494
1927e618
PA
84952013-04-09 Pedro Alves <palves@redhat.com>
8496
8497 * remote.c (unpush_and_perror): New function.
8498 (readchar, remote_serial_write): Use it.
8499
10782d74
MM
85002013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8501
8502 * NEWS: Mention new btrace RSP packets.
8503
4c8429ef
TT
85042013-04-08 Tom Tromey <tromey@redhat.com>
8505
8506 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8507 long.
8508
8625fc1b
TT
85092013-04-08 Tom Tromey <tromey@redhat.com>
8510
8511 * maint.c (print_bfd_section_info): Print the section index.
8512 * symmisc.c (dump_msymbols): Print the section index.
8513
e27d198c
TT
85142013-04-08 Tom Tromey <tromey@redhat.com>
8515
8516 PR symtab/8424:
8517 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8518 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8519 * breakpoint.c (resolve_sal_pc): Update.
8520 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8521 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8522 (minsym_lookup_iterator_cb): Use it.
8523 (default_read_var_value): Update.
8524 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8525 Update.
8526 * infcmd.c (jump_command): Update.
8527 * linespec.c (minsym_found): Update.
8528 * maint.c (maintenance_translate_address): Update.
8529 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8530 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8531 * parse.c (write_exp_msymbol): Update.
8532 * printcmd.c (address_info): Update.
8533 * psymtab.c (find_pc_sect_psymbol): Update.
8534 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8535 SYMBOL_OBJ_SECTION.
8536 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8537 Don't initialize SYMBOL_OBJ_SECTION.
8538 * spu-tdep.c (spu_catch_start): Update.
8539 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8540 * symmisc.c (dump_msymbols, print_symbol): Update.
8541 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8542 how fallback section is computed.
8543 (fixup_symbol_section): Update.
8544 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8545 Update.
8546 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8547 Initialize SYMBOL_SECTION.
8548 * symtab.h (struct general_symbol_info) <section>: Update comment.
8549 <obj_section>: Remove.
8550 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8551 (SYMBOL_OBJFILE): New macro.
8552
e6dc44a8
TT
85532013-04-08 Tom Tromey <tromey@redhat.com>
8554
8555 * coffread.c (record_minimal_symbol): Update.
8556 * dbxread.c (record_minimal_symbol): Update.
8557 * elfread.c (record_minimal_symbol): Update.
8558 * machoread.c (macho_symtab_add_minsym): Update.
8559 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8560 Update.
8561 * minsyms.c (prim_record_minimal_symbol): Update.
8562 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8563 argument.
8564 (prim_record_minimal_symbol_and_info): Likewise.
8565 * minsyms.h (prim_record_minimal_symbol_full)
8566 (prim_record_minimal_symbol_and_info): Update.
8567 * symtab.c (allocate_symbol, initialize_symbol)
8568 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8569 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8570 Update.
8571
36192a8d
TT
85722013-04-08 Tom Tromey <tromey@redhat.com>
8573
8574 PR symtab/8423:
8575 * solib-som.c (som_solib_section_offsets): Use BFD section
8576 indices. Set offsets for all sections.
8577 * somread.c (som_symtab_read): Compute BFD section for
8578 symbol. Use prim_record_minimal_symbol_and_info.
8579 (som_symfile_read): Fix comment.
8580 (struct find_section_offset_arg): New.
8581 (find_section_offset, set_section_index): New functions.
8582 (som_symfile_offsets): Use set_section_index to compute
8583 section indices.
8584
65cf3563
TT
85852013-04-08 Tom Tromey <tromey@redhat.com>
8586
8587 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8588 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8589 gdb_bfd_section_index.
8590 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8591 New functions.
8592 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8593 Declare.
8594 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8595 Update.
8596 * objfiles.c (add_to_objfile_sections_full): New function.
8597 (add_to_objfile_sections): Use it.
8598 (build_section_table): Rewrite.
8599 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8600 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8601 (struct objfile) <sections>: Update comment.
8602 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8603 is NULL.
8604 (ALL_OBJSECTIONS): Use it.
8605 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8606 * solib-frv.c (frv_relocate_main_executable): Update.
8607 * solib-target.c (solib_target_relocate_section_addresses):
8608 Use gdb_bfd_section_index.
8609 * symfile.c (build_section_addr_info_from_section_table):
8610 Use gdb_bfd_section_index.
8611 (build_section_addr_info_from_bfd, place_section): Likewise.
8612 * symtab.c (fixup_section): Update.
8613 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8614
7cbd4a93
TT
86152013-04-08 Tom Tromey <tromey@redhat.com>
8616
8617 * minsyms.h (struct bound_minimal_symbol): New.
8618 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8619 Remove objfile argument.
8620 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8621 Return bound_minimal_symbol.
8622 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8623 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8624 Return bound_minimal_symbol.
8625 (in_gnu_ifunc_stub): Update.
8626 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8627 Remove 'objfile_p' argument.
8628 (lookup_solib_trampoline_symbol_by_pc): Update.
8629 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8630 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8631 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8632 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8633 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8634 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8635 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8636 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8637 stack.c, symtab.c, tui/tui-disasm.c: Update.
8638
f85f34ed
TT
86392013-04-08 Tom Tromey <tromey@redhat.com>
8640
8641 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8642 Use symbol's obstack, not an objfile.
8643 * coffread.c (process_coff_symbol): Update.
8644 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8645 * jv-lang.c (add_class_symbol): Update.
8646 * mdebugread.c (new_symbol): Update.
8647 * minsyms.c (prim_record_minimal_symbol_full)
8648 (terminate_minimal_symbol_table): Update.
8649 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8650 * stabsread.c (define_symbol, read_enum_type): Update.
8651 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8652 Handle Ada specially.
8653 (symbol_set_language): Add 'obstack' argument.
8654 (symbol_set_names): Update.
8655 (symbol_natural_name, symbol_demangled_name): Always use
8656 ada_decode_symbol.
8657 * symtab.h (struct general_symbol_info)
8658 <language_specific::obstack>: New field.
8659 <ada_mangled>: New field.
8660 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8661 (symbol_set_language): Update.
8662
ccde22c0
TT
86632013-04-08 Tom Tromey <tromey@redhat.com>
8664
8665 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8666 Take an obstack, not an objfile.
8667 (symbol_set_names): Update.
8668 * symtab.h (symbol_set_demangled_name): Update.
8669
e623cf5d
TT
86702013-04-08 Tom Tromey <tromey@redhat.com>
8671
8672 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8673 allocate_symbol.
8674 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8675 (read_func_scope): Call allocate_template_symbol.
8676 (new_symbol_full): Call allocate_symbol.
8677 * jit.c (finalize_symtab): Call allocate_symbol.
8678 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8679 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8680 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8681 (common_block_end): Call allocate_symbol.
8682 * symtab.c (allocate_symbol, initialize_symbol)
8683 (allocate_template_symbol): New functions.
8684 * symtab.c (allocate_symbol, initialize_symbol)
8685 (allocate_template_symbol): Declare.
8686 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8687
f6de8ec2
PA
86882013-04-08 Pedro Alves <palves@redhat.com>
8689 Keith Seitz <keiths@redhat.com>
8690
8691 * breakpoint.c (create_breakpoint): Rename
8692 "parse_condition_and_thread" parameter to "parse_arg". Update
8693 describing comment. If !PARSE_ARG, then error out if ARG is not
8694 the empty string after extracting the location.
8695 * breakpoint.h (create_breakpoint): Rename
8696 "parse_condition_and_thread" parameter to "parse_arg".
8697
f65ce5fb
AR
86982013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8699
8700 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8701
cc5925ad
YQ
87022013-04-07 Yao Qi <yao@codesourcery.com>
8703
8704 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8705 and 'addr2' to CORE_ADDR.
8706 * target.c (update_current_target): Update.
8707 * target.h (struct target_ops) <to_trace_find>: Change parameter
8708 type to CORE_ADDR.
8709 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8710 'addr2' to CORE_ADDR.
8711 (tfile_trace_find): Likewise.
8712 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8713 Change local variable 'addr' to type CORE_ADDR.
8714 * tracepoint.h (tfind_1): Update declaration.
8715
d9ac0664
EZ
87162013-04-06 Eli Zaretskii <eliz@gnu.org>
8717
8718 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8719 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8720 Include main.h.
8721
8722 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8723 here...
8724 * main.h (windows_get_absolute_argv0): ...to here.
8725
02142a6c
DE
87262013-04-05 Doug Evans <dje@google.com>
8727
8728 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8729 (read_cutu_die_from_dwo): Add comments.
8730 (read_structure_type): Update comment.
8731 (read_enumeration_type, read_namespace_type): Update comment.
8732 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8733
43662968
JK
87342013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8735
8736 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8737 * Makefile.in (gdb.z): Remove.
8738 (install-only): Remove $(man1dir) and gdb.1 installation.
8739 * gdb.1: Remove.
8740
9ead1b84
JK
87412013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8742
8743 Fix compatibility with Linux kernel 3.8.3.
8744 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8745 to more inner block. Remove parsing of NUMBER from outer block.
8746 Parse NUMBER only if KEYWORD has been identified.
8747
d1794952
JK
87482013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8749
8750 Fix variable name shadowing.
8751 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8752 filename to mapsfilename and update its uses.
8753
9025569e
EZ
87542013-04-05 Eli Zaretskii <eliz@gnu.org>
8755
8756 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8757 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8758 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8759 details of the problem.
8760
c9a6ce02
PA
87612013-04-04 Pedro Alves <palves@redhat.com>
8762 Hui Zhu <hui@codesourcery.com>
8763
8764 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8765 tracepoint, reset its STEP_COUNT and call validate_actionline.
8766
5ff888ce
DE
87672013-04-03 Doug Evans <dje@google.com>
8768
bf6af496
DE
8769 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8770 read_die_and_siblings.
8771 (read_die_and_siblings): New function.
8772 (read_cutu_die_from_dwo): Dump die if requested.
8773 (read_die_and_children): Call read_full_die_1 and
8774 read_die_and_siblings_1.
8775 (read_full_die): Dump die if requested.
8776
8777 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8778
0ac5b59e
DE
8779 * dwarf2read.c (struct dwo_file): New member comp_dir.
8780 Rename member name to dwo_name. All uses updated.
8781 (hash_dwo_file): Include comp_dir in computation.
8782 (eq_dwo_file): Ditto.
8783 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8784 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8785
5ff888ce
DE
8786 * psymtab.c (read_psymtabs_with_fullname): Don't call
8787 psymtab_to_fullname if the basenames are different.
8788
ec83d211
JK
87892013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8790
8791 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8792 New entry about "fullname" presence.
8793
4f4352f7
PA
87942013-04-03 Pedro Alves <palves@redhat.com>
8795
8796 * NEWS: Mention x86_64/Cygwin as new native configuration.
8797
3d1d5ea3
DE
87982013-04-02 Doug Evans <dje@google.com>
8799
8800 * dwarf2read.c (read_structure_type): Fix typo in comment.
8801
be9a8770
PA
88022013-04-02 Pedro Alves <palves@redhat.com>
8803
8804 * NEWS: Mention "set/show debug aarch64", "set/show debug
8805 coff-pe-read" and "set/show debug mach-o".
8806
a46c1e42
PA
88072013-04-02 Pedro Alves <palves@redhat.com>
8808
8809 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8810
3ad18b19
EZ
88112013-04-02 Eli Zaretskii <eliz@gnu.org>
8812
8813 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8814 gdb_string.h is now in common/.
8815
e9f1758d
PA
88162013-04-02 Pedro Alves <palves@redhat.com>
8817
8818 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8819 under "New options".
8820
049dc89b
JK
88212013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8822
8823 Revert this patch:
8824 PR gdb/15275
8825 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8826
c33e31fd
PA
88272013-04-02 Pedro Alves <palves@redhat.com>
8828
8829 PR gdb/15275
8830
8831 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8832 (remote_serial_write): New function.
8833 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8834
ea5f3910
JW
88352013-04-01 Jiong Wang <jiwang@tilera.com>
8836
8837 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8838 "New targets" sections.
ea5f3910 8839
5c6fa7ab
DE
88402013-04-01 Doug Evans <dje@google.com>
8841
c0f78cd4
DE
8842 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8843 (process_enumeration_scope): Simplify.
8844
0186c6a7
DE
8845 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8846 type_unit_group ...
8847 (struct signatured_type): ... to here.
8848 (sig_type_ptr): New typedef.
8849 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8850 out of union 't'. All uses updated.
8851 (dw2_get_file_names_reader): Assert not called for a type unit.
8852 (dw2_get_file_names): Assert not called for a type unit or type
8853 unit group.
8854 (build_type_psymtabs_reader): Assert called for a type unit.
8855 (build_type_psymtab_dependencies): Assert called for a type unit group.
8856
5c6fa7ab
DE
8857 * dwarf2read.c (free_dwo_file): Add comment.
8858 (dwarf2_per_objfile_free): Unref dwp bfd.
8859
b3c0ad67 88602013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8861
8862 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8863 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8864 (read_pe_exported_syms): Remove unused 'exportix'.
8865 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8866 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8867 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8868
e2df1547
AR
88692013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8870
8871 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8872 (print_it_watchpoint): Remove unused 'bl'.
8873 (say_where): Remove unused 'uiout'.
8874 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8875 (bkpt_breakpoint_hit): Remove unused 'b'.
8876 (internal_bkpt_print_it): Remove unused 'uiout'.
8877 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8878
d81e75c0
TD
88792013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8880
8881 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8882 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8883
5a8b3f62
DE
88842013-03-29 Doug Evans <dje@google.com>
8885
ab5088bf
DE
8886 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8887 Delete arg is_dwp. All callers updated.
8888 (open_dwp_file): New function.
8889 (open_and_init_dwp_file): Call it.
8890 (get_dwp_file): New function.
8891 (lookup_dwo_cutu): Call it.
8892
a8ad1e57
DE
8893 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8894 unnecessary, cleanup.
8895
6296d8c1
DE
8896 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8897
b0c7bfa9
DE
8898 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8899 (lookup_dwo_unit): New function.
8900 (init_cutu_and_read_dies): Move DWO handling to new functions.
8901
c88ee1f0
DE
8902 * dwarf2read.c (struct signatured_type): Tweak comment.
8903 (struct dwo_unit): Tweak comment.
8904 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8905 (create_dwo_debug_info_hash_table): Tweak comment.
8906 (dwarf2_per_cu_offset_and_type): Tweak comment.
8907
5a8b3f62
DE
8908 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8909 missing .debug_types section.
8910
9852c492
YQ
89112013-03-29 Yao Qi <yao@codesourcery.com>
8912
8913 * corelow.c: Include "completer.h".
8914 (_initialize_corelow): Call add_target_with_completer with
8915 argument 'filename_completer'.
8916 * tracepoint.c: Likewise.
8917 * exec.c (_initialize_exec): Likewise.
8918 * target.c (add_target): Rename to ...
8919 (add_target_with_completer): ... this. Call set_cmd_completer
8920 if parameter completer is not NULL.
8921 (add_target): New.
8922 * target.h: Include "command.h".
8923 (add_target_with_completer): Declare it.
8924
af312be7
JB
89252013-03-28 Joel Brobecker <brobecker@adacore.com>
8926
8927 * coffread.c (is_import_fixup_symbol): New function.
8928 (record_minimal_symbol): Use is_import_fixup_symbol to
8929 detect import fixup symbols, and discard them.
8930
8a0459fd
DE
89312013-03-28 Doug Evans <dje@google.com>
8932
0349ea22
DE
8933 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8934 types hash table until we know we need it.
8935
f652bce2
DE
8936 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8937 index numbers.
8938
e4a48d9d
DE
8939 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8940 All callers updated.
8941 (dw2_print_stats): Print #read CUs too.
8942 (dump_die_shallow): Print signatured types better.
8943
8a0459fd
DE
8944 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8945 info_or_types_section to section. All uses updated.
8946 (struct dwo_unit): Ditto.
8947
bd3eecc3
PA
89482013-03-28 Pedro Alves <palves@redhat.com>
8949
8950 * NEWS (New options): New section.
8951 (New options): Mention set/show remote trace-status-packet.
8952 * remote.c (PACKET_qTStatus): New enumeration value.
8953 (remote_get_trace_status): Skip sending qTStatus if the packet is
8954 disabled. Use packet_ok.
8955 (_initialize_remote): Register a configuration command for
8956 qTStatus packet.
8957
41245087
DE
89582013-03-28 Doug Evans <dje@google.com>
8959
7edbb660
DE
8960 * symfile.c (find_separate_debug_file): Add comment.
8961 (terminate_after_last_dir_separator): Tweak comment.
8962
0018ea6f
DE
8963 * dwarf2read.c (create_partial_symtab): Add forward decl.
8964 (create_partial_symtab): Move to be closer to other psymtab functions.
8965 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8966
ca69b9e6
DE
8967 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8968 (compute_symtab_includes): Remove unnecessary forward declaration.
8969 (die_needs_namespace): Add comment marking group of functions for
8970 dwarf2 name computation.
8971
a9375afe
DE
8972 * typeprint.c (_initialize_typeprint): Improve type help text.
8973
41245087
DE
8974 * python/python.c (finish_python_initialization): Provide suggestion
8975 for how to tell gdb to find its python files.
8976
7f7cc265
PA
89772013-03-28 Pedro Alves <palves@redhat.com>
8978
8979 PR gdb/15294
8980
8981 * source.c (_initialize_source): Change back "set listsize" to an
8982 integer command.
8983
ec21308c
JK
89842013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8985
8986 PR gdb/15275
8987 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8988
840a9a1f
PA
89892013-03-27 Pedro Alves <palves@redhat.com>
8990
8991 * top.c (history_size): Rename to ...
8992 (history_size_setshow_var): ... this. Add comment.
8993 (show_commands): Use readline's 'history_length' instead of
8994 computing the history length by calling history_get in a loop.
8995 (set_history_size_command): Error out for sizes over INT_MAX.
8996 Restore previous history size on invalid size.
8997 (init_history): If HISTSIZE is negative, leave the history size as
8998 zero. Add comments.
8999 (init_main): Adjust.
9000
826ecc4d
PA
90012013-03-27 Pedro Alves <palves@redhat.com>
9002
9003 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9004 coff_pe_read" command to "set debug coff-pe-read".
9005
0ccfeeae
MM
90062013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9007
9008 * record.c (command_size_to_target_size): Fix size comparison.
9009 Change parameter type from pointer to integer to integer.
9010 Update all users.
9011
40653b35
PM
90122013-03-27 Pierre Muller <muller@sourceware.org>
9013
9014 * windows-nat.c (handle_output_debug_string): Avoid typecast
9015 from integer of different size warning.
9016
c62fa0e2
JB
90172013-03-26 Joel Brobecker <brobecker@adacore.com>
9018
9019 * windows-nat.c (handle_output_debug_string): Add empty line
9020 after local block variable definition.
9021
2c619be2
PA
90222013-03-26 Pedro Alves <palves@redhat.com>
9023
9024 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9025 (net_open): Make 'polls' local unsigned.
9026
1b493192
PA
90272013-03-26 Pedro Alves <palves@redhat.com>
9028
9029 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9030 a zuinteger command instead of uinteger.
9031
7ee70bf5
PA
90322013-03-26 Pedro Alves <palves@redhat.com>
9033
9034 * record-full.c (record_full_insn_num): Make it unsigned.
9035 (record_full_check_insn_num, record_full_message)
9036 (record_full_registers_change, record_full_xfer_partial): Remove
9037 record_full_insn_max_num check (it's always != 0).
9038 (record_full_info, record_full_restore): Use %u as format string.
9039 (): Use %u as format string.
9040 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9041 check (it's always != 0).
9042
dfd1f9bb
PA
90432013-03-26 Pedro Alves <palves@redhat.com>
9044
9045 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9046 and "set dcache size" commands zuinteger instead of uinteger.
9047
addb4faf
PA
90482013-03-26 Pedro Alves <palves@redhat.com>
9049
9050 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9051 command zuinteger instead of uinteger.
9052
b75bf488
PA
90532013-03-26 Pedro Alves <palves@redhat.com>
9054
9055 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9056 zuinteger instead of uinteger.
9057
42c634cb
PA
90582013-03-26 Pedro Alves <palves@redhat.com>
9059
9060 * record.c (record_insn_history_size_setshow_var)
9061 (record_call_history_size_setshow_var): New globals.
9062 (command_size_to_target_size): New function.
9063 (cmd_record_insn_history, cmd_record_call_history): Use
9064 command_size_to_target_size instead of cast.
9065 (validate_history_size, set_record_insn_history_size)
9066 (set_record_call_history_size): New functions.
9067 (_initialize_record): Install set_record_insn_history_size and
9068 set_record_call_history_size as "set" hooks of "set record
9069 instruction-history-size" and "set record
9070 function-call-history-size".
9071
1fb2e2b5
PA
90722013-03-26 Pedro Alves <palves@redhat.com>
9073
9074 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9075 use with history_max_entries use. Remove FIXME note.
9076
99c819ee
MM
90772013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9078
9079 * record-btrace.c (record_btrace_close): Call
9080 record_btrace_auto_disable.
9081
9f9e404c
JB
90822013-03-25 Joel Brobecker <brobecker@adacore.com>
9083
9084 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9085
ebcdfe33
DE
90862013-03-25 Doug Evans <dje@google.com>
9087
9088 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9089
24955f63
TT
90902013-03-25 Tom Tromey <tromey@redhat.com>
9091
9092 PR symtab/11462:
9093 * c-exp.y (exp): Add new productions for destructors after '.' and
9094 '->'.
9095 (write_destructor_name): New function.
9096
fce632b6
TT
90972013-03-25 Tom Tromey <tromey@redhat.com>
9098
9099 PR c++/9197:
9100 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9101 value_struct_elt, not lookup_struct_elt_type.
9102 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9103 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9104 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9105
a4341769
YQ
91062013-03-25 Yao Qi <yao@codesourcery.com>
9107
9108 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9109 instead of '_mkdir'.
9110
b5981e5a
EZ
91112013-03-23 Eli Zaretskii <eliz@gnu.org>
9112
9113 * windows-nat.c (windows_get_absolute_argv0): New function.
9114 * windows-nat.h: Add its prototype.
9115
9116 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9117 Use IS_DIR_SEPARATOR instead of looking for a character inside
9118 SLASH_STRING. Include filenames.h.
9119 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9120 relocate_gdb_directory works when passed gdb_program_name.
9121 Include windows-nat.h.
9122
598d3636
JK
91232013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9124
9125 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9126 * remote.c (trace_error): Remove the special handling of '2'.
9127 (readchar) <SERIAL_EOF>
9128 (readchar) <SERIAL_ERROR>
9129 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9130 (remote_get_trace_status): Call throw_exception if EX is
9131 TARGET_CLOSE_ERROR.
9132 * utils.c (perror_with_name): Rename to ...
9133 (throw_perror_with_name): ... here. New parameter errcode, describe it
9134 in the function comment.
9135 (perror_with_name): New function wrapper.
9136 * utils.h (enum errors): New stub declaration.
9137 (throw_perror_with_name): New declaration.
9138
82b821e9
PA
91392013-03-22 Pedro Alves <palves@redhat.com>
9140 Yao Qi <yao@codesourcery.com>
9141 Mark Kettenis <kettenis@gnu.org>
9142
9143 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9144 Don't let the user set the value to UINT_MAX directly.
9145 <var_integer>: Don't let the user set the value to INT_MAX
9146 directly.
9147
78a095c3
JK
91482013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9149
9150 * remote.c (remote_unpush_target): New function.
9151 (remote_open_1): Remove two pop_target calls, update one comment, add
9152 comment to target_preopen call. Replace pop_target call by
9153 remote_unpush_target call.
9154 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9155 pop_target calls by remote_unpush_target calls.
9156
3e74e146
PA
91572013-03-22 Pedro Alves <palves@redhat.com>
9158
9159 * linux-nat.c (linux_child_follow_fork): Don't call
9160 linux_enable_event_reporting.
9161 (linux_handle_extended_wait): Don't call
9162 linux_enable_event_reporting.
9163
a2213dca
PA
91642013-03-22 Pedro Alves <palves@redhat.com>
9165
9166 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9167 use it to rewrite the trampoline buffers with type gdb_byte[], and
9168 undefine the macro. Remove char* cast.
9169
bd712aed
DE
91702013-03-21 Doug Evans <dje@google.com>
9171
9172 New commands "mt set per-command {space,time,symtab} {on,off}".
9173 * NEWS: Add entry.
9174 * event-top.c: #include "maint.h".
9175 * main.c: #include "maint.h".
9176 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9177 timeval-utils.h, maint.h, cli/cli-setshow.h.
9178 (per_command_time, per_command_space): New static globals.
9179 (per_command_symtab): New static global.
9180 (per_command_setlist, per_command_showlist): New static globals.
9181 (struct cmd_stats): Move here from utils.c.
9182 (set_per_command_time): Renamed from set_display_time in utils.c
9183 and moved here. All callers updated.
9184 (set_per_command_space): Renamed from set_display_space in utils.c
9185 and moved here. All callers updated.
9186 (count_symtabs_and_blocks): New function.
9187 (report_command_stats): Moved here from utils.c. Add support for
9188 printing symtab stats. Only print data if enabled before command
9189 executed.
9190 (make_command_stats_cleanup): Ditto.
9191 (sert_per_command_cmd, show_per_command_cmd): New functions.
9192 (_initialize_maint_cmds): Add new commands
9193 mt set per-command {space,time,symtab} {on,off}.
9194 * maint.h: New file.
9195 * top.c: #include "maint.h".
9196 * utils.c (reset_prompt_for_continue_wait_time): New function.
9197 (get_prompt_for_continue_wait_time): New function.
9198 * utils.h (reset_prompt_for_continue_wait_time): Declare
9199 (get_prompt_for_continue_wait_time): Declare.
9200 (make_command_stats_cleanup): Moved to maint.h.
9201 (set_display_time, set_display_space): Moved to maint.h and renamed
9202 to set_per_command_time, set_per_command_space.
9203 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9204 parse_binary_operation and made non-static. Don't call error,
9205 just return an error marker. All callers updated.
9206 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9207
d76488d8
TT
92082013-03-21 Tom Tromey <tromey@redhat.com>
9209
9210 * symfile.c (alloc_section_addr_info): Update header. Don't set
9211 'num_sections' field.
9212 (build_section_addr_info_from_section_table): Set 'num_sections'.
9213 (build_section_addr_info_from_bfd): Likewise.
9214 (build_section_addr_info_from_objfile): Remove dead loop
9215 condition.
9216 (free_section_addr_info): Unconditionally call xfree.
9217 (relative_addr_info_to_section_offsets, addrs_section_sort)
9218 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9219 condition.
9220 (syms_from_objfile_1): Remove dead 'if' condition. Check
9221 'num_sections'.
9222 (add_symbol_file_command): Set 'num_sections'.
9223 * symfile-mem.c (symbol_file_add_from_memory): Set
9224 'num_sections'.
9225 * somread.c (som_symfile_offsets): Remove dead loop condition.
9226 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9227 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9228
a72e5169 92292013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9230
9231 * tracepoint.h (decode_agent_options): Add 'trace_string'
9232 argument.
9233 * tracepoint.c (decode_agent_options): Add 'trace_string'
9234 argument.
9235 (validate_actionline): Update.
9236 (collect_symbol): Add 'trace_string' argument.
9237 (struct add_local_symbols_data) <trace_string>: New field.
9238 (do_collect_symbol): Update.
9239 (add_local_symbols): Add 'trace_string' argument.
9240 (encode_actions_1): Update.
9241 (trace_dump_actions): Update.
9242 * dwarf2loc.c (access_memory): Update.
9243 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9244 * ax-general.c (new_agent_expr): Update.
9245 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9246 (gen_trace_for_return_address): Add argument.
9247 (trace_kludge, trace_string_kludge): Remove.
9248 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9249 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9250 (gen_trace_for_var): Add 'trace_string' argument.
9251 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9252 (gen_printf, agent_eval_command_one): Update.
9253
b2f83c08
TT
92542013-03-21 Tom Tromey <tromey@redhat.com>
9255
9256 PR exp/15109:
9257 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9258 Handle FILENAME token.
9259
9507860e
TT
92602013-03-21 Tom Tromey <tromey@redhat.com>
9261
9262 * c-exp.y (YYPRINT): Define.
9263 (c_print_token): New function.
9264
e403aa4b
TT
92652013-03-21 Tom Tromey <tromey@redhat.com>
9266
9267 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9268
af307d6a
YQ
92692013-03-21 Yao Qi <yao@codesourcery.com>
9270
9271 * ctf.c: Include "gdb_stat.h".
9272 [USE_WIN32API]: New macro 'mkdir'.
9273 (ctf_start): Use permission bits macros if they are defined.
9274
fb81d016
KS
92752013-03-20 Keith Seitz <keiths@redhat.com>
9276
9277 * breakpoint.h (struct breakpoint): Add comment to
9278 extra_string indicating that this member is mallod'd.
9279 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9280
ef0026f0
PA
92812013-03-20 Pedro Alves <palves@redhat.com>
9282
9283 PR gdb/15289
9284
9285 * cli/cli-setshow.c (do_set_command)
9286 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9287 the result of parsing the command argument. Throw error if the
9288 value is greater than UINT_MAX. Print the invalid value with
9289 plongest.
9290 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9291 result of parsing the command argument. Throw error if the value
9292 is greater than INT_MAX, not greater or equal. Also throw error
9293 if the value is less than INT_MIN. Print the invalid value with
9294 plongest.
9295 <var_zuinteger_unlimited>: Throw error if the value is greater
9296 than INT_MAX, not greater or equal.
9297 (do_show_command) <var_integer, var_zinteger,
9298 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9299
24d6c2a0
TT
93002013-03-20 Tom Tromey <tromey@redhat.com>
9301
9302 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9303 if possible.
9304 * dwarf2read.c (read_func_scope): Remove old FIXME.
9305 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9306 not LOC_COMPUTED.
9307 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9308 Unconditionally call via computed ops, if possible.
9309 * printcmd.c (address_info): Unconditionally call via computed ops,
9310 if possible.
9311 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9312 if possible.
9313 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9314 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9315 if possible.
9316
f1e6e072
TT
93172013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9318 Tom Tromey <tromey@redhat.com>
9319
9320 PR symtab/8421:
9321 * coffread.c (coff_register_index): New global.
9322 (process_coff_symbol, coff_read_enum_type): Set
9323 SYMBOL_ACLASS_INDEX.
9324 (_initialize_coffread): Initialize new global.
9325 * dwarf2loc.c (locexpr_find_frame_base_location)
9326 (dwarf2_block_frame_base_locexpr_funcs)
9327 (loclist_find_frame_base_location)
9328 (dwarf2_block_frame_base_loclist_funcs): New.
9329 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9330 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9331 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9332 (dwarf2_block_frame_base_loclist_funcs): New.
9333 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9334 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9335 globals.
9336 (read_func_scope): Update.
9337 (fixup_go_packaging, mark_common_block_symbol_computed)
9338 (var_decode_location, new_symbol_full, dwarf2_const_value):
9339 Set SYMBOL_ACLASS_INDEX.
9340 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9341 (_initialize_dwarf2_read): Initialize new globals.
9342 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9343 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9344 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9345 globals.
9346 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9347 (_initialize_mdebugread): Initialize new globals.
9348 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9349 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9350 (stab_register_index, stab_regparm_index): New globals.
9351 (define_symbol, read_enum_type, common_block_end): Set
9352 SYMBOL_ACLASS_INDEX.
9353 (_initialize_stabsread): Initialize new globals.
9354 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9355 globals.
9356 (MAX_SYMBOL_IMPLS): New define.
9357 (register_symbol_computed_impl, register_symbol_block_impl)
9358 (register_symbol_register_impl)
9359 (initialize_ordinary_address_classes): New functions.
9360 (_initialize_symtab): Call initialize_ordinary_address_classes.
9361 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9362 (struct symbol_impl): New.
9363 (SYMBOL_ACLASS_BITS): New define.
9364 (struct symbol) <aclass, ops>: Remove fields.
9365 <aclass_index>: New field.
9366 (symbol_impls): Declare.
9367 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9368 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9369 (register_symbol_computed_impl, register_symbol_block_impl)
9370 (register_symbol_register_impl): Declare.
9371 (struct symbol_computed_ops): Add location_has_loclist.
9372 (struct symbol_block_ops): New.
9373 (SYMBOL_BLOCK_OPS): New.
9374 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9375
dbccfd4c
TT
93762013-03-20 Tom Tromey <tromey@redhat.com>
9377
9378 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9379 (print_partial_symbols, recursively_search_psymtabs): Use
9380 PSYMBOL_CLASS.
9381
e3f1ad4f
PM
93822013-03-20 Pierre Muller <muller@sourceware.org>
9383
9384 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9385 addtion, subtraction, multiplication and division binary operator.
9386
460014f5
JK
93872013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9388
9389 Code cleanup.
9390 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9391 * bsd-kvm.c (bsd_kvm_close): Likewise.
9392 * bsd-uthread.c (bsd_uthread_close): Likewise.
9393 * corelow.c (core_close): Likewise.
9394 (core_close_cleanup): Remove parameter quitting from a caller.
9395 * event-top.c (async_disconnect): Likewise.
9396 * exec.c (exec_close_1): Remove parameter quitting.
9397 * go32-nat.c (go32_close): Likewise.
9398 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9399 parameter quitting from a caller.
9400 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9401 variable.
9402 (mips_linux_close): Remove parameter quitting. Remove parameter
9403 quitting from a caller.
9404 * monitor.c (monitor_close): Remove parameter quitting.
9405 * monitor.h (monitor_close): Likewise.
9406 * record-btrace.c (record_btrace_close): Likewise.
9407 * record-full.c (record_full_close): Likewise.
9408 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9409 it also from fprintf_unfiltered.
9410 * remote-mips.c (mips_close): Remove parameter quitting.
9411 (mips_detach): Remove parameter quitting from a caller.
9412 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9413 (gdbsim_close): Remove duplicate function comment. Remove parameter
9414 quitting and remove it also from printf_filtered.
9415 * remote.c (remote_close): Remove parameter quitting.
9416 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9417 * target.c (update_current_target): Remove parameter int from to_close
9418 de_fault.
9419 (push_target, unpush_target, pop_target): Remove parameter quitting from
9420 a caller.
9421 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9422 Remove parameter quitting from a caller.
9423 (target_preopen): Remove parameter quitting from a caller.
9424 (target_close): Remove parameter quitting. Remove parameter quitting
9425 from a caller two times. Remove parameter quitting also from
9426 fprintf_unfiltered.
9427 * target.h (struct target_ops): Remove parameter quitting and as int
9428 from fields to_xclose and to_close.
9429 (extern struct target_ops current_target):
9430 (target_close, pop_all_targets): Remove parameter quitting. Update the
9431 comment.
9432 (pop_all_targets_above): Remove parameter quitting.
9433 * top.c (quit_target): Remove parameter quitting from a caller.
9434 * tracepoint.c (tfile_close): Remove parameter quitting.
9435 * windows-nat.c (windows_close): Remove parameter quitting.
9436
35a7120b
CV
94372013-03-20 Corinna Vinschen <vinschen@redhat.com>
9438
9439 * windows-nat.c (handle_output_debug_string): Replace call
9440 to string_to_core_addr with call to strtoull.
9441
8249a5a9
YQ
94422013-03-20 Yao Qi <yao@codesourcery.com>
9443
9444 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9445 and write it to CTF metadata.
9446
2c15ef43
CV
94472013-03-19 Corinna Vinschen <vinschen@redhat.com>
9448
9449 * windows-nat.c (handle_output_debug_string): Change type of n to
9450 SIZE_T to avoid crash on 64 bit systems.
9451
1cdd3232
EZ
94522013-03-17 Eli Zaretskii <eliz@gnu.org>
9453
9454 * python/python-internal.h (HAVE_SNPRINTF)
9455 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9456 about redefinition of snprintf by pyerrors.h.
9457
3cb2ab1a
SE
94582013-03-15 Steve Ellcey <sellcey@mips.com>
9459
9460 * remote-sim.c (sim_command_completer): Make char arguments const.
9461
9ce98649
TT
94622013-03-15 Tom Tromey <tromey@redhat.com>
9463
9464 PR c++/15116:
9465 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9466
dccee2de
TT
94672013-03-14 Tom Tromey <tromey@redhat.com>
9468
9469 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9470 New fields.
9471 (get_file_crc): Move from symfile.c.
9472 (gdb_bfd_crc): New function.
9473 * gdb_bfd.h (gdb_bfd_crc): Declare.
9474 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9475 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9476 (separate_debug_file_exists): Use gdb_bfd_crc.
9477
cc0ea93c
TT
94782013-03-14 Tom Tromey <tromey@redhat.com>
9479
9480 * symfile.c (get_debug_link_info): Remove.
9481 (find_separate_debug_file_by_debuglink): Use
9482 bfd_get_debug_link_info.
9483
08c23b0d
TT
94842013-03-14 Tom Tromey <tromey@redhat.com>
9485
9486 * symtab.c (error_in_psymtab_expansion): New function.
9487 (lookup_symbol_aux_quick)
9488 (basic_lookup_transparent_type_quick): Remove "last resort"
9489 code. Use error_in_psymtab_expansion.
9490
288e77a7
JK
94912013-03-14 Doug Evans <dje@google.com>
9492 Jan Kratochvil <jan.kratochvil@redhat.com>
9493
9494 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9495 any successful compare_filenames_for_search or FILENAME_CMP.
9496 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9497 * symtab.c (iterate_over_some_symtabs): Likewise.
9498
8f1b8b82
JK
94992013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9500
9501 * source.c (print_source_lines_base): Make a local copy of
9502 symtab_to_fullname.
9503
23eb71e4
JK
95042013-03-14 Hui Zhu <hui_zhu@mentor.com>
9505 Jan Kratochvil <jan.kratochvil@redhat.com>
9506
9507 * source.c (print_source_lines_base): Suppress "file" for TUI.
9508
bb869963
SDJ
95092013-03-14 Keith Seitz <keiths@redhat.com>
9510 Alan Matsuoka <alanm@redhat.com>
9511
9512 PR c++/15203
9513 PR c++/15210
9514 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9515 TYPE_CODE_METHOD.
9516 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9517 symbols.
9518
d6682f9e
YQ
95192013-03-14 Yao Qi <yao@codesourcery.com>
9520
9521 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9522 status to tfile if trace is stopped by command 'tstop'.
9523
a22fa6e4
YQ
95242013-03-14 Yao Qi <yao@codesourcery.com>
9525
9526 * tracepoint.c (tfile_write_status): Write trace notes and user
9527 name into tfile if they are not NULL.
9528
d0353e76
YQ
95292013-03-14 Hui Zhu <hui@codesourcery.com>
9530 Yao Qi <yao@codesourcery.com>
9531
9532 * Makefile.in (REMOTE_OBS): Add ctf.o.
9533 (SFILES): Add ctf.c.
9534 (HFILES_NO_SRCDIR): Add ctf.h.
9535 * ctf.c, ctf.h: New files.
9536 * tracepoint.c: Include 'ctf.h'.
9537 (collect_pseudocommand): Remove static.
9538 (trace_save_command): Parse option "-ctf".
9539 Produce different trace file writers per option.
9540 Adjust output message.
9541 (trace_save_tfile, trace_save_ctf): New.
9542 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9543 * mi/mi-main.c: Include 'ctf.h'.
9544 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9545 trace_save_tfile or trace_save_ctf.
9546 * NEWS: Mention these changes.
9547
3f43bc09
YQ
95482013-03-14 Yao Qi <yao@codesourcery.com>
9549
9550 * tracepoint.c (trace_file_writer_xfree): New.
9551 (struct tfile_writer_data): New.
9552 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9553 (tfile_write_header, tfile_write_regblock_type): New.
9554 (tfile_write_status, tfile_write_uploaded_tsv): New.
9555 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9556 (tfile_write_raw_data, (tfile_end): New.
9557 (tfile_write_ops): New global variable.
9558 (TRACE_WRITE_R_BLOCK): New macro.
9559 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9560 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9561 (TRACE_WRITE_V_BLOCK): New macro.
9562 (trace_save): Add extra one parameter WRITER. Make it static.
9563 Use WRITER to writer trace.
9564 (tfile_trace_file_writer_new): New.
9565 (trace_save_command): Caller update.
9566 (trace_save_tfile): Write trace data in TFILE format.
9567 * tracepoint.h (struct trace_frame_write_ops): New.
9568 (struct trace_file_write_ops): New.
9569 (struct trace_file_writer): New.
9570 (trace_save): Remove its declaration.
9571 (trace_save_tfile): Declare it.
9572 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9573 instead of trace_save.
9574
58665b40
PA
95752013-03-13 Pedro Alves <palves@redhat.com>
9576
9577 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9578
10217050
PA
95792013-03-13 Pedro Alves <palves@redhat.com>
9580
9581 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9582 commented out code.
9583 * demangle.c (current_demangling_style_string): Make it const.
9584 (set_demangling_command): Assert the demangling style is known.
9585 Remove all handling of unknown styles. Set
9586 'current_demangling_style_string' to an element of the
9587 demangling_style_names array.
9588 (set_demangling_style): Delete.
9589 (_initialize_demangler): Set current_demangling_style_string to the
9590 element of the demangling_style_names array that corresponds to
9591 the default demangling style. Remove FIXME note. Don't call
9592 set_demangling_style.
9593 * gdb-demangle.h (set_demangling_style): Remove declaration.
9594
6f937416
PA
95952013-03-13 Pedro Alves <palves@redhat.com>
9596
9597 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9598 fields const.
9599 (ada_make_symbol_completion_list): Make "text0" parameter const.
9600 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9601 * breakpoint.c (condition_completer): Make "text" and "word"
9602 parameters const. Adjust.
9603 (check_tracepoint_command): Adjust to validate_actionline
9604 prototype change.
9605 (catch_syscall_completer): Make "text" and "word" parameters
9606 const.
9607 * cli/cli-cmds.c (show_user): Make "comname" local const.
9608 (valid_command_p): Make "command" parameter const.
9609 (alias_command): Make "alias_prefix" and "command_prefix" locals
9610 const.
9611 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9612 (add_alias_cmd): Make "name" and "oldname" parameters const.
9613 Adjust. No longer make copy of OLDNAME.
9614 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9615 (add_setshow_cmd_full, add_setshow_enum_cmd)
9616 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9617 (add_setshow_filename_cmd, add_setshow_string_cmd)
9618 (add_setshow_string_noescape_cmd)
9619 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9620 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9621 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9622 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9623 Make "name" parameter const.
9624 (help_cmd): Rename "command" parameter to "arg". New const local
9625 "command".
9626 (find_cmd): Make "command" parameter const.
9627 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9628 deprecated_cmd_warning prototype change.
9629 (undef_cmd_error): Make "cmdtype" parameter const.
9630 (lookup_cmd): Make "line" parameter const.
9631 (deprecated_cmd_warning): Change type of "text" parameter to
9632 pointer to const char, from pointer to pointer to char. Adjust.
9633 (lookup_cmd_composition): Make "text" parameter const.
9634 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9635 parameters const.
9636 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9637 const.
9638 * cli/cli-script.c (validate_comname): Make "tem" local const.
9639 (define_command): New const local "tem_c". Use it in calls to
9640 lookup_cmd.
9641 (document_command): Make "tem" and "comfull" locals const.
9642 (show_user_1): Make "prefix" and "name" parameters const.
9643 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9644 const.
9645 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9646 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9647 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9648 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9649 (complete_on_enum, add_setshow_enum_cmd)
9650 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9651 (add_setshow_filename_cmd, add_setshow_string_cmd)
9652 (add_setshow_string_noescape_cmd)
9653 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9654 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9655 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9656 Change prototypes, constifying strings.
9657 * completer.c (noop_completer, filename_completer): Make "text"
9658 and "prefix" parameters const.
9659 (location_completer, expression_completer)
9660 (complete_line_internal): Make "text" and "prefix" parameters
9661 const and adjust.
9662 (command_completer, signal_completer): Make "text" and "prefix"
9663 parameters const.
9664 * completer.h (noop_completer, filename_completer)
9665 (expression_completer, location_completer, command_completer)
9666 (signal_completer): Change prototypes.
9667 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9668 parameters const.
9669 * cp-abi.c (cp_abi_completer): Likewise.
9670 * expression.h (parse_expression_for_completion): Change
9671 prototype.
9672 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9673 parameters const.
9674 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9675 * infrun.c (handle_completer): Make "text" and "word" parameters
9676 const.
9677 * interps.c (interpreter_completer): Make "text" and "word"
9678 parameters const.
9679 * language.h (struct language_defn)
9680 <la_make_symbol_completion_list>: Make "text" and "word"
9681 parameters const.
9682 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9683 (parse_exp_in_context): Rename to ...
9684 (parse_exp_in_context_1): ... this.
9685 (parse_exp_in_context): Reimplement, with const hack from
9686 parse_exp_1.
9687 (parse_expression_for_completion): Make "string" parameter const.
9688 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9689 to pointer to const char. Adjust.
9690 (print_command_1): Make "exp" parameter const.
9691 (output_command): Rename to ...
9692 (output_command_const): ... this. Make "exp" parameter const.
9693 (output_command): Reimplement.
9694 (x_command): Adjust.
9695 (display_command): Rename "exp" parameter to "arg". New "exp"
9696 local, const version of "arg".
9697 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9698 "cmd_name" local const.
9699 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9700 call.
9701 (cmdpy_completer): Make "text" and "word" parameters const.
9702 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9703 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9704 const.
9705 * remote.c (_initialize_remote): Make "cmd_name" local const.
9706 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9707 parameters const. Adjust.
9708 (completion_list_add_fields): Make "sym_text", "text" and "word"
9709 parameters const.
9710 (struct add_name_data) <sym_text, text, word>: Make fields const.
9711 (default_make_symbol_completion_list_break_on): Make "text" and
9712 "word" parameters const. Adjust locals.
9713 (default_make_symbol_completion_list)
9714 (make_symbol_completion_list, make_symbol_completion_type)
9715 (make_symbol_completion_list_fn): Make "text" and "word"
9716 parameters const.
9717 (make_file_symbol_completion_list): Make "text", "word" and
9718 "srcfile" parameters const. Adjust locals.
9719 (add_filename_to_list): Make "text" and "word" parameters const.
9720 (struct add_partial_filename_data) <text, word>: Make fields
9721 const.
9722 (make_source_files_completion_list): Make "text" and "word"
9723 parameters const.
9724 * symtab.h (default_make_symbol_completion_list_break_on)
9725 (default_make_symbol_completion_list, make_symbol_completion_list)
9726 (make_symbol_completion_type enum type_code)
9727 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9728 (make_source_files_completion_list): Change prototype.
9729 * top.c (execute_command): Adjust to pass pointer to pointer to
9730 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9731 change.
9732 (set_verbose): Make "cmdname" local const.
9733 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9734 and adjust.
9735 (validate_actionline): Make "line" parameter a pointer to const
9736 char, and adjust.
9737 (encode_actions_1): Make "action_exp" local const, and adjust.
9738 (encode_actions): Adjust.
9739 (replace_comma): Delete.
9740 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9741 const, and adjust. Don't frob the action string while splitting
9742 it at commas. Instead, make a copy of each split substring in
9743 turn.
9744 (trace_dump_command): Adjust to validate_actionline prototype
9745 change.
9746 * tracepoint.h (decode_agent_options, decode_agent_options)
9747 (encode_actions, validate_actionline): Change prototypes.
9748 * valprint.h (output_command): Delete declaration.
9749 (output_command_const): Declare.
9750 * value.c (function_destroyer): Cast const away in xfree call.
9751
a0bcdaa7
PA
97522013-03-13 Pedro Alves <palves@redhat.com>
9753
9754 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9755 rather than casting 'const char * const *' to 'const char **'.
9756 * ada-lex.l (processInt): Make "trailer" local const. Remove
9757 'const char **' cast.
9758 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9759 locals, and use those as strtol output pointer, instead than doing
9760 invalid casts to from 'const char **' to 'char **'.
9761 (_initialize_demangle): Remove cast.
9762 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9763 locals, and use those as strtol output pointer, instead than doing
9764 invalid casts to from 'const char **' to 'char **'.
9765 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9766 casts.
9767 * stap-probe.c (stap_parse_register_operand)
9768 (stap_parse_single_operand): Likewise.
9769
8ddb1965
YQ
97702013-03-13 Yao Qi <yao@codesourcery.com>
9771
9772 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9773 the last matched 'V' blcok in trace frame.
9774
2d450646
JB
97752013-03-12 Joel Brobecker <brobecker@adacore.com>
9776
9777 * NEWS: Create a new section for the next release branch.
9778 Rename the section of the current branch, now that it has
9779 been cut.
9780
b4b79973 97812013-03-12 Joel Brobecker <brobecker@adacore.com>
9782
9783 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9784 * version.in: Bump version to 7.6.50.20130312-cvs.
9785
ee047554
KS
97862013-03-12 Keith Seitz <keiths@redhat.com>
9787
9788 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9789 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9790 Remove temporary copy of input string.
9791 (mi_execute_command_wrapper): Make "cmd" const.
9792 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9793 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9794 Use const strings.
9795 (mi_parse): Make "cmd" const.
9796 Use const strings.
9797 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9798
bbc13ae3
KS
97992013-03-12 Keith Seitz <keiths@redhat.com>
9800
9801 * ada-lang.c (ada_read_renaming_var_value): Pass const
9802 pointer to expression string to parse_exp_1.
9803 (create_excep_cond_exprs): Likewise.
9804 * ax-gdb.c (agent_eval_command_one): Likewise.
9805 (maint_agent_printf_command): Likewise.
9806 Constify much of the string handling/parsing.
9807 * breakpoint.c (set_breakpoint_condition): Pass const
9808 pointer to expression string to parse_exp_1.
9809 (update_watchpoint): Likewise.
9810 (parse_cmd_to_aexpr): Constify string handling.
9811 Pass const pointer to parse_exp_1.
9812 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9813 (find_condition_and_thread): Likewise.
9814 Make TOK const.
9815 (watch_command_1): Make "arg" const.
9816 Constify string handling.
9817 Copy the expression string instead of changing the input
9818 string.
9819 (update_breakpoint_location): Pass const pointer to
9820 parse_exp_1.
9821 * eval.c (parse_and_eval_address): Make "exp" const.
9822 (parse_to_comma_and_eval): Make "expp" const.
9823 (parse_and_eval): Make "exp" const.
9824 * expression.h (parse_expression): Make argument const.
9825 (parse_exp_1): Make first argument const.
9826 * findcmd.c (parse_find_args): Treat "args" as const.
9827 * linespec.c (parse_linespec): Pass const pointer to
9828 linespec_expression_to_pc.
9829 (linespec_expression_to_pc): Make "exp_ptr" const.
9830 * parse.c (parse_exp_1): Make "stringptr" const.
9831 Make a copy of the expression to pass to parse_exp_in_context until
9832 this whole interface can be constified.
9833 (parse_expression): Make "string" const.
9834 * printcmd.c (ui_printf): Treat "arg" as const.
9835 Handle const strings.
9836 * tracepoint.c (validate_actionline): Pass const pointer to
9837 all calls to parse_exp_1.
9838 (encode_actions_1): Likewise.
9839 * value.h (parse_to_comma_and_eval): Make argument const.
9840 (parse_and_eval_address): Likewise.
9841 (parse_and_eval): Likewise.
9842 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9843 (varobj_set_value): Likewise.
9844 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9845 constify string handling.
9846 Pass const pointers to parse_and_eval_address and
9847 parse_to_comman_and_eval.
9848 * cli/cli-utils.c (skip_to_space): Rename to ...
9849 (skip_to_space_const): ... this. Handle const strings.
9850 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9851 skip_to_space_const.
9852 (skip_to_space_const): Declare.
9853 * common/format.c (parse_format_string): Make "arg" const.
9854 Handle const strings.
9855 * common/format.h (parse_format_string): Make "arg" const.
9856 * gdbserver/ax.c (ax_printf): Make "format" const.
9857 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9858 of the expression string.
9859
f3cec7e6
HZ
98602013-03-12 Hui Zhu <hui@codesourcery.com>
9861
9862 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9863
9df7235c
HZ
98642013-03-12 Yao Qi <yao@codesourcery.com>
9865 Hui Zhu <hui@codesourcery.com>
9866
9867 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9868 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9869 DW_OP_deref_size.
9870
82d049ab
PH
98712013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9872
5f8e0b8f
MF
9873 * ada-lex.l (rules): Only recognize 'thread' as a
9874 delimiter when followed by numerals, as for c-exp.y.
9875 Use new rewind_to_char function to rewind the input for
9876 expression-delimiting tokens.
9877 (rewind_to_char): New function.
82d049ab 9878
8c1fb155
JK
98792013-03-11 Pedro Alves <palves@redhat.com>
9880 Jan Kratochvil <jan.kratochvil@redhat.com>
9881
9882 * configure: Regenerate.
9883 * configure.ac (check dynamic export flag): Link python test with
9884 $PYTHON_LIBS.
9885
cc81e1c6
DE
98862013-03-11 Doug Evans <dje@google.com>
9887 Keith Seitz <keiths@redhat.com>
9888
9889 * linespec.c (find_linespec_symbols): Call find_function_symbols
9890 first, and then call lookup_prefix_sym/find_method.
9891
39086a0e
PA
98922013-03-11 Pedro Alves <palves@redhat.com>
9893
9894 * charset.c (convert_between_encodings): Don't cast between
9895 different pointer to pointer types. Instead, make the 'inp' local
9896 be of the type iconv expects.
9897 (wchar_iterate): Don't cast between different pointer to pointer
9898 types. Instead, use new pointer local of the type iconv expects.
9899 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9900 Add new local of type char pointer, and use it to get a
9901 char/string view of the byte buffer, instead of casting between
9902 pointer to pointer types.
9903
90585175
HAQ
99042013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9905
9906 * remote.c (remote_set_trace_buffer_size): Move != operator
9907 to the start of next line to fix an ARI warning.
9908
59ea5688
MM
99092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9910
9911 * NEWS: Add record changes.
9912
946287b7
MM
99132013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9914
9915 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9916 the instruction history disassembly.
9917 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9918 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9919
afedecd3
MM
99202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9921
9922 * Makefile.in (SFILES): Add record-btrace.c
9923 (COMMON_OBS): Add record-btrace.o
9924 * record-btrace.c: New.
9925 * objfiles.c: Include btrace.h.
9926 (free_objfile): call btrace_free_objfile.
9927
15984c13
MM
99282013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9929
9930 * target.c (target_call_history, target_call_history_from,
9931 target_call_history_range): New.
9932 * target.h (target_ops) <to_call_history, to_call_history_from,
9933 to_call_history_range>: New fields.
9934 (target_call_history, target_call_history_from,
9935 target_call_history_range): New declaration.
9936 * record.c (get_call_history_modifiers, cmd_record_call_history,
9937 record_call_history_size): New.
9938 (_initialize_record): Add the "record function-call-history" command.
9939 Add "set/show record function-call-history-size" commands.
9940 * record.h (record_print_flag): New.
9941
67c86d06
MM
99422013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9943
9944 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9945 to_insn_history_range>: New fields.
9946 (target_insn_history): New.
9947 (target_insn_history_from): New.
9948 (target_insn_history_range): New.
9949 * target.c (target_insn_history): New.
9950 (target_insn_history_from): New.
9951 (target_insn_history_range): New.
9952 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9953 (record_insn_history_size): New.
9954 (get_insn_number): New.
9955 (get_context_size): New.
9956 (no_chunk): New.
9957 (get_insn_history_modifiers): New.
9958 (cmd_record_insn_history): New.
9959 (_initialize_record): Add "set/show record instruction-history-size"
9960 command. Add "record instruction-history" command.
9961
7c1687a9
MM
99622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9963
9964 * record.h (record_disconnect): New.
9965 (record_detach): New.
9966 (record_mourn_inferior): New.
9967 (record_kill): New.
9968 * record-full.c (record_disconnect, record_detach,
9969 record_mourn_inferior, record_kill): Move to...
9970 * record.c: ...here.
9971 (DEBUG): New.
9972 (record_stop): New.
9973 (record_unpush): New.
9974 (cmd_record_stop): Call record_stop. Replace unpush_target
9975 call with record_unpush call.
9976 (record_disconnect, record_detach): Assert that the target
9977 is of record stratum. Call record_unpush, record_stop, and
9978 DEBUG.
9979 (record_mourn_inferior, record_kill): Assert that the target
9980 is of record stratum. Call record_unpush and DEBUG.
9981
25ea693b
MM
99822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9983
9984 * record-full.h, record-full.c (record_memory_query): Rename
9985 to ...
9986 (record_full_memory_query): ...this. Update all users.
9987 (record_arch_list_add_reg): Rename to ...
9988 (record_full_arch_list_add_reg): ...this. Update all users.
9989 (record_arch_list_add_mem): Rename to ...
9990 (record_full_arch_list_add_mem): ...this. Update all users.
9991 (record_arch_list_add_end): Rename to ...
9992 (record_full_arch_list_add_end): ...this. Update all users.
9993 (record_gdb_operation_disable_set): Rename to ...
9994 (record_full_gdb_operation_disable_set): ...this.
9995 Update all users.
9996
88d1aa9d
MM
99972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9998
9999 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10000 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10001 (RECORD_IS_REPLAY): Renamed to ...
10002 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10003 (RECORD_FILE_MAGIC): Renamed to ...
10004 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10005 (record_mem_entry): Renamed to ...
10006 (record_full_mem_entry): ... this. Updated all users.
10007 (record_reg_entry): Renamed to ...
10008 (record_full_reg_entry): ... this. Updated all users.
10009 (record_end_entry): Renamed to ...
10010 (record_full_end_entry): ... this. Updated all users.
10011 (record_type) <record_end, record_reg, record_mem>: Renamed
10012 to ...
10013 (record_full_type) <record_full_end, record_full_reg,
10014 record_full_mem>: ... this. Updated all users.
10015 (record_entry): Renamed to ...
10016 (record_full_entry): ... this. Updated all users.
10017 (record_core_buf_entry): Renamed to ...
10018 (record_full_core_buf_entry): ... this. Updated all users.
10019 (record_core_regbuf): Renamed to ...
10020 (record_full_core_regbuf): ... this. Updated all users.
10021 (record_core_start): Renamed to ...
10022 (record_full_core_start): ... this. Updated all users.
10023 (record_core_end): Renamed to ...
10024 (record_full_core_end): ... this. Updated all users.
10025 (record_core_buf_list): Renamed to ...
10026 (record_full_core_buf_list): ... this. Updated all users.
10027 (record_first): Renamed to ...
10028 (record_full_first): ... this. Updated all users.
10029 (record_list): Renamed to ...
10030 (record_full_list): ... this. Updated all users.
10031 (record_arch_list_head): Renamed to ...
10032 (record_full_arch_list_head): ... this. Updated all users.
10033 (record_arch_list_tail): Renamed to ...
10034 (record_full_arch_list_tail): ... this. Updated all users.
10035 (record_stop_at_limit): Renamed to ...
10036 (record_full_stop_at_limit): ... this. Updated all users.
10037 (record_insn_max_num): Renamed to ...
10038 (record_full_insn_max_num): ... this. Updated all users.
10039 (record_insn_num): Renamed to ...
10040 (record_full_insn_num): ... this. Updated all users.
10041 (record_insn_count): Renamed to ...
10042 (record_full_insn_count): ... this. Updated all users.
10043 (record_ops): Renamed to ...
10044 (record_full_ops): ... this. Updated all users.
10045 (record_core_ops): Renamed to ...
10046 (record_full_core_ops): ... this. Updated all users.
10047 (set_record_cmdlist): Renamed to ...
10048 (set_record_full_cmdlist): ... this. Updated all users.
10049 (show_record_cmdlist): Renamed to ...
10050 (show_record_full_cmdlist): ... this. Updated all users.
10051 (record_cmdlist): Renamed to ...
10052 (record_full_cmdlist): ... this. Updated all users.
10053 (record_beneath_to_resume_ops): Renamed to ...
10054 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10055 (record_beneath_to_resume): Renamed to ...
10056 (record_full_beneath_to_resume): ... this. Updated all users.
10057 (record_beneath_to_wait_ops): Renamed to ...
10058 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10059 (record_beneath_to_wait): Renamed to ...
10060 (record_full_beneath_to_wait): ... this. Updated all users.
10061 (record_beneath_to_store_registers_ops): Renamed to ...
10062 (record_full_beneath_to_store_registers_ops): ... this.
10063 Updated all users.
10064 (record_beneath_to_store_registers): Renamed to ...
10065 (record_full_beneath_to_store_registers): ... this.
10066 Updated all users.
10067 (record_beneath_to_xfer_partial_ops): Renamed to ...
10068 (record_full_beneath_to_xfer_partial_ops): ... this.
10069 Updated all users.
10070 (record_beneath_to_xfer_partial): Renamed to ...
10071 (record_full_beneath_to_xfer_partial): ... this.
10072 Updated all users.
10073 (record_beneath_to_insert_breakpoint): Renamed to ...
10074 (record_full_beneath_to_insert_breakpoint): ... this.
10075 Updated all users.
10076 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10077 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10078 Updated all users.
10079 (record_beneath_to_stopped_data_address): Renamed to ...
10080 (record_full_beneath_to_stopped_data_address): ... this.
10081 Updated all users.
10082 (record_beneath_to_async): Renamed to ...
10083 (record_full_beneath_to_async): ... this. Updated all users.
10084 (record_goto_insn): Renamed to ...
10085 (record_full_goto_insn): ... this. Updated all users.
10086 (record_save): Renamed to ...
10087 (record_full_save): ... this. Updated all users.
10088 (record_reg_alloc): Renamed to ...
10089 (record_full_reg_alloc): ... this. Updated all users.
10090 (record_reg_release): Renamed to ...
10091 (record_full_reg_release): ... this. Updated all users.
10092 (record_mem_alloc): Renamed to ...
10093 (record_full_mem_alloc): ... this. Updated all users.
10094 (record_mem_release): Renamed to ...
10095 (record_full_mem_release): ... this. Updated all users.
10096 (record_end_alloc): Renamed to ...
10097 (record_full_end_alloc): ... this. Updated all users.
10098 (record_end_release): Renamed to ...
10099 (record_full_end_release): ... this. Updated all users.
10100 (record_entry_release): Renamed to ...
10101 (record_full_entry_release): ... this. Updated all users.
10102 (record_list_release): Renamed to ...
10103 (record_full_list_release): ... this. Updated all users.
10104 (record_list_release_following): Renamed to ...
10105 (record_full_list_release_following): ... this.
10106 Updated all users.
10107 (record_list_release_first): Renamed to ...
10108 (record_full_list_release_first): ... this. Updated all users.
10109 (record_arch_list_add): Renamed to ...
10110 (record_full_arch_list_add): ... this. Updated all users.
10111 (record_get_loc): Renamed to ...
10112 (record_full_get_loc): ... this. Updated all users.
10113 (record_check_insn_num): Renamed to ...
10114 (record_full_check_insn_num): ... this. Updated all users.
10115 (record_arch_list_cleanups): Renamed to ...
10116 (record_full_arch_list_cleanups): ... this. Updated all users.
10117 (record_message): Renamed to ...
10118 (record_full_message): ... this. Updated all users.
10119 (record_message_wrapper): Renamed to ...
10120 (record_full_message_wrapper): ... this. Updated all users.
10121 (record_message_wrapper_safe): Renamed to ...
10122 (record_full_message_wrapper_safe): ... this. Updated all users.
10123 (record_gdb_operation_disable): Renamed to ...
10124 (record_full_gdb_operation_disable): ... this. Updated all users.
10125 (record_hw_watchpoint): Renamed to ...
10126 (record_full_hw_watchpoint): ... this. Updated all users.
10127 (record_exec_insn): Renamed to ...
10128 (record_full_exec_insn): ... this. Updated all users.
10129 (record_restore): Renamed to ...
10130 (record_full_restore): ... this. Updated all users.
10131 (record_async_inferior_event_token): Renamed to ...
10132 (record_full_async_inferior_event_token): ... this.
10133 Updated all users.
10134 (record_async_inferior_event_handler): Renamed to ...
10135 (record_full_async_inferior_event_handler): ... this.
10136 Updated all users.
10137 (record_core_open_1): Renamed to ...
10138 (record_full_core_open_1): ... this. Updated all users.
10139 (record_open_1): Renamed to ...
10140 (record_full_open_1): ... this. Updated all users.
10141 (record_open): Renamed to ...
10142 (record_full_open): ... this. Updated all users.
10143 (record_close): Renamed to ...
10144 (record_full_close): ... this. Updated all users.
10145 (record_resume_step): Renamed to ...
10146 (record_full_resume_step): ... this. Updated all users.
10147 (record_resumed): Renamed to ...
10148 (record_full_resumed): ... this. Updated all users.
10149 (record_execution_dir): Renamed to ...
10150 (record_full_execution_dir): ... this. Updated all users.
10151 (record_resume): Renamed to ...
10152 (record_full_resume): ... this. Updated all users.
10153 (record_get_sig): Renamed to ...
10154 (record_full_get_sig): ... this. Updated all users.
10155 (record_sig_handler): Renamed to ...
10156 (record_full_sig_handler): ... this. Updated all users.
10157 (record_wait_cleanups): Renamed to ...
10158 (record_full_wait_cleanups): ... this. Updated all users.
10159 (record_wait_1): Renamed to ...
10160 (record_full_wait_1): ... this. Updated all users.
10161 (record_wait): Renamed to ...
10162 (record_full_wait): ... this. Updated all users.
10163 (record_stopped_by_watchpoint): Renamed to ...
10164 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10165 (record_disconnect): Renamed to ...
10166 (record_full_disconnect): ... this. Updated all users.
10167 (record_detach): Renamed to ...
10168 (record_full_detach): ... this. Updated all users.
10169 (record_mourn_inferior): Renamed to ...
10170 (record_full_mourn_inferior): ... this. Updated all users.
10171 (record_kill): Renamed to ...
10172 (record_full_kill): ... this. Updated all users.
10173 (record_stopped_data_address): Renamed to ...
10174 (record_full_stopped_data_address): ... this. Updated all users.
10175 (record_registers_change): Renamed to ...
10176 (record_full_registers_change): ... this. Updated all users.
10177 (record_store_registers): Renamed to ...
10178 (record_full_store_registers): ... this. Updated all users.
10179 (record_xfer_partial): Renamed to ...
10180 (record_full_xfer_partial): ... this. Updated all users.
10181 (record_breakpoint): Renamed to ...
10182 (record_full_breakpoint): ... this. Updated all users.
10183 (record_breakpoint_p): Renamed to ...
10184 (record_full_breakpoint_p): ... this. Updated all users.
10185 (record_breakpoints): Renamed to ...
10186 (record_full_breakpoints): ... this. Updated all users.
10187 (record_sync_record_breakpoints): Renamed to ...
10188 (record_full_sync_record_breakpoints): ... this.
10189 Updated all users.
10190 (record_init_record_breakpoints): Renamed to ...
10191 (record_full_init_record_breakpoints): ... this.
10192 Updated all users.
10193 (record_insert_breakpoint): Renamed to ...
10194 (record_full_insert_breakpoint): ... this. Updated all users.
10195 (record_remove_breakpoint): Renamed to ...
10196 (record_full_remove_breakpoint): ... this. Updated all users.
10197 (record_can_execute_reverse): Renamed to ...
10198 (record_full_can_execute_reverse): ... this. Updated all users.
10199 (record_get_bookmark): Renamed to ...
10200 (record_full_get_bookmark): ... this. Updated all users.
10201 (record_goto_bookmark): Renamed to ...
10202 (record_full_goto_bookmark): ... this. Updated all users.
10203 (record_async): Renamed to ...
10204 (record_full_async): ... this. Updated all users.
10205 (record_can_async_p): Renamed to ...
10206 (record_full_can_async_p): ... this. Updated all users.
10207 (record_is_async_p): Renamed to ...
10208 (record_full_is_async_p): ... this. Updated all users.
10209 (record_execution_direction): Renamed to ...
10210 (record_full_execution_direction): ... this. Updated all users.
10211 (record_info): Renamed to ...
10212 (record_full_info): ... this. Updated all users.
10213 (record_delete): Renamed to ...
10214 (record_full_delete): ... this. Updated all users.
10215 (record_is_replaying): Renamed to ...
10216 (record_full_is_replaying): ... this. Updated all users.
10217 (record_goto_entry): Renamed to ...
10218 (record_full_goto_entry): ... this. Updated all users.
10219 (record_goto_begin): Renamed to ...
10220 (record_full_goto_begin): ... this. Updated all users.
10221 (record_goto_end): Renamed to ...
10222 (record_full_goto_end): ... this. Updated all users.
10223 (record_goto): Renamed to ...
10224 (record_full_goto): ... this. Updated all users.
10225 (init_record_ops): Renamed to ...
10226 (init_record_full_ops): ... this. Updated all users.
10227 (record_core_resume): Renamed to ...
10228 (record_full_core_resume): ... this. Updated all users.
10229 (record_core_kill): Renamed to ...
10230 (record_full_core_kill): ... this. Updated all users.
10231 (record_core_fetch_registers): Renamed to ...
10232 (record_full_core_fetch_registers): ... this. Updated all users.
10233 (record_core_prepare_to_store): Renamed to ...
10234 (record_full_core_prepare_to_store): ... this. Updated all users.
10235 (record_core_store_registers): Renamed to ...
10236 (record_full_core_store_registers): ... this. Updated all users.
10237 (record_core_xfer_partial): Renamed to ...
10238 (record_full_core_xfer_partial): ... this. Updated all users.
10239 (record_core_insert_breakpoint): Renamed to ...
10240 (record_full_core_insert_breakpoint): ... this. Updated all users.
10241 (record_core_remove_breakpoint): Renamed to ...
10242 (record_full_core_remove_breakpoint): ... this. Updated all users.
10243 (record_core_has_execution): Renamed to ...
10244 (record_full_core_has_execution): ... this. Updated all users.
10245 (init_record_core_ops): Renamed to ...
10246 (init_record_full_core_ops): ... this. Updated all users.
10247 (cmd_record_restore): Renamed to ...
10248 (cmd_record_full_restore): ... this. Updated all users.
10249 (record_save_cleanups): Renamed to ...
10250 (record_full_save_cleanups): ... this. Updated all users.
10251 (cmd_record_start): Renamed to ...
10252 (cmd_record_full_start): ... this. Updated all users.
10253 (set_record_insn_max_num): Renamed to ...
10254 (set_record_full_insn_max_num): ... this. Updated all users.
10255 (set_record_command): Renamed to ...
10256 (set_record_full_command): ... this. Updated all users.
10257 (show_record_command): Renamed to ...
10258 (show_record_full_command): ... this. Updated all users.
10259 (_initialize_record): Renamed to ...
10260 (_initialize_record_full): ... this. Updated all users.
10261
d02ed0bb
MM
102622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10263
10264 * record.h: Split into this and ...
10265 * record-full.h: ... this.
10266 * record.c: Split into this and ...
10267 * record-full.c: ... this.
10268 * target.h (target_ops): Add new fields to_info_record,
10269 to_save_record, to_delete_record, to_record_is_replaying,
10270 to_goto_record_begin, to_goto_record_end, to_goto_record.
10271 (target_info_record): New.
10272 (target_save_record): New.
10273 (target_supports_delete_record): New.
10274 (target_delete_record): New.
10275 (target_record_is_replaying): New.
10276 (target_goto_record_begin): New.
10277 (target_goto_record_end): New.
10278 (target_goto_record): New.
10279 * target.c (target_info_record): New.
10280 (target_save_record): New.
10281 (target_supports_delete_record): New.
10282 (target_delete_record): New.
10283 (target_record_is_replaying): New.
10284 (target_goto_record_begin): New.
10285 (target_goto_record_end): New.
10286 (target_goto_record): New.
10287 * record.h: Declare struct cmd_list_element.
10288 (record_cmdlist): New declaration.
10289 (set_record_cmdlist): New declaration.
10290 (show_record_cmdlist): New declaration.
10291 (info_record_cmdlist): New declaration.
10292 (cmd_record_goto): New declaration.
10293 * record.c: Remove unnecessary includes.
10294 Include inferior.h.
10295 (cmd_record_goto): Remove declaration.
10296 (record_cmdlist): Now extern. Initialize.
10297 (set_record_cmdlist): Now extern. Initialize.
10298 (show_record_cmdlist): Now extern. Initialize.
10299 (info_record_cmdlist): Now extern. Initialize.
10300 (find_record_target): New.
10301 (require_record_target): New.
10302 (cmd_record_start): Update.
10303 (cmd_record_delete): Remove target-specific code.
10304 Call target_delete_record.
10305 (cmd_record_stop): Unpush any record target.
10306 (set_record_insn_max_num): Move to record-full.c
10307 (set_record_command): Add comment.
10308 (show_record_command): Add comment.
10309 (info_record_command): Update comment.
10310 Remove target-specific code.
10311 Call the record target's to_info_record.
10312 (cmd_record_start): New.
10313 (cmd_record_goto): Now extern.
10314 Remove target-specific code.
10315 Call target_goto_begin, target_goto_end, or target_goto.
10316 (_initialize_record): Move record target ops initialization to
10317 record-full.c.
10318 Change "record" command help text.
10319 Move "record restore", "record set", and "record show" commands to
10320 record-full.c.
10321 * Makefile.in (SFILES): Add record-full.c.
10322 (HFILES_NO_SRCDIR): Add record-full.h.
10323 (COMMON_OBS): Add record-full.o.
10324 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10325 * arm-tdep.c: Include record-full.h.
10326 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10327 * i386-tdep.c: Include record-full.h.
10328 * infrun.c: Include record-full.h.
10329 * linux-record.c: Include record-full.h.
10330 * moxie-tdep.c: Include record-full.h.
10331 * record-full.c: Include record-full.h.
10332 Change module comment.
10333 (set_record_full_cmdlist): New.
10334 (show_record_full_cmdlist): New.
10335 (record_full_cmdlist): New.
10336 (record_goto_insn): New declaration.
10337 (record_save): New declaration.
10338 (record_check_insn_num): Change query string.
10339 (record_info): New.
10340 (record_delete): New.
10341 (record_is_replaying): New.
10342 (record_goto_entry): New.
10343 (record_goto_begin): New.
10344 (record_goto_end): New.
10345 (record_goto): New.
10346 (init_record_ops): Update.
10347 (init_record_core_ops): Update.
10348 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10349 (cmd_record_start): New.
10350 (set_record_insn_max_num): Moved from record.c
10351 (set_record_full_command): New.
10352 (show_record_full_command): New.
10353 (_initialize_record_full): New.
10354
b48d48eb
MM
103552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10356
10357 * target.h (add_deprecated_target_alias): New.
10358 * target.c (add_deprecated_target_alias): New.
10359
a950d57c
MM
103602013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10361
10362 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10363 and signal.h.
10364 (linux_supports_btrace): Add kernel and
10365 cpuid check.
10366 (kernel_supports_btrace): New function.
10367 (cpu_supports_btrace): New function.
10368 (intel_supports_btrace): New function.
10369
9accd112
MM
103702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10371
10372 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10373 * remote.c: Include btrace.h.
10374 (struct btrace_target_info): New struct.
10375 (remote_supports_btrace): New function.
10376 (send_Qbtrace): New function.
10377 (remote_enable_btrace): New function.
10378 (remote_disable_btrace): New function.
10379 (remote_teardown_btrace): New function.
10380 (remote_read_btrace): New function.
10381 (init_remote_ops): Add btrace ops.
10382 (enum <unnamed>): Add btrace packets.
10383 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10384 (_initialize_remote): Add packet configuration for branch tracing.
10385
c12a2917
MM
103862013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10387
10388 * features/btrace.dtd: New file.
10389 * Makefile.in (XMLFILES): Add btrace.dtd.
10390 * btrace.h (parse_xml_btrace): New declaration.
10391 * btrace.c: Include xml-support.h.
10392 (parse_xml_btrace): New function.
10393 (parse_xml_btrace_block): New function.
10394 (block_attributes): New struct.
10395 (btrace_attributes): New struct.
10396 (btrace_children): New struct.
10397 (btrace_elements): New struct.
10398
3e3aea48
MM
103992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10400
10401 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10402 (amd64_linux_enable_btrace): New.
10403 (amd64_linux_disable_btrace): New.
10404 (amd64_linux_teardown_btrace): New.
10405 (_initialize_amd64_linux_nat): Initialize btrace ops.
10406 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10407 (i386_linux_enable_btrace): New.
10408 (i386_linux_disable_btrace): New.
10409 (i386_linux_teardown_btrace): New.
10410 (_initialize_i386_linux_nat): Initialize btrace ops.
10411 * config/i386/linux.mh: Add linux-btrace.o.
10412 * config/i386/linux64.mh: Add linux-btrace.o.
10413
7c97f91e
MM
104142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10415
10416 * common/linux_btrace.h: New file.
10417 * common/linux_btrace.c: New file.
10418 * Makefile.in (SFILES): Add btrace.c.
10419 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10420 (COMMON_OBS): Add btrace.o.
10421 (linux-btrace.o): New rule.
10422
1999790b 104232013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10424
10425 * target.h: Include btrace.h.
10426 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10427 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10428 * target.c (target_supports_btrace): New function.
10429 (target_enable_btrace): New function.
10430 (target_disable_btrace): New function.
10431 (target_teardown_btrace): New function.
10432 (target_read_btrace): New function.
10433 * btrace.h: New file.
10434 * btrace.c: New file.
10435 * Makefile.in: Add btrace.c.
10436 * gdbthread.h: Include btrace.h.
10437 (struct thread_info): Add btrace field.
10438 * thread.c: Include btrace.h.
10439 (clear_thread_inferior_resources): Call target_teardown_btrace.
10440 * common/btrace-common.h: New file.
10441
61a31a67
JK
104422013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10443
10444 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10445 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10446 kill_status to outer block.
10447
05c56a9d
JK
104482013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10449
10450 Fix entry-values if the callee called a noreturn function.
10451 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10452 get_frame_address_in_block. Add new comment.
10453
9112db09
JK
104542013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10455
10456 Fix entry-values in C++ across CUs.
10457 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10458 lookup_minimal_symbol. Add a comment.
10459 * dwarf2read.c
10460 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10461 DW_AT_linkage_name.
10462
9b67fcec
YQ
104632013-03-08 Yao Qi <yao@codesourcery.com>
10464
10465 * tracepoint.c (_initialize_tracepoint): Indent the code.
10466
6221be90
PA
104672013-03-08 Pedro Alves <palves@redhat.com>
10468
10469 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10470 (parse_find_args, find_command): Change type of pattern buffer
10471 locals to 'gdb_byte *'.
10472
be9a119c 104732013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10474 Hafiz Abid Qadeer <abidh@codesourcery.com>
10475
10476 * NEWS: Mention set and show trace-buffer-size commands.
10477 Mention new packet.
10478 * target.h (struct target_ops): New method
10479 to_set_trace_buffer_size.
10480 (target_set_trace_buffer_size): New macro.
10481 * target.c (update_current_target): Set up new method.
10482 * tracepoint.c (trace_buffer_size): New global.
10483 (start_tracing): Send it to the target.
10484 (set_trace_buffer_size): New function.
10485 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10486 * remote.c (remote_set_trace_buffer_size): New function.
10487 (_initialize_remote): Use it.
10488 (QTBuffer:size) New remote command.
10489 (PACKET_QTBuffer_size): New enum.
10490 (remote_protocol_features): Add an entry for
10491 PACKET_QTBuffer_size.
10492
7da3ab79
TT
104932013-03-08 Tom Tromey <tromey@redhat.com>
10494
10495 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10496 variable.
10497
0c1f71e7
PA
104982013-03-07 Pedro Alves <palves@redhat.com>
10499
10500 * target.c (target_read_stralloc, target_fileio_read_alloc):
10501 *Cast pointer to 'gdb_byte *' in target call.
10502
c8af03a2
PA
105032013-03-07 Pedro Alves <palves@redhat.com>
10504
10505 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10506 call.
10507
529480d0
KS
105082013-03-07 Keith Seitz <keiths@redhat.com>
10509
10510 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10511 (trace_pass_command): Likewise.
10512 * cli/cli-cmds.c: Include cli/cli-utils.h.
10513 (source_command): Use skip-spaces.
10514 (disassemble_command): Likewise.
10515 * findcmd.c: Include cli/cli-utils.h.
10516 (parse_find_args): Use skip_spaces.
10517 * go32-nat.c: Include cli/cli-utils.h.
10518 (go32_sldt): Use skip_spaces.
10519 (go32_sgdt): Likewise.
10520 (go32_sidt): Likewise.
10521 (go32_pde): Likewise.
10522 (go32_pte): Likewise.
10523 (go32_pte_for_address): Likewise.
10524 * infcmd.c: Include cli/cli-utils.h.
10525 (registers_info): Use skip_spaces.
10526 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10527 (linux_info_proc): Likewise.
10528 * linux-thread-db.c: Include cli/cli-utils.h.
10529 (info_auto_load_libthread_db): Use skip_spaces_const.
10530 * m32r-rom.c: Include cli/cli-utils.h.
10531 (m32r_upload_command): Use skip_spaces.
10532 * maint.c: Include cli/cli-utils.h.
10533 (maintenance_translate_address): Use skip_spaces.
10534 * mi/mi-parse.c: Include cli/cli-utils.h.
10535 (mi_parse_argv): Use skip_spaces.
10536 (mi_parse): Likewise.
10537 * minsyms.c: Include cli/cli-utils.h.
10538 (msymbol_hash_iw): Use skip_spaces_const.
10539 * objc-lang.c: Include cli/cli-utils.h.
10540 (parse_selector): Use skip_spaces.
10541 (parse_method): Likewise.
10542 * python/python.c: Include cli/cli-utils.h.
10543 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10544 (python_command)[HAVE_PYTHON]: Likewise.
10545 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10546 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10547 (m32r_load): Use skip_spaces.
10548 * serial.c: Include cli/cli-utils.h.
10549 (serial_open): Use skip_spaces_const.
10550 * stack.c: Include cli/cli-utils.h.
10551 (parse_frame_specification_1): Use skip_spaces_const.
10552 * symfile.c: Include cli/cli-utils.h.
10553 (set_ext_lang_command): Use skip_spaces.
10554 * symtab.c: Include cli/cli-utils.h.
10555 (rbreak_command): Use skip_spaces.
10556 * thread.c (thread_name_command): Use skip_spaces.
10557 * tracepoint.c (validate_actionline): Use skip_spaces.
10558 (encode_actions_1): Likewise.
10559 (trace_find_range_command): Likewise.
10560 (trace_find_outside_command): Likewise.
10561 (trace_dump_actions): Likewise.
10562
ac91cd70
PA
105632013-03-07 Pedro Alves <palves@redhat.com>
10564
10565 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10566 * expprint.c (print_subexp_standard): Likewise.
10567 * utils.c (host_char_to_target): Likewise.
10568 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10569 * varobj.c (value_get_print_value): Change type of local to char*.
10570 Cast it gdb_byte * in call to language printer.
10571
2898e560
PA
105722013-03-07 Pedro Alves <palves@redhat.com>
10573
10574 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10575 gdb_byte *'.
10576 (make_wchar_iterator): Remove cast to char*.
10577 (wchar_iterate): Change type of local.
10578
a09b4448
PA
105792013-03-07 Pedro Alves <palves@redhat.com>
10580
10581 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10582 for 'regcache->register_status'.
10583
20ced3e4
PA
105842013-03-07 Pedro Alves <palves@redhat.com>
10585
c2d6a675 10586 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10587 int.
10588
fe106009
PA
105892013-03-07 Pedro Alves <palves@redhat.com>
10590
10591 * stap-probe.c (handle_stap_probe): Add cast to char*.
10592
8ac2c12b
PA
105932013-03-07 Pedro Alves <palves@redhat.com>
10594
10595 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10596 RECORD_MSGRCV>: Pass a signed variable to
10597 regcache_raw_read_signed, instead of an unsigned one.
10598
99f0a309
PA
105992013-03-07 Pedro Alves <palves@redhat.com>
10600
10601 * remote-notif.c (notif_debug): Change type to int.
10602 * remote-notif.h (notif_debug): Likewise.
10603
964b8317
PA
106042013-03-07 Pedro Alves <palves@redhat.com>
10605
10606 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10607
f0cc8ad4
PA
106082013-03-07 Pedro Alves <palves@redhat.com>
10609
10610 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10611 * remote.h (hex2bin, bin2hex): ... here.
10612 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10613
77dec115
EZ
106142013-03-07 Eli Zaretskii <eliz@gnu.org>
10615
10616 * utils.c (initialize_utils): Improve doc strings of "set/show
10617 width", "set/show height", and "set/show pagination".
10618
741d92cf
KS
106192013-03-06 Keith Seitz <keiths@redhat.com>
10620
10621 * ax-gdb.c (gen_printf): Make FORMAT const.
10622 * ax-gdb.h (gen_printf): Likewise.
10623 * ax-general.c (ax_string): Make STR const.
10624 * ax.h (ax_string): Likewise.
10625
7b6c814e
DE
106262013-03-06 Doug Evans <dje@google.com>
10627
10628 * elfread.c (elf_symfile_read): Move debugging printf to more
10629 logical location.
10630
634334ab
PA
106312013-03-06 Pedro Alves <palves@redhat.com>
10632
10633 * python/py-utils.c (target_string_to_unicode): Delete function.
10634 * python/python-internal.h (target_string_to_unicode): Delete
10635 declaration.
10636
e482a1a7
PM
106372013-03-06 Pierre Muller <muller@sourceware.org>
10638
10639 * linespec.c (get_current_search_block): ARI fix, use (void)
10640 for empty parameter list.
10641
4eeaa230
DE
106422013-03-05 Doug Evans <dje@google.com>
10643
10644 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10645 of old ada_lookup_symbol_list. In !full_search case, don't
10646 search superblocks.
10647 (ada_lookup_symbol_list): Delete arg full_search, all callers
10648 updated. Call ada_lookup_symbol_list_worker.
10649 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10650 * ada-lang.h (ada_lookup_symbol_list): Update.
10651 * language.h (language_defn): Update comment for
10652 la_iterate_over_symbols.
10653 * linespec.c (iterate_over_file_blocks): New function.
10654 (iterate_over_all_matching_symtabs): Call it.
10655 (lookup_prefix_sym): Ditto.
10656 (get_current_search_block): New function.
10657 (get_search_block): Delete.
10658 (find_label_symbols): Call get_current_search_block.
10659 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10660 * symtab.c (iterate_over_symbols): Don't search superblocks.
10661
b69b1fb1
YQ
106622013-03-05 Yao Qi <yao@codesourcery.com>
10663
10664 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10665 parameter VAR's type from "unsigned int" to "int".
10666 * command.h (var_zuinteger_unlimited): Update its comments.
10667 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10668
3c095f49
CV
106692013-03-05 Corinna Vinschen <vinschen@redhat.de>
10670
10671 * NEWS: Mention new target x86_64-*-cygwin*.
10672
b5b0b0af
CV
106732013-03-05 Corinna Vinschen <vinschen@redhat.de>
10674
10675 * configure.host: Add x86_64-*-cygwin* as host.
10676 * configure.tgt: Add x86_64-*-cygwin* as target.
10677 * config/i386/cygwin64.mh: New file.
10678
f6f99966
JK
106792013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10680
10681 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10682
33f448b1
JK
106832013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10684
10685 * linespec.c (struct linespec_canonical_name): New.
10686 (struct linespec_state): Change canonical_names type to it.
10687 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10688 xrealloc element size. Initialize the different CANONICAL fields.
10689 (canonical_to_fullform): New.
10690 (filter_results): Use it. Add variables canonical, fullform and
10691 cleanup.
10692 (struct decode_line_2_item, decode_line_2_compare_items): New.
10693 (decode_line_2): Remove variables iter and item_names, add variables
10694 items and items_count. Modify the code for these new variables.
10695
feb14725
CV
106962013-03-04 Corinna Vinschen <vinschen@redhat.com>
10697
10698 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10699 calling do_cleanup.
10700
e83b17ba
HZ
107012013-03-04 Luis Machado <lgustavo@codesourcery.com>
10702
10703 * tracepoint.c (build_traceframe_info): Add code for byte order.
10704
a2d13a0d
KB
107052013-03-02 Kevin Buettner <kevinb@redhat.com>
10706
8dddcae8
KB
10707 * v850-tdep.c: (v850e2_register_name): Revise system register
10708 names to match current V850E2M architecture specifications.
10709 Update register number enum comments too.
f5aee5ee 10710
d79e58d8
JW
107112013-03-01 Jiong Wang <jiwang@tilera.com>
10712 Pedro Alves <palves@redhat.com>
10713
10714 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10715 to END_ADDR.
10716 (tilegx_skip_prologue): Limit prologue analysis to section end.
10717
c4be5165
JK
107182013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10719
10720 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10721 use it.
10722
e362b510
PA
107232013-03-01 Pedro Alves <palves@redhat.com>
10724
10725 Use gdb_byte for bytes from the program being debugged.
10726
10727 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10728 Change type of local 'buf' to gdb_byte.
10729 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10730 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10731 * cris-tdep.c (cris_sigcontext_addr)
10732 (cris_sigtramp_frame_unwind_cache): Likewise.
10733 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10734 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10735 Likewise.
10736 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10737 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10738 (hppa32_hpux_search_dummy_call_sequence)
10739 (hppa_hpux_supply_save_state): Likewise.
10740 * hppa-linux-tdep.c (insns_match_pattern)
10741 (hppa_linux_find_global_pointer): Likewise.
10742 * hppa-tdep.c (hppa_in_function_epilogue_p)
10743 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10744 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10745 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10746 (i386fbsd_collect_uthread): Likewise.
10747 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10748 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10749 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10750 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10751 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10752 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10753 (ia64_libunwind_frame_prev_register)
10754 (ia64_libunwind_sigtramp_frame_this_id)
10755 (ia64_find_global_pointer_from_dynamic_section)
10756 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10757 (ia64_unwind_pc): Likewise.
10758 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10759 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10760 (m68hc11_extract_return_value): Likewise.
10761 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10762 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10763 (mep_get_insn, mep_push_dummy_call): Likewise.
10764 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10765 (mips_linux_in_dynsym_stub): Likewise.
10766 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10767 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10768 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10769 to gdb_byte.
10770 * remote-mips.c (mips_set_register): Likewise.
10771 * remote-sim.c (gdbsim_fetch_register): Likewise.
10772 * score-tdep.c (score7_fetch_inst): Change type of parameter
10773 'memblock' and local 'buf' to gdb_byte.
10774 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10775 Change type of local 'buf' to gdb_byte. Adjust.
10776 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10777 to gdb_byte**.
10778 (score7_analyze_prologue): Change type of 'memblock' and
10779 'memblock_ptr' locals to gdb_byte*.
10780 * sh64-tdep.c (sh64_extract_return_value)
10781 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10782 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10783 * solib-pa64.c (pa64_solib_create_inferior_hook)
10784 (pa64_open_symbol_file_object): Remove local 'buf'.
10785 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10786 (som_open_symbol_file_object): Likewise.
10787 * solib-spu.c (spu_current_sos): Likewise.
10788 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10789 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10790 (spu_store_registers): Likewise.
10791 * target.c (debug_print_register): Likewise.
10792 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10793 * xstormy16-tdep.c (xstormy16_store_return_value)
10794 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10795 (xstormy16_find_jmp_table_entry): Likewise.
10796
75cc61ca 107972013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10798
10799 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10800 (tilegx_gdbarch_init): Install it.
10801
ddb08e9c
TT
108022013-02-28 Tom Tromey <tromey@redhat.com>
10803
10804 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10805 PyLong_Check.
10806
62d7fb51
DE
108072013-02-28 Doug Evans <dje@google.com>
10808
10809 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10810 * python/python.c (gdbpy_find_pc_line): Ditto.
10811
c4a9e8b4
TT
108122013-02-28 Tom Tromey <tromey@redhat.com>
10813
10814 * contrib/excheck.py: New file.
10815 * contrib/exsummary.py: New file.
10816 * contrib/gcc-with-excheck: New file.
10817
7f6a5dde
TT
108182013-02-28 Tom Tromey <tromey@redhat.com>
10819
10820 * python/python.c (gdbpy_print_stack): Call begin_line and
10821 fprintf_filtered inside TRY_CATCH.
10822
9e974e55
TT
108232013-02-28 Tom Tromey <tromey@redhat.com>
10824
10825 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10826 inside TRY_CATCH.
10827
dd5fa3e7
TT
108282013-02-28 Tom Tromey <tromey@redhat.com>
10829
10830 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10831 frame_object_to_frame_info inside TRY_CATCH.
10832
86a3263f
TT
108332013-02-28 Tom Tromey <tromey@redhat.com>
10834
10835 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10836 TRY_CATCH.
10837
81b52a3a
TT
108382013-02-28 Tom Tromey <tromey@redhat.com>
10839
10840 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10841
d50a0ce2
CV
108422013-02-27 Corinna Vinschen <vinschen@redhat.com>
10843
10844 * windows-nat.c: Throughout, fix format strings and casts of
10845 printf-like functions to avoid type related warnings on all
10846 platforms.
10847 (handle_output_debug_string): Fetch context information address
10848 from debug string using string_to_core_addr.
10849
e1f58301
JW
108502013-02-27 Jiong Wang <jiwang@tilera.com>
10851
10852 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10853 * regformats/reg-tilegx32.dat: New.
10854
4fcd89fc
JW
108552013-02-27 Jiong Wang <jiwang@tilera.com>
10856
10857 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10858
748d24e6
JW
108592013-02-27 Jiong Wang <jiwang@tilera.com>
10860
10861 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10862
6c8e944d
YQ
108632013-02-27 Yao Qi <yao@codesourcery.com>
10864 Pedro Alves <palves@redhat.com>
10865
10866 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10867 pc/tp/range/outside, look for the next trace frame instead of
10868 always starting from frame 0.
6c8e944d 10869
acd7db30
AG
108702013-02-26 Anthony Green <green@moxielogic.com>
10871
10872 * configure.tgt: Add support for moxie-*-rtems* target.
10873
025e6dce
PA
108742013-02-25 Pedro Alves <palves@redhat.com>
10875
10876 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10877 warning text.
10878
ca9c94ef
MR
108792013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10880
10881 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10882 if $fp is used as the virtual frame pointer.
10883
24c274a1
AM
108842013-02-23 Alan Modra <amodra@gmail.com>
10885
10886 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10887 symbol size.
10888 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10889 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10890 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10891 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10892
bfada189
JK
108932013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10894
10895 Code cleanup.
10896 * elfread.c (build_id_bfd_get): Make the return type const.
10897 (build_id_verify): Make the check parameter const.
10898 (build_id_to_debug_filename): Make the build_id parameter and variable
10899 data const.
10900 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10901
c0355132
AM
109022013-02-21 Alan Modra <amodra@gmail.com>
10903
10904 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10905
9f44fbc0
SCR
109062013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10907
10908 Add a new method 'disassemble' to gdb.Architecture class.
10909 * python/py-arch.c (archpy_disassmble): Implementation of the
10910 new method gdb.Architecture.disassemble.
10911 (arch_object_methods): Add entry for the new method.
10912
b74ea3eb
JW
109132013-02-20 Jiong Wang <jiwang@tilera.com>
10914
10915 * MAINTAINERS (Write After Approval): Add myself to the list.
10916
61a672f1
PA
109172013-02-19 Pedro Alves <palves@redhat.com>
10918
10919 Garbage collect 'struct monitor_ops'::load_routine.
10920
10921 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10922 * monitor.c (monitor_load): No longer call
10923 current_monitor->load_routine.
10924 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10925 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10926 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10927
40e397df
PA
109282013-02-19 Pedro Alves <palves@redhat.com>
10929
10930 PR gdb/15161
10931
10932 Harmonize with generic_load.
10933
10934 * monitor.c: Include "readline/readline.h".
10935 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10936 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10937 long/strtol for the 'load_offset' local. Error out if no argument
10938 is given or if too many arguments are given. Tilde expand the
10939 passed in file name.
10940
f698ca8e
KT
109412013-02-19 Kai Tietz <ktietz@redhat.com>
10942
10943 PR gdb/15161
10944 * symfile.c (load_section_data): Change type of load_offset
10945 to CORE_ADDR.
10946 (generic_load): User strtoulst instead of strtoul for conversion
10947 of load_offset.
10948
3361b059
WL
109492013-02-19 Jiong Wang <jiwang@tilera.com>
10950
10951 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10952 for return address, "lr" register, saved on stack.
10953 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10954 after we invoke tilegx_analyze_prologue.
10955
3e9d5130
WL
109562013-02-19 Jiong Wang <jiwang@tilera.com>
10957
bb1bcd86
WL
10958 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10959
3361b059 109602013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10961
b74ea3eb 10962 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10963
4aaf2503
WL
109642013-02-19 Jiong Wang <jiwang@tilera.com>
10965
b74ea3eb 10966 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10967 (tilegx_write_pc): New function.
10968 (tilegx_cannot_reference_register): Return zero if REGNO
10969 is TILEGX_FAULTNUM_REGNUM.
10970 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10971 (tilegx_register_name): Add handling of "faultnum" register.
10972 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10973 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10974 handling of TILEGX_FAULTNUM_REGNUM.
10975 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10976
bc23a956
WL
109772013-02-19 Jiong Wang <jiwang@tilera.com>
10978
10979 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10980 should be aligned to 64bit.
bc23a956 10981
42f45f1a
KT
109822013-02-19 Kai Tietz <ktietz@redhat.com>
10983
10984 * windows-nat.c (windows_xfer_memory): Fix debug-output
10985 for LLP64.
10986
6ce4c112
LL
109872013-02-19 Lei Liu <lei.liu2@windriver.com>
10988
10989 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10990 Don't check DSP register number if HAVE_DSP is not set.
10991
30e8ee25
AM
109922013-02-19 Alan Modra <amodra@gmail.com>
10993
10994 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10995 throughout file instead.
10996 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10997 Don't xmalloc return value.
10998 (build_id_verify): Similarly. Don't xfree.
10999 (build_id_to_debug_filename): Update.
11000 (find_separate_debug_file_by_buildid): Update, don't xfree.
11001
4c9ad8c2
TT
110022013-02-18 Tom Tromey <tromey@redhat.com>
11003
11004 PR gdb/15102:
11005 * dwarf2read.c (read_subrange_type): Use result of
11006 'check_typedef'.
11007
983dc440
YQ
110082013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11009
11010 * frame.c: Remove one extra white space after #include
11011 directive.
11012
7fb2b84a
JK
110132013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11014
11015 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11016
edceb2a9
JK
110172013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11018
11019 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11020 and dir commands into an if block.
11021
e81b7af8
TT
110222013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11023
11024 * python/py-breakpoint (struct pybp_code): Use int instead of
11025 enum type_code.
11026
f5911ea1
HAQ
110272013-02-15 Pedro Alves <pedro@codesourcery.com>
11028 Hafiz Abid Qadeer <abidh@codesourcery.com>
11029
11030 * NEWS: Mention new field "trace-file".
11031 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11032 (tfile_open): Record the trace file's filename in the trace
11033 status.
11034 (tfile_files_info): Mention the name of the trace file.
11035 Check the "filename" field explicitely.
11036 (trace_status_command): Explicitely check "filename" field.
11037 (trace_find_command): Ditto.
11038 (trace_find_pc_command): Ditto.
11039 (trace_find_tracepoint_command): Ditto.
11040 (trace_find_line_command): Ditto.
11041 (trace_find_range_command): Ditto.
11042 (trace_find_outside_command): Ditto.
11043 * tracepoint.h (struct trace_status) <from_file>: Rename it
11044 to "filename" and make it hold the trace file's filename
11045 instead of a boolean.
11046 * remote.c (remote_get_trace_status): Initialize "filename"
11047 field with NULL instead of 0.
11048
796cb314
YQ
110492013-02-15 Yao Qi <yao@codesourcery.com>
11050
11051 * remote.c: Fix a typo.
11052
42e79b1d
PM
110532013-02-14 Pierre Muller <muller@sourceware.org>
11054
11055 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11056
baea0dae
PA
110572013-02-14 Pedro Alves <palves@redhat.com>
11058
11059 * utils.c (savestring): Don't #undef it. Move function to
11060 common/common-utils.c.
11061 * common/common-utils.c: Include gdb_string.h.
11062 (savestring): Move here from utils.c.
11063 * common/common-utils.h (savestring): Declare.
11064
57c3b6ed
PA
110652013-02-14 Pedro Alves <palves@redhat.com>
11066
11067 * utils.c (savestring): Rename parameter 'size' to 'len'.
11068
d6c44983
YZ
110692013-02-14 Pedro Alves <palves@redhat.com>
11070 Yufeng Zhang <yufeng.zhang@arm.com>
11071
11072 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11073 (aarch64_inferior_data, struct aarch64_inferior_data):
11074 Delete.
11075 (struct aarch64_process_info): New.
11076 (aarch64_process_list): New global.
11077 (aarch64_find_process_pid, aarch64_add_process)
11078 (aarch64_process_info_get): New functions.
11079 (aarch64_inferior_data_get): Delete.
11080 (aarch64_process_info_get): New function.
11081 (aarch64_forget_process): New function.
11082 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11083 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11084 aarch64_get_debug_reg_state.
11085 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11086 instead of linux_nat_iterate_watchpoint_lwps.
11087 (aarch64_linux_new_fork): New function.
11088 (aarch64_linux_child_post_startup_inferior): Use
11089 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11090 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11091 (aarch64_linux_remove_hw_breakpoint)
11092 (aarch64_handle_aligned_watchpoint)
11093 (aarch64_handle_unaligned_watchpoint)
11094 (aarch64_linux_insert_watchpoint)
11095 (aarch64_linux_remove_watchpoint)
11096 (aarch64_linux_stopped_data_address): Adjust to pass the current
11097 process id to aarch64_debug_reg_state.
11098 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11099 linux_nat_new_fork hook, and aarch64_forget_process as
11100 linux_nat_forget_process hook; remove the call to
11101 register_inferior_data_with_cleanup.
11102
4819b3f8
PA
111032013-02-14 Pedro Alves <palves@redhat.com>
11104
11105 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11106 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11107 lval_memory.
11108
1773c82c
HAQ
111092013-02-14 Pedro Alves <pedro@codesourcery.com>
11110 Hafiz Abid Qadeer <abidh@codesourcery.com>
11111
11112 * tracepoint.h (validate_trace_state_variable_name): Declare.
11113 * tracepoint.c (validate_trace_state_variable_name): New.
11114 (trace_variable_command): Parse the trace state variable's name
11115 without using parse_expression. Do several validations.
11116 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11117 trace state variable's name with parse_expression. Validate it.
11118
53778a97
YQ
111192013-02-14 Yao Qi <yao@codesourcery.com>
11120
11121 * infcmd.c (breakpoint_proceeded): Remove it.
11122
7b3ae3a6
YQ
111232013-02-14 Yao Qi <yao@codesourcery.com>
11124
11125 * tracepoint.c (end_actions_pseudocommand): Make it static.
11126 (while_stepping_pseudocommand): Likewise.
11127 * tracepoint.h (end_actions_pseudocommand): Remove the
11128 declaration.
11129 (while_stepping_pseudocommand): Likewise.
11130
64580925
YQ
111312013-02-14 Yao Qi <yao@codesourcery.com>
11132
11133 * cli/cli-decode.c (help_cmd): Remove the declaration of
11134 "cmdlist".
11135 (help_all): Likewise.
11136
26cb8b7c
PA
111372013-02-13 Pedro Alves <palves@redhat.com>
11138
11139 * amd64-linux-nat.c (update_debug_registers_callback):
11140 Update comment.
11141 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11142 iterate_over_lwps.
11143 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11144 i386_debug_reg_state.
11145 (amd64_linux_new_fork): New function.
11146 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11147 linux_nat_new_fork hook, and i386_forget_process as
11148 linux_nat_forget_process hook.
11149 * i386-linux-nat.c (update_debug_registers_callback):
11150 Update comment.
a8256ea1 11151 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11152 iterate_over_lwps.
11153 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11154 i386_debug_reg_state.
11155 (i386_linux_new_fork): New function.
11156 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11157 linux_nat_new_fork hook, and i386_forget_process as
11158 linux_nat_forget_process hook.
11159 * i386-nat.c (i386_init_dregs): Delete.
11160 (i386_inferior_data, struct i386_inferior_data):
11161 Delete.
11162 (struct i386_process_info): New.
11163 (i386_process_list): New global.
11164 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11165 New functions.
11166 (i386_inferior_data_get): Delete.
11167 (i386_process_info_get): New function.
11168 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11169 (i386_forget_process): New function.
11170 (i386_cleanup_dregs): Rewrite.
11171 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11172 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11173 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11174 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11175 to i386_debug_reg_state.
11176 (i386_use_watchpoints): Don't register inferior data.
11177 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11178 adjust comment.
11179 (i386_forget_process): Declare.
11180 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11181 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11182 New static globals.
11183 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11184 (add_initial_lwp): New, factored out from ...
11185 (add_lwp): ... this. Don't check the number of lwps before
11186 calling linux_nat_new_thread.
11187 (linux_nat_iterate_watchpoint_lwps): Delete.
11188 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11189 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11190 forks and vforks.
11191 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11192 initial lwp.
11193 (linux_nat_kill, linux_nat_mourn_inferior): Call
11194 linux_nat_forget_process.
11195 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11196 (linux_nat_forget_process): New functions.
11197 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11198 type.
11199 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11200 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11201 types.
11202 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11203 (linux_nat_forget_process): New declarations.
11204
11205 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11206 (amd64fbsd_mourn_inferior): New function.
11207 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11208 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11209
5befea72
MS
112102013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11211
55015247
YQ
11212 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11213 Adding _().
5befea72 11214
1d3ffd6b
MS
112152013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11216
11217 * aarch64-linux-nat.c (debug_reg_change_callback)
11218 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11219 %s and phex().
11220
6eb04473
MS
112212013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11222
11223 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11224 with LONGEST.
11225
a016fc87
HAQ
112262013-02-13 Pedro Alves <palves@redhat.com>
11227 Hafiz Abid Qadeer <abidh@codesourcery.com>
11228
11229 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11230
e234dfaf
TT
112312013-02-12 Tom Tromey <tromey@redhat.com>
11232
11233 PR symtab/11464:
11234 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11235 NAME return.
11236 (classify_inner_name): Remove 'first_name' argument, add
11237 'context'. Remove unused variable.
11238 (yylex): Explicitly maintain the context type. Exit loop earlier
11239 if NAME result is seen.
11240
0b1afbb3
PA
112412013-02-12 Pedro Alves <palves@redhat.com>
11242
11243 * amd64-darwin-tdep.c: Add (C) after Copyright.
11244 * cli/cli-cmds.h: Ditto.
11245 * cli/cli-decode.c: Ditto.
11246 * cli/cli-decode.h: Ditto.
11247 * cli/cli-dump.c: Ditto.
11248 * cli/cli-dump.h: Ditto.
11249 * cli/cli-interp.c: Ditto.
11250 * cli/cli-logging.c: Ditto.
11251 * cli/cli-script.c: Ditto.
11252 * cli/cli-script.h: Ditto.
11253 * cli/cli-setshow.c: Ditto.
11254 * cli/cli-setshow.h: Ditto.
11255 * cli/cli-utils.c: Ditto.
11256 * cli/cli-utils.h: Ditto.
11257 * config/alpha/nm-osf3.h: Ditto.
11258 * config/djgpp/djconfig.sh: Ditto.
11259 * config/i386/nm-fbsd.h: Ditto.
11260 * config/i386/nm-i386gnu.h: Ditto.
11261 * config/nm-linux.h: Ditto.
11262 * config/nm-nto.h: Ditto.
11263 * config/rs6000/nm-rs6000.h: Ditto.
11264 * config/sparc/nm-sol2.h: Ditto.
11265 * darwin-nat-info.c: Ditto.
11266 * dfp.c: Ditto.
11267 * dfp.h: Ditto.
11268 * gdb-demangle.h: Ditto.
11269 * i386-darwin-nat.c: Ditto.
11270 * i386-darwin-tdep.c: Ditto.
11271 * linux-fork.h: Ditto.
11272 * m32c-tdep.c: Ditto.
11273 * microblaze-linux-tdep.c: Ditto.
11274 * microblaze-rom.c: Ditto.
11275 * microblaze-tdep.c: Ditto.
11276 * microblaze-tdep.h: Ditto.
11277 * mips-linux-tdep.h: Ditto.
11278 * ppc-ravenscar-thread.c: Ditto.
11279 * ppc-ravenscar-thread.h: Ditto.
11280 * prologue-value.c: Ditto.
11281 * prologue-value.h: Ditto.
11282 * ravenscar-thread.c: Ditto.
11283 * ravenscar-thread.h: Ditto.
11284 * sparc-ravenscar-thread.c: Ditto.
11285 * sparc-ravenscar-thread.h: Ditto.
11286 * tilegx-linux-tdep.c: Ditto.
11287 * unwind_stop_reasons.def: Ditto.
11288 * windows-nat.h: Ditto.
11289 * xtensa-linux-tdep.c: Ditto.
11290 * xtensa-xtregs.c: Ditto.
11291 * regformats/regdat.sh: Ditto.
11292 * regformats/regdef.h: Ditto.
11293
6c01dd94
PA
112942013-02-12 Pedro Alves <palves@redhat.com>
11295
11296 * break-catch-sig.c: Update copyright years.
11297
b65a2bd9
SCR
112982013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11299
11300 Add support for a destructor for ui_out data and use it to
11301 provide a ui_out destructor.
11302 * ui-out.h: Declare the new ui_out destructor.
11303 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11304 * ui-out.c (default_data_destroy): Add a default data destructor
11305 which does nothing.
11306 (default_ui_out_impl): Set the new data_destroy field to
11307 default_data_destroy
11308 (uo_data_destroy): Local function which invokes the data
11309 destructor if present.
11310 (clear_table): Local function which clears the table data of a
11311 ui_out object.
11312 (ui_out_destroy): Public function which frees a ui_out object.
11313 (ui_out_table_end): Use the new clear_table function.
11314 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11315 NULL.
11316 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11317 to NULL.
11318
c2792f5a
DE
113192013-02-11 Doug Evans <dje@google.com>
11320
11321 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11322 (printf_decfloat): New function. Broken out from ui_printf.
11323 Remove unnecessary code to shift the entire format string down.
11324 (printf_pointer): New function.
11325 (ui_printf): Code to print C strings, wide C strings, decfloats,
11326 and pointers moved to separate functions.
11327
d9e98382
SDJ
113282013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11329
11330 * valops.c (value_assign): Handling bitfield offset in
11331 `lval_internalvar_component' case.
11332
4ff3ce77
DE
113332013-02-08 Doug Evans <dje@google.com>
11334
11335 * common/format.c (parse_format_string): Fix whitespace.
11336
901900c4
MGD
113372013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11338
11339 * stack.c (return_command): Work around uninitialized variable
11340 warning.
11341
b5dbc8d4
YZ
113422013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11343
11344 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11345 number of the registers from 36 to 34.
11346
51d66578
MS
113472013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11348
11349 * NEWS: Mention new AArch64 native and target support.
11350
176b1c95
MS
113512013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11352
11353 * MAINTAINERS (Write After Approval): Add myself.
11354
9d19df75
MS
113552013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11356 Marcus Shawcroft <marcus.shawcroft@arm.com>
11357 Nigel Stephens <nigel.stephens@arm.com>
11358 Yufeng Zhang <yufeng.zhang@arm.com>
11359
11360 * aarch64-linux-nat.c: New file.
11361 * config/aarch64/linux.mh: New file.
11362 * configure.host: Add AArch64.
11363 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11364
7e1e0340
DE
113652013-02-07 Doug Evans <dje@google.com>
11366
11367 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11368 disassemble command.
11369
45e25a36
MS
113702013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11371
11372 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11373 set_gdbarch_fetch_tls_load_module_address.
11374
bbfdfe1c
DM
113752013-02-06 David S. Miller <davem@davemloft.net>
11376
11377 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11378 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11379 * value.c (struct_return_convention): New function.
11380 (using_struct_return): Implement in terms of struct_return_convention.
11381 * value.h (struct_return_convention): Declare.
11382 * stack.c (return_command): Allow successful overriding of the return
11383 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11384
bc9abe4a
TT
113852013-02-06 Tom Tromey <tromey@redhat.com>
11386
11387 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11388 outside of TRY_CATCH.
11389
134a2066
YQ
113902013-02-06 Yao Qi <yao@codesourcery.com>
11391
11392 * mi/mi-interp.c: Include "tracepoint.h".
11393 (mi_tsv_modified): Declare.
11394 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11395 (mi_interpreter_init): Call observer_attach_tsv_modified.
11396 (mi_tsv_modified): New.
11397 (mi_tsv_created, mi_tsv_deleted): Update.
11398 * tracepoint.c (trace_variable_command): Call
11399 observer_notify_tsv_modified if the initial value of tsv is
11400 changed.
11401 (delete_trace_state_variable): Call
11402 observer_notify_tsv_deleted earlier.
11403 (trace_variable_command): Caller update.
11404 (create_tsv_from_upload): Likewise.
11405 * observer.sh: Declare "struct trace_state_variable".
11406
11407 * NEWS: Mention the new MI notification "=tsv-modified".
11408
59be2b6a
DE
114092013-02-05 Doug Evans <dje@google.com>
11410
11411 * completer.c (location_completer): Fix typo in comment.
11412
d30113d4
JK
114132013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11414
11415 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11416 ADDRESS sorted.
11417
14ac654f
MS
114182013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11419
11420 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11421 Refactor if statement to avoid trailing || operator.
11422
543bf33d
AT
114232013-02-05 Andreas Tobler <andreast@fgznet.ch>
11424
11425 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11426
dc18f110
AT
114272013-02-04 Andreas Tobler <andreast@fgznet.ch>
11428
11429 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11430 * configure.host: Add powerpc*-*-freebsd* target.
11431 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11432 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11433 * config/powerpc/fbsd.mh: New file.
11434
b3ac9c77
SDJ
114352013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11436 Denys Vlasenko <dvlasenk@redhat.com>
11437 Pedro Alves <palves@redhat.com>
11438
11439 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11440 (struct elf_internal_linux_prpsinfo): Forward declare.
11441 * gdbarch.h, gdbarch.c: Regenerate.
11442 * linux-tdep.c: Include `cli/cli-utils.h'.
11443 (linux_fill_prpsinfo): New function.
11444 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11445 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11446 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11447 depending on gdbarch pointer bitness.
11448 * ppc-linux-tdep.c: Include elf-bfd.h.
11449 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11450 on 32-bit.
11451
176eb98c
MS
114522013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11453 Marcus Shawcroft <marcus.shawcroft@arm.com>
11454 Nigel Stephens <nigel.stephens@arm.com>
11455 Yufeng Zhang <yufeng.zhang@arm.com>
11456
11457 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11458
cf0dbd6f
MS
114592013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11460 Marcus Shawcroft <marcus.shawcroft@arm.com>
11461 Nigel Stephens <nigel.stephens@arm.com>
11462 Yufeng Zhang <yufeng.zhang@arm.com>
11463
11464 * aarch64-newlib-tdep.c: New file.
11465 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11466 aarch64*-*-elf.
11467 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11468 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11469 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11470 * osabi.c (gdb_osabi_names): Add "Newlib".
11471
1ae3db19
MS
114722013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11473 Marcus Shawcroft <marcus.shawcroft@arm.com>
11474 Nigel Stephens <nigel.stephens@arm.com>
11475 Yufeng Zhang <yufeng.zhang@arm.com>
11476
11477 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11478 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11479 * aarch64-linux-tdep.c: New file.
11480 * aarch64-linux-tdep.h: New file.
11481 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11482 * configure.tgt: Add aarch64-none-linux-gnu.
11483
07b287a0
MS
114842013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11485 Marcus Shawcroft <marcus.shawcroft@arm.com>
11486 Nigel Stephens <nigel.stephens@arm.com>
11487 Yufeng Zhang <yufeng.zhang@arm.com>
11488
11489 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11490 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11491 (ALLDEPFILES): Add aarch64-tdep.c.
11492 * aarch64-tdep.c: New file.
11493 * aarch64-tdep.h: New file.
11494 * configure.tgt: Add AArch64.
11495 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11496 (aarch64-expedite): New definition.
11497 * features/aarch64-core.xml: New file.
11498 * features/aarch64-fpu.xml: New file.
11499 * features/aarch64-without-fpu.c: New file (generated).
11500 * features/aarch64-without-fpu.xml: New file.
11501 * features/aarch64.c: New file (generated).
11502 * features/aarch64.xml: New file.
11503 * regformats/aarch64-without-fpu.dat: New file (generated).
11504 * regformats/aarch64.dat: New file (generated).
11505
0f1b18ab
JK
115062013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11507
11508 * contrib/expect-read1.c: New file.
11509 * contrib/expect-read1.sh: New file.
11510
233d95b5
JK
115112013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11512
11513 * dwarf2read.c (file_file_name): New function with code from
11514 file_full_name.
11515 (file_full_name): Move most of the code to file_file_name.
11516 (macro_start_file): Rename variable full_name to file_name and use
11517 file_file_name for it. Add comp_dir parameter to new_macro_table.
11518 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11519 macro_source_file->filename access by macro_source_fullname call.
11520 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11521 caller.
11522 * macrotab.c (struct macro_table): New field comp_dir.
11523 (macro_include): New variables link_fullname and source_fullname.
11524 Replace any macro_source_file->filename access by macro_source_fullname
11525 call.
11526 (macro_lookup_inclusion): Remove the partial filenames checking code.
11527 (check_for_redefinition): New variables source_fullname and
11528 found_key_fullname. Replace any macro_source_file->filename access by
11529 macro_source_fullname call.
11530 (macro_undef): New variables source_fullname and key_fullname. Replace
11531 any macro_source_file->filename access by macro_source_fullname call.
11532 (macro_lookup_definition): New variables retval and source_fullname.
11533 Replace any macro_source_file->filename access by macro_source_fullname
11534 call.
11535 (foreach_macro): New variable key_fullname. Replace any
11536 macro_source_file->filename access by macro_source_fullname call.
11537 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11538 macro_source_file->filename access by macro_source_fullname call.
11539 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11540 (macro_source_fullname): New function.
11541 * macrotab.h (struct macro_source_file): Extent the filename field
11542 comment.
11543 (new_macro_table): New parameter comp_dir, add a comment for it.
11544 (macro_source_fullname): new declaration.
11545
da235a7c
JK
115462013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11547
11548 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11549 this_real_name to outer block. Use it also for
11550 compare_filenames_for_search.
11551 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11552 with dw2_get_real_path for file_matcher, considering also
11553 BASENAMES_MAY_DIFFER.
11554 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11555
fbd9ab74
JK
115562013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11557
11558 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11559 to the file_matcher parameter. Pass 0 to it.
11560 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11561 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11562 NULL psymtab_to_fullname result.
11563 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11564 an expected filename instead.
11565 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11566 file_matcher parameter. Call also psymtab_to_fullname, after newly
11567 considering BASENAMES_MAY_DIFFER.
11568 * source.c (rewrite_source_path): Remove static.
11569 * source.h (rewrite_source_path): New declaration.
11570 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11571 the expand_symtabs_matching field. Comment it.
11572 * symtab.c (file_matches): New function comment. Add parameter
11573 basenames, implement it.
11574 (search_symbols_file_matches): Add basenames parameter. Update the
11575 file_matches caller.
11576 (search_symbols): Match FILES also against symtab_to_fullname.
11577 Optimize it for BASENAMES_MAY_DIFFER.
11578
56d397a3
JK
115792013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11580
11581 * source.c (print_source_lines_base): Print for TUI also "fullname".
11582 * tui/tui-data.c (init_content_element): Change tui_locator_element
11583 field to full_name.
11584 * tui/tui-data.h (struct tui_locator_element): Likewise.
11585 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11586 tui_update_locator_filename calls to tui_update_locator_fullname.
11587 Replace symtab->filename refererence by symtab_to_fullname call.
11588 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11589 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11590 field to full_name. Replace symtab->filename refererence by
11591 symtab_to_fullname call.
11592 (tui_show_symtab_source): Rename parameter to fullname. Change
11593 tui_locator_element field to full_name.
11594 * tui/tui-stack.c: Include source.h.
11595 (tui_set_locator_filename): Rename the declaration to ...
11596 (tui_set_locator_fullname): ... here. Rename its parameter to
11597 fullname, updates its comment.
11598 (tui_set_locator_info): Rename its parameter to fullname.
11599 (tui_set_locator_filename): Rename the definition to ...
11600 (tui_set_locator_fullname): ... here. Rename its parameter to
11601 fullname, updates its comment. Change tui_locator_element field to
11602 full_name.
11603 (tui_set_locator_info): Rename its parameter to fullname.
11604 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11605 (tui_update_locator_filename): Rename to ...
11606 (tui_update_locator_fullname): ... here. Rename callee to
11607 tui_set_locator_fullname.
11608 (tui_show_frame_info): Replace symtab->filename refererence by
11609 symtab_to_fullname call.
11610 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11611 (tui_update_locator_fullname): ... here.
11612 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11613 tui_update_locator_fullname. Replace symtab->filename refererence by
11614 symtab_to_fullname call.
11615 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11616 Rename the callee to tui_update_locator_fullname.
11617 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11618
05cba821
JK
116192013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11620
11621 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11622 by symtab_to_filename_for_display calls.
11623 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11624 (clear_command): New variable sal_fullname, initialize it. Replace
11625 compare_filenames_for_search by filename_cmp with sal_fullname.
11626 (say_where, update_static_tracepoint): Replace symtab->filename
11627 refererences by symtab_to_filename_for_display calls.
11628 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11629 Likewise.
11630 * dwarf2read.c: Include source.h.
11631 (fixup_go_packaging): Replace symtab->filename refererences by
11632 symtab_to_filename_for_display calls.
11633 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11634 Replace symtab->filename refererences by symtab_to_filename_for_display
11635 calls.
11636 (create_sals_line_offset, convert_linespec_to_sals): New variable
11637 fullname, initialize it, replace symtab->filename reference by the
11638 variable.
11639 * linux-fork.c: Include source.h.
11640 (info_checkpoints_command): Replace symtab->filename refererences by
11641 symtab_to_filename_for_display calls.
11642 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11643 by symtab_to_filename_for_display calls.
11644 * mdebugread.c: Include source.h.
11645 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11646 symtab_to_filename_for_display calls.
11647 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11648 (mi_cmd_file_list_exec_source_files): Likewise.
11649 * printcmd.c: Include source.h.
11650 (build_address_symbolic): Replace symtab->filename refererences by
11651 symtab_to_filename_for_display calls.
11652 * psymtab.c (partial_map_symtabs_matching_filename)
11653 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11654 with psymtab_to_fullname.
11655 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11656 by symtab_to_filename_for_display calls.
11657 (stpy_get_filename): New variable filename, initialize it, use instead
11658 of symtab->filename refererences.
11659 (salpy_str): Make variable filename const char *. Replace
11660 symtab->filename refererences by symtab_to_filename_for_display calls.
11661 * skip.c: Include source.h and filenames.h.
11662 (skip_file_command): Remove const from the symtab variable. Replace
11663 symtab->filename refererences by symtab_to_fullname call.
11664 (function_name_is_marked_for_skip): New variables searched_for_fullname
11665 and fullname. Use them to search also with symtab's fullname.
11666 * source.c (find_source_lines): Replace symtab->filename refererences
11667 by symtab_to_filename_for_display calls.
11668 (print_source_lines_base): New variable filename, use it instead of
11669 symtab->filename. Replace symtab->filename refererences by
11670 symtab_to_filename_for_display calls.
11671 (line_info, forward_search_command): Replace symtab->filename
11672 refererences by symtab_to_filename_for_display calls.
11673 (reverse_search_command): Replace symtab->filename refererences by
11674 symtab_to_filename_for_display calls. New variable filename for it.
11675 * stack.c (frame_info): Likewise.
11676 * symmisc.c: Include source.h.
11677 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11678 (maintenance_info_symtabs): Replace symtab->filename refererences by
11679 symtab_to_filename_for_display calls.
11680 * symtab.c (iterate_over_some_symtabs): Call
11681 compare_filenames_for_search also with symtab_to_fullname.
11682 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11683 symtab->filename refererences by symtab_to_filename_for_display calls.
11684 (find_line_symtab): Replace symtab->filename refererences by
11685 symtab_to_filename_for_display calls.
11686 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11687 (print_symbol_info): Make the last parameter const char *. New
11688 variable s_filename. Use it in the function.
11689 (symtab_symbol_info): Make the last_filename variable const char *.
11690 Replace symtab->filename refererences by symtab_to_filename_for_display
11691 calls.
11692 (rbreak_command): New variable fullname. Use it. Replace
11693 symtab->filename refererence by symtab_to_filename_for_display call.
11694 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11695 (print_one_static_tracepoint_marker): Replace symtab->filename
11696 refererences by symtab_to_filename_for_display calls.
11697 * tui/tui-source.c (tui_set_source_content): New variables filename and
11698 s_filename. Replace symtab->filename refererences by this variable.
11699 Replace other symtab->filename refererences by
11700 symtab_to_filename_for_display calls.
11701
1b56eb55
JK
117022013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11703 Jan Kratochvil <jan.kratochvil@redhat.com>
11704
11705 Add a new variable that controls a way in which filenames are
11706 displayed.
11707 * NEWS (set filename-display): New entry.
11708 * source.c (filename_display_basename, filename_display_relative)
11709 (filename_display_absolute, filename_display_kind_names)
11710 (filename_display_string, show_filename_display_string)
11711 (symtab_to_filename_for_display): New.
11712 (_initialize_source): Added initialization of 'filename-display'
11713 variable.
11714 * source.h (symtab_to_filename_for_display): Added declaration.
11715 * stack.c (print_frame): Added new variable and calling of a new
11716 function and condition with this variable. Changed third argument of
11717 calling of a function.
11718
aa079c93
JK
117192013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11720
11721 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11722 Rename field reference filename to fullname.
11723 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11724 fullname. New comment for it.
11725 * tui/tui-source.c (tui_set_source_content): Rename field reference
11726 filename to fullname. Initialize field by symtab_to_fullname now.
11727 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11728 reference filename to fullname. Use symtab_to_fullname during
11729 comparison.
11730
652a8996
JK
117312013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11732
11733 Code cleanup.
11734 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11735 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11736 filename to fullname. Rename variable this_name to this_fullname.
11737 Lowercase FILENAME_CMP call.
11738 (dw2_find_symbol_file): New comment for the returned string.
11739 (dwarf2_gdb_index_functions): Rename the function to
11740 dw2_expand_symtabs_with_fullname.
11741 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11742 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11743 fullname.
11744 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11745 * symfile.h (struct quick_symbol_functions): Rename field
11746 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11747 parameter filename to fullname. Document returned string meaning for
11748 find_symbol_file.
11749 * symtab.c (find_line_symtab): Rename the called function to
11750 expand_symtabs_with_fullname.
11751
af529f8f
JK
117522013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11753
11754 Code cleanup.
11755 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11756 call of filename_cmp with compare_filenames_for_search.
11757 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11758 is_abs, unify the call of FILENAME_CMP with
11759 compare_filenames_for_search. New gdb_asserts for real_path and name.
11760 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11761 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11762 * symfile.h (struct quick_symbol_functions): Extend the comment for
11763 map_symtabs_matching_filename.
11764 * symtab.c (compare_filenames_for_search): Remove the function comment
11765 relative path requirement. Handle absolute filenames, with a comment.
11766 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11767 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11768 real_path and name. Unify the call of compare_filenames_for_search
11769 with FILENAME_CMP.
11770 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11771
2f202fde
JK
117722013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11773
11774 Code cleanup.
11775 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11776 source_file references by symtab field references. Remove variables
11777 sal and fullname.
11778 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11779 (clear_command, say_where): Replace bp_location field source_file
11780 references by symtab field references.
11781 (bp_location_dtor): Remove the source_file reference.
11782 (update_static_tracepoint): Replace bp_location field source_file
11783 references by symtab field references.
11784 (breakpoint_free_objfile): New function.
11785 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11786 Replace the field source_file by field symtab, extend its comment.
11787 (breakpoint_free_objfile): New declaration.
11788 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11789 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11790 field source_file references by symtab field references.
11791
f5b95b50
JK
117922013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11793
11794 Replace xfullpath calls by gdb_realpath calls.
11795 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11796 function comment.
11797 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11798 Remove it from the iterate_over_some_symtabs call.
11799 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11800 Remove it from the dw2_map_expand_apply calls, remove a block handling
11801 it.
11802 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11803 Remove it from the iterate_over_some_symtabs call.
11804 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11805 Remove it from the partial_map_expand_apply calls, remove a block
11806 handling it. Drop gdb_realpath call and cleanups from the real_path
11807 handling.
11808 * source.c (openp): Drop the comment part about xfullpath. Replace
11809 xfullpath calls by gdb_realpath calls.
11810 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11811 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11812 from method map_symtabs_matching_filename and its comment.
11813 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11814 gdb_realpath call.
11815 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11816 remove it also from the function comment, remove a block handling it.
11817 Drop gdb_realpath call and cleanups from the real_path handling.
11818 (iterate_over_symtabs): Drop variable full_path and its use.
11819 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11820 * utils.c (xfullpath): Remove.
11821 * utils.h (xfullpath): Remove.
11822
d78489bf
AT
118232013-02-01 Andreas Tobler <andreast@fgznet.ch>
11824
11825 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11826 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11827 (ALLDEPFILES): Add ppc64-tdep.c.
11828 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11829 ppc64-tdep.o to gdb_target_obs.
11830 * ppc64-tdep.h: New file.
11831 * ppc64-tdep.c: New file.
11832 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11833 ppc-linux-tdep.c to here.
11834 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11835 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11836 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11837 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11838 from ppc-linux-tdep.c to here.
11839 (ppc64_convert_from_func_ptr_addr): Rename from
11840 ppc64_linux_convert_from_func_ptr_addr to
11841 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11842 here.
11843 * rs6000-tdep.c:
11844 (read_insn): Move from ppc-linux-tdep.c to here.
11845 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11846 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11847 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11848 Removed above functions.
11849 (ppc_linux_init_abi): Adjust.
11850
8db60374
AR
118512013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11852
11853 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11854
f2e5f4ce
AR
118552013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11856
11857 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11858
c1f7d745
PA
118592013-02-01 Pedro Alves <palves@redhat.com>
11860
11861 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11862 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11863
8a92335b
JK
118642013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11865
11866 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11867 files with no separate debug info.
11868 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11869 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11870 only for files with no separate debug info.
11871
8eacb197
TT
118722013-01-31 Tom Tromey <tromey@redhat.com>
11873
11874 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11875 change type.
11876 (struct jit_program_space_data): Rename from jit_inferior_data.
11877 Update comments.
11878 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11879 Change return type. Attach data to program space.
11880 (jit_program_space_data_cleanup): Rename from
11881 jit_inferior_data_cleanup; change argument type.
11882 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11883 change type.
11884 (jit_register_code): Update.
11885 (jit_update_inferior_cache): Remove.
11886 (jit_breakpoint_deleted): Get jit data from the location's program
11887 space.
11888 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11889 'ps_data', change type.
11890 (jit_inferior_init, jit_breakpoint_re_set_internal)
11891 (jit_event_handler): Update.
11892 (free_objfile_data): Get data from objfile's program space.
11893 (_initialize_jit): Update.
11894
f25c0135
TT
118952013-01-31 Tom Tromey <tromey@redhat.com>
11896
11897 PR gdb/13987:
11898 * jit.c (struct jit_inferior_data) <cached_code_address,
11899 jit_breakpoint>: New fields.
11900 (jit_breakpoint_re_set_internal): Fix logging. Only create
11901 breakpoint if cached address has changed.
11902 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11903 functions.
11904 (_initialize_jit): Register breakpoint deleted observer.
11905
974a734b
AR
119062013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11907
11908 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11909 (save_infcall_suspend_state): Ifdef out unused inf.
11910 (restore_infcall_suspend_state): Ifdef out unused inf.
11911 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11912 (jit_frame_sniffer): Remove unused inf_data.
11913
df54f8eb
AR
119142013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11915
11916 * c-exp.y (classify_inner_name): Remove unused type.
11917 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11918 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11919 need_escape.
11920 (c_get_string): Remove unused kind.
11921 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11922
5799c0b9
AR
119232013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11924
11925 * charset.c (intermediate_encoding): Remove unused i.
11926 * completer.c (signal_completer): Remove unused i.
11927 * continuations.c (discard_my_continuations_1): Remove unused
11928 continuation_ptr.
11929 * corelow.c (core_close): Remove unuseD name.
11930 (get_core_siginfo): Remove unused pid.
11931 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11932 i, cps.
11933 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11934 (loclist_describe_location): Remove unused first.
11935 * event-top.c (command_line_handler): Remove unused got_eof.
11936 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11937 (resize_section_table): Remove unused old_value.
11938 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11939 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11940 * i386-tdep.c (i386_process_record): Remove unused rex.
11941 * infcmd.c (get_return_value): Remove unused uiout.
11942 * jv-lang.c (type_from_class): Remove unused is_array.
11943 * jv-valprint.c (java_val_print): Remove unused i.
11944 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11945 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11946 * m2-typeprint.c (m2_print_type): Remove unused code.
11947 * macroexp.c (get_character_constant): Remove unused body_start.
11948 (macro_stringify): Remove unused result.
11949 * objc-lang.c (find_methods): Remove unused gdbarch.
11950 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11951 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11952 * stack.c (print_frame_args): Remove unused summary.
11953 * thread.c (thread_apply_command): Remove unused p.
11954 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11955 * valops.c (search_struct_method): Remove unused skip.
11956 * valprint.c (generic_val_print): Remove unused byte_order.
11957 * varobj.c (varobj_update): Remove unused changed.
11958 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11959 (alias_command): Remove unused c.
11960 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11961 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11962 format.
11963 (mi_cmd_data_write_memory): Remove unused word_format.
11964 (mi_cmd_data_write_memory_bytes): Remove unused r.
11965 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11966 p_start, p_end.
11967 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11968 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11969 line_width.
11970
c656bca5
AR
119712013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11972
11973 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11974 * symtab.c (iterate_over_symtabs): Remove unused s.
11975 (find_pc_sect_symtab): Remove unused pspAce.
11976 (find_pc_sect_line): Remove unused alt_symtab.
11977 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11978 (completion_list_add_name): Remove unused newsize.
11979
7078baeb
TT
119802013-01-31 Tom Tromey <tromey@redhat.com>
11981
11982 PR c++/14998:
11983 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11984 TYPE_CODE_FUNC.
11985
c2e8b827
AR
119862013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11987
11988 * target.c (target_read_string): Remove unused origlen.
11989
0e43993a
AR
119902013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11991
11992 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11993 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11994 * ax-general.c (ax_print): Remove unused is_float.
11995 * blockframe.c (block_innermost_frame): Remove unused start, end.
11996 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11997
765a97ab
AR
119982013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11999
12000 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12001 (svr4_read_so_list): Remove unused lmo.
12002 * solib-target.c (solib_target_relocate_section_addresses): Remove
12003 unused flags.
12004
a99dad3d
TT
120052013-01-30 Tom Tromey <tromey@redhat.com>
12006
12007 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12008
3bff1ecd
TT
120092013-01-30 Tom Tromey <tromey@redhat.com>
12010
12011 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12012 * utils.c (gnu_debuglink_crc32): Remove.
12013 * utils.h (gnu_debuglink_crc32): Don't declare.
12014
7d455152
TT
120152013-01-30 Tom Tromey <tromey@redhat.com>
12016
12017 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12018 (read_structure_type, read_enumeration_type): Remove cast.
12019
abee88f2
TT
120202013-01-30 Tom Tromey <tromey@redhat.com>
12021
12022 * dwarf2read.c (read_namespace_type): Remove cast.
12023 (read_typedef): Likewise.
12024
8d9878a4
TT
120252013-01-29 Tom Tromey <tromey@redhat.com>
12026
12027 * dwarf2read.c (free_dwo_file): Remove assert.
12028
a543d2a9
TT
120292013-01-29 Tom Tromey <tromey@redhat.com>
12030
12031 * value.c (deprecated_set_value_modifiable): Remove.
12032 * value.h (deprecated_set_value_modifiable): Remove.
12033
bed911e5
DE
120342013-01-28 Doug Evans <dje@google.com>
12035
12036 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12037 to addresses from dwo files.
12038
28c64fc2
SCR
120392013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12040
12041 * valops.c (find_overload_match): Remove unused argument 'lax'.
12042 * value.h: Remove unused argument 'lax' from the declaration of
12043 find_overload_match.
12044 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12045 to find_overload_match.
12046 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12047 argument to find_overload_match.
12048
4d4ec4e5
TT
120492013-01-25 Tom Tromey <tromey@redhat.com>
12050
12051 * dwarf2read.c (processing_has_namespace_info): Remove.
12052 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12053 (process_die, read_func_scope, dwarf2_start_symtab)
12054 (new_symbol_full): Update.
12055
195a3f6c
TT
120562013-01-25 Tom Tromey <tromey@redhat.com>
12057
12058 * cp-namespace.c (cp_set_block_scope): Remove.
12059 * cp-support.h (cp_set_block_scope): Remove.
12060 * dbxread.c: Include block.h.
12061 (cp_set_block_scope): New function.
12062 (process_one_symbol): Update.
12063 * dwarf2read.c (read_func_scope): Use block_set_scope.
12064
8ba0730a
PA
120652013-01-25 Pedro Alves <palves@redhat.com>
12066
12067 * remote.c (add_current_inferior_and_thread): Tweak comment.
12068
12aaed36
TT
120692013-01-25 Tom Tromey <tromey@redhat.com>
12070
12071 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12072 (cp_add_using_directive): Add 'copy_names' argument.
12073 * cp-support.h (cp_add_using_directive): Update.
12074 (struct using_direct) <import_src, import_dest, alias,
12075 declaration>: Now const.
12076 * dwarf2read.c (read_import_statement): Use obconcat.
12077 Don't copy names passed to cp_add_using_directive.
12078
7fc75ca7
TT
120792013-01-25 Tom Tromey <tromey@redhat.com>
12080
12081 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12082
3405876a
PA
120832013-01-25 Pedro Alves <palves@redhat.com>
12084
12085 * remote.c (stop_reply_extract_thread): New.
12086 (add_current_inferior_and_thread): New parameter 'wait_status'.
12087 Handle it.
12088 (remote_start_remote): Pass wait status to
12089 add_current_inferior_and_thread.
12090 (extended_remote_run): Update comment.
12091 (extended_remote_create_inferior_1): Pass wait status to
12092 add_current_inferior_and_thread.
12093
8954db33
AB
120942013-01-25 Andrew Burgess <aburgess@broadcom.com>
12095 Ulrich Weigand <uweigand@de.ibm.com>
12096
12097 * valarith.c (value_vector_widen): New function for replicating a
12098 scalar into a vector.
12099 (value_binop): Use value_vector_widen to widen scalar to vector
12100 rather than casting, this better matches gcc C behaviour.
12101 * valops.c (value_casst): Update logic for casting between vector
12102 types, and for casting from scalar to vector, try to match gcc C
12103 behaviour.
12104 * value.h (value_vector_widen): Declare.
12105 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12106 function, handle special case for casting scalar to vector.
12107 (opencl_relop): Use opencl_value_cast.
12108 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12109 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12110 in order to use opencl_value_cast.
12111
843b20dc
YQ
121122013-01-25 Yao Qi <yao@codesourcery.com>
12113
12114 * event-loop.c: Include "queue.h".
12115 (gdb_event_p): New typedef.
12116 (DECLARE_QUEUE_P): Use.
12117 (DEFINE_QUEUE_P): Use.
12118 (async_queue_event): Remove.
12119 (gdb_event_xfree): New.
12120 (initialize_event_loop): New.
12121 (process_event): Use QUEUE macros.
12122 (event_queue): Remove.
12123 (gdb_wait_for_event): Caller update.
12124 (check_async_event_handlers): Likewise.
12125 (poll_timers): Likewise.
12126 * event-loop.h (initialize_event_loop): Declare.
12127 * event-loop.c (gdb_event_xfree): New.
12128 * top.c (gdb_init): Call initialize_event_loop.
12129
20ad8856
YQ
121302013-01-25 Yao Qi <yao@codesourcery.com>
12131
12132 * event-loop.c (async_queue_event): Remove one parameter
12133 'position'. Remove code handling 'position' == TAIL.
12134 (gdb_wait_for_event): Caller update.
12135 (check_async_event_handlers): Caller update.
12136 (poll_timers): Caller update.
12137 * event-loop.h (enum queue_position): Remove.
12138
3bbbe775
MK
121392013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12140
12141 * MAINTAINERS: Update my email.
12142
a87d9ac4
YQ
121432013-01-25 Yao Qi <yao@codesourcery.com>
12144
12145 * main.c (print_gdb_help): Remove "--epoch" from the help
12146 message.
12147
2077afdd
TD
121482013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12149
12150 * symtab.c (skip_prologue_using_sal): Consider a file
12151 change the same as an increased line number
12152
63da4037
TD
121532013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12154
30e8ee25 12155 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12156
45e6c716
TT
121572013-01-24 Tom Tromey <tromey@redhat.com>
12158
12159 * ada-lang.h (ada_decode_symbol): Make return type const.
12160 * ada-lang.c (ada_decode_symbol): Likewise.
12161
b1ae631a
DE
121622013-01-23 Doug Evans <dje@google.com>
12163
12164 * linespec.c (find_linespec_symbols): Make static.
12165
55a78401
SDJ
121662013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12167
12168 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12169 type on float conversion for complex type.
12170
bea883fd
SCR
121712013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12172
12173 Add a new class gdb.Architecture which exposes GDB's
12174 internal representation of architecture via GDB Python API.
12175 * Makefile.in: Add entries corresponding to the new file
12176 python/py-arch.c.
12177 * NEWS (Python Scripting): Add entries for the new class
12178 gdb.Architecture and the new method gdb.Frame.architecture.
12179 * python/py-arch.c: Implement gdb.Architecture class.
12180 * python/py-frame.c (frapy_arch): Implement the method
12181 gdb.Frame.architecture().
12182 (frame_object_methods): Add 'architecture' to the method table.
12183 * python/python-internal.h: Add declarations of new utility
12184 functions.
12185 * python/python.c (_initialize_python): Initialize
12186 gdb.Architecture class.
12187
796a7ff8
DE
121882013-01-23 Doug Evans <dje@google.com>
12189
12190 Work around binutils/15021.
12191 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12192 type_unit_group out of union s. All uses updated.
12193 (read_index_from_section): Watch for index version 8.
12194 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12195 an imported symtab.
12196 (write_psymtabs_to_index): Increment version number to 8.
12197
0928e93d
PA
121982013-01-22 Pedro Alves <palves@redhat.com>
12199
12200 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12201 user-visible.
12202
9c97429f
PA
122032013-01-22 Pedro Alves <palves@redhat.com>
12204
12205 * annotate.c (annotate_breakpoints_changed): Rename to ...
12206 (annotate_breakpoints_invalid): ... this. Make static.
12207 (breakpoint_changed): Adjust.
12208 (_initialize_annotate): Always install the observers. Install a
12209 "breakpoint_created" observer.
12210 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12211 * breakpoint.c (set_breakpoint_condition)
12212 (breakpoint_set_commands, do_map_commands_command)
12213 (init_raw_breakpoint, clear_command, set_ignore_count)
12214 (enable_breakpoint_disp): No longer call
12215 annotate_breakpoints_changed.
12216
bd00c694
PA
122172013-01-22 Pedro Alves <palves@redhat.com>
12218
12219 * annotate.c: Include "inferior.h".
12220 (frames_invalid_emitted)
12221 (breakpoints_invalid_emitted): New globals.
12222 (async_background_execution_p): New function.
12223 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12224 emitting the annotation if it has already been emitted.
12225 (annotate_display_prompt): New function.
12226 * annotate.h (annotate_display_prompt): New declaration.
12227 * event-top.c: Include annotate.h.
12228 (display_gdb_prompt): Call annotate_display_prompt.
12229
187d10dd
PA
122302013-01-22 Pedro Alves <palves@redhat.com>
12231
12232 * annotate.c (ignore_count_changed): Delete.
12233 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12234 (annotate_ignore_count_change): Delete.
12235 (annotate_stopped): Don't emit a delayed breakpoints-changed
12236 annotation.
12237 * annotate.h (annotate_ignore_count_change): Delete.
12238 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12239 annotate_ignore_count_change.
12240
d84cf7eb
TT
122412013-01-22 Tom Tromey <tromey@redhat.com>
12242
12243 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12244 require_rvalue for a register location.
12245
8f1d5693
MK
122462013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12247
12248 * breakpoint.c (print_one_breakpoint_location): Add MI
12249 field 'thread-groups' when printing a breakpoint.
12250 (output_thread_groups): New function.
12251
aa6199c6
SCR
122522013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12253
12254 * python/lib/gdb/commands/explore.py
12255 (CompoundExplorer.explore_expr): Correct the name of a method
12256 being invoked.
12257 (ExploreTypeCommand.invoke): Add a missing 'return'.
12258
d2afef13
TT
122592013-01-21 Tom Tromey <tromey@redhat.com>
12260
12261 * gdb_obstack.h (obconcat): Move declaration here, from...
12262 * symfile.h (obconcat): ... here.
12263 * gdb_obstack.c: New file.
12264 (obconcat): Move from...
12265 * symfile.c (obconcat): ... here.
12266 * Makefile.in (SFILES): Add gdb_obstack.c.
12267 (COMMON_OBS): Add gdb_obstack.o.
12268
10f0c4bb
TT
122692013-01-21 Tom Tromey <tromey@redhat.com>
12270
12271 * symfile.h (obsavestring): Don't declare.
12272 * symfile.c (obsavestring): Remove.
12273 * ada-exp.y: Use obstack_copy0, not obsavestring.
12274 * ada-lang.c: Use obstack_copy0, not obsavestring.
12275 * coffread.c: Use obstack_copy0, not obsavestring.
12276 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12277 * dbxread.c: Use obstack_copy0, not obsavestring.
12278 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12279 * jit.c: Use obstack_copy0, not obsavestring.
12280 * mdebugread.c: Use obstack_copy0, not obsavestring.
12281 * psymtab.c: Use obstack_copy0, not obsavestring.
12282 * stabsread.c: Use obstack_copy0, not obsavestring.
12283 * xcoffread.c: Use obstack_copy0, not obsavestring.
12284
86f62fd7
TT
122852013-01-21 Tom Tromey <tromey@redhat.com>
12286
12287 * dwarf2read.c (fixup_go_packaging): Save package name
12288 on objfile obstack.
12289 * gdbtypes.c (init_type): Don't copy name.
12290
15d034d0
TT
122912013-01-21 Tom Tromey <tromey@redhat.com>
12292
12293 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12294 const.
12295 (struct attribute) <u.str>: Now const.
12296 (struct fnfieldlist) <name>: Now const.
12297 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12298 (partial_die_parent_scope): Make return type const.
12299 (partial_die_full_name, add_partial_symbol): Update.
12300 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12301 'name' const.
12302 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12303 (read_file_scope, read_func_scope, dwarf2_add_field)
12304 (dwarf2_add_member_fn, read_structure_type)
12305 (process_enumeration_scope, read_array_type, read_module_type)
12306 (read_base_type, read_subrange_type): Update.
12307 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12308 (new_symbol_full, guess_full_die_structure_name): Update.
12309 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12310 (dwarf2_name): Return const type.
12311 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12312 const.
12313
748e18ae
TT
123142013-01-21 Tom Tromey <tromey@redhat.com>
12315
12316 * gdbtypes.c (init_type): Make 'name' const.
12317 * gdbtypes.h (init_type): Update.
12318
46212e0b
TT
123192013-01-21 Tom Tromey <tromey@redhat.com>
12320
12321 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12322 (start_symtab): Make 'name' and 'dirname' const. Use
12323 set_last_source_file.
12324 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12325 (last_source_file): Define. Now static.
12326 (set_last_source_file, get_last_source_file): New functions.
12327 * buildsym.h (last_source_file): Don't declare.
12328 (start_symtab): Update.
12329 (set_last_source_file, get_last_source_file): Declare.
12330 * coffread.c (complete_symtab): Use set_last_source_file.
12331 (coff_end_symtab): Likewise.
12332 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12333 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12334 set_last_source_file.
12335 (process_one_symbol): Use get_last_source_file.
12336 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12337 (psymtab_to_symtab_1): Use get_last_source_file.
12338 * xcoffread.c (process_linenos): Use get_last_source_file.
12339 (complete_symtab): Use set_last_source_file.
12340 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12341 (scan_xcoff_symtab): Use set_last_source_file.
12342
9d2ceabe
TT
123432013-01-21 Tom Tromey <tromey@redhat.com>
12344
12345 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12346 (symbol_set_names): Remove casts. Handle field const-ness.
12347
cfc594ee
TT
123482013-01-21 Tom Tromey <tromey@redhat.com>
12349
12350 * dwarf2read.c (new_symbol_full): Remove cast.
12351 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12352 * symtab.h (symbol_set_demangled_name): Update.
12353
5484b13a
TT
123542013-01-21 Tom Tromey <tromey@redhat.com>
12355
12356 * main.c (captured_main): Call bfd_init.
12357
1605ef26
TT
123582013-01-21 Tom Tromey <tromey@redhat.com>
12359
12360 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12361 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12362 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12363 * NEWS: Update.
12364
3b74cdc3
JK
123652013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12366
12367 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12368
5a352474
JK
123692013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12370
12371 Fix gdb.fortran/common-block.exp crash in PIE mode.
12372 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12373 LOC_COMMON_BLOCK.
12374 * f-valprint.c (info_common_command_for_block): Expect
12375 LOC_COMMON_BLOCK in gdb_assert.
12376 * symtab.h (struct general_symbol_info): Update comment for the
12377 common_block member.
12378 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12379 (enum address_class): New member LOC_COMMON_BLOCK.
12380
c60797fd
DB
123812013-01-18 David Blaikie <dblaikie@gmail.com>
12382
12383 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12384
46f35228
TT
123852013-01-18 Tom Tromey <tromey@redhat.com>
12386
12387 PR c++/14999:
12388 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12389 Call require_rvalue.
12390
257e7a09
YQ
123912013-01-18 Yao Qi <yao@codesourcery.com>
12392
12393 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12394 (dbx_read_symtab): New declaration.
12395 (dbx_psymtab_to_symtab): Delete.
12396 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12397 Rename parameter PST to SELF. Exchanged two parameters.
12398 (start_psymtab): Caller update.
12399 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12400 (dwarf2_read_symtab): New declaration.
12401 (dwarf2_psymtab_to_symtab): Delete.
12402 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12403 Rename parameter PST to SELF. Exchanged two parameters.
12404 (create_partial_symtab): Caller update.
12405 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12406 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12407 Rename parameter PST to SELF. Exchanged two parameters.
12408 (parse_partial_symbols, new_psymtab): Caller update.
12409 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12410 two parameters.
12411 * psymtab.c (psymtab_to_symtab): Caller update.
12412 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12413 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12414 Rename parameter PST to SELF. Exchanged two parameters.
12415 (xcoff_start_psymtab): Caller update.
12416
0de5618e
YQ
124172013-01-18 Yao Qi <yao@codesourcery.com>
12418
12419 * infrun.c (proceed): Rename local variable 'oneproc' to
12420 'force_step'.
12421
5c04624b
DE
124222013-01-17 Doug Evans <dje@google.com>
12423
848e3e78
DE
12424 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12425 (dw2_build_type_unit_groups): Delete. All uses updated.
12426
5c04624b
DE
12427 * symtab.h (struct symbol_search): Add comment.
12428
d84fca2c
JK
124292013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12430
12431 * symtab.c (compare_filenames_for_search): New comment for
12432 HAS_DRIVE_SPEC.
12433
6108433d
TT
124342013-01-17 Tom Tromey <tromey@redhat.com>
12435
12436 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12437
c89ffd86
JK
124382013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12439
12440 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12441 initialize it by existing make_cleanup. Call new do_cleanups.
12442
db2b2972
TT
124432013-01-17 Tom Tromey <tromey@redhat.com>
12444
12445 * cp-abi.c (cp_abi_completer): New function.
12446 (_initialize_cp_abi): Set completer for "set cp-abi".
12447
be7d37a2
TT
124482013-01-17 Tom Tromey <tromey@redhat.com>
12449
12450 * mem-break.c: Remove obsolete comment.
12451 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12452
c9fb1240
SD
124532012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12454
12455 * jit.c (jit_reader_load_command): Interpret the jit reader name
12456 as an absolute path if it begins with a forward slash.
12457
db334a01
SD
124582012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12459
12460 PR gdb/14550
12461
12462 * jit.c (finalize_symtab): Ensure that only the global block has a
12463 NULL superblock.
12464
7d928dac
PA
124652013-01-17 Pedro Alves <palves@redhat.com>
12466
12467 * acinclude.m4: Include ../config/plugins.m4,
12468 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12469 * Makefile.in (aclocal_m4_deps): Update.
12470 * aclocal.m4: Renegerate.
12471
fb8cf7c5
DE
124722013-01-16 Doug Evans <dje@google.com>
12473
12474 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12475
ab04a2af
TT
124762013-01-16 Pedro Alves <palves@redhat.com>
12477 Tom Tromey <tromey@redhat.com>
12478
12479 PR cli/7221:
12480 * NEWS: Add "catch signal".
12481 * breakpoint.c (base_breakpoint_ops): No longer static.
12482 (bpstat_explains_signal): New function.
12483 (init_catchpoint): No longer static.
12484 (base_breakpoint_explains_signal): New function.
12485 (base_breakpoint_ops): Initialize new field.
12486 * breakpoint.h (enum bpstat_signal_value): New.
12487 (struct breakpoint_ops) <explains_signal>: New field.
12488 (bpstat_explains_signal): Remove macro, declare as function.
12489 (base_breakpoint_ops, init_catchpoint): Declare.
12490 * break-catch-sig.c: New file.
12491 * inferior.h (signal_catch_update): Declare.
12492 * infrun.c (signal_catch): New global.
12493 (handle_syscall_event): Update for change to
12494 bpstat_explains_signal.
12495 (handle_inferior_event): Likewise. Always handle random signals
12496 via bpstats.
12497 (signal_cache_update): Check signal_catch.
12498 (signal_catch_update): New function.
12499 (_initialize_infrun): Initialize signal_catch.
12500 * Makefile.in (SFILES): Add break-catch-sig.c.
12501 (COMMON_OBS): Add break-catch-sig.o.
12502
8ac3646f
TT
125032013-01-16 Tom Tromey <tromey@redhat.com>
12504
12505 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12506 (print_one_catch_solib, print_one_catch_syscall)
12507 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12508 "catch-type".
12509
5a18e302
YQ
125102013-01-16 Yao Qi <yao@codesourcery.com>
12511
12512 * printcmd.c (current_display_number): Make it static.
12513
3f01d0d0
YQ
125142013-01-16 Yao Qi <yao@codesourcery.com>
12515
12516 * infcmd.c (step_once): Don't check '!single_inst' as it was
12517 checked before.
12518
1ed59174
JK
125192013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12520
12521 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12522
44478ab3
TT
125232013-01-14 Tom Tromey <tromey@redhat.com>
12524
12525 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12526 set command.
12527 * command.h (add_setshow_string_noescape_cmd): Update.
12528 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12529 (complete_set_gnutarget): New function.
12530 (_initialize_core): Set the "set gnutarget" completer.
12531
06d66ee9
TT
125322013-01-14 Tom Tromey <tromey@redhat.com>
12533
12534 PR symtab/14442:
12535 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12536 (c_type_print_modifier): Likewise.
12537 * dwarf2read.c (read_tag_restrict_type): New function.
12538 (read_type_die_1): Handle DW_TAG_restrict_type.
12539 * gdbtypes.c (make_restrict_type): New function.
12540 (recursive_dump_type): Handle TYPE_RESTRICT.
12541 * gdbtypes.h (enum type_flag_values): Renumber.
12542 (enum type_instance_flag_value): Add
12543 TYPE_INSTANCE_FLAG_RESTRICT.
12544 (TYPE_RESTRICT): New macro.
12545 (make_restrict_type): Declare.
12546
c9bf0622
TT
125472013-01-14 Tom Tromey <tromey@redhat.com>
12548
12549 PR symtab/14931:
12550 * psymtab.c (struct psymtab_state): New.
12551 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12552 functions.
12553 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12554 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12555
44d594fd
PA
125562013-01-14 Richard Sharman <richard_sharman@mitel.com>
12557 Pedro Alves <palves@redhat.com>
12558
12559 PR remote/14786
12560
12561 * remote.c (remote_threads_info): Make a copy of the reply from
12562 qfThreadInfo and use that instead of rs->buf.
12563
442e4d9c
YQ
125642013-01-14 Yao Qi <yao@codesourcery.com>
12565
12566 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12567 (dbx_psymtab_to_symtab): Likewise.
12568 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12569 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12570 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12571
5b12a61c
JK
125722013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12573
12574 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12575 make_cleanup_restore_current_language. Call set_language. Move
12576 OLD_CHAIN and INNER_CHAIN cleanups.
12577 * utils.c (do_restore_current_language)
12578 (make_cleanup_restore_current_language): New functions.
12579 * utils.h (make_cleanup_restore_current_language): New declaration.
12580
f0a4b570
JK
125812013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12582
12583 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12584 non-existing files.
12585
57b3c00c
JK
12586 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12587 non-existing files if FILENAME is already absolute.
12588
daefa854
JK
125892013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12590
12591 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12592 fputs_filtered. Append trailing newline.
12593
ca9c6ee2
YQ
125942013-01-11 Yao Qi <yao@codesourcery.com>
12595 Stan Shebs <stan@codesourcery.com>
12596
12597 * psymtab.c (init_psymbol_list): Clarify the comment.
12598
f28045c2
YQ
125992013-01-11 Yao Qi <yao@codesourcery.com>
12600
12601 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12602 (update_dprintf_command_list): Assert that 'printf_line' is
12603 non-null. Remove condition check.
12604
da5132d3
JK
126052013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12606
12607 Code cleanup.
12608 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12609 type const char *.
12610 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12611 const char *.
12612 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12613
843e694d
AG
126142013-01-09 Anthony Green <green@moxielogic.com>
12615
12616 * cp-abi.c (cplus_print_vtable): Don't return value from void
12617 function.
12618 * ada-lang.c (re_set_catch_assert): Ditto.
12619
da51c347
DE
126202013-01-09 Doug Evans <dje@google.com>
12621
12622 * symfile.h (quick_symbol_functions): Delete member
12623 pre_expand_symtabs_matching. All uses removed.
12624 * dwarf2read.c (dw2_lookup_symbol): Implement.
12625 (dw2_do_expand_symtabs_matching): Delete.
12626 (dw2_pre_expand_symtabs_matching): Delete.
12627 (struct dw2_symtab_iterator): New type.
12628 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12629 (dw2_expand_symtabs_for_function): Rewrite.
12630 (dwarf2_gdb_index_functions): Update.
12631 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12632 (psym_functions): Update.
12633
b2259038
TT
126342013-01-09 Tom Tromey <tromey@redhat.com>
12635
12636 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12637 * configure: Rebuild.
12638 * configure.ac: Add somread.o to the build if BFD has SOM
12639 support.
12640 * somread.c: Include som/aout.h, not syms.h.
12641 (som_symtab_read): Use som_external_symbol_dictionary_record.
12642 Unpack records manually.
12643 (_initialize_somread): Declare.
12644
bdad4180
MF
126452012-01-08 Mike Frysinger <vapier@gentoo.org>
12646
12647 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12648 Cast return_address to 64bits.
12649
03cdf680
HZ
126502013-01-08 Hui Zhu <hui_zhu@mentor.com>
12651
12652 * printcmd.c: Remove define of function output_command.
12653 * tracepoint.c: Remove extern of function output_command.
12654 * valprint.h: (output_command): New extern.
12655
8a808554
TT
126562013-01-07 Tom Tromey <tromey@redhat.com>
12657
12658 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12659 Remove.
12660 (objc_language_defn): Use c_printchar, c_printstr,
12661 c_emit_char.
12662
e93a8774
TT
126632013-01-07 Tom Tromey <tromey@redhat.com>
12664
12665 PR cli/7719:
12666 * NEWS: Update.
12667 * ada-valprint.c (printstr, print_field_values): Remove
12668 "inspect_it" code.
12669 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12670 code.
12671 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12672 code.
12673 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12674 * main.c (captured_main): Remove "epoch" argument.
12675 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12676 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12677 * p-valprint.c (pascal_object_print_value_fields): Remove
12678 "inspect_it" code.
12679 * printcmd.c (print_command_1): Remove 'inspect' argument.
12680 (print_command, call_command): Update.
12681 (inspect_command): Remove.
12682 (_initialize_printcmd): Make "inspect" an alias for "print".
12683 * top.c (epoch_interface): Remove.
12684 * top.h (epoch_interface): Remove.
12685 * valprint.c (user_print_options): Update.
12686 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12687 * valprint.h (struct value_print_options) <inspect_it>: Remove
12688 field.
12689
126902013-01-04 Tom Tromey <tromey@redhat.com>
12691
12692 * valprint.h (read_string): Add 'extern'.
12693
b967eb24
JB
126942013-01-07 Joel Brobecker <brobecker@adacore.com>
12695
12696 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12697 used to decide whether to define darwin_read_dyld_info or not.
12698
78a8b30e
PM
126992013-01-03 Pierre Muller <muller@sourceware.org>
12700
12701 * main.c (relocate_gdb_directory): Avoid calling stat function
12702 if DIR is empty.
12703
50da2f25
YQ
127042013-01-03 Yao Qi <yao@codesourcery.com>
12705
12706 * psymtab.c (fixup_psymbol_section): Update declaration.
12707 (fixup_psymbol_section): Remove code returning value.
12708
e7e8980f
YQ
127092013-01-03 Yao Qi <yao@codesourcery.com>
12710
12711 * symtab.h: Remove some out of date comments.
12712 (enum exception_event_kind): Move it ...
12713 * breakpoint.c: ... here.
12714
569283d4
MF
127152013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12716
9f9d9a96 12717 PR gdb/14405
569283d4
MF
12718 * darwin-nat.c (darwin_read_dyld_info): Only build if
12719 TASK_DYLD_INFO_COUNT is defined.
12720 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12721 TASK_DYLD_INFO_COUNT is defined.
12722
2e36fbea
TT
127232013-01-02 Tom Tromey <tromey@redhat.com>
12724
12725 * symfile.h (struct ecoff_debug_hack): Remove.
12726 * objfiles.c: Don't include mdebugread.h.
12727
4f05add4
TT
127282013-01-02 Tom Tromey <tromey@redhat.com>
12729
12730 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12731 * configure.ac: Check for Mach-O support in BFD. Update
12732 CONFIG_OBS.
12733 * configure: Rebuild.
12734
def63ff0
TT
127352013-01-02 Tom Tromey <tromey@redhat.com>
12736
12737 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12738 * configure.ac: Use GDB_AC_CHECK_BFD.
12739 * configure: Rebuild.
12740
60c5dd93
MK
127412013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12742
12743 * MAINTAINERS: Update my email.
12744
6e58437e
JB
127452013-01-01 Joel Brobecker <brobecker@adacore.com>
12746
12747 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12748
627fe805
JB
127492013-01-01 Joel Brobecker <brobecker@adacore.com>
12750
12751 * rs6000-nat.c (bss_data_overlap): New function.
12752 (vmap_symtab): Use it to adjust the .bss section's offset.
12753
28e7fd62
JB
127542013-01-01 Joel Brobecker <brobecker@adacore.com>
12755
12756 Update year range in copyright notice of all files.
12757
e93a8774 127582013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12759
12760 * top.c (print_gdb_version): Update copyright year.
12761
72b20e9c 12762For older changes see ChangeLog-2012.
c906108c
SS
12763\f
12764Local Variables:
12765mode: change-log
12766left-margin: 8
12767fill-column: 74
12768version-control: never
57da7796 12769coding: utf-8
c906108c 12770End:
This page took 2.581988 seconds and 4 git commands to generate.